/* VS Reininghaus – Website-Stil
   Farben lassen sich zentral über die Variablen anpassen. */
:root {
  --teal: #ad3f26;  /* Rostrot – Hauptfarbe */
  --teal-dark: #7f2a16;
  --teal-soft: #f7e2db;
  --sun: #e0895c;  /* helles Rostrot / Apricot */
  --sun-soft: #fbede5;
  --coral: #5e2414;  /* dunkles Rostbraun */
  --coral-soft: #efddd4;
  --green: #c8613f;  /* Terrakotta */
  --green-soft: #f6e3da;
  --ink: #2a211d;
  --ink-2: #5e534d;
  --line: #e4e0d8;
  --paper: #fcf8f4;
  --white: #fff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 40, .05), 0 8px 28px -12px rgba(20, 40, 40, .18);
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--display); font-weight: 650; font-variation-settings: 'opsz' 96; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Hinweisbalken */
.announce { background: var(--teal-dark); color: #f8e9e1; font-size: .9rem; padding: 8px 0; }
.announce a { color: var(--sun); }
.announce-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-right: 10px; vertical-align: 1px; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 248, 244, .9); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(0,0,0,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-size: 1.25rem; font-weight: 650; }
.brand-text small { font-size: .8rem; color: var(--ink-2); letter-spacing: .02em; }

.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.nav a, .sub-toggle { font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 999px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.nav > ul > li > a:hover, .sub-toggle:hover, .nav li.active > a, .nav li.active > .sub-toggle { background: var(--teal-soft); color: var(--teal-dark); }
.nav a[aria-current="page"] { background: var(--teal); color: #fff; }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .2s; }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .18s; }
.sub a { display: block; border-radius: 10px; padding: 9px 12px; font-weight: 500; }
.sub a:hover { background: var(--paper); }
.sub .sub-all { font-size: .82rem; color: var(--ink-2); }
.sub a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); }
@media (hover: hover) and (min-width: 1081px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
}
.has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 13px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; content: ''; }
.nav-toggle-bars { top: 22px; }
.nav-toggle-bars::before { top: -6px; left: 0; }
.nav-toggle-bars::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 0 0; background: var(--paper); overflow-y: auto; padding: 16px; display: none; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a, .sub-toggle { width: 100%; justify-content: space-between; font-size: 1.1rem; padding: 14px 16px; border-radius: 14px; }
  .sub { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 12px; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub.open .sub { display: block; }
  .sub a { font-size: 1rem; }
}

.editor-bar { background: var(--sun); color: var(--ink); font-size: .9rem; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding: 8px 16px; }
.editor-bar a { color: var(--ink); font-weight: 700; }

/* Buttons & Labels */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-block { width: 100%; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--teal); margin-bottom: .6em; }
.kicker a { color: inherit; }
.kicker.light { color: var(--sun); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: ' →'; }

/* Hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 22px 0 18px; }
.hero-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero-media { position: relative; padding: 24px 0 40px 24px; }
.hero-photo { position: relative; z-index: 2; aspect-ratio: 4 / 3.6; border-radius: 34px 34px 34px 120px; overflow: hidden; background: linear-gradient(135deg, var(--teal-soft), var(--green-soft)); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile { position: absolute; border-radius: 26px; z-index: 1; }
.tile-a { width: 120px; height: 120px; background: var(--sun); top: 0; right: -24px; }
.tile-b { width: 90px; height: 90px; background: var(--coral); bottom: 14px; left: 0; border-radius: 22px; }
.hero-card { position: absolute; z-index: 3; right: 16px; bottom: 0; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; font-size: .88rem; }
.hero-card strong { font-size: 1.1rem; }
.hero-card-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--teal); }

/* Abschnitte */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tint { background: var(--teal-soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }

/* Schulführungen */
.tours { padding-top: 20px; }
.tour-box { background: var(--sun-soft); border-radius: 32px; padding: clamp(26px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.tour-box::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--sun); opacity: .25; right: -60px; top: -80px; }
.tour-intro p:last-child { margin: 0; color: var(--ink-2); }
.tour-dates { display: grid; gap: 12px; position: relative; z-index: 1; }
.tour-date, .tour-empty { background: #fff; border-radius: 18px; padding: 16px 18px; display: flex; gap: 16px; align-items: center; }
.tour-date strong, .tour-empty strong { display: block; }
.tour-date span, .tour-empty span { display: block; font-size: .95rem; color: var(--ink-2); }
.tour-empty { flex-direction: column; align-items: flex-start; gap: 4px; }

.date-badge { flex: none; width: 58px; height: 62px; border-radius: 14px; background: var(--teal); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-badge span { font-family: var(--display); font-size: 1.55rem; font-weight: 650; }
.date-badge small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; opacity: .85; }
.date-badge.small { width: 48px; height: 52px; border-radius: 12px; }
.date-badge.small span { font-size: 1.25rem; }

/* Karten */
.cards { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card p { color: var(--ink-2); font-size: .97rem; }
.card-more { font-weight: 700; color: var(--teal); font-size: .93rem; margin-top: auto; }
.card-more::after { content: ' →'; }

.form-card { padding: 26px 24px; display: flex; flex-direction: column; border-top: 6px solid var(--teal); min-height: 280px; }
.form-card.c1 { border-top-color: var(--sun); }
.form-card.c2 { border-top-color: var(--coral); }
.form-card.c3 { border-top-color: var(--green); }
.card-num { font-family: var(--display); font-size: 1rem; color: var(--ink-2); margin-bottom: 18px; }

.focus-card { overflow: hidden; display: flex; flex-direction: column; }
.focus-img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--teal-soft), var(--sun-soft)); overflow: hidden; }
.focus-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.focus-card:hover .focus-img img { transform: scale(1.04); }
.focus-img.placeholder { aspect-ratio: 16 / 5; }
.focus-body { padding: 22px 24px 24px; }
.focus-body p { margin: 0; }
.date-line { display: block; font-size: .85rem; font-weight: 600; color: var(--coral); margin-bottom: 6px; }

.sibling-cards { margin-top: 10px; }
.sib-card { padding: 24px; display: flex; flex-direction: column; }

/* Neuigkeiten + Termine Startseite */
.news-termine { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.news-list { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.news-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.news-img { aspect-ratio: 16 / 10; background: var(--teal-soft); overflow: hidden; }
.news-feature .news-img { aspect-ratio: auto; min-height: 260px; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 20px 22px 22px; }
.news-body time { font-size: .85rem; font-weight: 600; color: var(--coral); }
.news-body h3 { margin: 6px 0 8px; }
.news-feature .news-body h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 650; }
.news-body p { color: var(--ink-2); font-size: .97rem; margin: 0; }

.termine-box { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; position: sticky; top: 100px; }
.termin-list { list-style: none; margin: 0 0 18px; padding: 0; }
.termin-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.termin-list li:last-child { border-bottom: 0; }
.termin-list strong { display: block; }
.termin-list span { display: block; font-size: .92rem; color: var(--ink-2); }

/* Kontaktband */
.contact-band { background: var(--teal); color: #fff; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.contact-band::before { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 80px; background: var(--teal-dark); transform: rotate(18deg); left: -120px; bottom: -180px; }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: center; position: relative; }
.contact-band h2 { color: #fff; }
.contact-band p { color: #f3dccf; margin: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contact-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 20px; color: #fff; text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: background .2s; }
.contact-card:hover { background: rgba(255,255,255,.15); color: #fff; }
.contact-card span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sun); font-weight: 700; }
.contact-card strong { font-size: 1.15rem; }
.contact-card strong.email { font-size: .88rem; word-break: break-all; }
.contact-card small { color: #f3dccf; }

/* Inhaltsseiten */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.page-hero h1 { max-width: 18em; }
.page-lead { font-size: 1.2rem; color: var(--ink-2); max-width: 40em; }
.page-section { padding-top: 16px; }
.page-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.page-grid.no-media { grid-template-columns: minmax(0, 780px); }
.page-figure { margin: 0; position: sticky; top: 100px; }
.page-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.page-figure figcaption { font-size: .88rem; color: var(--ink-2); margin-top: 10px; }
.article-figure { margin: 0 0 32px; }
.article-figure img { width: 100%; border-radius: var(--radius); }

.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin: 1.6em 0 .4em; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.prose h3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--sun); flex: none; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.prose li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--teal); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--sun-soft); border-radius: var(--radius-sm); border-left: 5px solid var(--sun); }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose.small { font-size: .97rem; color: var(--ink-2); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 28px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }

/* Termine-Seite */
.termine-page { display: grid; grid-template-columns: 1.8fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.month { margin-bottom: 32px; }
.month-title { font-size: 1.35rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.termin-list.big li { padding: 16px 0; }
.termin-list.big strong { font-size: 1.05rem; }
.termin-list li.past { opacity: .45; }
.termin-list .tag { margin-left: auto; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); white-space: nowrap; }
.kind-ferien .date-badge { background: var(--coral); }
.kind-ferien .tag { background: var(--coral-soft); color: #5e2414; }
.kind-schulfrei .date-badge { background: var(--green); }
.kind-schulfrei .tag { background: var(--green-soft); color: #8a3a20; }
.kind-elterninfo .date-badge { background: var(--sun); color: var(--ink); }
.kind-elterninfo .tag { background: var(--sun-soft); color: #8a3a20; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.side-box h3 { margin-top: 4px; }
.side-box h3 + p { margin-bottom: 1.4em; }

/* Dokumente */
.doc-list { list-style: none; padding: 0; margin: 0 0 40px; }
.doc-list a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); transition: .2s; }
.doc-list a:hover { border-color: var(--teal); box-shadow: var(--shadow); color: var(--ink); }
.doc-icon { flex: none; width: 50px; height: 56px; border-radius: 10px; background: var(--coral-soft); color: #5e2414; font-size: .72rem; font-weight: 800; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; letter-spacing: .04em; }
.doc-text { display: flex; flex-direction: column; flex: 1; }
.doc-text small { color: var(--ink-2); font-size: .9rem; }
.doc-dl { width: 38px; height: 38px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* Personen */
.person { padding: 26px; }
.person-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.person-head .kicker { margin: 0 0 4px; }
.person-head h3 { margin: 0; font-family: var(--display); font-weight: 650; font-size: 1.3rem; }
.avatar { width: 72px; height: 72px; border-radius: 22px; object-fit: cover; flex: none; }
.avatar.initials { background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; }
.person-contact { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.person-contact li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: .95rem; }
.person-contact li > span:first-child { color: var(--ink-2); font-size: .85rem; padding-top: 2px; }
.person-contact a { word-break: break-word; }

/* Kontakt-Seite */
.kontakt-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.big-contact { padding: clamp(24px, 4vw, 40px); }
.big-contact .addr { font-size: 1.3rem; }
.big-contact hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.contact-stack { display: grid; gap: 20px; }
.phone-card { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.phone-card strong { font-size: 1.35rem; color: var(--ink); }
.phone-card a { text-decoration: none; }
.phone-card .small-strong { font-size: 1.05rem; }

/* Fußzeile */
.site-footer { background: var(--ink); color: #d8cdc7; padding: 56px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-name { font-family: var(--display); font-size: 1.5rem; color: #fff; margin: 0; }
.footer-head { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700; color: var(--sun); margin-bottom: 6px; }
.site-footer address { font-style: normal; margin-top: 14px; }
.site-footer .muted { color: #a89a92; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 20px; font-size: .85rem; color: #a89a92; }
.footer-bottom a { color: #d8cdc7; }

/* Responsiv */
@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .tour-box, .news-termine, .page-grid, .termine-page, .kontakt-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .termine-box, .side-box, .page-figure { position: static; }
  .page-figure { order: -1; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards-4, .cards-3, .cards-2, .news-list, .footer-grid { grid-template-columns: 1fr; }
  .news-feature { grid-template-columns: 1fr; }
  .news-feature .news-img { min-height: 0; aspect-ratio: 16/10; }
  .form-card { min-height: 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .brand-text small { display: none; }
  .tile-a { width: 80px; height: 80px; right: -10px; }
  .hero-card { right: 0; }
  .termin-list .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Korrekturen */
.termin-list .date-badge span, .tour-date .date-badge span { color: #fff; font-size: 1.55rem; }
.termin-list .date-badge.small span { font-size: 1.25rem; }
.termin-list .date-badge small { color: inherit; }
.kind-elterninfo .date-badge span { color: var(--ink); }
.nav a, .sub-toggle { white-space: nowrap; padding: 9px 10px; }

/* Schullogo */
.brand-logo { height: 58px; width: auto; max-width: 300px; object-fit: contain; }
.brand-fallback { display: none; font-family: var(--display); font-size: 1.35rem; font-weight: 650; color: var(--teal); }
.brand.no-logo .brand-fallback { display: inline; }
@media (max-width: 640px) { .brand-logo { height: 46px; max-width: 210px; } }

/* Kennzahlen mit animierten Icons */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding-top: 26px; border-top: 1px solid var(--line); }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 12px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; cursor: default;
  opacity: 0; transform: translateY(18px) scale(.94); animation: stat-in .7s cubic-bezier(.2,.9,.3,1.3) forwards; animation-delay: calc(.15s + var(--d) * .18s); }
.stat-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
@keyframes stat-in { to { opacity: 1; transform: none; } }
.stat-icon { width: 76px; height: 76px; }
.stat-icon svg { width: 100%; height: 100%; overflow: visible; }
.stat-text { display: flex; flex-direction: column; }
.stat-num { font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 650; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; }
.stat-label { font-size: .88rem; color: var(--ink-2); margin-top: 4px; font-weight: 600; }
.stat-num.done { animation: num-pop .45s ease; }
@keyframes num-pop { 50% { transform: scale(1.15); color: var(--teal-dark); } }

/* Icon-Farben */
.si-bg { fill: var(--teal-soft); }
.si-main { fill: var(--teal); }
.si-accent { fill: var(--sun); }
.si-hair { fill: var(--coral); }
.si-skin { fill: #f6d3bd; }
.si-cheek { fill: #ef9f86; opacity: .7; }
.si-eye { fill: var(--coral); }
.si-smile { fill: none; stroke: var(--coral); stroke-width: 1.8; stroke-linecap: round; }
.si-glass { fill: none; stroke: var(--coral); stroke-width: 1.6; }
.si-board { fill: var(--coral); }
.si-leg, .si-pole { stroke: var(--coral); stroke-width: 3; stroke-linecap: round; }
.si-stick { stroke: var(--sun); stroke-width: 2.6; stroke-linecap: round; }
.si-abc { font-family: var(--font); font-weight: 800; font-size: 13px; fill: #fff; text-anchor: middle; letter-spacing: 2px; }
.si-roof { fill: var(--teal-dark); }
.si-window, .si-win { fill: var(--sun-soft); }
.si-door { fill: var(--sun); }
.si-flag { fill: var(--sun); }

/* Icon-Animationen */
.si-hop { animation: hop 2.4s ease-in-out infinite; }
.si-hop-b { animation-delay: 1.2s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-6px); } 80% { transform: translateY(0); } 86% { transform: translateY(-2px); } }
.si-wave { transform-box: view-box; transform-origin: 75px 62px; animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(22deg); } }
.si-pointer { transform-box: view-box; transform-origin: 36px 62px; animation: point 2s ease-in-out infinite; }
@keyframes point { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(4deg); } 60% { transform: rotate(-10deg); } }
.si-abc tspan { animation: letter 3s ease-in-out infinite; }
.si-abc .l2 { animation-delay: .4s; } .si-abc .l3 { animation-delay: .8s; }
@keyframes letter { 0%, 100% { opacity: .35; } 20%, 60% { opacity: 1; } }
.si-flag { transform-box: view-box; transform-origin: 48px 11px; animation: flag 1.4s ease-in-out infinite; }
@keyframes flag { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-8deg) scaleX(.9); } }
.si-win { animation: lights 4s ease-in-out infinite; }
.si-win.w2 { animation-delay: 1s; } .si-win.w3 { animation-delay: 2s; } .si-win.w4 { animation-delay: 3s; }
@keyframes lights { 0%, 100% { fill: var(--sun-soft); } 15%, 35% { fill: var(--sun); } }
.stat-card:hover .stat-icon svg { animation: jump .6s ease; }
@keyframes jump { 30% { transform: translateY(-8px) rotate(-4deg); } 60% { transform: translateY(0) rotate(3deg); } }

@media (max-width: 480px) {
  .stats { gap: 8px; }
  .stat-card { padding: 12px 6px 14px; border-radius: 16px; }
  .stat-icon { width: 58px; height: 58px; }
  .stat-label { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stat-card { opacity: 1; transform: none; animation: none; }
  .si *, .si { animation: none !important; }
}

/* Zeitraster-Uhr */
.hero-right { display: flex; flex-direction: column; gap: 22px; }
.clock-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px 22px 18px; box-shadow: var(--shadow); opacity: 0; transform: translateY(18px); animation: stat-in .7s cubic-bezier(.2,.9,.3,1.3) .75s forwards; }
.clock-top { display: flex; align-items: center; gap: 14px; }
.clock-icon { width: 64px; height: 64px; flex: none; }
.clock-icon svg { width: 100%; height: 100%; overflow: visible; }
.clock-head .kicker { margin: 0 0 2px; }
.clock-date { margin: 0; font-weight: 700; font-size: 1.05rem; }
.clock-live { margin-left: auto; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; background: var(--teal-soft); padding: 4px 10px; border-radius: 999px; }
.clock-live span { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; transform: scale(.7); } }
.clock-now { margin: 16px 0 12px; display: flex; flex-direction: column; }
.clock-label { font-size: .82rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.clock-status { font-family: var(--display); font-size: 1.45rem; font-weight: 650; color: var(--ink); line-height: 1.2; }
.clock-card.is-lesson .clock-status { color: var(--teal); }
.clock-count { background: var(--teal-soft); border-radius: 16px; padding: 12px 16px 14px; }
.clock-timer { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 650; color: var(--teal); font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 2px; }
.clock-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.8); margin-top: 10px; overflow: hidden; }
.clock-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--sun), var(--teal)); transition: width 1s linear; }
.clock-card.is-off .clock-bar { display: none; }
.clock-periods { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 6px; }
.clock-periods li { flex: 1; min-width: 0; text-align: center; border-radius: 12px; padding: 6px 2px; background: var(--paper); border: 1px solid var(--line); transition: .3s; }
.clock-periods li.is-pause { flex: .7; }
.clock-periods b { display: block; font-size: .95rem; line-height: 1.2; }
.clock-periods small { display: block; font-size: .68rem; color: var(--ink-2); }
.clock-periods li.done { opacity: .45; }
.clock-periods li.now { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-3px); box-shadow: 0 6px 14px -6px var(--teal); }
.clock-periods li.now small { color: #fbe3d9; }
/* Wecker-Icon */
.ck-body { fill: var(--teal); }
.ck-face { fill: #fff; }
.ck-bell { fill: var(--teal-dark); }
.ck-foot { stroke: var(--teal-dark); stroke-width: 5; stroke-linecap: round; }
.ck-tick { fill: var(--coral); }
.ck-hand { stroke-linecap: round; transform-box: view-box; transform-origin: 48px 52px; }
.ck-h { stroke: var(--coral); stroke-width: 4.5; }
.ck-m { stroke: var(--coral); stroke-width: 3; }
.ck-s { stroke: var(--sun); stroke-width: 1.6; transition: transform .25s cubic-bezier(.4,2.2,.6,1); }
.ck-pin { fill: var(--sun); }
.clock-icon svg { animation: ck-wobble 6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes ck-wobble { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-7deg); } 94% { transform: rotate(6deg); } 97% { transform: rotate(-3deg); } }
.ck-bells { transform-box: view-box; transform-origin: 48px 30px; }
.ck-bells.ring { animation: ring .12s ease-in-out 10 alternate; }
@keyframes ring { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@media (max-width: 480px) { .clock-periods small { display: none; } .clock-card { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .clock-card { opacity: 1; transform: none; animation: none; } .clock-icon svg, .ck-bells, .clock-live span { animation: none !important; } }

/* Tabellen in Texten */
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.4em 0; font-size: .97rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
@media (max-width: 560px) { .prose table { font-size: .88rem; } .prose th, .prose td { padding: 8px 10px; } }
.prose th, .prose td { text-align: left; }
.prose th { background: var(--teal); color: #fff; font-weight: 700; padding: 11px 16px; white-space: nowrap; }
.prose td { padding: 10px 16px; border-top: 1px solid var(--line); }
.prose tbody tr:nth-child(even) td { background: var(--paper); }
.prose tbody tr:hover td { background: var(--teal-soft); }

/* Mobiles Menü: Kopfzeile darf das Menü nicht "einsperren" (backdrop-filter erzeugt sonst einen eigenen Bezugsrahmen) */
@media (max-width: 1080px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav { position: fixed; top: var(--nav-top, 76px); left: 0; right: 0; bottom: 0; height: auto; z-index: 60; padding-bottom: 40px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .sub-toggle { -webkit-tap-highlight-color: transparent; }
}

/* ===== Verspielte Animationen ===== */
.form-card { min-height: 240px; }
.form-card h3 { margin-top: 4px; }

/* Schwebende Kritzeleien im Startbereich */
.hero { position: relative; }
.hero > .wrap { position: relative; z-index: 1; }
.doodles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.dd { position: absolute; overflow: visible; }
.dd-star { width: 34px; left: 3%; top: 16%; fill: var(--sun); opacity: .75; animation: float-a 7s ease-in-out infinite, spin 18s linear infinite; }
.dd-pencil { width: 74px; left: 44%; top: 9%; animation: float-b 8s ease-in-out infinite; transform-origin: center; }
.dd-pencil .p-body { fill: var(--teal); } .dd-pencil .p-tip { fill: var(--sun); } .dd-pencil .p-end { fill: var(--coral-soft); }
.dd-ring { width: 30px; right: 4%; bottom: 14%; fill: none; stroke: var(--teal); stroke-width: 3; stroke-dasharray: 6 5; opacity: .5; animation: spin 14s linear infinite reverse; }
.dd-squig { width: 90px; left: 6%; bottom: 44px; fill: none; stroke: var(--sun); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 120; animation: draw 5s ease-in-out infinite alternate; }
.dd-abc { width: 38px; left: 3%; bottom: 10px; animation: float-a 6s ease-in-out infinite reverse; }
.dd-abc rect { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2; }
.dd-abc text { font: 800 20px var(--font); fill: var(--teal); text-anchor: middle; }
.dd-heart { width: 30px; left: 3%; top: 14px; fill: var(--teal); opacity: .5; animation: beat 2.6s ease-in-out infinite; }
.dd-plane { width: 46px; left: -60px; top: 6%; animation: fly 16s cubic-bezier(.45,.05,.55,.95) infinite; animation-delay: 1.2s; }
.dd-plane .pl-a { fill: #fff; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; } .dd-plane .pl-b { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; }
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 6px -14px; } }
@keyframes float-b { 0%, 100% { transform: rotate(-14deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-10px); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes beat { 0%, 100% { scale: 1; } 12% { scale: 1.25; } 24% { scale: 1; } 36% { scale: 1.15; } }
@keyframes fly {
  0% { transform: translate(0, 0) rotate(8deg); opacity: 0; }
  4% { opacity: 1; }
  30% { transform: translate(38vw, 60px) rotate(-6deg); }
  55% { transform: translate(70vw, 10px) rotate(10deg); }
  80% { transform: translate(100vw, 70px) rotate(-4deg); opacity: 1; }
  84%, 100% { transform: translate(112vw, 40px) rotate(0); opacity: 0; }
}
@media (max-width: 900px) { .dd-pencil, .dd-abc, .dd-heart { display: none; } }

/* Gekritzelte Unterstreichung unter Überschriften */
.scribble { display: block; width: 120px; height: 12px; margin-top: 6px; overflow: visible; }
.scribble path { fill: none; stroke: var(--sun); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.1s cubic-bezier(.6,.1,.3,1) .25s; }
.rv-in .scribble path, .scribble.drawn path { stroke-dashoffset: 0; }

/* Beim Scrollen sanft einblenden */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1.15); transition-delay: calc(var(--rv, 0) * 90ms); }
.rv.rv-in { opacity: 1; transform: none; }

/* Karten: kleiner Wackler beim Darüberfahren */
@media (hover: hover) {
  .form-card:hover { animation: wiggle .5s ease; }
  .btn:hover { animation: squish .4s ease; }
  .link-arrow:hover::after, .card-more:hover::after, a.card:hover .card-more::after { display: inline-block; animation: nudge .6s ease infinite alternate; }
  .contact-card:hover, .tour-date:hover { transform: translateY(-3px) rotate(-.6deg); }
}
@keyframes wiggle { 0% { transform: translateY(-3px) rotate(0); } 30% { transform: translateY(-4px) rotate(-1.2deg); } 60% { transform: translateY(-4px) rotate(1deg); } 100% { transform: translateY(-3px) rotate(0); } }
@keyframes squish { 40% { transform: scale(1.05, .95); } 70% { transform: scale(.98, 1.03); } }
@keyframes nudge { to { transform: translateX(4px); } }
.contact-card, .tour-date { transition: transform .25s, background .2s; }

/* Glocke bei Schulführungen */
.tour-intro .kicker::before { content: '🔔'; display: inline-block; margin-right: 8px; animation: ring-bell 3.5s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes ring-bell { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(18deg); } 88% { transform: rotate(-16deg); } 92% { transform: rotate(10deg); } 96% { transform: rotate(-6deg); } }

/* Buntstift-Linie über der Fußzeile */
.site-footer { position: relative; }
.crayon { position: absolute; left: 0; right: 0; top: -14px; height: 16px; width: 100%; overflow: visible; }
.crayon path { fill: none; stroke-width: 5; stroke-linecap: round; }
.crayon .c1 { stroke: var(--teal); } .crayon .c2 { stroke: var(--sun); opacity: .9; }

/* Konfetti */
.confetti { position: fixed; width: 9px; height: 13px; border-radius: 2px; pointer-events: none; z-index: 200; }

/* Lustiger Ladebalken beim Seitenwechsel */
.page-hero h1 { animation: pop-in .7s cubic-bezier(.2,.9,.3,1.3) both; }
.page-hero .kicker, .page-hero .page-lead { animation: pop-in .7s .1s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Nach-oben-Knopf als kleine Rakete */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; box-shadow: var(--shadow); cursor: pointer; z-index: 40; opacity: 0; transform: translateY(20px) scale(.8); transition: .3s; pointer-events: none; display: grid; place-items: center; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 24px; height: 24px; }
.to-top:hover svg { animation: rocket .6s ease-in-out infinite alternate; }
.to-top.launch svg { animation: launch .7s ease-in forwards; }
@keyframes rocket { to { transform: translateY(-3px) rotate(-4deg); } }
@keyframes launch { to { transform: translateY(-60px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .dd, .tour-intro .kicker::before { animation: none !important; }
  .dd-plane { display: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .scribble path { stroke-dashoffset: 0; transition: none; }
  .page-hero h1, .page-hero .kicker, .page-hero .page-lead { animation: none; }
}

/* Hauptmenü mit Untermenü: Name führt zum Überblick, Pfeil klappt auf */
.sub-head { display: flex; align-items: center; border-radius: 999px; }
.nav .sub-head .sub-parent { padding-right: 2px; }
.nav .sub-head .sub-toggle { padding: 9px 9px 9px 4px; }
.nav .sub-head:hover, .nav li.active > .sub-head, .has-sub.open > .sub-head { background: var(--teal-soft); }
.nav .sub-head:hover a, .nav .sub-head:hover .sub-toggle, .nav li.active > .sub-head a, .nav li.active > .sub-head .sub-toggle { background: transparent; color: var(--teal-dark); }
.nav .sub-head a[aria-current="page"] { background: transparent; color: var(--teal-dark); }
.has-sub.open > .sub-head .sub-toggle svg { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1081px) { .has-sub:hover .sub-head .sub-toggle svg { transform: rotate(180deg); } }
@media (max-width: 1080px) {
  .sub-head { border-radius: 14px; }
  .nav .sub-head .sub-parent { flex: 1; padding-right: 8px; }
  .nav .sub-head .sub-toggle { width: 56px; flex: none; justify-content: center; padding: 14px 0; border-left: 1px solid var(--line); border-radius: 0 14px 14px 0; }
  .nav .sub-head .sub-toggle svg { width: 16px; height: 16px; }
}

/* Würfel und Herz in eigenen Abschnitten */
.deco-section { position: relative; }
.deco-section > .wrap { position: relative; z-index: 1; }

/* Am Handy: schwebende Kritzeleien im Startbereich ausblenden (Papierflieger, Buntstift, Stern, Herz, A-Würfel, Kritzellinie) */
@media (max-width: 900px) {
  .doodles { display: none !important; }
}

/* ===== Version 2: Galerie, Ausrichtung, Dokumente, Feiertag ===== */
/* Ausrichtung aus dem Editor */
.prose .align-left { text-align: left; }
.prose .align-center { text-align: center; }
.prose .align-right { text-align: right; }
.prose .align-justify { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prose .align-center img { margin-inline: auto; }
.prose .align-right img { margin-left: auto; }
.prose p > img { display: block; max-width: 100%; height: auto; }

/* Dokument-Links im Text */
.prose a.doc-chip { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 4px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; max-width: 100%; }
.prose a.doc-chip:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.doc-chip-type { flex: none; background: var(--teal); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 4px 8px; border-radius: 7px; }
.doc-chip-name { font-weight: 600; overflow-wrap: anywhere; }
.doc-chip-dl { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }

/* Galerie */
.page-gallery { margin-top: clamp(28px, 4vw, 44px); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 0 0 24px; }
.gallery-item { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--teal-soft); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; transition: transform .45s cubic-bezier(.2,.8,.3,1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-zoom { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--teal); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: .25s; }
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.gallery-docs { margin-top: 8px; }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } .gallery-zoom { opacity: 1; transform: none; width: 30px; height: 30px; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(30, 16, 10, .92); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.4); transform: scale(.96); transition: transform .3s cubic-bezier(.2,.8,.3,1.2), opacity .2s; }
.lightbox.open img { transform: none; }
.lightbox img.switching { opacity: 0; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #f3dccf; font-size: .9rem; font-weight: 600; letter-spacing: .05em; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; } .lb-prev { left: 12px; } .lb-next { right: 12px; } }

/* Hinweis-Box Button */
.tour-btn { margin-top: 18px; }

/* Terminart Feiertag */
.kind-feiertag .date-badge { background: var(--teal-dark); }
.kind-feiertag .tag { background: var(--teal-soft); color: var(--teal-dark); }
