/* cornellpeschke.de – Newsletter. Mobile First (Instagram-In-App-Browser, ~390 × 640).
   FOP-Aufbau der früheren Seite: Zwei-Köpfe-Foto, Verlaufsschrift Weiß → Silber,
   dunkle Fläche. Blau nur auf dem Knopf. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  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: "Geist";
  src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}

:root {
  --grund: #050506;
  --flaeche: #0e0e10;
  --linie: #ffffff1f;
  --blau: #144d9d;
  --blau-rand: #497ede;
  --text: #f4f4f2;
  --text-2: #b8bbc3;
  --text-3: #80848e;
  --fehler: #ffb4b4;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--grund); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 6px; }

/* Verlaufsschrift der FOP-Seite: Weiß → Silber. */
.verlauf {
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #e4e5e8 50%, #a0a4ac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) {
  .verlauf { -webkit-text-fill-color: CanvasText; background: none; }
}

/* ---------- Startseite: Karten in einer Spalte (Link-in-Bio), Basis = Handy ---------- */
body.links::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  background: url("/bilder/publikum-1280.webp") center 40% / cover;
  filter: blur(48px) brightness(.32) saturate(.7);
}
.spalte {
  flex: 1;
  width: min(440px, 100% - 24px);
  margin: 16px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.karte {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff14;
  border-radius: 24px;
  background: #101115;
  box-shadow: 0 12px 32px #0007;
}

/* Hero über die volle Breite, keine Karte */
.profil { position: relative; }
.profil picture { display: block; }
.profil picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 40%;
  filter: brightness(.86) saturate(.85);
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
  mask-image: linear-gradient(#000 55%, transparent 100%);
}
.profil-text { position: relative; margin-top: -72px; padding: 0 20px 8px; text-align: center; }
h1 {
  margin: 0;
  font-size: clamp(32px, 9vw, 40px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.profil h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.profil h1 img { width: 56px; height: auto; }
.kachel svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kachel .voll { fill: currentColor; stroke: none; }

/* Newsletter: keine Karte, frei und mittig unter den Kacheln */
.newsletter {
  width: 100%;
  max-width: 320px;
  margin: 28px auto 40px;
  text-align: center;
}
.newsletter-kicker {
  margin: 0 0 8px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.newsletter h2 {
  margin: 0 auto 16px;
  max-width: 260px;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.newsletter .anmeldung { gap: 8px; }
.newsletter .feld input, .newsletter .knopf { height: 42px; }
.newsletter .knopf { font-size: 15px; }
.newsletter .zustimmung { font-size: 11px; }
.newsletter .zustimmung input { width: 16px; height: 16px; margin-top: 1px; }
.newsletter .zustimmung input::after { width: 8px; height: 5px; }

/* Danke, Bestätigt, 404: gleiche Form wie der Newsletter, Kacheln darunter */
.meldung { margin: 8px auto 28px; }
.meldung h2 { max-width: none; margin-bottom: 8px; }
.meldung-satz { margin: 0 auto; max-width: 280px; color: var(--text-2); font-size: 14px; line-height: 1.5; text-wrap: balance; }
.meldung-satz a { color: var(--text); text-underline-offset: 3px; }

/* Kanal-Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kachel {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
}
.kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kachel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0000 35%, #000b 100%); }
.kachel svg {
  position: absolute;
  z-index: 1;
  left: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 999px;
  background: #0006;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.kachel span {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.kachel:active { transform: scale(.98); }

/* Formular */
.anmeldung { width: 100%; display: flex; flex-direction: column; gap: 10px; }
/* Feld, Häkchen, Knopf untereinander. */
.feld { display: contents; }
.feld input { order: 1; }
.zustimmung { order: 2; }
.knopf { order: 3; }
.status { order: 4; }
.feld input {
  width: 100%;
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--flaeche);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  text-align: center;
  outline: none;
  transition: border-color .2s ease;
}
.feld input::placeholder { color: var(--text-3); }
.feld input:focus { border-color: #ffffff59; }
.knopf {
  width: 100%;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--blau-rand);
  border-radius: 999px;
  background: var(--blau);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #80a8eb40;
  transition: background .2s ease, transform .1s ease;
}
.knopf:hover { background: #1a5bb5; }
.knopf:active { transform: scale(.98); }
.knopf[disabled] { opacity: .6; cursor: progress; }
.zustimmung {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 4px;
  padding: 2px 4px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.zustimmung a { color: var(--text-2); text-underline-offset: 3px; }
.zustimmung input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #ffffff4d;
  border-radius: 6px;
  background: var(--flaeche);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.zustimmung input::after {
  content: "";
  width: 10px;
  height: 6px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) scale(0);
}
@media (prefers-reduced-motion: no-preference) {
  .zustimmung input::after { transition: transform .15s ease; }
}
.zustimmung input:checked { background: var(--blau); border-color: var(--blau-rand); }
.zustimmung input:checked::after { transform: rotate(-45deg) scale(1); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status:empty { display: none; }
.status { margin: 2px 0 0; font-size: 15px; color: var(--text-2); }
.status.ist-fehler { color: var(--fehler); }

/* Kopf für Unterseiten */
.kopf {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.marke img { width: 36px; height: auto; }

/* Danke, Bestätigt, 404 */
main.buehne-rahmen { flex: 1; display: flex; flex-direction: column; }
.buehne {
  flex: 1;
  width: min(720px, 100% - 40px);
  margin: 0 auto;
  padding: 48px 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.buehne .satz { max-width: 440px; margin: 16px 0 0; color: var(--text-2); font-size: 16px; }
.buehne .satz a { color: var(--text); }

/* Fuß */
.fuss {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
  padding: 20px 0 calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 13px;
}
.fuss nav { display: flex; gap: 20px; }
.fuss a { text-decoration: none; padding: 6px 0; }
.fuss a:hover { color: var(--text); }

/* Rechtstexte */
.recht { width: min(720px, 100% - 40px); margin: 0 auto; padding: 32px 0 72px; }
.recht h1 { font-size: 36px; margin: 0 0 8px; }
.recht h2 { margin: 36px 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.recht p, .recht li { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.recht p { margin: 0 0 12px; }
.recht ul { padding-left: 20px; }
.recht a { color: var(--text); text-underline-offset: 3px; }
.recht .stand { color: var(--text-3); font-size: 14px; }

/* Kurze Einblendung, nur ohne Reduced Motion */
@media (prefers-reduced-motion: no-preference) {
  .auftritt > * { animation: auftritt .6s cubic-bezier(.2, .8, .2, 1) both; }
  .auftritt > :nth-child(2) { animation-delay: .06s; }
  .auftritt > :nth-child(3) { animation-delay: .12s; }
  @keyframes auftritt { from { opacity: 0; transform: translateY(12px); } }
}

/* ---------- Ab Tablet/Desktop: dieselbe Spalte, mehr Luft; Unterseiten breiter ---------- */
@media (min-width: 811px) {
  .spalte { margin-top: 28px; gap: 12px; }
  .profil picture img { height: min(62vh, 620px); aspect-ratio: auto; object-position: 50% 42%; filter: brightness(.7) saturate(.85); -webkit-mask-image: linear-gradient(#000 60%, transparent 100%); mask-image: linear-gradient(#000 60%, transparent 100%); }
  .profil-text { margin-top: -110px; }
  .kachel:hover img { transform: scale(1.04); }
  .kachel img { transition: transform .4s ease; }
  .knopf:hover { background: #1a5bb5; }
  h1 { font-size: 64px; line-height: 1.06; }
  .profil h1 { font-size: 24px; }
  .kopf { height: 88px; }
  body:not(.links) .fuss { flex-direction: row; justify-content: space-between; padding: 28px 0 36px; border-top: 1px solid #ffffff0f; }
  .recht { padding: 48px 0 96px; }
  .recht h1 { font-size: 48px; }
}
