/* Career Rewired — gemeinsames Stylesheet (Startseite + Werkzeugkiste)

   Gestaltungsidee: Die Illustrationen der Newsletter-Titelbilder tragen die Seite.
   Alles drumherum bleibt ruhig: helles Papier, Kobalt für Handlungen,
   Terrakotta nur als kleine Markierung, Pfirsich für genau einen Abschnitt.
   Schrift wie im Substack: Lora für Text und Beschriftungen, kräftige Sans für Überschriften.
   Schriften selbst gehostet (kein Abruf bei Google → DSGVO-freundlich). */

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/lora-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/lora-italic-latin.woff2") format("woff2");
}

:root {
  /* Farben aus den Illustrationen */
  --paper: #fbf8f3;        /* Seite: heller als das Illustrationspapier, damit Bilder als Objekte wirken */
  --sand: #efe7da;         /* Illustrationspapier: Bildflächen, ruhige Felder */
  --ink: #1f2433;          /* Tinte mit Blaustich, aus den dunklen Flächen der Bilder */
  --muted: #5f6271;
  --cobalt: #2c4a86;       /* Handlungen: Buttons, Links */
  --cobalt-deep: #1f3666;
  --terracotta: #c95a2e;   /* nur kleine Markierungen */
  --peach: #f3dccd;        /* genau ein Abschnitt: Über mich */
  --rule: #e4dccf;

  --serif: "Lora", Georgia, serif;
  --sans: "SF Pro Display", -apple-system, system-ui, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  /* Schriftgrade: Verhältnis ~1,25 */
  --fs-small: .9rem;
  --fs-body: 1.125rem;
  --fs-lead: 1.3rem;
  --fs-h3: 1.6rem;
  --fs-h2: clamp(1.75rem, 3.6vw, 2.25rem);
  --fs-h1: clamp(2.4rem, 6.4vw, 4.1rem);

  --measure: 36rem;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.72;
}

img { max-width: 100%; }
body { overflow-x: clip; }

a { color: var(--cobalt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.prose { max-width: var(--measure); }

/* ---------- Kopf ---------- */
.site-header .wrap { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand cta" "nav nav"; align-items: center; column-gap: 1rem; padding-top: 1rem; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; font-family: var(--sans); font-weight: 900; font-size: 1.15rem; letter-spacing: -.015em; color: var(--ink); text-decoration: none; justify-self: start; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 1.6rem; height: 1.6rem; flex: none; }
.header-cta { grid-area: cta; }
.site-nav { grid-area: nav; display: flex; gap: 1.5rem; margin-top: .9rem; padding: .7rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: .95rem; font-weight: 600; overflow-x: auto; white-space: nowrap; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--terracotta); }
@media (min-width: 760px) {
  .site-header .wrap { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav cta"; column-gap: 2rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
  .site-nav { justify-content: flex-end; margin: 0; padding: 0; border: 0; gap: 1.75rem; }
}

.btn--small { padding: .55rem .95rem; font-size: .9rem; }

/* ---------- Fuß: dunkler Abschluss in Kobalt ---------- */
.site-footer { background: var(--cobalt-deep); color: #e9e4f0; margin-top: 0; position: relative; z-index: 1; }
.site-footer a { color: #fff; }
.site-footer .wrap { padding-top: 3rem; padding-bottom: 1.75rem; }
.footer-main { display: grid; gap: 2rem; padding-bottom: 2.25rem; }
@media (min-width: 760px) { .footer-main { grid-template-columns: 7fr 4fr; gap: 4rem; } }
.footer-about p { margin: 1rem 0 0; max-width: 30rem; font-size: 1.05rem; line-height: 1.6; color: #d9dcea; }
.brand--light, .brand--light:hover { color: #fff; }
.footer-links { display: grid; gap: .6rem; align-content: start; font-family: var(--sans); font-weight: 600; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); font-family: var(--sans); font-size: .85rem; color: #b9bfd6; }
.footer-legal nav { display: flex; gap: 1.25rem; }
.footer-legal a { color: #b9bfd6; }
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- Typografie ---------- */
h1, h2, h3, .btn, .meta, th { font-family: var(--sans); }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.035em; font-weight: 900; margin: 0 0 1.5rem; max-width: 19ch; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -.025em; font-weight: 900; margin: 0 0 1rem; text-wrap: balance; }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.02em; font-weight: 900; margin: 0 0 .75rem; }
p { margin: 0 0 1rem; }

/* Kleine Beschriftung: kursiv, normale Schreibweise — die Stimme des Newsletters statt Großbuchstaben */
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--muted); margin: 0 0 .5rem; }

.lead { font-size: var(--fs-lead); line-height: 1.6; max-width: var(--measure); }
.muted { color: var(--muted); }
.note, .small-note { font-size: var(--fs-small); color: var(--muted); }

section { padding: 3.5rem 0; }
.hero { padding: 3.5rem 0 2.5rem; }
@media (min-width: 760px) { .hero { padding: 5.5rem 0 3rem; } }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; font-weight: 700; font-size: 1rem; line-height: 1.2; color: #fff; background: var(--cobalt); border: 0; border-radius: var(--radius); padding: .85rem 1.3rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--cobalt-deep); color: #fff; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; margin-top: 2rem; }
.hero-actions a:not(.btn) { font-family: var(--sans); font-weight: 600; font-size: 1rem; }

/* ---------- Titelbild-Band (Startseite) ---------- */
.issues { padding-top: 0; }
.issues-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1rem; }
.issues-head p { margin: 0; }
/* Läuft rechts bis an den Bildschirmrand: ein Strom aus Ausgaben, seitlich scrollbar */
.issues-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; overscroll-behavior-x: contain;
  margin: 0 calc((100vw - 100%) / -2) 0 0; padding: 0 16px .9rem 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
@media (min-width: 640px) { .issues-strip { grid-auto-columns: 46%; } }
@media (min-width: 1000px) { .issues-strip { grid-auto-columns: 28%; gap: 1.5rem; } }
.issues-strip:focus-visible { outline-offset: 6px; }
.issues-strip li { scroll-snap-align: start; }
.issues-strip a { display: block; color: var(--ink); text-decoration: none; }
.issues-strip img { display: block; width: 100%; height: auto; aspect-ratio: 1456 / 816; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.issues-strip .t { display: block; margin-top: .75rem; font-family: var(--sans); font-weight: 800; font-size: 1.12rem; line-height: 1.25; letter-spacing: -.01em; max-width: 24ch; }
.issues-strip a:hover .t { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Angebote (Startseite) ---------- */
.offers { display: grid; gap: 3.5rem; }
@media (min-width: 760px) { .offers { gap: 5rem; } }
.offer { display: grid; gap: 1.5rem; align-items: center; }
.offer-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.offer-body > p { margin: 0 0 1rem; }
.offer-body .btn { margin-top: .75rem; }
.offer-points { margin: 0 0 1rem; padding-left: 1.2rem; }
.offer-points li { margin-bottom: .3rem; }
.offer-points li::marker { color: var(--terracotta); }
@media (min-width: 760px) {
  .offer { grid-template-columns: 7fr 6fr; gap: 3.5rem; }
  .offer--flip { grid-template-columns: 6fr 7fr; }
  .offer--flip .offer-media { order: 2; }
}
/* Bilder, die ganz sichtbar bleiben sollen (Link-Vorschaubild mit einfarbigem Hintergrund) */
.offer-media--contain { background: #efe9db; border-radius: var(--radius); display: flex; align-items: center; aspect-ratio: 4 / 3; }
.offer-media--contain img { aspect-ratio: 1200 / 630; object-fit: contain; background: none; }

/* ---------- Über mich (Startseite): der eine Pfirsich-Abschnitt ---------- */
.about-band { background: var(--peach); margin-top: 2rem; }
.about { display: grid; gap: 2rem; align-items: center; }
.about img { display: block; width: 100%; max-width: 22rem; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 760px) { .about { grid-template-columns: 5fr 7fr; gap: 4rem; } .about img { max-width: none; } }

/* ---------- Werkzeugkiste: Karten ---------- */
.grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } }

.card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.card p { margin: .25rem 0 0; }
.card--soft { background: var(--sand); border-color: transparent; }
a.card { display: block; color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--cobalt); }
a.card:hover h3 { color: var(--cobalt); }
.card .thumb { display: block; width: calc(100% + 3rem); max-width: none; height: auto; margin: -1.5rem -1.5rem 1.25rem; aspect-ratio: 1456 / 816; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.card .more { display: inline-block; margin-top: 1rem; font-family: var(--sans); font-weight: 700; font-size: .95rem; color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }

.figure { margin: 2.5rem 0 0; }
.figure img { display: block; width: 100%; height: auto; aspect-ratio: 1456 / 816; object-fit: cover; border-radius: var(--radius); }

.meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.meta li { font-size: .85rem; font-weight: 600; background: var(--sand); border-radius: 999px; padding: .25rem .8rem; }

/* Die vier Teile sind eine echte Reihenfolge → Nummern sind Information */
.steps { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps .num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--peach); font-family: var(--sans); font-weight: 800; margin-bottom: .75rem; }
.steps .time { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--muted); }

.get { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .get { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .get--2 { grid-template-columns: repeat(2, 1fr); } }
.get .card { display: flex; flex-direction: column; gap: .25rem; }
.get .card p { margin-bottom: 1.25rem; }
.get .card .btn { margin-top: auto; align-self: flex-start; }

.prompt { background: #fff; border: 1px solid var(--rule); border-left: 3px solid var(--terracotta); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 1rem; line-height: 1.6; margin: 1rem 0; white-space: pre-line; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: .85rem; font-weight: 700; color: var(--muted); background: var(--paper); }
tr:last-child td { border-bottom: 0; }

blockquote { margin: 1.75rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--terracotta); font-style: italic; font-size: 1.2rem; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: #fff; font-family: var(--sans); font-weight: 600; font-size: .9rem; padding: .6rem 1rem; border-radius: var(--radius); opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* =========================================================
   Akzente: Papierkorn, Papierschnitt-Formen, Strom-Linie
   ========================================================= */

/* 1 · Papierkorn: feine Körnung über allem, wie Gouache auf Papier */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .47  0 0 0 0 .38  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 2 · Papierschnitt-Formen */
.cutout { position: absolute; pointer-events: none; display: block; }

/* Sonne neben der Überschrift */
.hero { position: relative; overflow-x: clip; }
.hero .wrap { position: relative; }
.hero h1, .hero .lead, .hero-actions { position: relative; z-index: 1; }
.cutout--sun { width: 4.75rem; right: -.75rem; top: -4.5rem; }
@media (max-width: 759px) { .hero { padding-top: 5.25rem; } }
@media (min-width: 760px) { .cutout--sun { width: 12rem; right: -1rem; top: -2.5rem; } }
@media (min-width: 1100px) { .cutout--sun { width: 17rem; right: 0; top: -2rem; } }

/* Schachbrett-Kante + Blüte bei „Über mich" */
.about-band { position: relative; margin-top: 4rem; }
.about-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px;
  background: repeating-conic-gradient(var(--cobalt) 0 25%, var(--paper) 0 50%) 0 0 / 28px 28px;
}
.cutout--flower { width: 6.5rem; right: 1rem; top: -4.6rem; z-index: 2; }
@media (min-width: 760px) { .cutout--flower { width: 9rem; right: 7%; top: -6rem; } }

/* 3 · Strom-Linie: liegt unter den Inhalten, verläuft in Rändern und Lücken */
main { position: relative; }
main > section { position: relative; z-index: 1; }
.stream { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; overflow: visible; }
.stream path { fill: none; stroke: var(--cobalt); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 759px) { .stream path { stroke-width: 2; } }

/* ---------- Rechtliche Seiten ---------- */
.legal-hero { padding-bottom: 0; }
.legal { padding-top: 1.5rem; }
.legal h2 { font-size: 1.3rem; letter-spacing: -.01em; margin: 2.25rem 0 .6rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .6rem; }
.legal li::marker { color: var(--terracotta); }

/* Aufklappbarer Prompt: zu, bis man auf „Prompt kopieren" klickt */
.prompt-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.prompt-panel > * { overflow: hidden; min-height: 0; }
.prompt-panel:not(.is-open) > * { visibility: hidden; transition: visibility 0s .35s; }
.prompt-panel.is-open { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: reduce) { .prompt-panel, .prompt-panel > * { transition: none; } }

/* ---------- Werkzeug-Seite: Lesen vs. Handeln ---------- */

/* Die vier Teile: zum Lesen — ruhige Liste, keine Karten */
.steps { gap: 2rem 3rem; }
.steps .step { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.steps .step h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.steps .step p { margin: 0 0 .5rem; }

/* So kannst du loslegen: zum Handeln — der eine kräftige Moment der Seite, in Kobalt */
.get-band { background: var(--cobalt); color: #e4e8f3; padding: 3.5rem 0 3.75rem; }
@media (min-width: 760px) { .get-band { padding: 5rem 0; } }
.get-band h2, .get-band h3 { color: #fff; }
.get-band a:not(.btn) { color: #fff; }
.get-band :focus-visible { outline-color: #fff; }

.get-layout { display: grid; gap: 1.75rem; grid-template-areas: "title" "sheet" "ways"; }
.get-title { grid-area: title; margin: 0; }
.get-sheet { grid-area: sheet; }
.get-ways { grid-area: ways; }
@media (min-width: 760px) {
  .get-layout { grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr; grid-template-areas: "sheet title" "sheet ways"; column-gap: 4.5rem; row-gap: 1.75rem; }
  .get-sheet { align-self: center; }
  .get-title { align-self: end; }
}

/* Erste Seite des Arbeitsblatts als echtes Blatt Papier, leicht schräg abgelegt */
.get-sheet { display: block; max-width: 12rem; margin-left: .5rem; transform: rotate(-2.5deg); transition: transform .25s ease; }
@media (min-width: 760px) { .get-sheet { max-width: 24rem; margin-left: 0; justify-self: center; } }
.get-sheet img { display: block; width: 100%; height: auto; background: #fff; border-radius: 2px;
  box-shadow: 0 2px 4px rgba(10, 18, 45, .25), 0 22px 44px rgba(10, 18, 45, .35); }
.get-sheet:hover { transform: rotate(-1deg) translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .get-sheet { transition: none; } }

.way p { margin: 0 0 1.1rem; max-width: 30rem; }
.way + .way { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .22); }

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

/* Aufgeklappter Prompt im Band */
.get-band .prompt { background: #fff; color: var(--ink); border-color: transparent; border-left: 3px solid var(--terracotta); }
.get-band .eyebrow, .get-band .note { color: #c3cbe2; }
