/* ==========================================================================
   Grundgerüst: Schriften, Reset, Typografie, Buttons, Header, Footer
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var.woff2") format("woff2");
  font-weight: 350 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var-italic.woff2") format("woff2");
  font-weight: 350 700;
  font-style: italic;
  font-display: swap;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-hero); line-height: var(--lh-hero); }
h2 { font-size: var(--t-display); line-height: var(--lh-display); }
h3 { font-size: var(--t-h3); line-height: var(--lh-h3); }
p { margin: 0; }

/* Kursive Serif-Zeile — das Akzentelement der Seite */
h1 em, h2 em, h3 em, .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}
/* Die kursive Serif-Zeile steht immer für sich, wie in der Vorlage */
h1 em, h2 em { display: block; margin-top: 0.1em; }

a { color: inherit; }
::selection { background: var(--c-teal); color: #fff; }

:focus-visible {
  outline: 3px solid var(--c-teal);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}
.on-dark :focus-visible, .dark :focus-visible { outline-color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--wrap-x);
}
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: var(--section-y-tight); }
.mint { background: var(--c-teal-soft); }
.paper { background: var(--c-paper); }
.dark { background: var(--c-teal-deep); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark-strong); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--c-teal);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--t-small);
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- Bausteine ---------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--c-teal);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.dark .eyebrow { color: #7fd0bb; }

.lead {
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
  color: var(--c-muted);
}
.dark .lead { color: var(--on-dark); }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.5rem 0.5rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: var(--t-small);
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease,
              border-color var(--dur-fast) ease;
}
.btn .badge {
  display: grid;
  place-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #fff;
  color: var(--c-teal);
  flex: none;
  transition: transform var(--dur-fast) ease;
}
.btn:hover .badge { transform: translateX(2px); }

.btn--teal { background: var(--c-teal); color: #fff; }
.btn--teal:hover { background: var(--c-teal-deep); }

.btn--ink { background: var(--c-ink); color: #fff; }
.btn--ink:hover { background: var(--c-teal); }

.btn--ghost { border-color: var(--line-strong); color: var(--c-ink); }
.btn--ghost .badge { background: var(--c-ink); color: #fff; }
.btn--ghost:hover { border-color: var(--c-teal); color: var(--c-teal); }

.dark .btn--ghost, .hero .btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.dark .btn--ghost .badge, .hero .btn--ghost .badge { background: #fff; color: var(--c-teal-deep); }
.dark .btn--ghost:hover, .hero .btn--ghost:hover { border-color: #fff; color: #fff; }

.btn--plain { padding: 0.8rem 1.5rem; }
.btn--plain .badge { display: none; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: var(--t-small);
  text-decoration: none;
  color: var(--c-teal);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 0.15rem;
}
.tlink .arr { transition: transform var(--dur-fast) ease; }
.tlink:hover .arr { transform: translateX(4px); }
.dark .tlink { color: #8fd8c4; }

/* --- Header: schwebende Pille über dem Hero ----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding-top: clamp(0.9rem, 2vw, 1.5rem);
  /* schwebt über dem Hero, statt ihn nach unten zu schieben */
  margin-bottom: calc(-1 * (var(--header-h) + clamp(0.9rem, 2vw, 1.5rem)));
}
.header-inner {
  width: 100%;
  max-width: calc(var(--wrap-max) - 2rem);
  margin-inline: auto;
  padding: 0.5rem 0.6rem 0.5rem 1.15rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 34px -22px rgba(10, 56, 48, 0.55);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  min-height: var(--header-h);
}
@media (max-width: 84rem) {
  .header-inner { margin-inline: var(--wrap-x); width: auto; }
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: inherit; }
.brand img { width: auto; height: 2.1rem; }
.brand-name { display: grid; line-height: 1.15; }
.brand-name b { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-name span { font-size: 0.62rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 700; color: var(--c-muted); }
@media (max-width: 30rem) { .brand-name span { display: none; } .brand img { height: 1.9rem; } }

.nav-main { display: none; }
@media (min-width: 64rem) {
  .nav-main { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
  .nav-main a {
    text-decoration: none;
    font-size: var(--t-small);
    font-weight: 600;
    color: var(--c-muted);
    transition: color var(--dur-fast) ease;
  }
  .nav-main a:hover { color: var(--c-ink); }
  .nav-main a[aria-current="page"] { color: var(--c-teal); }
}

.header-right { display: flex; align-items: center; gap: 0.5rem; }
.header-call { display: none; }
@media (min-width: 40rem) { .header-call { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--c-ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.1rem;
  font-family: inherit;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (min-width: 64rem) { .nav-toggle { display: none; } }
.nav-toggle .bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle .bars i { display: block; height: 2px; background: currentColor; }

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--c-teal-dark);
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) ease, visibility var(--dur) ease;
}
.nav-panel.open { opacity: 1; visibility: visible; pointer-events: auto; }
body.nav-open { overflow: hidden; }
.nav-panel-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.4rem var(--wrap-x);
}
.nav-panel-close {
  background: none;
  border: 1.5px solid var(--line-dark);
  color: inherit;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-panel-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem var(--wrap-x) 2rem;
  display: grid;
  align-content: start;
  gap: 0.1rem;
  overflow-y: auto;
}
.nav-panel-list a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  text-decoration: none;
  font-size: clamp(1.7rem, 1.2rem + 2.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  padding-block: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-panel-list a span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: #7fd0bb; }
.nav-panel-list a[aria-current="page"] { color: #7fd0bb; }
.nav-panel-foot {
  padding: 0 var(--wrap-x) 2.25rem;
  display: grid;
  gap: 0.3rem;
  font-size: var(--t-small);
  color: var(--on-dark);
}
.nav-panel-foot a { color: #fff; font-weight: 700; text-decoration: none; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--c-teal-dark);
  color: var(--on-dark);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 1.75rem;
}
.footer-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; } }
.footer-brand { display: grid; gap: 1.1rem; justify-items: start; }
.footer-brand img { height: 3.5rem; width: auto; }
.footer-claim {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.35;
  color: #fff;
  max-width: 18ch;
}
.footer-col h4 {
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7fd0bb;
  margin-bottom: 0.95rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { text-decoration: none; font-size: var(--t-small); }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-micro);
}
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }

.draft-note {
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--t-micro);
  text-align: center;
  padding: 0.7rem var(--wrap-x);
  line-height: 1.5;
}
.draft-note b { color: #7fd0bb; font-weight: 700; }

/* --- Reveal ------------------------------------------------------------- */

[data-reveal] { opacity: 0; transform: translateY(16px); }
.no-motion [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
