/* =========================================================================
   Brandenburger Töpfermarkt — Stylesheet
   Überschriften: Young Serif (self-hosted, OFL) · 400
   Fließtext: Instrument Sans (self-hosted, OFL) · 400 / 700
   Farbwelt aus den Abendaufnahmen; Corporate-Grün #61A149 / #37631E.
   ========================================================================= */

/* ---------- Fonts (self-hosted, keine externen Requests) ---------- */
/* Young Serif – nur 400 (Überschriften) */
@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/YoungSerif-400.woff2") format("woff2"),
       url("fonts/YoungSerif-400.woff") format("woff");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/YoungSerif-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Sans – 400 (normal) */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/InstrumentSans-400.woff2") format("woff2"),
       url("fonts/InstrumentSans-400.woff") format("woff");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/InstrumentSans-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Sans – 700 (bold) */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/InstrumentSans-700.woff2") format("woff2"),
       url("fonts/InstrumentSans-700.woff") format("woff");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/InstrumentSans-700-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design-Tokens ---------- */
:root {
  --ink:            #16211f;  /* tiefes Dämmerungs-Petrol (Himmel/Wasser) */
  --ink-2:          #1d2b28;
  --ink-3:          #27352f;

  --paper:          #f5efe5;  /* Ton-Engobe, warmes Off-White */
  --paper-2:        #ece2d3;
  --paper-3:        #e0d4c1;

  --brand:          #61A149;  /* Corporate-Grün (hell) – Akzente, Balken, Scheibe */
  --brand-dp:       #37631E;  /* Corporate-Grün (dunkel) – Buttons, Links, Headlines */
  --brand-2:        #7cbf62;  /* helle Tönung für Hover/Fokus auf Dunkel */

  --amber:          #d9962f;  /* Lampenlicht (warmer Sekundär-Akzent) */
  --amber-2:        #f0c264;

  --celadon:        var(--brand);      /* auf Corporate-Grün vereinheitlicht */
  --celadon-dp:     var(--brand-dp);

  --text:           #241e19;  /* warmes Fast-Schwarz auf Papier */
  --text-muted:     #6a5f52;
  --text-on-ink:    #f0e8da;
  --muted-on-ink:   #bdb4a4;

  --line:           #d8cbb6;
  --line-ink:       rgba(240, 232, 218, 0.16);

  --radius:         14px;
  --radius-lg:      26px;
  --shadow:         0 14px 40px -18px rgba(22, 33, 31, 0.45);
  --shadow-soft:    0 8px 24px -14px rgba(22, 33, 31, 0.35);

  --maxw:           1180px;
  --pad:            clamp(1.15rem, 4vw, 3rem);

  --ease:           cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.12rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: "Young Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
strong, b { font-weight: 700; }

/* Icons (Tabler, als <symbol> referenziert) – skalieren via viewBox, nie abgeschnitten */
.ic {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  flex: none;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  overflow: visible;
}

a { color: var(--brand-dp); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--celadon-dp);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  display: inline-block;
}
.eyebrow--ink { color: var(--amber-2); }

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--brand-dp);
  color: #fff;
  padding: 0.7em 1.1em;
  border-radius: 8px;
  font-weight: 700;
  z-index: 999;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons: „Bestia" (Codrops) adaptiert ---------- */
.btn {
  --btn-rest: var(--brand);      /* Pill im Ruhezustand */
  --btn-iris: var(--brand-dp);   /* Iris-Füllung beim Hover */
  --btn-fg: #16211f;             /* Label Ruhe */
  --btn-fg-hover: #ffffff;       /* Label Hover */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: 0;
  border: none;
  background: none;
  color: var(--btn-fg);
  cursor: pointer;
  isolation: isolate;
}
.btn__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-rest);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .4s cubic-bezier(.1, 0, .3, 1);
}
.btn__bg::before,
.btn__bg::after { content: ""; position: absolute; background: var(--btn-iris); }
.btn__bg::before {
  width: 120%; height: 0; padding-bottom: 120%;
  top: 50%; left: 50%; border-radius: 50%;
  transform: translate3d(-50%, -50%, 0) scale3d(0, 0, 1);
}
.btn__bg::after { inset: 0; opacity: 0; transition: opacity .3s; }
.btn__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .9em 1.6em;
  transition: color .3s;
}
.btn:hover .btn__bg { transform: scale3d(1.05, 1.1, 1); }
.btn:hover .btn__bg::before {
  transition: transform .4s cubic-bezier(.1, 0, .3, 1);
  transform: translate3d(-50%, -50%, 0) scale3d(1, 1, 1);
}
.btn:hover .btn__bg::after { opacity: 1; transition-duration: .01s; transition-delay: .4s; }
.btn:hover .btn__label { color: var(--btn-fg-hover); transition-delay: .12s; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 999px; }

.btn--amber {
  --btn-rest: var(--amber);
  --btn-iris: #b0761d;
  --btn-fg: #2a1c07;
  --btn-fg-hover: #fff5e4;
}
.btn--solid {
  --btn-rest: var(--brand-dp);
  --btn-iris: #24471a;
  --btn-fg: #ffffff;
  --btn-fg-hover: #ffffff;
}
.btn--ghost {
  --btn-iris: var(--paper);
  --btn-fg: var(--text-on-ink);
  --btn-fg-hover: #16211f;
}
.btn--ghost .btn__bg {
  background: transparent;
  border: none;
  box-shadow: inset 0 0 0 2px var(--line-ink);
  backdrop-filter: blur(2px);
  transition: transform .4s cubic-bezier(.1, 0, .3, 1), box-shadow .35s var(--ease);
}
.btn--ghost:hover .btn__bg { box-shadow: inset 0 0 0 2px rgba(240, 232, 218, 0.6); }

/* ---------- Textlinks: „Metis" (Codrops) – Unterstrich wischt ein/aus ---------- */
.tlink {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
  padding-bottom: 0;
}
.tlink::before {
  content: "";
  position: absolute;
  left: 0; top: calc(100% + 1px);
  width: 100%; height: 1px;
  background: currentColor;
  transform: scale3d(0, 1, 1);
  transform-origin: 100% 50%;
  transition: transform .3s var(--ease);
  pointer-events: none;
}
.tlink:hover::before,
.tlink:focus-visible::before {
  transform: scale3d(1, 1, 1);
  transform-origin: 0% 50%;
}
/* Icon-Link: Icon + Text nebeneinander, Unterstrich nur unter dem Text */
.tlink--icon {
  display: inline-flex;
  align-items: baseline;
  gap: .4em;
  vertical-align: baseline;
}
.tlink--icon .ic { align-self: center; }
.tlink--icon::before { content: none; }
.tlink--icon .tlink__t {
  position: relative;
  line-height: 1.15;
}
.tlink--icon .tlink__t::before {
  content: "";
  position: absolute;
  left: 0; top: calc(100% + 1px);
  width: 100%; height: 1px;
  background: currentColor;
  transform: scale3d(0, 1, 1);
  transform-origin: 100% 50%;
  transition: transform .3s var(--ease);
  pointer-events: none;
}
.tlink--icon:hover .tlink__t::before,
.tlink--icon:focus-visible .tlink__t::before {
  transform: scale3d(1, 1, 1);
  transform-origin: 0% 50%;
}

/* =========================================================================
   HERO — Signatur: die Töpferscheibe (rotierende Drehrillen) + Kiln-Glow
   ========================================================================= */
.hero {
  position: relative;
  color: var(--text-on-ink);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3.5rem, 9vh, 7rem);
  width: 100vw;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
}
.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -3;
  filter: saturate(1.05);
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
}
/* Ken-Burns: sanftes Zoomen klein↔groß in Endlosschleife */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: kenburns 38s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
.hero__scrim {
  position: absolute; inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 50% 38%, rgba(22,33,31,.35) 0%, rgba(22,33,31,.72) 62%, rgba(22,33,31,.94) 100%),
    linear-gradient(180deg, rgba(22,33,31,.55) 0%, rgba(22,33,31,.2) 40%, rgba(22,33,31,.85) 100%);
}

.hero__inner { position: relative; text-align: center; }
.hero__eyebrow { justify-content: center; margin-bottom: 1.1rem; }

.hero h1 {
  font-size: clamp(2.6rem, 8.5vw, 6.4rem);
  line-height: 0.92;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero h1 .yr {
  display: block;
  color: var(--brand-2);
  -webkit-text-stroke: 0;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--text-on-ink);
  max-width: 48ch;
  margin: 1.3rem auto 0;
  font-weight: 400;
}

.hero__date {
  margin-top: 2rem;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.5rem 0.9rem;
}
.datechip {
  background: rgba(240,232,218,.08);
  border: 0;
  border-radius: 14px;
  padding: 0.95rem 1.5rem .95rem 1.2rem;
  text-align: left;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 0.7em;
  min-width: 13rem;
}
.datechip .ic { width: 2.9em; height: 2.9em; flex: none; color: var(--amber-2); stroke-width: 1; }
.datechip__txt { display: block; line-height: 1.2; }
.datechip .d { display: block; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; }
.datechip .t { display: block; font-size: 1.2rem; color: var(--muted-on-ink); }
.datechip--free {
  background: transparent;
  padding: 0;
  backdrop-filter: none;
  color: var(--amber-2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: unset;
}
.datechip--free .ticket {
  display: block;
  height: 5.125rem;
  width: auto;
}

.hero__cta { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 1.2rem; translate: -50% 0;
  color: var(--muted-on-ink);
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700;
  display: inline-flex; flex-direction: column; align-items: center; gap: .4rem;
  text-decoration: none;
  transition: color .35s var(--ease);
}
.hero__scroll:hover,
.hero__scroll:focus-visible { color: var(--text-on-ink); }
.hero__scroll .chev { width: 34px; height: 34px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll .chev { animation: bob 2s ease-in-out infinite; }
  .hero__scroll:hover .chev,
  .hero__scroll:focus-visible .chev { animation: bob-strong .9s ease-in-out infinite; }
  .hero__scroll:hover .hero__scroll__txt,
  .hero__scroll:focus-visible .hero__scroll__txt { animation: track 1.6s ease-in-out infinite; }
}
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }
@keyframes bob-strong { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(9px);} }
@keyframes track { 0%,100%{ letter-spacing: .18em; } 50%{ letter-spacing: .32em; } }

/* ---------- Glasur-Tropfen-Trenner ---------- */
.drip { display: block; width: 100%; height: 0; }
.drip--to-paper { color: var(--paper); margin-top: -1px; }

/* =========================================================================
   Sektionen allgemein
   ========================================================================= */
.section { padding-block: clamp(3.2rem, 8vh, 6rem); background: var(--paper); }
.section--paper2 {
  background: transparent;
  position: relative;
  isolation: isolate;
}
/* fixierte Muster-Ebene: position:fixed wirkt auch auf Mobilgeräten
   (background-attachment:fixed wird dort v. a. von iOS ignoriert).
   Sichtbar nur durch die transparenten .section--paper2-Sektionen. */
.bg-paper2 {
  position: fixed;
  inset: 0;
  z-index: -10;
  background: var(--paper-2);
  pointer-events: none;
}
.bg-paper2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("btm-outline-bg.png");
  background-repeat: repeat;
  background-size: 760px;
  opacity: .5;
}
.section--ink { background: var(--ink); color: var(--text-on-ink); }
.section--celadon {
  background:
    linear-gradient(180deg, var(--brand-dp), #2b4d18);
  color: var(--text-on-ink);
}

.section__head { max-width: 76ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section__head.center { margin-inline: auto; text-align: center; }
.section h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  margin-top: .5rem;
}
.section p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  margin-top: 1rem;
}

/* ---------- Intro ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.intro__text p + p { margin-top: 1rem; }
.intro__figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.intro__figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.intro > .pullquote { margin-top: clamp(3rem, 6vw, 4.5rem); }
.intro__figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: .8rem; color: #fff;
  padding: 1.4rem .9rem .6rem;
  background: linear-gradient(180deg, transparent, rgba(22,33,31,.7));
}
.pullquote {
  margin-top: 1.6rem;
  border-left: 4px solid var(--brand);
  padding: .6rem 0 .6rem 1.6rem;
  font-size: clamp(1.5rem, 1.9vw, 2.4rem);
  line-height: 1.4;
  font-weight: 700;
  color: var(--brand-dp);
}
.pullquote cite { display: block; margin-top: .5rem; font-size: .85rem; font-weight: 400; font-style: normal; color: var(--text-muted); }

/* ---------- Highlights (Icon-Karten) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.section--paper2 .card { background: transparent; border: 0; }
.section--paper2 .card:hover { box-shadow: none; border-color: transparent; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--celadon); }
.card__ic {
  width: 7rem; height: 7rem;
  display: grid; place-items: center;
  color: var(--brand-dp);
  margin: 0 auto;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), color .45s var(--ease);
}
.card__ic .ic {
  width: 6rem; height: 6rem;
  stroke-width: 1;
}
.card:hover .card__ic { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) {
  .card__ic { transition: none; }
  .card:hover .card__ic { transform: none; }
}
.card h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.card p { margin-top: .45rem; color: var(--text-muted); font-size: .98rem; }

/* ---------- Info / Termin ---------- */
.info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.4rem);
}
.factlist { list-style: none; padding: 0; display: grid; gap: 1rem; }
.factlist li { display: flex; gap: 0.9rem; align-items: flex-start; }
.factlist .fi {
  flex: none;
  align-self: flex-start;
  height: 3.56rem;
  display: grid; place-items: center;
  color: var(--amber-2);
}
.factlist .fi .ic { width: 46px; height: 46px; stroke-width: 1; }
.factlist .ft { font-weight: 700; font-size: 1.05rem; display: block; color: var(--text-on-ink); }
.factlist .fd { color: var(--muted-on-ink); display: block; }
.factlist a { color: var(--amber-2); }

.mapcard {
  background: rgba(240,232,218,.06);
  border: none;
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.8rem, 4vw, 3rem);
  display: flex; flex-direction: column; justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.mapcard > * { position: relative; z-index: 1; }
.mapcard__bg {
  position: absolute;
  top: -.5rem; right: 1rem;
  width: clamp(180px, 34%, 260px); height: auto;
  aspect-ratio: 1 / 1;
  color: var(--amber-2);
  opacity: .12;
  transform: rotate(14deg);
  stroke-width: 1;
  z-index: 0;
  pointer-events: none;
}
.mapcard h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.mapcard p { color: var(--muted-on-ink); }
.mapcard .addr { font-weight: 700; color: var(--text-on-ink); font-size: 1.1rem; line-height: 1.4; }

/* ---------- Galerie ---------- */
.gallery {
  columns: 4 220px;
  column-gap: 12px;
  --zoom-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2011a3%203%200%201%200%206%200a3%203%200%200%200%20-6%200%22%20/%3E%20%3Cpath%20d%3D%22M16%2016l-2.5%20-2.5%22%20/%3E%20%3Cpath%20d%3D%22M3%207v-2a2%202%200%200%201%202%20-2h2%22%20/%3E%20%3Cpath%20d%3D%22M3%2017v2a2%202%200%200%200%202%202h2%22%20/%3E%20%3Cpath%20d%3D%22M17%203h2a2%202%200%200%201%202%202v2%22%20/%3E%20%3Cpath%20d%3D%22M17%2021h2a2%202%200%200%200%202%20-2v-2%22%20/%3E%3C/svg%3E");
}
.gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  break-inside: avoid;
}
.gallery__item img {
  width: 100%; height: auto; display: block;
  transition: transform .5s var(--ease), filter .3s var(--ease);
}
.gallery__item::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: rgba(22,33,31,.45);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.gallery__item::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: #fff;
  -webkit-mask: var(--zoom-icon) center / 46px 46px no-repeat;
  mask: var(--zoom-icon) center / 46px 46px no-repeat;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__item:hover::before,
.gallery__item:focus-visible::before { opacity: 1; }
.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; transform: scale(1); }
.gallery__credit { margin-top: 1.4rem; font-size: .85rem; color: var(--text-muted); text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(12, 18, 17, .92);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 100%; max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox__cap { color: var(--muted-on-ink); text-align: center; margin-top: .8rem; font-size: .9rem; }
.lightbox__btn {
  position: absolute;
  width: 52px; height: 52px;
  border: none;
  background: none;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  isolation: isolate;
  display: grid; place-items: center;
}
.lightbox__btn-bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--celadon-dp);
  border: none;
  border-radius: 50%;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.1, 0, .3, 1);
}
.lightbox__btn-bg::before,
.lightbox__btn-bg::after { content: ""; position: absolute; background: #24471a; }
.lightbox__btn-bg::before {
  width: 130%; height: 0; padding-bottom: 130%;
  top: 50%; left: 50%; border-radius: 50%;
  transform: translate3d(-50%, -50%, 0) scale3d(0, 0, 1);
}
.lightbox__btn-bg::after { inset: 0; opacity: 0; transition: opacity .3s; }
.lightbox__btn-label { position: relative; display: grid; place-items: center; }
.lightbox__btn:hover .lightbox__btn-bg { transform: scale3d(1.08, 1.08, 1); }
.lightbox__btn:hover .lightbox__btn-bg::before {
  transition: transform .4s cubic-bezier(.1, 0, .3, 1);
  transform: translate3d(-50%, -50%, 0) scale3d(1, 1, 1);
}
.lightbox__btn:hover .lightbox__btn-bg::after { opacity: 1; transition-duration: .01s; transition-delay: .4s; }
.lightbox__btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.lightbox__btn .ic { width: 26px; height: 26px; }
.lb-close { top: 1.1rem; right: 1.1rem; }
.lb-prev { left: 1.1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1.1rem; top: 50%; translate: 0 -50%; }
.lightbox__figure { max-width: 1100px; }

/* ---------- Aussteller / Anmeldung ---------- */
.apply__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.apply__panel {
  background: #fbf7ef;
  border: 0;
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 4vw, 2.6rem) clamp(2.6rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
}
.apply__panel h3 { font-size: 2rem; }
.apply__steps { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .9rem; counter-reset: step; }
.apply__steps li { display: flex; gap: .9rem; align-items: flex-start; }
.apply__steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--celadon-dp); color: #fff;
  font-weight: 700; font-size: .95rem;
  display: grid; place-items: center;
}
.apply__figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.apply__figure img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--text-on-ink); padding-block: clamp(2.6rem, 6vh, 4rem) 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr 1.4fr;
  gap: clamp(4rem, 4vw, 3rem) clamp(1.4rem, 4vw, 3rem);
}
.footer h2 { font-size: 1.5rem; }
.footer h3 { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-2); margin-bottom: .9rem; }
.footer p, .footer li { color: var(--muted-on-ink); }
.footer a { color: var(--text-on-ink); text-decoration: none; }
.footer a:hover { color: var(--amber-2); }
.footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer__brandline { font-size: 1.0rem; color: var(--text-on-ink); margin-top: .6rem; max-width: 36ch; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
.footer__contact .ic { width: 1.1em; height: 1.1em; color: var(--amber-2); flex: none; align-self: flex-start; margin-top: .2em; }
/* Einzeilige Zeilen (z. B. Telefon): Text auf Basislinie, Icon mittig zur Zeile */
.footer__contact li:has(a) { align-items: baseline; }
.footer__contact li:has(a) .ic { align-self: center; margin-top: 0; }
.footer__bottom {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-ink);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: baseline;
  font-size: .85rem; color: var(--muted-on-ink);
}
.footer__bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: baseline; }

/* =========================================================================
   Rechtsseiten (Impressum / Datenschutz)
   ========================================================================= */
.legal { padding-block: clamp(2.5rem, 7vh, 5rem) 4rem; }
.legal__back { display: inline-flex; align-items: center; gap: .4em; text-decoration: none; color: var(--brand-dp); font-weight: 700; margin-bottom: 1.4rem; }
.legal__back .ic { width: 1.1em; height: 1.1em; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .4rem; }
.legal .sub { color: var(--text-muted); margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; margin-bottom: .5rem; color: var(--brand-dp); }
.legal h3 { font-size: 1.08rem; margin-top: 1.4rem; margin-bottom: .3rem; }
.legal p, .legal li { max-width: 75ch; }
.legal p + p { margin-top: .7rem; }
.legal ul, .legal ol { margin: .6rem 0 .6rem 1.2rem; }
.legal li { margin-top: .3rem; }
.legal a { color: var(--brand-dp); }
.legal address { font-style: normal; line-height: 1.7; margin: 1.4rem 0; }
.legal .todo {
  background: #fdf3d6;
  border: 1px dashed var(--amber);
  color: #6b4e12;
  border-radius: 10px;
  padding: .15em .5em;
  font-weight: 700;
  font-size: .95em;
}
.legal__note {
  background: #fbf7ef;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.legal__mini-header {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 1.1rem 0;
}
.legal__mini-header .wrap { display: flex; align-items: center; gap: .7rem; }
.legal__mini-header .logo { font-family: "Young Serif", Georgia, serif; font-weight: 400; letter-spacing: -.01em; font-size: 1.2rem; }
.legal__mini-header .logo .em { color: var(--amber-2); }

/* ---------- Scroll-Reveal (Progressive Enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__scroll .chev { animation: none !important; }
  .btn, .card, .gallery__item img { transition: none !important; }
}

/* =========================================================================
   Ehemalige Inline-Styles → Klassen
   ========================================================================= */
.sprite { position: absolute; width: 0; height: 0; }
.eyebrow--center { justify-content: center; }
.hero__eyebrow { display: block; text-align: center; }
.hero__eyebrow::before { display: none; }
.factlist { margin-top: 1.6rem; }
.ticket path { fill: none; stroke: currentColor; stroke-width: 4px; stroke-linecap: round; stroke-linejoin: round; }
.ticket text { fill: currentColor; font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -.01em; }
.apply__lead { margin-top: .6rem; color: var(--text-muted); }
.apply__note { margin-top: 1rem; font-size: .92rem; color: var(--text-muted); }
.apply__login { margin-top: 1rem; font-size: .92rem; border-top: 2px solid var(--celadon-dp); padding-top: 1rem; }
.legal__wrap { max-width: 900px; }
.legal__stand { margin-top: 2rem; color: var(--text-muted); }
.legal__back--bottom { margin-top: 2rem; }
.footer__bottom--bare { border-top: none; margin-top: 0; }
.ns { white-space: nowrap; }

/* Social Media */
.footer__social { display: flex; align-items: center; gap: .7rem; margin-top: 1.3rem; flex-wrap: wrap; }
.footer__social__label { font-size: .9rem; font-weight: 700; color: var(--muted-on-ink); }
.footer__social .social { border-radius: 50%; width: 42px; flex: 0 0 auto; }
.footer__social .social .btn__bg { border-radius: 50%; }
.footer__social .social .btn__label { padding: 0; width: 42px; height: 42px; justify-content: center; gap: 0; }
.footer__social .social .ic { width: 21px; height: 21px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .intro__grid, .info__grid, .apply__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .gallery { columns: 3 180px; }
}
@media (max-width: 494.98px) {
  .hero__scroll { display: none; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .gallery { columns: 2 140px; }
  .hero__date { gap: .5rem; }
  .datechip { flex: 0 1 auto; }
  .lb-prev { left: .4rem; } .lb-next { right: .4rem; }
  .btn { width: 100%; justify-content: center; }
  .hero__cta { width: 100%; justify-content: center; }
  .hero__cta .btn { width: auto; }
}

@media (max-width: 767px) {
  .hero__date { display: flex; }
  .datechip--free { flex-basis: 100%; }
}
@media (max-width: 579px) {
  .footer__sep { display: none; }
  .footer__credit { display: block; }
}
@media (max-width: 479.98px) {
  .datechip:not(.datechip--free) {
    flex-direction: column;
    text-align: center;
    gap: .4em; min-width:9rem;
  }
}

/* Print */
@media print {
  .hero__scroll, .lightbox, .btn--ghost { display: none; }
  body { background: #fff; color: #000; }
}
