/* ==========================================================================
   Musikwerkstatt Abensberg – Stylesheet
   Farben & Schriften aus dem Designentwurf "MW Website 03"
   ========================================================================== */

:root {
  --lila:     #5a4d70;
  --blau:     #577f94;
  --gruen:    #637861;
  --rosa:     #a36f7f;
  --hellblau: #8faab8;
  --salbei:   #87a89a;
  --grau:     #d2d5d9;
  --beige:    #eedcb5;
  --sage-hell:#bbc99b;
  --rot:      #7a1f2b;
  --ink:      #1d1a24;
  --muted:    #5d5a66;
  --paper:    #ffffff;
  --paper-2:  #f4f3f1;

  --f-hand: 'Blue Goblet', 'Chalkboard SE', 'Marker Felt', 'Segoe Print', 'Ink Free', 'Comic Sans MS', cursive;
  --f-text: 'Meta Pro', 'FF Meta', 'Fira Sans', 'Source Sans 3', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --wrap: 1180px;
  --narrow: 760px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 10px;
  --header-h: 92px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--f-text); font-size: clamp(1.02rem, .95rem + .25vw, 1.15rem); line-height: 1.6;
  color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 4px; }
h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 .6em; font-weight: 700; }
p, ul, ol, dl, blockquote, table { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2*var(--gap), var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2*var(--gap), var(--narrow)); }
.center { text-align: center; }
.ico { width: 1.35em; height: 1.35em; flex: none; }

/* ---------- Schrift-Rollen ---------- */
.display, .headline, .hl-title, .mainmenu a, .quick span, .home-btn span, .card h3, .teacher h3, .price-group h3 {
  font-family: var(--f-hand); font-weight: 700; letter-spacing: .01em;
}
.headline { overflow-wrap: break-word; hyphens: auto; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); text-transform: uppercase; line-height: 1; margin-bottom: .55em; }
.display  { font-size: clamp(3rem, 1.8rem + 5vw, 6.2rem); line-height: .92; color: var(--beige); margin: 0 0 .35em; }
.lead     { font-size: clamp(1.25rem, 1rem + 1.2vw, 2.2rem); line-height: 1.3; max-width: 34ch; margin: 0; }
.big, .big p { font-size: clamp(1.25rem, 1rem + 1.1vw, 2.1rem); line-height: 1.32; }

/* ---------- Kopfzeile ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: background .3s var(--ease), box-shadow .3s; }
.topbar-inner { height: 100%; width: min(100% - 2*var(--gap), 1300px); margin-inline: auto; display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); }
.home-btn {
  display: grid; place-items: center; gap: 0; width: 72px; height: 64px; border-radius: 11px; background: var(--blau);
  color: #fff; text-decoration: none; padding-top: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: transform .2s var(--ease);
}
.home-btn:hover { transform: translateY(-2px); }
.home-btn .ico { width: 34px; height: 34px; }
.home-btn span { font-size: .85rem; color: var(--beige); line-height: 1; margin-top: -2px; }
.quicklinks { display: flex; gap: clamp(1rem, 3vw, 3.4rem); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: .3s var(--ease); }
.quick { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-size: 1.15rem; white-space: nowrap; }
.quick:hover span { text-decoration: underline; text-underline-offset: .25em; }
.burger { margin-left: auto; width: 54px; height: 44px; border: 0; padding: 6px; background: transparent; cursor: pointer; display: grid; align-content: center; gap: 7px; border-radius: 8px; }
.burger span { display: block; height: 6px; border-radius: 3px; background: var(--blau); transition: .3s var(--ease); }
.page-home .topbar:not(.solid) .burger span, .hero-page ~ * .x { background: #fff; }
.topbar:not(.solid) .burger span { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.page-kontakt .topbar:not(.solid) .burger span, .page-impressum .topbar:not(.solid) .burger span, .page-datenschutz .topbar:not(.solid) .burger span { background: var(--blau); box-shadow: none; }
.topbar.solid { background: rgba(255,255,255,.96); box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 24px rgba(0,0,0,.05); backdrop-filter: blur(8px); }
.topbar.solid .quicklinks { visibility: visible; opacity: 1; transform: none; }

/* ---------- Menü (rechte Leiste wie im Entwurf) ---------- */
.mainmenu {
  position: fixed; z-index: 60; inset: 0 0 0 auto; width: min(380px, 88vw); background: rgba(225,227,230,.94);
  backdrop-filter: blur(10px); padding: 110px 2rem 2rem 2.2rem; transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility .45s; display: flex; flex-direction: column; overflow-y: auto;
}
.mainmenu.open { transform: none; visibility: visible; }
.mainmenu ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.mainmenu li + li { margin-top: clamp(.9rem, 3.2vh, 2.1rem); }
.mainmenu a { text-decoration: none; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.05rem); color: var(--ink); display: inline-block; transition: color .2s, transform .25s var(--ease); }
.mainmenu a:hover { color: var(--rot); transform: translateX(4px); }
.mainmenu a.active { color: var(--rot); }
.menu-contact { margin-top: auto; display: grid; gap: .3rem; font-size: .95rem; }
.menu-contact a { font-family: var(--f-text); font-size: .95rem; font-weight: 400; }
.menu-close { position: absolute; top: 24px; right: 1.6rem; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; }
.menu-close::before, .menu-close::after { content: ""; position: absolute; left: 6px; top: 21px; width: 36px; height: 6px; border-radius: 3px; background: var(--blau); transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }
.menu-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(20,18,26,.25); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--lila) center/cover no-repeat; color: #fff; }
.hero-home { min-height: clamp(380px, 62vh, 720px); display: grid; place-items: center; padding: calc(var(--header-h) + 1rem) var(--gap) 3rem; }
.hero-home::before, .hero-page::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,0) 30%, rgba(0,0,0,.08)); pointer-events: none; }
.hero-logo { position: relative; margin: 0; width: min(760px, 86vw); filter: drop-shadow(0 4px 22px rgba(0,0,0,.35)); }
.hero-claim { position: absolute; left: 0; right: 0; bottom: 1.4rem; text-align: center; margin: 0; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; opacity: .92; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero-page { min-height: clamp(360px, 59vh, 600px); display: flex; align-items: flex-end; padding: calc(var(--header-h) + 2rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-text { position: relative; }
.hero-page .lead { text-shadow: 0 1px 14px rgba(0,0,0,.25); }
.hero[class*="tint-"]::after { content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .55; pointer-events: none; }
.hero.tint-lila::after { background: var(--lila); }
.hero.tint-blau::after { background: var(--blau); }
.hero.tint-gruen::after { background: var(--gruen); }
.hero.tint-rosa::after { background: var(--rosa); }
.hero[class*="tint-"] .hero-text { z-index: 1; }
.hero-plain { background: var(--paper-2); color: var(--ink); padding: calc(var(--header-h) + 3rem) 0 2.5rem; }
.hero-plain .display { color: var(--lila); font-size: clamp(2.6rem, 1.8rem + 3.5vw, 4.8rem); }
.hero-plain .lead { color: var(--muted); }

.quickstrip { background: #fff; border-bottom: 1px solid #eee; }
.quickstrip .wrap { display: flex; gap: clamp(1.2rem, 4vw, 4rem); padding-block: 1.05rem; overflow-x: auto; scrollbar-width: none; }
.quickstrip .wrap::-webkit-scrollbar { display: none; }

/* ---------- Abschnitte & Hintergründe ---------- */
.block { padding-block: var(--section); }
.block + .block.bg-weiss, .bg-weiss + .bg-weiss { padding-top: calc(var(--section) * .45); }
.quickstrip + .block.bg-weiss { padding-top: calc(var(--section) * .8); }
.bg-weiss { background: #fff; }
.bg-grau { background: var(--paper-2); }
.bg-lila, .bg-blau, .bg-gruen, .bg-rosa, .bg-salbei, .bg-hellblau { color: #fff; }
.bg-lila { background: var(--lila); } .bg-blau { background: var(--blau); } .bg-gruen { background: var(--gruen); }
.bg-rosa { background: var(--rosa); } .bg-salbei { background: var(--salbei); } .bg-hellblau { background: var(--hellblau); }
.bg-lila .headline, .bg-blau .headline, .bg-gruen .headline, .bg-rosa .headline { color: var(--beige); }
.bg-salbei .headline, .bg-hellblau .headline { color: #fff; }
.bg-lila a:not(.btn), .bg-blau a:not(.btn), .bg-gruen a:not(.btn) { color: #fff; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.split-head { min-width: 0; }
.split-head .headline { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.6rem); }
.split-large .split-head .headline { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 5rem); overflow-wrap: break-word; hyphens: auto; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .split-body ul { padding-left: 1.2em; }
.prose li + li { margin-top: .25em; }
.prose h3, .prose h4 { font-size: 1.3rem; margin-top: 1.6em; }
.prose blockquote { border-left: 4px solid var(--beige); padding-left: 1rem; font-style: italic; }
.intro { max-width: 760px; margin-bottom: 2.2rem; }
.left { text-align: left; }

.btn-row { margin: 1.6rem 0 0; }
.center .btn-row { text-align: center; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--blau); color: #fff; text-decoration: none;
  font-weight: 600; padding: .62em 1.25em; border-radius: 9px; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.bg-lila .btn, .bg-blau .btn, .bg-gruen .btn, .bg-rosa .btn, .bg-salbei .btn, .btn-light { background: #fff; color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; color: var(--blau); }
.link:hover { text-decoration: underline; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.6rem, 2.6vw, 2.5rem); padding-inline: clamp(.8rem, 1.8vw, 1.7rem); margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.gallery figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 1; background: var(--grau); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 1.6rem .8rem .7rem; font-size: .9rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .3s; }
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; }

/* ---------- Text + Bild ---------- */
.textbild { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.textbild.img-left .tb-media { order: -1; }
.tb-media { margin: 0; }
.tb-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Highlight (z. B. Musikpicknick) ---------- */
.highlight { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.kicker { font-size: clamp(1.4rem, 1.1rem + 1vw, 2.2rem); margin: 0; }
.hl-title { font-size: clamp(2.8rem, 1.6rem + 4.4vw, 5.4rem); color: var(--beige); margin: .05em 0 .35em; line-height: .95; }
.hl-lines { font-size: clamp(1.4rem, 1.1rem + 1vw, 2.2rem); line-height: 1.25; }
.hl-media { margin: 0; }
.hl-media img { border-radius: var(--radius); width: 100%; max-height: 520px; object-fit: cover; box-shadow: 0 20px 50px rgba(0,0,0,.2); transform: rotate(1.5deg); }

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); }
.card { background: #fff; color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 26px rgba(40,30,60,.08); display: flex; flex-direction: column; }
.bg-weiss .card { background: var(--paper-2); box-shadow: none; }
.card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card-body { padding: 1.4rem 1.5rem 1.5rem; }
.card h3 { font-size: 1.75rem; margin-bottom: .15em; color: var(--lila); }
.card-sub { color: var(--muted); margin-bottom: .8em; }
.card .meta { display: grid; gap: .35rem; font-size: .96rem; margin-bottom: .8em; }
.card .meta div { display: flex; gap: .5rem; }
.card .meta dt { font-weight: 700; min-width: 4.8rem; }
.card .meta dd { margin: 0; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Lehrkräfte ---------- */
.teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.6rem); }
.teacher { text-align: center; }
.teacher img, .avatar { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto .9rem; }
.avatar { display: grid; place-items: center; font-family: var(--f-hand); font-size: 2.6rem; color: #fff; background: var(--blau); }
.teacher:nth-child(5n+2) .avatar { background: var(--lila); } .teacher:nth-child(5n+3) .avatar { background: var(--gruen); }
.teacher:nth-child(5n+4) .avatar { background: var(--rosa); } .teacher:nth-child(5n+5) .avatar { background: var(--salbei); }
.teacher h3 { font-size: 1.45rem; margin-bottom: .15em; }
.teacher .role { color: var(--rot); font-size: .92rem; font-weight: 700; margin-bottom: .2em; }
.teacher .subjects { color: var(--muted); font-size: .98rem; margin: 0; }
.teacher details { margin-top: .5rem; font-size: .95rem; text-align: left; }
.teacher summary { cursor: pointer; text-align: center; color: var(--blau); font-weight: 600; }

/* ---------- Termine & News ---------- */
.events { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.event { background: #fff; color: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 28px rgba(40,30,60,.09); display: flex; flex-direction: column; }
.event img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.event-body { padding: 1.3rem 1.4rem 1.4rem; }
.event-date, .event-place { display: flex; align-items: center; gap: .4rem; margin-bottom: .4rem; font-size: .95rem; }
.event-date { color: var(--rot); font-weight: 700; }
.event-place { color: var(--muted); }
.event h3 { font-size: 1.35rem; margin: .2em 0 .35em; }
.events.small .event { box-shadow: none; border: 1px solid #e6e4e8; }
.events.small img { aspect-ratio: 16/9; filter: grayscale(.4); }
.past { margin-top: 2.5rem; }
.past summary { cursor: pointer; font-weight: 700; color: var(--blau); margin-bottom: 1.4rem; }
.empty { font-size: 1.15rem; color: var(--muted); }

.news { display: grid; gap: clamp(1rem, 2.5vw, 1.8rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.news-item { display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; border-radius: var(--radius); background: var(--paper-2); }
.news-item img { border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.news-item h3 { font-size: 1.3rem; margin-bottom: .35em; }
.news-item p { margin-bottom: .7em; }
.badge { display: inline-block; background: var(--rosa); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .08em; padding: .15em .6em; border-radius: 99px; margin-bottom: .6rem; }

/* ---------- Preise & Downloads ---------- */
.price-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.5rem 2.5rem; margin-top: 2rem; }
.price-group h3 { font-size: 1.7rem; color: var(--lila); margin-bottom: .2em; }
.price-group .note { color: var(--rosa); font-weight: 700; font-size: .92rem; margin-bottom: .4em; }
.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { text-align: left; padding: .55rem 0; border-bottom: 1px solid #e3e1e6; font-weight: 400; }
.prices td { color: var(--muted); padding-left: .8rem; }
.prices .price { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.downloads { list-style: none; padding: 0; display: grid; gap: .7rem; margin-top: 1.4rem; }
.downloads a { display: flex; align-items: center; gap: .8rem; padding: .95rem 1.1rem; border-radius: 9px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .2s var(--ease); }
.bg-weiss .downloads a { background: var(--paper-2); box-shadow: none; }
.downloads a:hover { transform: translateX(4px); }
.downloads .ico { color: var(--blau); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list .ico { color: var(--blau); margin-top: .15em; }
.contact-form { background: var(--paper-2); padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 14px; display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; padding: .7rem .8rem; border: 1px solid #cfccd4; border-radius: 8px; background: #fff; width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(87,127,148,.35); border-color: var(--blau); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; font-size: .9rem !important; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; }
.hp { position: absolute !important; left: -9999px; }
.alert { padding: .9rem 1rem; border-radius: 8px; margin: 0; }
.alert.ok { background: #e3efe2; color: #24472a; } .alert.err { background: #f6e3e6; color: #6b1f2a; }
.contact-form .btn { justify-self: start; }

/* ---------- Fußzeile ---------- */
.footer { background: var(--gruen); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.footer-logo img { width: min(100%, 640px); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.footer-contact li, .footer-meta a { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .ico, .footer-meta .ico { color: var(--sage-hell); width: 1.6em; height: 1.6em; }
.footer a { text-decoration: none; } .footer a:hover { text-decoration: underline; }
.footer-meta { display: grid; gap: 1rem; font-weight: 700; font-size: .95rem; }
.footer-meta a { align-items: center; }
.badge-img img { width: 190px; margin-top: .6rem; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.copy { text-align: center; font-size: .82rem; opacity: .7; margin: 3rem 0 0; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .split, .textbild, .highlight, .contact-grid { grid-template-columns: 1fr; }
  .textbild.img-left .tb-media { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
  .hl-media img { transform: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 74px; }
  .home-btn { width: 58px; height: 52px; } .home-btn .ico { width: 28px; height: 28px; } .home-btn span { font-size: .72rem; }
  .topbar .quicklinks { display: none; }
  .burger { width: 46px; } .burger span { height: 5px; }
  .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .prices td { padding-left: .5rem; }
  
}
@media print {
  .topbar, .mainmenu, .quickstrip, .contact-form, .footer-logo { display: none !important; }
  .hero { min-height: 0 !important; background: none !important; color: #000; padding: 1rem 0 !important; }
  .display { color: #000 !important; }
}

/* Feinschliff */
.tb-text .headline, .block-karten .headline, .block-preise .headline, .block-downloads .headline, .block-kontaktformular .headline { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.footer-logo { display: block; }

/* Karten: mehr Luft */
.cards { gap: clamp(1.4rem, 3vw, 2.4rem); }
.cards.cards-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.card-body { padding: clamp(1.6rem, 2.6vw, 2.2rem); display: flex; flex-direction: column; gap: 0; }
.card h3 { margin-bottom: .3em; line-height: 1.1; }
.card-sub { margin-bottom: 1.1rem; line-height: 1.45; }
.card .meta { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.1rem; padding: 1rem 0 0; margin: 0 0 1.1rem; border-top: 1px solid rgba(90,77,112,.15); font-size: .97rem; line-height: 1.45; }
.card .meta dt { font-weight: 700; color: var(--lila); }
.card .meta dd { margin: 0; }
.card .meta dd.full { grid-column: 1 / -1; }
.card-body > p, .card-body > ul { margin-bottom: .8em; }
.card-body ul { padding-left: 1.1em; columns: 2; column-gap: 1.6rem; }
.card-body li { break-inside: avoid; margin-bottom: .3em; font-size: .97rem; }
@media (max-width: 760px) { .card .meta { grid-template-columns: 1fr; gap: .1rem; } .card .meta dd { margin-bottom: .45rem; } .card-body ul { columns: 1; } }

/* ==========================================================================
   Adventskalender
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.block-advent { position: relative; overflow: hidden; }
.block-advent::before {  /* zarte Sterne im Hintergrund */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 78% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 64%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 32% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 8%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 6% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 66% 92%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 95% 30%, #fff 50%, transparent 51%);
}
.advent-head { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; position: relative; }
.advent-hint { display: inline-block; margin-top: 1rem; padding: .5rem 1rem; border-radius: 99px; background: rgba(255,255,255,.14); font-weight: 600; }
.advent-grid {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-flow: dense;
  gap: clamp(.5rem, 1.6vw, 1.1rem); max-width: 860px; margin: 0 auto;
}
.door {
  --c: var(--blau); position: relative; aspect-ratio: 1; border: 0; padding: 0; margin: 0; font: inherit; color: #fff;
  background: rgba(0,0,0,.28); border-radius: 12px; perspective: 700px; transform: rotate(var(--tilt, 0deg)); cursor: default;
}
.door-24 { grid-column: span 2; aspect-ratio: auto; }
.door.c1 { --c: #577f94; } .door.c2 { --c: #a36f7f; } .door.c3 { --c: #637861; }
.door.c4 { --c: #8faab8; } .door.c5 { --c: #87a89a; } .door.c6 { --c: #c9a46a; }
.door-leaf {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: var(--c);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.22), 0 6px 16px rgba(0,0,0,.22);
  transform-origin: left center; transition: transform .7s var(--ease), box-shadow .3s; backface-visibility: hidden; z-index: 1;
}
.door-leaf::after { /* kleiner Türknauf */
  content: ""; position: absolute; right: 12%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.75);
}
.door-num { font-family: var(--f-hand); font-weight: 700; font-size: clamp(1.4rem, 1rem + 2.4vw, 2.8rem); line-height: 1; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.door-24 .door-num { font-size: clamp(2rem, 1.4rem + 3.4vw, 4.2rem); }
.door-24 .door-leaf { background: var(--c) radial-gradient(circle at 50% 50%, rgba(255,255,255,.18), transparent 60%); }
.door-inside { position: absolute; inset: 0; display: grid; place-items: center; color: var(--beige); }
.door-inside .ico { width: 42%; height: 42%; }
.door.is-open { cursor: pointer; }
.door.is-open:hover .door-leaf, .door.is-open:focus-visible .door-leaf { transform: rotateY(-28deg); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 6px 10px 22px rgba(0,0,0,.3); }
.door.was-opened .door-leaf { transform: rotateY(-72deg); }
.door.is-locked { background: rgba(0,0,0,.18); }
.door.is-locked .door-leaf { filter: saturate(.5) brightness(.85); opacity: .62; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.door.is-locked .door-leaf::after { display: none; }
.door.is-open .door-leaf { background: #c9a46a radial-gradient(circle at 50% 40%, rgba(255,240,200,.35), transparent 70%); box-shadow: inset 0 0 0 3px rgba(238,220,181,.6), 0 8px 20px rgba(0,0,0,.28); }
.door.is-open .door-num::after { content: "♪"; display: block; text-align: center; font-size: .42em; margin-top: .15em; color: var(--beige); font-family: var(--f-text); }
.door.is-open:hover { z-index: 2; }
.advent-legend { display: flex; justify-content: center; gap: 1.6rem; margin-top: 1.6rem; font-size: .9rem; opacity: .9; flex-wrap: wrap; }
.advent-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.advent-legend i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; background: #c9a46a; box-shadow: inset 0 0 0 2px rgba(238,220,181,.6); }
.advent-legend i.lk { opacity: .45; filter: saturate(.45) brightness(.82); box-shadow: none; }
.door.is-today .door-leaf { animation: door-glow 2.2s ease-in-out infinite; }
@keyframes door-glow { 0%,100% { box-shadow: inset 0 0 0 3px rgba(255,255,255,.4), 0 0 0 0 rgba(238,220,181,.0), 0 6px 16px rgba(0,0,0,.22); } 50% { box-shadow: inset 0 0 0 3px rgba(255,255,255,.6), 0 0 0 7px rgba(238,220,181,.45), 0 6px 16px rgba(0,0,0,.22); } }

.advent-dialog {
  width: min(880px, 94vw); max-height: 92vh; border: 0; border-radius: 18px; padding: clamp(1.2rem, 3vw, 2.2rem); color: var(--ink);
  background: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.4); overflow-y: auto;
}
.advent-dialog::backdrop { background: rgba(29,24,40,.72); backdrop-filter: blur(3px); }
.advent-dialog[open] { animation: dlg-in .35s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.advent-close { position: absolute; top: .9rem; right: .9rem; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--paper-2); cursor: pointer; }
.advent-close::before, .advent-close::after { content: ""; position: absolute; left: 11px; top: 19px; width: 20px; height: 3px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.advent-close::after { transform: rotate(-45deg); }
.advent-day { color: var(--rot); font-weight: 700; margin: 0 0 .2rem; }
.advent-title { font-family: var(--f-hand); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); color: var(--lila); margin: 0 3rem 1rem 0; }
.advent-text { margin-top: 1.2rem; }

.video-consent, .video-file, .video-empty, .advent-body iframe { width: 100%; aspect-ratio: 16/9; border-radius: 12px; display: block; border: 0; background: #000; }
.video-consent {
  position: relative; display: grid; place-items: center; align-content: center; gap: 1rem; padding: 1.2rem; text-align: center;
  background: var(--lila) center/cover no-repeat; color: #fff;
}
.video-consent::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(29,24,40,.45); }
.video-consent > * { position: relative; }
.video-play { display: inline-flex; align-items: center; gap: .7rem; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.1rem; color: var(--ink); background: #fff; padding: .8rem 1.4rem .8rem 1rem; border-radius: 99px; box-shadow: 0 8px 26px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.video-play:hover { transform: scale(1.05); }
.play-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--rot); position: relative; }
.play-ico::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.video-note { font-size: .82rem; max-width: 46ch; margin: 0; opacity: .95; }
.video-note a { color: #fff; }
.video-empty { display: grid; place-items: center; align-content: center; gap: .6rem; background: var(--paper-2); color: var(--muted); }
.video-empty .ico { width: 48px; height: 48px; color: var(--salbei); }

@media (max-width: 560px) {
  .advent-grid { gap: .45rem; }
  .door { border-radius: 8px; }
  .door-leaf::after { width: 5px; height: 5px; }
  .door.is-locked .door-leaf::before { width: 8px; height: 6px; }
}
@media (prefers-reduced-motion: reduce) { .door.is-today .door-leaf { animation: none; } }
