/* ============================================================
   Yvonne Pöppelbaum – Website
   Design-System: design-system-yvonne.md
   Fonts selbst gehostet (DSGVO): Permanent Marker (Apache 2.0),
   Caveat (OFL), Atkinson Hyperlegible (OFL) – Lizenzen in /fonts/.
   Fließtext seit 08/2026: Atkinson Hyperlegible; Caveat nur noch
   für kurze Akzente (Tagline, Navigation).
   ============================================================ */

@font-face {
  font-family: 'Permanent Marker';
  src: url('fonts/permanent-marker.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('fonts/atkinson-hyperlegible-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('fonts/atkinson-hyperlegible-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('fonts/caveat-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('fonts/caveat-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #0a1530;
  --accent: #1e3a8a;
  --paper: #f5f2eb;
  --paper-light: #fbfaf6;
  --rule: rgba(30, 58, 138, 0.2);
  --muted: #666;
  --display: 'Permanent Marker', cursive;
  --hand: 'Caveat', cursive;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4vw, 44px); }
h3 { font-size: clamp(24px, 2.5vw, 28px); color: var(--accent); }

p { margin: 0 0 1em; max-width: 34em; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
}
a:hover { border-bottom-width: 2.5px; }

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

strong { font-weight: 700; }

.tagline {
  font-family: var(--hand);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

/* Handgezogene Unterstreichung */
.u-hand {
  background: linear-gradient(104deg,
    transparent 0.5em,
    rgba(30, 58, 138, 0.35) 0.5em,
    rgba(30, 58, 138, 0.35) calc(100% - 0.4em),
    transparent calc(100% - 0.4em));
  background-size: 100% 0.28em;
  background-position: 0 92%;
  background-repeat: no-repeat;
}

/* ---------- Layout ---------- */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.section { padding: 100px 0; }
.section--alt {
  background: var(--paper-light);
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--accent);
  color: var(--paper);
  padding: 10px 18px;
  border: none;
  z-index: 10;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Header ---------- */

.site-header {
  padding: 22px 0;
  border-bottom: 1px dashed #c8c2b4;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
}
.site-name {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.03em;
  color: var(--ink);
  border-bottom: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.site-nav a {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 22px;
  border-bottom: none;
}
.site-nav a:hover,
.site-nav a:focus-visible { border-bottom: 2.5px solid var(--accent); }

/* ---------- Hero ---------- */

.hero { padding: 110px 0 120px; }
.hero h1 { max-width: 12em; }
.hero .intro { font-size: 21px; max-width: 26em; margin-top: 0.6em; }
.hero .ident { margin-top: 2.2em; }
.hero .ident .name {
  font-family: var(--display);
  font-size: 30px;
  margin: 0 0 2px;
}
.hero .cta-row {
  margin-top: 2em;
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.03em;
  color: var(--paper);
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 14px 36px;
  cursor: pointer;
}
.btn:hover { background: var(--ink); }

.hand-arrow { flex: 0 0 auto; }

/* ---------- Pfeil-Listen ---------- */

.arrow-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.arrow-list li { margin-bottom: 0.35em; }
.arrow-list li::before {
  content: "\2192  ";
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Nummerierte Schritte (Angebot) ---------- */

.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}
.step__num {
  font-family: var(--display);
  font-size: 56px;
  color: var(--accent);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.step h3 { color: var(--ink); margin-bottom: 0.2em; }

.bridge {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1.5px solid var(--rule);
  font-size: 19px;
  max-width: 30em;
}

/* ---------- Arbeitsweise: Sequenz ---------- */

.sequence {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0 44px;
}
.sequence__step {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 27px);
  letter-spacing: 0.03em;
  padding: 14px 22px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  transform: rotate(-1deg);
  background: var(--paper-light);
}
.sequence__step:nth-child(3) { transform: rotate(1.2deg); }
.sequence__step:nth-child(5) { transform: rotate(-0.8deg); }
.sequence__step:nth-child(7) { transform: rotate(0.9deg); }
.sequence__arrow { flex: 0 0 auto; color: var(--accent); }

.judge-note {
  font-size: 17px;
  color: var(--muted);
  margin-top: -28px;
  margin-bottom: 40px;
}

/* ---------- Arbeitsproben ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  margin-top: 48px;
}
.work-card { display: flex; flex-direction: column; }
.work-card .shot {
  aspect-ratio: 4 / 3;
  border: 1.5px dashed #c8c2b4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 18px;
  background: var(--paper-light);
}
.work-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
/* PromptCoach-Screenshot (1998x1736) ist hochkantiger als die 4:3-Box:
   oben ausrichten, damit Titel und Schrittleiste sichtbar bleiben */
.work-card .shot img[src="img/promptcoach.png"] { object-position: top; }
/* Use-Case-Screenshot (2020x1412) ist breiter als die 4:3-Box:
   links ausrichten, damit die Schrittleiste sichtbar bleibt und das
   Papierkorb-Overlay am rechten Bildrand aus dem Ausschnitt fällt */
.work-card .shot img[src="img/usecase-bewertung.png"] { object-position: left; }
.work-card p { font-size: 17px; }
.work-card .open-note { color: var(--muted); font-size: 16px; }

/* ---------- Person ---------- */

.person {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
/* Porträt als Polaroid; wandert auf breiten Bildschirmen neben dem langen Text mit */
.person .portrait {
  margin: 0;
  max-width: 420px;
  position: sticky;
  top: 32px;
  background: #fff;
  padding: 14px 14px 10px;
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
  transform: rotate(-2deg);
}
.person .portrait img {
  display: block;
  width: 100%;
  height: auto;          /* sonst setzt das height-Attribut die Höhe fest und aspect-ratio greift nicht */
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.person .portrait figcaption {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--accent);
  text-align: center;
  margin-top: 8px;
}

/* ---------- Lebenslauf-Bausteine (Person-Abschnitt und ueber-mich.html) ---------- */

.cv p { margin: 0 0 .3em; }
.cv :is(h2, h3) { font-size: 20.7px; line-height: 1.1; color: var(--ink); margin: 48px 0 12px; display: flex; align-items: center; gap: 11.3px; break-after: avoid; }
.cv > h3:first-child { margin-top: 28px; }
.cv :is(h2, h3) > svg { width: 40.5px; height: 22.5px; flex: none; }
.cv .arrows { list-style: none; padding: 0; margin: 0; }
.cv .arrows li { padding-left: 1.2em; text-indent: -1.2em; margin-bottom: .1em; }
.cv .arrows li::before { content: "→ "; color: var(--accent); font-weight: 700; }
.cv .cols { column-count: 2; column-gap: 36px; }
.cv .cols li { break-inside: avoid; }
.cv .row { display: grid; grid-template-columns: 126px minmax(0, 1fr); gap: 22.5px; padding: 5px 0; border-top: 1px dashed #c8c2b4; break-inside: avoid; }
.cv .row:first-of-type { border-top: 0; }
.cv .when { font-family: var(--hand); color: var(--accent); font-weight: 600; font-size: 22.5px; line-height: 1.15; }
.cv .role { font-weight: 700; font-size: 18.9px; line-height: 1.3; }
.cv .orgs { margin-top: 18px; }
.cv .certs { width: 100%; border-collapse: collapse; }
.cv .certs th { font-family: var(--display); font-weight: 400; font-size: 18.9px; letter-spacing: .03em; text-align: left; color: var(--accent); padding: 0 13.5px 4.5px 0; border-bottom: 1.5px solid rgba(30, 58, 138, 0.6); }
.cv .certs td { padding: 2.7px 13.5px 2.7px 0; border-bottom: 1px dashed #c8c2b4; vertical-align: top; }
.cv .certs td:first-child { white-space: nowrap; color: var(--accent); font-family: var(--hand); font-weight: 600; font-size: 21.6px; line-height: 1.2; width: 108px; }
.cv .certs td:nth-child(2) { font-weight: 700; }
.cv .certs td:nth-child(3) { color: var(--muted); font-size: 16.2px; width: 252px; }
.cv .strike { position: relative; color: var(--muted); }
.cv .strike svg { position: absolute; left: -4%; top: 12%; width: 108%; height: 80%; overflow: visible; }
.cv .moin { color: var(--accent); transform: rotate(-3deg); display: inline-block; }
.cv .ref { margin: 0; padding: 4px 0 0 22px; border-left: 1.5px solid rgba(30, 58, 138, 0.6); font-style: italic; max-width: 760px; text-wrap: pretty; }
.cv .ref footer { margin-top: 10px; font-style: normal; font-family: var(--hand); font-weight: 600; font-size: 22px; color: var(--accent); line-height: 1.2; }

/* ---------- Kontakt / CTA-Block ---------- */

.contact { text-align: center; }
.contact h2 { font-size: clamp(38px, 5vw, 64px); }
.contact .sub { margin: 0 auto 1.6em; font-size: 20px; }
.contact .channels {
  margin-top: 1.8em;
  font-size: 18px;
}
.contact .channels a { font-weight: 600; }

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

.site-footer {
  border-top: 1px dashed #c8c2b4;
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 16px;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
}
.site-footer a { color: var(--muted); }

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .container { padding: 0 40px; }
  .section { padding: 72px 0; }
  .hero { padding: 70px 0 80px; }
  .step { grid-template-columns: 64px 1fr; gap: 16px; }
  .step__num { font-size: 44px; }
  .person { grid-template-columns: 1fr; gap: 36px; }
  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .person .portrait { max-width: 320px; position: static; }
  .sequence { flex-direction: column; align-items: flex-start; }
  .sequence__arrow { transform: rotate(90deg); margin-left: 34px; }
  .site-nav { gap: 6px 20px; }
  .cv .cols { column-count: 1; }
  .cv .row { grid-template-columns: 1fr; gap: 4px; }
  .cv .certs, .cv .certs tbody, .cv .certs tr, .cv .certs td { display: block; width: auto !important; }
  .cv .certs thead { display: none; }
  .cv .certs tr { padding: 6px 0; border-bottom: 1px dashed #c8c2b4; }
  .cv .certs td { border: 0; padding: 0; }
}
