/* Loisl's Eismanufaktur – Stylesheet */

:root {
  --paper: #faf6ef;
  --paper-2: #f1eadc;
  --ink: #2b211b;
  --ink-2: #5f4f44;
  --rule: rgba(43, 33, 27, 0.16);
  --red: #c8362b;
  --red-text: #ad2d23;
  --dark: #221913;

  /* Namen, die impressum.html / datenschutz.html noch verwenden */
  --strawberry: var(--red-text);
  --choco: var(--ink);
  --choco-soft: var(--ink-2);
  --cream: var(--paper);
  --cream-deep: var(--paper-2);
  --vanilla: #e3c57a;

  --maxw: 1120px;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id], main[id] { scroll-margin-top: 84px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
address { font-style: normal; }

a { color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section-title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin-bottom: 32px;
}

.textlink {
  display: inline-block;
  font-weight: 500;
  color: var(--red-text);
}
.textlink:hover { color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav__logo-img { width: 40px; height: 40px; }
.nav__logo-text {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.25rem;
  line-height: 1; display: flex; flex-direction: column;
}
.nav__logo-text small {
  font-family: inherit; font-weight: 400; font-size: 0.72rem;
  letter-spacing: 0.02em; color: var(--ink-2); margin-top: 4px;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--ink); text-decoration: none; font-size: 0.98rem; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }

/* Intro */
.intro { padding: 72px 0 80px; }
.intro__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.intro__text h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); margin-bottom: 24px; }
.intro__lead { font-size: 1.2rem; color: var(--ink-2); max-width: 32em; margin-bottom: 20px; }
.intro__meta { font-size: 0.95rem; color: var(--ink-2); margin-bottom: 28px; }
.intro__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* Standorte */
.standorte { padding: 64px 0 72px; border-top: 1px solid var(--rule); }
.standorte__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.standort { padding: 4px 28px 8px 0; }
.standort + .standort { border-left: 1px solid var(--rule); padding-left: 28px; }
.standort__typ { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.standort h3 { font-size: 1.7rem; margin-bottom: 10px; }
.standort address { color: var(--ink-2); margin-bottom: 14px; }
.standorte__note { margin-top: 40px; color: var(--ink-2); font-size: 0.98rem; }

/* Handwerk (dunkle Bildsektion) */
.handwerk { background: #040500; color: var(--paper); padding: 72px 0; }
.handwerk__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.handwerk__photo img { width: 100%; border-radius: 0; }
.handwerk__text h2 { color: var(--paper); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 18px; }
.handwerk__text p { font-size: 1.1rem; color: rgba(250, 246, 239, 0.86); max-width: 34em; }

/* Eis */
.eis { padding: 72px 0; }
.eis__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.eis__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; }
.eis__item h3 { font-size: 1.5rem; margin-bottom: 8px; }
.eis__item p { color: var(--ink-2); max-width: 34em; }

/* Fotos: Slider (nativ, scroll-snap, wischbar) */
.fotos { padding: 8px 0 64px; }
.fotos__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.fotos__head .section-title { margin-bottom: 0; }
.slider__nav { display: flex; gap: 8px; }
.slider__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: border-color 0.15s;
}
.slider__btn:hover { border-color: var(--ink); }
.slider__btn:disabled { opacity: 0.3; cursor: default; }
.slider {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 4px; outline-offset: 6px;
}
.slider::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; margin: 0; }
.slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.slide figcaption { font-size: 0.9rem; color: var(--ink-2); margin-top: 8px; }

/* Häufige Fragen */
.faq { padding: 8px 0 64px; }
.faq__item { border-top: 1px solid var(--rule); }
.faq__item:last-of-type { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  cursor: pointer; padding: 16px 0; list-style: none;
  font-family: "Fraunces", Georgia, serif; font-size: 1.15rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--red-text); font-size: 1.4rem; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { color: var(--ink-2); padding: 0 0 18px; max-width: 40em; }

/* Kontakt */
.kontakt { padding: 64px 0 72px; border-top: 1px solid var(--rule); }
.kontakt__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
.kontakt p { color: var(--ink-2); max-width: 32em; }
.kontakt__links { margin-top: 16px; display: flex; gap: 24px; }
.kontakt__address { color: var(--ink-2); padding-top: 54px; line-height: 1.7; }

/* Footer */
.footer { border-top: 1px solid var(--rule); padding: 28px 0 36px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__copy { font-size: 0.9rem; color: var(--ink-2); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 0.9rem; color: var(--ink-2); }

/* Barrierefreiheit */
a:focus-visible, button:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 900px) {
  .intro { padding: 48px 0 56px; }
  .intro__grid { grid-template-columns: 1fr; gap: 36px; }
  .intro__photo { order: -1; }
  .intro__photo img { aspect-ratio: 4 / 3; }
  .standorte__grid { grid-template-columns: 1fr; }
  .standort { padding: 24px 0; border-top: 1px solid var(--rule); }
  .standort:first-child { border-top: 0; padding-top: 0; }
  .standort + .standort { border-left: 0; padding-left: 0; }
  .handwerk__grid { grid-template-columns: 1fr; gap: 32px; }
  .eis__grid { grid-template-columns: 1fr; gap: 40px; }
  .slide { flex-basis: calc((100% - 16px) / 2); }
  .kontakt__grid { grid-template-columns: 1fr; gap: 24px; }
  .kontakt__address { padding-top: 0; }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px 24px 16px; display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 0; border-top: 1px solid var(--rule); }
  .nav__toggle { display: flex; }
  .nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .slide { flex-basis: 84%; }
}

/* Bewegung: Konfetti bei Klick */
.intro { position: relative; overflow: hidden; }
.intro__grid { position: relative; z-index: 1; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 300; }
.nav__logo-img { transition: transform 0.25s ease; }
.nav__logo:hover .nav__logo-img { transform: rotate(-10deg) scale(1.1); }
