/* Flow Battery Day 2027 — flow-batteries.com
   Schlichte englische Ankündigung: ein Hauptbereich, eine Fußzeile.
   Warmes Papierweiß, dunkler Text, gedecktes Petrol nur für den Hauptbutton. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --paper: #fbf9f4;
  --ink: #1b1c1a;
  --ink-soft: #3d423b;
  --muted: #5a6058;
  --petrol: #1f5b5e;
  --petrol-deep: #17484b;
  --line: rgba(27, 28, 26, 0.15);
  --line-soft: rgba(27, 28, 26, 0.09);

  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --width: 1080px;
  --pad: clamp(1.25rem, 4.5vw, 2.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.09rem;          /* 17,5 px */
  line-height: 1.62;
  font-weight: 400;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { margin: 0; overflow-wrap: break-word; }

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

a { color: var(--petrol); text-decoration-color: rgba(31, 91, 94, 0.4); text-underline-offset: 0.18em; }
a:hover { color: var(--petrol-deep); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--petrol);
  color: #fff;
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Hauptbereich ---------- */

.intro {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.75rem, 4.6vw, 4.25rem);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  column-gap: clamp(2.5rem, 4vw, 3.5rem);
  align-items: start;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 3.9vw, 3.5rem);   /* 52–56 px am Desktop */
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.35rem;
}

.subtitle {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.34;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 26ch;
  margin: 0 0 1.5rem;
}

.dateline {
  font-size: 0.94rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--petrol);
  margin: 0 0 2rem;
}

.lede {
  max-width: 46ch;
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.special {
  max-width: 44ch;
  margin: 0 0 2.35rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.2;
  min-height: 52px;
  padding: 1rem 1.65rem;
  background: var(--petrol);
  color: #ffffff;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
}

.btn:hover,
.btn:active { background: var(--petrol-deep); color: #ffffff; }

.btn .arrow { font-size: 1.05em; line-height: 1; }

/* Flyer rechts, Originalproportionen */

.flyer { margin: 0; }

.flyer a { display: block; }

.flyer img { width: 100%; }

/* ---------- Fußzeile ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(2.25rem, 4vw, 3.25rem);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.foot-line { margin: 0 0 0.5rem; }

.foot-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }

.foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.foot-links a:hover { color: var(--petrol-deep); border-bottom-color: var(--petrol); }

.foot-links .sep { color: var(--line); }

/* Rechtstexte: per Link (#imprint / #privacy) aufgeklappt, rein per CSS, ohne JavaScript */

.legal { display: none; }

.legal:target {
  display: block;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.legal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.legal-title {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.legal-close {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.legal-close:hover { color: var(--petrol-deep); border-bottom-color: var(--petrol); }

.legal-body { padding-bottom: 1.35rem; max-width: 72ch; }

.legal-body p {
  font-size: 0.875rem;
  line-height: 1.66;
  color: var(--muted);
  margin: 0 0 0.8rem;
  text-wrap: pretty;
}
.legal-body p:last-child { margin-bottom: 0; }

.legal-body h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1.2rem 0 0.45rem;
}
.legal-body h3:first-child { margin-top: 0; }

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
  .intro { padding-block: 2.75rem 3rem; }

  .intro-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.5rem;
  }

  h1 {
    font-size: clamp(2.125rem, 7.5vw, 2.375rem);  /* 34–38 px */
    margin-bottom: 1.15rem;
  }

  .subtitle { font-size: 1.2rem; max-width: 30ch; margin-bottom: 1.25rem; }

  .dateline { font-size: 0.9rem; margin-bottom: 1.6rem; }

  .special { margin-bottom: 1.85rem; }

  .btn { width: 100%; max-width: 420px; justify-content: space-between; }

  .flyer { max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body { background: #fff; }
  .skip, .site-foot .legal { display: none; }
  .btn { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
}
