/* Stop Hacking Brains – styles.css
   Nachbau des Claude-Design-Prototyps als klassisches CSS.
   Werte (Farben, Größen, Abstände) entsprechen 1:1 den Inline-Styles des Prototyps. */

/* ---------- Schriften (selbst gehostet, /fonts/) ---------- */
/* Archivo liegt als Variable Font vor (wght 100–900): eine Datei je Subset deckt 400/500/700/900 ab. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
  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;
}

/* ---------- Tokens ---------- */
:root {
  --red: #C8102E;
  --red-hover: #EA2A47;
  --ink: #111111;
  --muted: #57534B;
  --rule: #E5E5E1;
  --bar-grey: #DDDDD9;
  --cream: #F7F2E9;
  --page: #ECECEA;
  --paper: #FAFAF8;
  --white: #FFFFFF;
  --gutter: clamp(20px, 4.5vw, 44px);
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---------- Basis ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  font-family: var(--sans);
}
a { color: var(--red); }
a:hover { color: var(--ink); }
img { max-width: 100%; }
.red { color: var(--red); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Seitenrahmen (Start, Team, Newsletter, Danke, Bestätigt, 404) */
.page {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  box-shadow: 0 0 40px rgba(17, 17, 17, 0.12);
  display: flex;
  flex-direction: column;
}
.page > main { flex: 1 0 auto; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  row-gap: 14px;
  padding: 22px var(--gutter);
  background: var(--white);
  color: var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }
.brand img { display: block; flex: none; width: 38px; height: 38px; }
.brand-name {
  font-weight: 900;
  font-size: clamp(16px, 3.6vw, 21px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}
.site-nav a[aria-current="page"]:hover { color: var(--ink); }
.site-nav .btn-nav {
  flex: none;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
}
.site-nav .btn-nav:hover { background: var(--ink); color: var(--white); }

/* ---------- Hero (Diptychon) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-fig { position: relative; }
.hero-fig img {
  display: block;
  width: 100%;
  height: clamp(360px, 42vw, 540px);
  object-fit: cover;
}
.hero-shade-top {
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(17,17,17,0.78), rgba(17,17,17,0.52) 55%, rgba(17,17,17,0));
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 97%);
  mask-image: linear-gradient(90deg, #000 72%, transparent 97%);
}
.hero-shade-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(17,17,17,0.78), rgba(17,17,17,0.5) 55%, rgba(17,17,17,0));
  -webkit-mask-image: linear-gradient(270deg, #000 72%, transparent 97%);
  mask-image: linear-gradient(270deg, #000 72%, transparent 97%);
}
.hero-line {
  position: absolute;
  margin: 0;
  font-weight: 900;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--white);
}
.hero-line-1 {
  left: var(--gutter);
  top: clamp(24px, 4vw, 44px);
  line-height: 1.3;
}
.hero-line-2 {
  right: var(--gutter);
  bottom: clamp(28px, 4.5vw, 52px);
  text-align: right;
  line-height: 1.25;
}

/* Hero Teil 2: Claim */
.claim {
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) clamp(28px, 4vw, 52px);
  text-align: center;
}
.claim-text {
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 24em;
  margin: 0 auto;
  text-wrap: balance;
}

/* Mobil: Hero gestapelt (Prototyp: .only-mob ab 800px) */
@media (max-width: 800px) {
  .hero { display: block; }
  .hero-fig img { height: auto; aspect-ratio: 4 / 5; }
  .hero-shade-top {
    height: 42%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-shade-bottom {
    height: 46%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-line { font-size: clamp(21px, 6vw, 26px); }
  .hero-line-1 { left: 24px; top: 26px; }
  .hero-line-2 { right: 20px; bottom: 44px; }
  .claim { padding: 52px 18px 24px; }
  .claim-text { font-size: clamp(19px, 5.2vw, 24px); }
}

/* ---------- Inhaltsabschnitte ---------- */
.rule {
  margin: 40px var(--gutter) 0;
  border-top: 1px solid var(--rule);
}
.rule-first { margin-top: 0; }
.section {
  padding: 36px var(--gutter) 8px;
  box-sizing: border-box;
}
.section p { margin: 0 0 15px; }
.section-title {
  margin: 0 0 12px;
  font-weight: 900;
  font-size: clamp(24px, 2.7vw, 33px);
  line-height: 1.22;
}
.section-lead {
  margin: 0 0 15px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
}
@media (min-width: 900px) {
  .split {
    display: grid;
    grid-template-columns: clamp(240px, 28vw, 340px) minmax(0, 1fr);
    column-gap: clamp(32px, 4.5vw, 60px);
    align-items: start;
  }
}

/* 31 Prozent */
.stat {
  display: flex;
  align-items: flex-end;
  gap: 30px;
}
/* Unter 900 px stehen Zahl und Text untereinander – dann braucht es Luft dazwischen */
@media (max-width: 899px) {
  .stat { margin-bottom: 28px; }
}
.stat-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: clamp(64px, 7.4vw, 96px);
}
.stat-bar { width: 34px; align-self: flex-end; }
.stat-bar-red { height: 31%; background: var(--red); }
.stat-bar-grey { height: 69%; background: var(--bar-grey); }
.stat-num {
  font-weight: 900;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.9;
  color: var(--red);
}
.cite {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Newsletter-Karte ---------- */
.newsletter {
  padding: 56px var(--gutter) 72px;
  box-sizing: border-box;
}
.card {
  background: var(--cream);
  color: var(--ink);
  padding: 44px clamp(24px, 4vw, 48px) 48px;
}
.card-title {
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.18;
  margin: 0 0 14px;
}
.card-text { margin: 0 0 22px; color: var(--ink); }
.signup {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.signup input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 0;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  box-sizing: border-box;
}
.signup button {
  flex: none;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 0;
  padding: 13px 26px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.signup button:hover { background: var(--red-hover); }
.card-note {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.card-note a { color: var(--muted); }
.card-note a:hover { color: var(--ink); }

/* Einzelseiten (Newsletter, Danke, Bestätigt, 404) */
.single { padding: 56px var(--gutter) 72px; box-sizing: border-box; }
.single .card p { margin: 0 0 22px; }
.single .card p:last-child { margin-bottom: 0; }
.single .card .small { font-size: 12.5px; color: var(--muted); }
.single .card .card-link { font-weight: 700; }
.context-line {
  margin: 0 0 28px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
}

/* ---------- Unterstützung ---------- */
.support {
  padding: 8px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.support-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.support a { display: block; }
.support a:hover { opacity: 0.8; }
.support img { display: block; height: 44px; width: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--red);
  color: var(--white);
  padding: 26px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: clamp(10px, 1.6vw, 18px);
  row-gap: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand img { display: block; flex: none; width: 26px; height: 26px; }
.footer-brand-name { font-weight: 900; font-size: 12px; white-space: nowrap; }
.footer-mail { color: var(--white); font-size: 13.5px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { display: block; width: 26px; height: 26px; }
.footer-social a:hover { opacity: 0.85; }
.footer-social svg { display: block; }
.footer-meta {
  margin: 0;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  /* Prototyp: 0.7 – auf 0.9 angehoben, damit der Kontrast auf Signalrot ≥ 4.5:1 erreicht (WCAG AA) */
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}
.footer-meta p { margin: 0; }
/* Passt nicht mehr alles in eine Zeile, bekommt die Rechtszeile eine eigene, linksbündige Zeile
   (statt allein rechts unten zu hängen) */
@media (max-width: 659px) {
  .footer-meta { flex-basis: 100%; margin-left: 0; text-align: left; }
}
.footer-meta a { color: rgba(255, 255, 255, 0.9); }
.footer-meta a:hover { color: var(--white); }

/* ---------- Team ---------- */
.team {
  padding: 40px var(--gutter) 80px;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}
.team-title {
  font-weight: 900;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.12;
  margin: 0 0 32px;
}
.person {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.person + .person { margin-top: 48px; }
.person-photo {
  width: min(190px, 100%);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  flex: none;
}
.person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.person-photo img:hover { transform: scale(1.05); }
.person-photo.is-placeholder { transition: transform 0.5s ease; }
.person-photo.is-placeholder:hover { transform: scale(1.03); }
.photo-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 12px;
  background: #f2f1ef;
  color: #6e6c66;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 13px/1.3 system-ui, -apple-system, sans-serif;
  text-align: center;
}
.photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px dashed currentColor;
  opacity: 0.35;
  pointer-events: none;
}
.photo-placeholder svg { display: block; }
.person-text { flex: 1; min-width: 280px; }
.person-name { margin: 0 0 10px; font-weight: 900; font-size: 20px; }
.person-bio { margin: 0; line-height: 1.65; }
.person-bio.pending { color: var(--muted); }
.team .card { margin-top: 56px; }
.team .card p { margin: 0; }

/* ---------- Personenseite (max.html): Kontaktdaten neben dem Foto ---------- */
.contact { margin: 0; }
.contact dt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact dd { margin: 2px 0 18px; word-break: break-word; }
.contact dd:last-child { margin-bottom: 0; }
/* Kontaktblock sitzt optisch etwas tiefer als die Oberkante des Fotos */
.person-text .contact { margin-top: 10px; }

/* Button als Link – wie der Formular-Button, aber ohne Versalien (ganzer Satz) */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}
.btn:hover { background: var(--red-hover); color: var(--white); }
.team .card p + p { margin-top: 18px; }

/* ---------- QR-Einstiegsseite (max-qr.html) ---------- */
.qr-page {
  padding: 40px var(--gutter) 64px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.qr-photo {
  width: min(220px, 60vw);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  flex: none;
}
.qr-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qr-name {
  margin: 22px 0 0;
  font-weight: 900;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.12;
}
.qr-role { margin: 6px 0 0; color: var(--muted); }
.qr-code {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  margin: 28px 0 0;
  border: 1px solid var(--rule);
}
.qr-hint {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.qr-hint a { color: var(--muted); }
.qr-hint a:hover { color: var(--red); }

@keyframes team-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .t-in   { animation: team-in 0.6s ease-out both; }
  .t-in2  { animation: team-in 0.6s ease-out 0.15s both; }
  .t-txt  { animation: team-in 0.6s ease-out 0.1s both; }
  .t-txt2 { animation: team-in 0.6s ease-out 0.25s both; }
}

/* ---------- Impressum / Datenschutz ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.7;
  box-shadow: 0 0 40px rgba(17, 17, 17, 0.12);
  padding: 24px var(--gutter) 80px;
  box-sizing: border-box;
}
.back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
}
.back:hover { color: var(--ink); }
.legal h1 {
  font-weight: 900;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 32px 0 8px;
}
.legal h2 {
  font-weight: 900;
  font-size: 18px;
  margin: 28px 0 8px;
}
.legal p { margin: 0 0 14px; }
.legal p.tight { margin: 0 0 10px; }
.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Hervorgehobener Hinweis (Widerspruchsrecht Art. 21 DSGVO – muss getrennt von anderen Informationen stehen) */
.legal .notice {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--cream);
  border-left: 3px solid var(--red);
}
.legal .legal-date {
  margin: 36px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Fly-in-Animationen ----------
   Nur aktiv, wenn JS läuft (html.js) und keine reduzierte Bewegung gewünscht ist.
   Ohne JS bzw. mit prefers-reduced-motion ist alles sofort sichtbar. */
@media (prefers-reduced-motion: no-preference) {
  .js .fly-l,
  .js .fly-r,
  .js .fly-u {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  }
  .js .fly-l { transform: translateX(-70px); }
  .js .fly-r { transform: translateX(70px); }
  .js .fly-u { transform: translateY(56px); }
  .js .fly-l.fly-in,
  .js .fly-r.fly-in,
  .js .fly-u.fly-in {
    opacity: 1;
    transform: none;
  }
}
/* Prototyp: das zweite Hero-Bild fliegt nur in der mobilen Variante ein */
@media (prefers-reduced-motion: no-preference) and (max-width: 800px) {
  .js .fly-u-mob {
    opacity: 0;
    transform: translateY(56px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  }
  .js .fly-u-mob.fly-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .person-photo img,
  .person-photo.is-placeholder { transition: none; }
  .person-photo img:hover,
  .person-photo.is-placeholder:hover { transform: none; }
}
