/* ============================================================
   MiKuS - landing page (static front page)
   Port of Entwurf A4 ("Vorstellungsseite für Verlage").
   Loaded on the front page ONLY (see inc/frontend/assets.php).
   All sections are WordPress blocks (Gutenberg) whose custom class
   names carry this design. Class/anchor names are a contract:
   - anchors: #wasi, #autorinnen, #kontakt
   - classes: .navi, .hero, .trust, .abschnitt, .rahmen, ...
   Do not rename (menu links + editor block classNames depend on it).
   ============================================================ */

/* Landing palette: one primary accent (orange), one secondary accent
   (teal), neutrals. base.css already defines --bg/--panel/--text/
   --text-soft/--linie/--radius; the landing adds its own aliases so
   this file stays readable on its own. */
:root {
  --orange:      #e8632c;
  --orange-soft: #fceee6;
  --tuerkis:     #0f9b8e;
  --tuerkis-soft:#e2f4f1;
}

/* Global helpers on the landing page */
html { scroll-behavior: smooth; }

/* The front page manages its own section widths (hero: 1080,
   reading column: 880). Undo the global <main> width from base.css. */
main.seiten-inhalt {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Sections with an id are scroll targets of the sticky nav. */
[id="wasi"], [id="autorinnen"], [id="kontakt"] { scroll-margin-top: 70px; }

/* ---------- Navigation ---------- */
.navi {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
  height: 60px;
}
/* The nav follows the width of the first section (hero: max 1080 px). */
.navi-innen {
  max-width: 1080px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
/* Wordmark as image (black on white). Multiply drops the white PNG
   background so it sits cleanly on the light nav background. */
.navi .marke-logo {
  display: block;
  height: 22px;
  width: auto;
  margin-right: auto;
  mix-blend-mode: multiply;
}
.navi a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 500;
}
.navi a:hover { color: var(--text); }

/* The WP primary menu is the ul.nav-links. The menu item with the CSS
   class "navi-cta" (assigned under Menüs -> CSS-Klassen) is the pill. */
ul.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.navi li.navi-cta > a {
  color: #fff;
  background: var(--orange);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.navi li.navi-cta > a:hover { filter: brightness(1.05); }

.navi-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.navi-burger span {
  display: block;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.navi.is-open .navi-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navi.is-open .navi-burger span:nth-child(2) { opacity: 0; }
.navi.is-open .navi-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: links collapse into a dropdown, burger button visible. */
@media (max-width: 860px) {
  ul.nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(251, 250, 247, .98);
    border-bottom: 1px solid var(--linie);
    box-shadow: 0 14px 26px rgba(43, 43, 51, .10);
    padding: 8px 20px 12px;
  }
  .navi.is-open ul.nav-links { display: flex; }
  ul.nav-links li { list-style: none; }
  ul.nav-links a {
    display: block;
    padding: 11px 6px;
    font-size: 1rem;
    border-bottom: 1px solid var(--linie);
  }
  .navi li.navi-cta { list-style: none; }
  .navi li.navi-cta > a {
    border-bottom: 0;
    text-align: center;
    margin: 12px 0 4px;
    padding: 12px 16px;
  }
  .navi-burger { display: inline-flex; }
}

/* ---------- Buttons (core block, registered block styles) ---------- */
/* Styles: is-style-knopf-quiet (default), is-style-knopf-haupt,
   is-style-mail. Base resets the core button chrome. */
.wp-block-buttons .wp-block-button .wp-block-button__link {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  transition: transform .12s ease, box-shadow .12s ease;
}
.wp-block-buttons .wp-block-button.is-style-knopf-haupt .wp-block-button__link {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(232, 99, 44, .35);
}
.wp-block-buttons .wp-block-button.is-style-knopf-haupt .wp-block-button__link:hover {
  box-shadow: 0 8px 22px rgba(232, 99, 44, .45);
}
.wp-block-buttons .wp-block-button.is-style-knopf-quiet .wp-block-button__link {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--linie);
}
.wp-block-buttons .wp-block-button.is-style-knopf-quiet .wp-block-button__link:hover {
  border-color: #d4d0c7;
}
.wp-block-buttons .wp-block-button.is-style-mail .wp-block-button__link {
  background: var(--orange);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 15px 34px;
  box-shadow: 0 8px 24px rgba(232, 99, 44, .4);
}
.wp-block-buttons .wp-block-button.is-style-mail .wp-block-button__link:hover {
  filter: brightness(1.06);
}

/* ---------- Hero ---------- */
/* Nav + hero together take exactly 100% of the viewport. */
.hero {
  padding: 0 20px;
  height: calc(100vh - 60px);
  height: calc(100dvh - 60px);
  display: flex;
  background:
    radial-gradient(600px 300px at 15% 0%, var(--orange-soft) 0%, transparent 70%),
    radial-gradient(600px 300px at 85% 10%, var(--tuerkis-soft) 0%, transparent 70%);
}
.hero-innen {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}
/* Left text column: undo the block flow margins. */
.hero .hero-text { margin: 0; }
.hero .hero-text > * + * { margin-top: 0; }
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 22px;
}
.hero .kicker::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--orange);
  display: inline-block;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -.2px;
}
.hero h1 .akzent { color: var(--orange); }
/* Subline is its own <p> outside the H1 (SEO + screen readers). */
.hero .subline {
  margin: 14px 0 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  color: var(--text-soft);
}
/* Status sentence: goal + state of the project (publisher pitch). */
.hero .status {
  margin: 18px 0 0;
  max-width: 520px;
  font-size: 1.02rem;
  color: var(--text);
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}
.hero .aktionen {
  margin-top: 28px;
}
.hero figure.produkt {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  justify-self: center;
}
.hero figure.produkt img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(43, 43, 51, .18));
}
/* Mobile: nav + text stay below one viewport so the product image
   teases above the fold (the volumes are the core of the page). */
@media (max-width: 860px) {
  .hero { height: auto; min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px); }
  .hero-innen {
    height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
    justify-items: center;
    padding: 36px 0 56px;
  }
  .hero .aktionen { justify-content: center; }
  .hero .status { margin-left: auto; margin-right: auto; }
  .hero figure.produkt { width: min(520px, 88vw); }
}

/* ---------- Trust band (awards + proof directly under the hero) ---------- */
.trust {
  background: var(--panel);
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}
.trust-innen {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}
.trust .trust-kopf {
  grid-column: 1 / -1;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0;
}
.beleg {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.beleg .siegel {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: 50%;
  background: var(--orange-soft);
}
.beleg.t2 .siegel { background: var(--tuerkis-soft); }
.beleg .beleg-text { flex: 1; }
.beleg h3 { margin: 0; font-size: .96rem; }
.beleg p:not(.siegel) { margin: 2px 0 0; font-size: .85rem; color: var(--text-soft); }
.beleg a { color: var(--tuerkis); text-decoration: underline; }
@media (max-width: 860px) {
  .trust-innen { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Section head ---------- */
.abschnitt { padding: 64px 0; }
.rahmen { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.kopf-zentriert { text-align: center; margin-bottom: 38px; }
.kopf-zentriert .kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0 0 14px;
}
.kopf-zentriert h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  letter-spacing: .3px;
}
.kopf-zentriert p:not(.kicker) {
  margin: 12px auto 0;
  max-width: 640px;
  color: var(--text-soft);
}

/* ---------- P1: Was ist MiKuS ---------- */
/* Product form sentence: the central publisher question, first block. */
.produktform {
  background: var(--panel);
  border: 1px solid var(--linie);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 1.02rem;
}
.produktform p { margin: 0; }
.produktform b, .produktform strong { font-weight: 700; }

.fuenfer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.pfeiler {
  background: var(--panel);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
}
.pfeiler .ikon {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 16px;
  background: var(--orange-soft);
}
.pfeiler.t .ikon { background: var(--tuerkis-soft); }
.pfeiler h3 { margin: 0 0 6px; font-size: 1.02rem; }
.pfeiler p:not(.ikon) { margin: 0; font-size: .88rem; color: var(--text-soft); }

.blaende {
  margin-top: 20px;
  background: var(--panel);
  border: 1px solid var(--linie);
  border-left: 5px solid var(--tuerkis);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--text-soft);
  font-size: .98rem;
}
.blaende p { margin: 0; }
.blaende b, .blaende strong { color: var(--text); }

.einleitung {
  max-width: 640px;
  margin: 0 auto 30px;
  text-align: center;
  color: var(--text-soft);
}

/* Volumes */
.baeude {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.band {
  background: var(--panel);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.band .band-nummer {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0;
}
.band .emoji { font-size: 1.9rem; margin: 6px 0 0; }
.band h3 { margin: 8px 0 4px; font-size: 1.3rem; }
.band p:not(.band-nummer):not(.emoji) { margin: 8px 0 0; font-size: .92rem; color: var(--text-soft); }

/* ---------- Für wen ---------- */
.abschnitt-panel {
  background: var(--panel);
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}
.streuen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.schuppe {
  background: var(--bg);
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: .95rem;
  font-weight: 500;
  margin: 0;
}
.schuppe .p { margin-right: 8px; }

/* ---------- Besonderes ---------- */
ul.liste-zweispaltig {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.liste-zweispaltig li {
  position: relative;
  padding-left: 32px;
  font-size: .98rem;
}
.liste-zweispaltig li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tuerkis-soft);
  color: var(--tuerkis);
  font-weight: 700;
  font-size: .8rem;
  border-radius: 50%;
}
@media (max-width: 700px) {
  ul.liste-zweispaltig { grid-template-columns: 1fr; }
}
.praxis-hinweis {
  margin: 26px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: .93rem;
  color: var(--text-soft);
  border-top: 1px dashed var(--linie);
  padding-top: 18px;
}

/* ---------- P2: Autorinnen ---------- */
.autorinnen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.autorin {
  background: var(--panel);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
}
/* Photo placeholder: empty image blocks (see the autorinnen pattern).
 * While empty they show as colored circles; any image with .foto is
 * rendered as a round 132 px avatar. (The p.foto rule stays for
 * legacy content that used the colored initial circles.) */
.autorin p.foto {
  width: 132px;
  height: 132px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.autorin p.foto.r1 { background: var(--orange); }
.autorin p.foto.r2 { background: var(--tuerkis); }
.autorin figure.foto {
  width: 132px;
  height: 132px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--orange-soft);
}
.autorin figure.foto.r2 { background: var(--tuerkis-soft); }
/* Empty placeholder (no src): keep the circle, hide the broken img. */
.autorin figure.foto img:not([src]),
.autorin figure.foto img[src=""] { display: none; }
.autorin figure.foto img,
.autorin figure > img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
}
.autorin h3 { margin: 0; font-size: 1.2rem; }
.autorin .rolle {
  margin: 4px 0 12px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.autorin .rolle.r1 { color: var(--orange); }
.autorin .rolle.r2 { color: var(--tuerkis); }
.autorin p:not(.foto):not(.rolle) { margin: 0; font-size: .93rem; color: var(--text-soft); }
.autorinnen-hinweis {
  margin-top: 18px;
  text-align: center;
  color: var(--text-soft);
  font-size: .95rem;
  font-style: italic;
}

/* ---------- P3: Kontakt ---------- */
.kontakt {
  background: var(--text);
  color: #fff;
  border-radius: 22px;
  padding: 54px 32px;
  text-align: center;
}
.kontakt .kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #ffc98a;
  background: rgba(255, 255, 255, .12);
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0;
}
.kontakt h2 { margin: 14px 0 0; font-size: clamp(1.6rem, 3vw, 2.1rem); color: #fff; }
.kontakt p:not(.kicker):not(.mail-alt) {
  margin: 14px auto 0;
  max-width: 500px;
  color: #c9c9d4;
}
.kontakt .wp-block-buttons { justify-content: center; margin-top: 26px; }
.kontakt .mail-alt {
  display: block;
  margin-top: 16px;
  font-size: .9rem;
  color: #9a9aa6;
}
.kontakt .mail-alt a { color: #d9d9e2; }

/* ---------- Footer (WP menu, styled classic link menu) ---------- */
.fusszeile {
  background: var(--panel);
  padding: 34px 20px 40px;
}
.fusszeile ul { gap: 0; }
.fusszeile li { list-style: none; }
.fusszeile li + li { border-left: 1px solid var(--linie); }
.fusszeile a {
  font-size: .9rem;
  padding: 0 18px;
}
.fusszeile-copy {
  margin: 14px 0 0;
  font-size: .82rem;
  color: var(--text-soft);
}
.fusszeile-copy b { color: var(--text); font-weight: 600; }
