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

:root {
  --c-gegenueber:        #7A7A75;
  --c-gegenueber-soft:   #EFEEEA;
  --c-bildung:           #5BA47A;
  --c-bildung-soft:      #E6F1EA;
  --c-eltern:            #6E9BC2;
  --c-eltern-soft:       #E7EFF7;
  --c-adhs:              #E29554;
  --c-adhs-soft:         #FBEDDD;

  --bg: #FFFFFF;
  --text: #1C1C1A;
  --text-mid: #4A4A47;
  --text-light: #7E7E78;
  --rule: #E6E5E0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.1rem; }

a { color: inherit; }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 4.5rem 0; }

/* Header */
header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--brand);
  transition: background 0.3s;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

header.site .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  color: #FFFFFF;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  line-height: 1.1;
}

.wordmark .wm-area {
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.wordmark .wm-claim {
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.005em;
  color: rgba(255,255,255,0.78);
}

.wordmark .dot {
  color: rgba(255,255,255,0.55);
  margin-left: 0.02em;
}

.wordmark.dach .wm-area { font-size: 1.12rem; }

nav.menu {
  display: flex;
  gap: 1.6rem;
}

nav.menu a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav.menu a:hover { color: #FFFFFF; border-bottom-color: rgba(255,255,255,0.6); }

/* Dachmarke-Nav: Hover-Unterstreichung in der Submarken-Farbe */
body[data-brand="gegenueber"] nav.menu a.to-bildung:hover { border-bottom-color: var(--c-bildung); }
body[data-brand="gegenueber"] nav.menu a.to-eltern:hover  { border-bottom-color: var(--c-eltern); }
body[data-brand="gegenueber"] nav.menu a.to-adhs:hover    { border-bottom-color: var(--c-adhs); }

/* Hero */
.hero { padding: 9rem 0 4rem; }

.hero .tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}

.hero h1 { max-width: 720px; margin-bottom: 1.2rem; }

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-mid);
  max-width: 620px;
  margin-bottom: 2.2rem;
}

.btn {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--brand);
  padding: 0.85rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn:hover { filter: brightness(0.94); transform: translateY(-1px); }

/* Cards */
.cards { background: var(--brand-soft); }
.cards h2 { margin-bottom: 0.5rem; }
.cards .intro {
  color: var(--text-mid);
  margin-bottom: 2.4rem;
  max-width: 580px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card-grid.is-grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brand);
  border-radius: 6px;
  padding: 1.6rem 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card.is-link { cursor: pointer; }
.card.is-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -10px rgba(0,0,0,0.15);
}

.card .card-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.card h3 { margin-bottom: 0.5rem; }

.card p {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* Submarken-Karten auf der Dachmarken-Seite */
.card.brand-bildung { border-top-color: var(--c-bildung); }
.card.brand-bildung .card-tag { color: var(--c-bildung); }
.card.brand-eltern  { border-top-color: var(--c-eltern); }
.card.brand-eltern  .card-tag { color: var(--c-eltern); }
.card.brand-adhs    { border-top-color: var(--c-adhs); }
.card.brand-adhs    .card-tag { color: var(--c-adhs); }

/* Flip-Cards: optionale Rückseite pro Card */
.card-grid { perspective: 1200px; }

.card.has-flip {
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card.has-flip .card-inner {
  position: relative;
  width: 100%;
  flex: 1;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.card.has-flip .card-face {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brand);
  border-radius: 6px;
  padding: 1.6rem 1.5rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card.has-flip .card-front {
  position: relative;
  height: 100%;
  box-sizing: border-box;
}

.card.has-flip .card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card.has-flip.is-flipped .card-inner { transform: rotateY(180deg); }

@media (hover: hover) and (pointer: fine) {
  .card.has-flip:hover .card-inner { transform: rotateY(180deg); }
  /* Klick auf Drehicon sperrt zurück auf Vorderseite, solange die Maus auf der Karte ist */
  .card.has-flip.is-locked-front:hover .card-inner { transform: rotateY(0deg); }
}

.card-flip-indicator {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--brand);
  cursor: pointer;
  padding: 0;
  transition: color 0.3s;
  z-index: 2;
}
.card-flip-indicator:focus-visible { outline: none; }

/* Statisch: Brand-Farbe. Während der Drehung: Block-Hintergrund (Icon verschwindet visuell). */
.card.has-flip.is-spinning .card-flip-indicator { color: var(--brand-soft); }

.card-back-title { margin-bottom: 0.6rem; font-size: 1rem; }

.card-back-quote {
  margin: 0 0 0.6rem 0;
  font-style: italic;
  color: var(--text-mid);
  font-size: 0.82rem;
  line-height: 1.45;
  border-left: 3px solid var(--brand);
  padding-left: 0.8rem;
}

.card-back-attribution {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-style: normal;
}

.card-back-text {
  margin-bottom: 1rem;
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.55;
}

.card-back-button.btn { align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
  .card.has-flip .card-inner { transition: none; }
  .card-flip-indicator { transition: none; }
}

/* Methode */
.methode h2 { margin-bottom: 0.5rem; }
.methode .intro { color: var(--text-mid); margin-bottom: 2.5rem; max-width: 580px; }

.steps {
  display: grid;
  gap: 1.6rem;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.step .num {
  width: 44px; height: 44px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand);
  font-size: 0.95rem;
}

.step h3 { margin-bottom: 0.3rem; }
.step p { color: var(--text-mid); font-size: 0.95rem; max-width: 50em; }

/* Formate */
.formate { background: var(--brand-soft); }
.formate h2 { margin-bottom: 0.5rem; }
.formate .intro { color: var(--text-mid); margin-bottom: 2.5rem; max-width: 580px; }

.formats {
  display: grid;
  gap: 1rem;
}

.format {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  padding: 1.5rem 1.7rem;
  align-items: center;
}

.format h3 { margin-bottom: 0.3rem; }
.format p { color: var(--text-mid); font-size: 0.92rem; max-width: 38em; }
.format .meta { text-align: right; }
.format .duration { font-size: 1.7rem; font-weight: 300; color: var(--brand); line-height: 1; }
.format .unit { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-top: 0.15rem; }
.format .preis { margin-top: 0.5rem; font-size: 0.82rem; color: var(--text-mid); }

.format-hinweis {
  margin-top: 1.6rem;
  padding: 0.9rem 1.2rem;
  border-left: 2px solid var(--rule);
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.55;
  max-width: 50em;
}

/* Über */
.ueber h2 { margin-bottom: 1rem; }
.ueber p { color: var(--text-mid); max-width: 42em; margin-bottom: 0.9rem; font-size: 1rem; }

.credentials { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.credential {
  font-size: 0.78rem;
  color: var(--text-mid);
  background: var(--brand-soft);
  border: 1px solid transparent;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
}

/* CTA-Final */
.cta-final {
  background: var(--brand-soft);
  text-align: center;
  padding: 4.5rem 0;
}
.cta-final h2 { margin-bottom: 0.6rem; }
.cta-final p { color: var(--text-mid); margin: 0 auto 1.8rem; max-width: 38em; }
.cta-final .subline { margin-top: 1rem; font-size: 0.82rem; color: var(--text-light); }

/* Footer */
footer.site {
  border-top: 1px solid var(--rule);
  padding: 2.2rem 0 2.5rem;
  font-size: 0.83rem;
  color: var(--text-light);
}

footer.site .row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

footer.site .links a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 1.2rem;
}
footer.site .links a:first-child { margin-left: 0; }
footer.site .links a:hover { color: var(--brand); }

footer.site .dachhinweis {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-light);
}

footer.site .dachhinweis a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-soft);
}

/* Responsive */
@media (max-width: 760px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  .hero { padding: 8rem 0 3rem; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid.is-grid-2x2 { grid-template-columns: 1fr; }
  .format { grid-template-columns: 1fr; }
  .format .meta { text-align: left; }
  nav.menu { gap: 0.9rem; }
  nav.menu a { font-size: 0.78rem; }
  section { padding: 3.2rem 0; }
  .wordmark .wm-claim { display: none; }
}

@media (max-width: 520px) {
  nav.menu { display: none; }
  .wordmark .wm-area { font-size: 0.95rem; }
}

/* Legal page (Impressum & Datenschutz) */
.legal {
  padding-top: 7rem;
  padding-bottom: 4rem;
  max-width: 720px;
}
.legal h1 { font-size: 2.1rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin: 2.6rem 0 0.9rem; }
.legal h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
.legal p, .legal ul, .legal ol { margin-bottom: 1rem; color: var(--text-mid); }
.legal strong { color: var(--text); }
.legal a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--brand-soft);
  text-underline-offset: 2px;
}

/* Cookie banner (bottom strip, see site/snippets/cookie-banner.php) */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #FFFFFF;
  border-top: 1px solid var(--rule);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.5rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}
.cookie-banner__text {
  flex: 1 1 22rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.cookie-banner__btn {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--rule);
  cursor: pointer;
  background: #FFFFFF;
  color: var(--text);
}
.cookie-banner__btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}
.cookie-banner__btn--secondary { background: #FFFFFF; }
.cookie-banner__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.cookie-banner__link {
  font-size: 0.8rem;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 600px) {
  .cookie-banner { padding: 0.85rem 1rem; }
  .cookie-banner__inner { gap: 0.75rem; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1 1 auto; }
}

/* ─── Termin block (booking trigger) ─────────────────────────────────────── */

/* When the termin block follows the hero directly, drop the section-stacking
   gap so the button sits where the prototype's in-hero CTA used to sit. */
.hero + .termin-cta {
  padding-top: 0;
  margin-top: -4rem;
}

/* ─── Zeeg booking modal ─────────────────────────────────────────────────── */

.zeeg-modal {
  width: min(95vw, 720px);
  max-width: 95vw;
  height: min(95vh, 800px);
  max-height: 95vh;
  margin: auto;              /* re-instates UA centering after universal reset */
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.zeeg-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.zeeg-modal__mount {
  width: 100%;
  height: 100%;
}
.zeeg-modal__mount iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
}
.zeeg-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.zeeg-modal__close:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .zeeg-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}
