/* assets/styles.css */

/* =========================
   GLOBAL
========================= */
:root{
  --wrap: 1100px;

  --bg-dark: #151515;
  --bg-panel: #ffffff;

  --radius-lg: 24px;
  --radius: 16px;

  --gap: 10px;
  --gap-hero: 12px;

  --shadow-page: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04);
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.4;
  color: #111;
}

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

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

/* „Heft“-Fläche */
.page{
  position: relative;
  overflow: hidden;

  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 18px 16px 26px;
  margin: 18px auto 22px;
  max-width: calc(var(--wrap) + 32px);
  box-shadow: var(--shadow-page);
}


.page::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  max-width: 100%;
  border-radius: inherit;
  background: url("assets/ui/paper-texture.png") repeat;
  opacity: 0.035;
  pointer-events: none;
}



/* =========================
   HERO (Banner + Action Buttons)
========================= */
.hero{
  padding-top: 12px;            /* Abstand zum Fensterrand */
  background: transparent;
  display: grid;
  gap: var(--gap-hero);
  align-items: stretch;
  margin: 0 auto 18px;
  margin-bottom: 100px;         /* dein gewünschter Abstand nach unten */
}

/* Desktop / Tablet: Banner links, Buttons rechts */
@media (min-width: 640px){
  .hero{
    grid-template-columns: auto 210px;
    justify-content: center;
    align-items: stretch;
    height: clamp(220px, 40vh, 380px); /* gemeinsame Höhe */
  }

  .hero__banner{ height: 100%; }
  .hero__actions{ height: 100%; }
}


/* Mobile: Buttons unter Banner */
@media (max-width: 639px){
  .hero{
    margin-bottom: 16px;
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* =========================
   BANNER
========================= */
.hero__banner{
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #0e0e0e;
  border: 1px solid rgba(255,255,255,.10); /* dünner Rahmen wie Action-Bereich */
}

.hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
}

/* Mobile Portrait: komplett sichtbar */
@media (max-width: 639px){
  .hero__banner{
    height: clamp(180px, 32vh, 260px);
  }
  .hero__img{
    object-fit: contain;
    object-position: center top;
  }
}

/* Nur fürs Handy im Landscape mit kleiner Höhe (nicht Desktop-Fenster!) */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape){
  .hero__banner{
    height: clamp(140px, 55vh, 220px);
  }
  .hero__img{
    object-fit: contain;
    object-position: center;
  }
}

/* Desktop sehr breit: Banner vollständig zeigen (kein Abschneiden) */
@media (min-width: 1200px){
  .hero__img{
    object-fit: contain;
    object-position: center;
  }
  .hero__banner{
    background: #0e0e0e; /* „Letterbox“ wirkt wie sauberer Rahmen */
  }
}

/* Desktop: Banner darf nicht endlos wachsen */
@media (min-width: 900px){
  .hero__banner{
    max-width: 720px;   /* ≈ 65% bei 1100px Wrap */
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================
   ACTION BUTTONS – COMIC STICKER
========================= */
.hero__actions{
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: #151515;
  border: 1px solid rgba(255,255,255,.10);
}

/* Desktop: 3 gleich hohe Zeilen */
@media (min-width: 640px){
  .hero__actions{
    grid-template-rows: repeat(3, 1fr);
    align-content: stretch;
  }
  .action-bubble{ height: auto; } /* Desktop nicht fix */
}

/* Button */
.action-bubble{
  height: 112px; /* Mobile/Default */
  display: grid;
  place-items: center;

  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  border: none;

  box-shadow:
    0 4px 0 rgba(0,0,0,.45),
    0 10px 22px rgba(0,0,0,.35);

  transition: transform 140ms ease, box-shadow 140ms ease;
}

.action-bubble:hover{
  transform: translateY(-2px) scale(1.03) rotate(-0.6deg);
  box-shadow:
    0 6px 0 rgba(0,0,0,.55),
    0 16px 30px rgba(0,0,0,.45);
}

.action-bubble img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(1.08); /* gleicht PNG-Ränder aus */
}

/* Mobile: Buttons unter Banner, kompakt im Grid */
@media (max-width: 639px){
  .hero__actions{
    grid-template-columns: repeat(3, 1fr);
    padding: 6px;
    gap: 6px;
  }
  .action-bubble{
    height: 86px;
  }
}

/* =========================
   MINI NAV (oben) – FLOATING
========================= */
.mini-nav{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 6px auto 10px;
  justify-items: center;
  align-items: center;
}

/* Umschalten exakt gleichzeitig mit .hero/.hero__actions */
@media (max-width: 639px){
  .mini-nav{
    grid-template-columns: repeat(2, 1fr);
    column-gap: 12px;
    row-gap: 4px;        /* weniger vertikaler Abstand */
    margin-top: 6px;
    margin-bottom: 6px;
  }
}

/* keine Kacheln */
.mini-nav__btn{
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  text-decoration: none;
}

.mini-nav__btn::before,
.mini-nav__btn::after{
  content: none;
}

.mini-nav__btn img{
  display: block;
  width: min(100%, 300px);
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.65));
}

.mini-nav__btn:hover{
  transform: translateY(-4px) scale(1.04);
}

.mini-nav__btn:focus{
  outline: none;
}
.mini-nav__btn:focus-visible{
  outline: 2px solid rgba(255,255,255,.35);
  outline-offset: 6px;
  border-radius: 10px;
}

/* =========================
   STORY (Comic Raster)
========================= */
.story{
  margin: 0 0 16px;
}

.story__grid{
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  align-items: stretch;
}

@media (max-width: 820px){
  .story__grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px){
  .story__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .story__grid{ grid-template-columns: 1fr; }
}

.story__item{
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.story__item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__item--narrator img{
  object-fit: contain;
  padding: 2px;
  background: #fff;
}



/* Browser-Default-Margins killen */
.story__grid > figure{ margin: 0; }

/* =========================
   THOUGHT NAV (unten)
========================= */
.thought-nav{
  margin: 0;
}

.thought-nav__grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

@media (min-width: 640px){
  .thought-nav__grid{
    grid-template-columns: repeat(4, 1fr);
  }
}

.thought-bubble{
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.thought-bubble:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
}

.thought-bubble img{
  width: 100%;
  height: 90px;
  object-fit: contain;
  padding: 6px 10px;
}

/* =========================
   FOOTER
========================= */
.footer{
  padding: 12px 0 14px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer__links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__links a{
  color: inherit;
  text-decoration: none;
}

.footer__links a:hover{
  color: rgba(255,255,255,.78);
}

/* =========================
   PRÜFUNGSTERMINE: Story-Raster (3 Panels) + Tabelle
========================= */

/* Prüfungen: Story wie alle anderen Seiten (4 Spalten)
.story__grid--pruefungen{
  grid-template-columns: repeat(3, 1fr);
}  */

/* Titelbild als Link (Home) */
.hero__home{
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Action-Block auf Unterseiten kleiner */
.hero__actions--small{
  width: 180px; /* kleiner als 210 */
}
@media (max-width: 820px){
  .hero__actions--small{ width: auto; }
}

/* ===== Tabelle ===== */
.termine{
  margin: 6px auto 16px;
}

.termine__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 8px;
}
.termine__title{
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.termine__hint{
  font-size: 12px;
  opacity: .7;
}

.termine__table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(0,0,0,.10);
}

.termine__table{
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;   /* <<< statt fixed */
  font-size: 14px;
}


.termine__table thead th{
  text-align: left;
  padding: 10px 10px;
  background: #f2f2f2;
  border-bottom: 1px solid rgba(0,0,0,.12);
  font-weight: 700;
}

.termine__table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.termine__table tbody tr:hover{
  background: rgba(0,0,0,.03);
}

.termine__loading{
  padding: 14px 10px;
  font-size: 14px;
  opacity: .75;
}

.termine__info{
  white-space: nowrap;
}

/* Vergangene Termine – klar „inaktiv“ */
.termine__table tbody tr.is-past{
  opacity: 0.35;
  background: #f2f2f2;
}

/* Kommende Termine – aktiv & warm */
.termine__table tbody tr:not(.is-past){
  background: #fffbe6;
}


/* Markieren: heute */
.termine__table tbody tr.is-today{
  opacity: 1;
  outline: 2px solid rgba(0,0,0,.18);
  outline-offset: -2px;
  background: rgba(255, 220, 80, .30);
}
/* schmale Spalten */
.termine__table th:nth-child(1),
.termine__table td:nth-child(1){ width: 6ch; }   /* Tag */

.termine__table th:nth-child(2),
.termine__table td:nth-child(2){ width: 5ch; }   /* 14. */

.termine__table th:nth-child(3),
.termine__table td:nth-child(3){ width: 6ch; }   /* Jän. */

.termine__table th:nth-child(4),
.termine__table td:nth-child(4){ width: 6ch; }   /* 8:00 */

/* Info nimmt den Rest */
.termine__table th:nth-child(5),
.termine__table td:nth-child(5){
  width: auto;
  white-space: nowrap;          /* wenn du lieber 1 Zeile willst */
}

/* Monat hervorheben */
.termine__table td:nth-child(3){
  background: rgba(255, 235, 60, .35);
  font-weight: 700;
  border-radius: 6px;
}

/* Kontakt: 2-Spalten Layout oben, Formular darunter */
.kontakt-layout{
  display:grid;
  gap:14px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px){
  .kontakt-layout{
    grid-template-columns: 1fr 1.2fr;
    align-items:start;
  }
}

.kontakt-card{
  padding:14px;
  line-height:1.6;
}

.kontakt-card a{ text-decoration: underline; }

/* Map */
.kontakt-card--map{ padding:12px; }
.map-embed{
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.15);
}
.map-embed iframe{
  width:100%;
  height:360px;
  border:0;
  display:block;
}
.map-actions{ margin-top:10px; }
.map-link{ display:inline-block; }

/* Formular */
.kontakt-card--form{ margin-top:14px; }
.kontakt-h3{ margin:0 0 10px; }

.kontakt-form label{
  display:block;
  margin:10px 0;
}

.form-row{
  display:grid;
  gap:10px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px){
  .form-row{ grid-template-columns: 1fr 1fr; }
}

.kontakt-form input,
.kontakt-form textarea{
  width:100%;
  margin-top:6px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.25);
  border-radius:10px;
  font: inherit;
  background:#fff;
}

.consent{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:12px;
}

.consent input{ margin-top:4px; }

.kontakt-submit{
  margin-top:12px;
  padding:10px 14px;
  border-radius:12px;
  border:2px solid #000;
  background:#fff;
  font-weight:700;
  cursor:pointer;
}

.kontakt-fineprint{
  margin-top:10px;
  font-size:.95em;
  opacity:.8;
}

/* Honeypot unsichtbar */
.hp-field{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Map Tabs */
/* --- Map Tabs als Icon-Bubbles (ohne Bilder) --- */
.map-tabs{
  display:flex;
  gap:10px;
  margin: 8px 0 12px;
  flex-wrap: wrap;
}

/* Bubble-Button */
.map-tab{
  display:flex;
  align-items:center;
  gap:10px;

  padding:10px 14px;
  border-radius:999px;
  border:2px solid #000;
  background:#fff;
  cursor:pointer;

  font-weight:800;
  letter-spacing:.2px;

  /* bisschen „Comic-Sticker“-Look */
  box-shadow: 2px 2px 0 #000;
  transform: translate(0,0);
  transition: transform .06s ease, box-shadow .06s ease;
}

.map-tab:hover{
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 #000;
}

.map-tab:active{
  transform: translate(0,0);
  box-shadow: 1px 1px 0 #000;
}

.map-tab:focus-visible{
  outline: 3px solid rgba(0,0,0,.35);
  outline-offset: 3px;
}

/* „Icon“ links als kleine runde Mini-Bubble */
.map-tab__icon{
  width:34px;
  height:34px;
  border-radius:999px;
  border:2px solid #000;
  background:#fff;

  display:grid;
  place-items:center;

  box-shadow: 1px 1px 0 #000;
}

/* Icon-Inhalt kommt aus data-icon */
.map-tab__icon::before{
  content: attr(data-icon);
  font-size:18px;
  line-height:1;
}

/* Damit data-icon auf dem Button sitzt und im Icon verwendet wird */
.map-tab .map-tab__icon::before{
  content: attr(data-icon);
}

/* Label */
.map-tab__label{
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

/* Active-Style: gelb wie deine Header-Akzente */
.map-tab.is-active{
  background:#fff3a6;
}

/* Active-Icon leicht „invertiert“ (optional, subtil) */
.map-tab.is-active .map-tab__icon{
  background:#fff3a6;
}

/* Mobile: etwas kompakter */
@media (max-width: 420px){
  .map-tab{
    padding:9px 12px;
  }
  .map-tab__icon{
    width:32px;
    height:32px;
  }
}

.map-panel{ margin-top: 8px; }

.map-meta{
  margin: 0 0 10px;
  line-height: 1.4;
  opacity: .95;
}

/* Konrakt-Formular redirect */
.form-msg{
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid #000;
  font-weight: 800;
  box-shadow: 2px 2px 0 #000;
}

.form-msg--ok{
  background: #fff3a6;
}

.form-msg--err{
  background: #ffe3e3;
}


/* DSGVO Placeholder */
.map-embed{
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.15);
}

.map-embed iframe{
  width:100%;
  height:360px;
  border:0;
  display:block;
}

.map-embed--placeholder{
  min-height: 360px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.65);
}

.map-consent{
  padding: 14px;
  text-align: center;
  max-width: 360px;
}

.map-consent p{ margin: 6px 0; }

.map-load{
  margin-top: 10px;
  padding:10px 14px;
  border-radius:12px;
  border:2px solid #000;
  background:#fff;
  font-weight:700;
  cursor:pointer;
}

.news-feed{ display:grid; gap:16px; }
.news-item__meta{ display:flex; gap:10px; align-items:baseline; margin: 0 0 10px; opacity:.9; }
.news-item__date{ font-weight:800; }
.news-item__title{ font-weight:700; }

/* =========================
   DOWNLOADS – tabellenartige Liste (3 Spalten)
========================= */
.dl-list{
  display: grid;
  gap: 0;
}

.dl-row{
  display: grid;
  grid-template-columns: 72px 1fr 180px; /* Icon | Text | Button */
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  background: #fff;
}

.dl-row:last-child{ border-bottom: 0; }

.dl-ico{
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 2px solid rgba(0,0,0,.15);
  display: grid;
  place-items: center;
  font-size: 28px;
  background: #fff;
}

.dl-title{
  font-weight: 800;
  margin: 0 0 2px;
}

.dl-desc{
  font-size: 13px;
  opacity: .8;
}

.dl-action{
  display: flex;
  justify-content: flex-end;
}

.dl-btn{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid #000;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 2px 2px 0 #000;
  transition: transform .06s ease, box-shadow .06s ease;
}

.dl-btn:hover{
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 #000;
}

/* Mobile: Button unter Text */
@media (max-width: 640px){
  .dl-row{
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "ico text"
      "ico action";
  }
  .dl-ico{ grid-area: ico; }
  .dl-text{ grid-area: text; }
  .dl-action{
    grid-area: action;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
}

/* =========================
   AGB / DSGVO – Textformatierung
========================= */
.legal-text{
  max-width: 860px;              /* angenehme Zeilenlänge */
  margin: 0 auto;
  line-height: 1.65;
  font-size: 15px;
}

/* Überschriften */
.legal-text h3{
  margin: 26px 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

/* Absätze */
.legal-text p{
  margin: 0 0 12px;
}

/* Hervorhebungen / Platzhalter */
.legal-text em{
  display: block;
  font-style: normal;
  font-weight: 700;
  margin: 12px 0 6px;
  opacity: .8;
}

/* Links (z.B. Sprunglinks) */
.legal-text a{
  font-weight: 700;
  text-decoration: underline;
}

/* Kleine Abstände bei Listen (falls später ergänzt) */
.legal-text ul,
.legal-text ol{
  margin: 6px 0 12px 18px;
}

/* Mobile etwas luftiger */
@media (max-width: 640px){
  .legal-text{
    font-size: 14px;
  }
}

/* Prüfungstermine-Tabelle am Desktop zentrieren */
@media (min-width: 900px){
  .termine__table-wrap{
    display: flex;
    justify-content: center;
  }

  .termine__table{
    width: auto;          /* nicht 100% erzwingen */
    min-width: 720px;     /* optional: schöne Mindestbreite */
  }


/* Prüfungstermine-Tabelle am Desktop zentrieren */
@media (min-width: 900px){
  .termine__table-wrap{
    display: flex;
    justify-content: center;
  }

  .termine__table{
    width: auto;          /* nicht 100% erzwingen */
    min-width: 720px;     /* schöne Mindestbreite */
  }

  /* Titel über der Tabelle bündig zur Tabellenbreite */
  .termine__head{
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Card-Look am Desktop */
  .termine__table{
    border-collapse: separate;
    border-spacing: 0 6px;   /* Abstand zwischen Zeilen */
  }

  .termine__table tbody tr{
    box-shadow:
      0 6px 14px rgba(0,0,0,.18),
      0 1px 0 rgba(0,0,0,.08);
    transition: transform .08s ease, box-shadow .08s ease;
  }

  .termine__table tbody tr:hover{
    box-shadow:
      0 10px 22px rgba(0,0,0,.28),
      0 2px 0 rgba(0,0,0,.10);
  }

  .termine__table tbody tr td:first-child{
    border-radius: 10px 0 0 10px;
  }

  .termine__table tbody tr td:last-child{
    border-radius: 0 10px 10px 0;
  }
}

/* Hover-Farbe/Bewegung nur wenn Hover-Gerät vorhanden */
@media (hover: hover){
  .termine__table tbody tr:hover{
    background: #fffdf3;
    transform: translateY(-1px);
  }
}

/* Datum (Spalte 2) gelb hinterlegen */
.termine__table td:nth-child(2){
  color: #000;
  background: rgba(255, 235, 60, .35);
  border-radius: 6px;
}
