/* ==========================================================================
   werkier.de – Persönliche Einseiter-Website
   Vanilla CSS, mobile first, ein Breakpoint bei 768px.
   Keine externen Requests. Schrift lokal aus /fonts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Schrift – lokal eingebunden, kein Google-Fonts-CDN (DSGVO)
   Datei: fonts/montserrat-var.woff2 (Variable Font, Achse wght 100–900,
   Subset latin). Falls stattdessen statische Schnitte genutzt werden:
   je Schnitt einen eigenen @font-face-Block mit fester font-weight anlegen.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-var.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+2000-206F, U+2074, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg:         #0B1520;
  --bg-rgb:     11, 21, 32;
  --surface:    #0F2A44;
  --text:       #E8ECF2;
  --text-mute:  #8896A8;
  --accent:     #E32058;
  /* Fuellfarbe der Buttons: der tiefere Marken-Crimson von
     ki-content-partner.de. Ruhiger auf dem Navy und mit 6,5:1 gegen Weiss
     deutlich kontraststaerker als #E32058 (4,6:1).
     Zum Zurueckdrehen: hier auf #E32058 setzen. */
  --accent-deep:#B51B48;
  /* Aufgehellter Akzent nur für Text auf dunklem Grund.
     #E32058 erreicht als Fließtextfarbe auf --bg nur 4,05:1 und würde
     WCAG AA verfehlen; dieser Ton liegt bei 6,8:1. */
  --accent-soft:#FF6B93;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --measure: 65ch;
  --wrap: 68rem;
  --pad-x: 1.5rem;
  --section-y: 5rem;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.1; }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent-soft); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  padding: 0.75rem 1.25rem;
  background: var(--text); color: var(--bg);
  font-weight: 700; text-decoration: none; border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

/* --------------------------------------------------------------------------
   Layout-Bausteine
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.section h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.prose { max-width: var(--measure); color: var(--text); }
.prose p + p { margin-top: 0; }

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */
.masthead {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  padding: 1.75rem var(--pad-x);
}
.masthead--static { position: static; }
.masthead--static .wordmark a { text-decoration: none; }
.masthead--static .wordmark a:hover { color: var(--accent-soft); }

.wordmark {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  /* Die Wortmarke liegt ueber dem Foto – der Schatten haelt sie auch dann
     lesbar, wenn dahinter ein heller Bildbereich sitzt. */
  text-shadow: 0 1px 14px rgba(var(--bg-rgb), 0.9);
}
.wordmark span { color: rgba(232, 236, 242, 0.7); font-weight: 500; }

/* --------------------------------------------------------------------------
   Buttons – das einzige pinke Element im jeweiligen Bildausschnitt
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1rem 1.75rem;
  background: var(--accent-deep);
  color: #FFFFFF;            /* 6,53:1 auf --accent-deep → WCAG AA */
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--accent);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.btn__icon { width: 1.15em; height: 1.15em; flex: none; }
.btn--large { padding: 1.15rem 2.25rem; font-size: 1.0625rem; }

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 41svh) auto;
  min-height: 100svh;
}

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}
/* Weicher Verlauf, damit die Bildkante verschwindet */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      var(--bg) 0%,
      rgba(var(--bg-rgb), 0.75) 22%,
      rgba(var(--bg-rgb), 0) 62%),
    linear-gradient(to bottom,
      rgba(var(--bg-rgb), 0.78) 0%,
      rgba(var(--bg-rgb), 0.35) 14%,
      rgba(var(--bg-rgb), 0) 34%);
}

.hero__body {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 1.5rem var(--pad-x) 3rem;
}

/* Die H1 traegt Rolle und Name; die Groessen liegen auf den Spans. */
.hero h1 { margin-bottom: 0.75rem; }

.hero__rolle {
  display: block;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero__name {
  display: block;
  font-size: clamp(2.5rem, 10vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Der Claim traegt die Aussage, der Name traegt die Marke */
.hero__claim {
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 1.25rem;
  /* der Claim setzt seine zwei Zeilen selbst per <br> */
  max-width: none;
  hyphens: manual;
}
.hero .lead {
  max-width: 38ch;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  color: var(--text-mute);
  margin-bottom: 2.25rem;
}
.hero__cta { margin: 0; }

/* Sekundaerer Weg unter dem Hauptbutton – bewusst leise, damit der
   eine Ausgang zu ki-content-partner.de der lauteste bleibt. */
.hero__profil { margin: 1.5rem 0 0; }
.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9375rem;
  color: var(--text-mute);
  text-decoration: none;
  border-bottom: 1px solid rgba(136, 150, 168, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-quiet:hover, .link-quiet:focus-visible {
  color: var(--accent-soft);
  border-color: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   2. Timeline
   -------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: var(--measure);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 0.65rem; bottom: 0.65rem;
  width: 1px;
  background: linear-gradient(to bottom,
    rgba(232, 236, 242, 0.28),
    rgba(232, 236, 242, 0.06));
}

.timeline__item {
  position: relative;
  padding-left: 2.25rem;
  padding-bottom: 3rem;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text-mute);
}
/* Aktive Station – der eine Akzent dieser Sektion */
.timeline__item--now::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(227, 32, 88, 0.18);
}

.timeline__year {
  margin: 0 0 0.15rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  /* haelt "seit 2006" optisch auf einer Linie mit den reinen Jahreszahlen */
  text-transform: uppercase;
  color: var(--text-mute);
}
.timeline__title {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.timeline__text { margin: 0; color: var(--text-mute); }

/* --------------------------------------------------------------------------
   4. Testimonial
   -------------------------------------------------------------------------- */
.section--quote { padding-block: calc(var(--section-y) + 1rem); }

.quote { margin: 0; }
.quote__mark {
  width: 2rem; height: 1.5rem;
  color: var(--text-mute);
  opacity: 0.45;
  margin-bottom: 1.5rem;
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: clamp(1.5rem, 4.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
  /* ch bezieht sich hier auf die grosse Zitatschrift, nicht auf den Fliesstext */
  max-width: 24ch;
}
/* Zwei kleinere Stimmen unter dem grossen Zitat */
.quote-pair {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(232, 236, 242, 0.12);
}
.quote--small blockquote p {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--text-mute);
  max-width: 42ch;
}
.quote--small figcaption { margin-top: 1.25rem; font-size: 0.875rem; }

.quote figcaption {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9375rem;
}
.quote__name { font-weight: 700; }
.quote__role { color: var(--text-mute); }

/* --------------------------------------------------------------------------
   5. CTA
   -------------------------------------------------------------------------- */
.section--cta { padding-block: calc(var(--section-y) + 2rem); text-align: left; }
.cta__direkt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin: 1.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-mute);
}
.cta__trenner { color: rgba(136, 150, 168, 0.5); }

.cta__line {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin-bottom: 2.25rem;
}

/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg);
  padding-block: 2.5rem 3rem;
  font-size: 0.9375rem;
  color: var(--text-mute);
}
.footer__inner { display: flex; flex-direction: column; gap: 1.5rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; }
.footer__nav a {
  display: inline-flex; align-items: center; gap: 0.45em;
  color: var(--text-mute);
  text-decoration: none;
}
.footer__nav a:hover { color: var(--accent-soft); text-decoration: underline; }
.ico { width: 1.05em; height: 1.05em; flex: none; }
.footer__copy { margin: 0; }

/* --------------------------------------------------------------------------
   Scroll-Reveal
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .timeline__item.reveal:nth-child(2) { transition-delay: 0.08s; }
.js .timeline__item.reveal:nth-child(3) { transition-delay: 0.16s; }
.js .timeline__item.reveal:nth-child(4) { transition-delay: 0.24s; }
.js .timeline__item.reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Ab 768px
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  :root {
    --pad-x: 2.5rem;
    --section-y: 8.5rem;
  }

  body { font-size: 1.125rem; }

  .masthead { padding: 2.5rem var(--pad-x); }

  /* Hero: Text links, Bild rechts bis zur Kante.
     Das Bild liegt absolut, damit die Textspalte exakt auf derselben
     Achse sitzt wie .wrap in allen folgenden Sektionen. */
  .hero {
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
  }
  .hero__media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 52%;
  }
  .hero__media img { object-position: 50% 14%; }
  .hero__media::after {
    background:
      /* viele Stuetzstellen statt weniger: der Alpha-Verlauf laeuft weich aus,
         sonst zeichnet sich an der Bildkante eine sichtbare Stufe ab */
      linear-gradient(to right,
        var(--bg) 0%,
        rgba(var(--bg-rgb), 0.98) 9%,
        rgba(var(--bg-rgb), 0.92) 17%,
        rgba(var(--bg-rgb), 0.80) 27%,
        rgba(var(--bg-rgb), 0.58) 40%,
        rgba(var(--bg-rgb), 0.32) 55%,
        rgba(var(--bg-rgb), 0.10) 72%,
        rgba(var(--bg-rgb), 0) 88%),
      linear-gradient(to bottom,
        rgba(var(--bg-rgb), 0.4) 0%,
        rgba(var(--bg-rgb), 0) 28%,
        rgba(var(--bg-rgb), 0.45) 82%,
        var(--bg) 100%);
  }
  .hero__body {
    align-self: center;
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding: 0 var(--pad-x);
  }
  .hero__body > * { max-width: 34rem; }
  /* Die H1 setzt ihre Zeilen selbst per <br>; kein Zwangsumbruch, keine
     Trennstriche – sonst wird aus "Zwanzig Jahre" ein "Zwanzig Jah-re". */
  .hero__rolle {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero h1 { max-width: none; hyphens: manual; }
  .hero .lead { max-width: 40ch; }

  .section h2 { margin-bottom: 3.5rem; }

  .quote-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
  }

  .timeline__item { padding-left: 3rem; padding-bottom: 3.75rem; }
  .timeline__title { font-size: 1.375rem; }

  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}


/* --------------------------------------------------------------------------
   Impressum und Datenschutz
   -------------------------------------------------------------------------- */
.legal { padding-top: 3rem; }

.legal h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.legal h2 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  margin: 2.75rem 0 0.75rem;
}
.legal h2:first-of-type { margin-top: 0; }

.legal .prose { color: var(--text-mute); }
.legal .prose p { margin-bottom: 1rem; }
.legal .prose a { color: var(--text); text-decoration-color: rgba(232, 236, 242, 0.4); }
.legal .prose a:hover { color: var(--accent-soft); text-decoration-color: currentColor; }

/* Der Vorspann der Datenschutzseite – die eigentliche Nachricht */
.legal__lead {
  color: var(--text);
  font-size: 1.0625rem;
  padding: 1.5rem;
  margin-bottom: 2.5rem !important;
  background: var(--surface);
  border-radius: var(--radius);
}
.legal__date { font-size: 0.9375rem; }

.legal__back {
  margin: 3.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 236, 242, 0.12);
}

@media (min-width: 768px) {
  .legal { padding-top: 4rem; }
  .legal h2 { font-size: 1.25rem; margin-top: 3.25rem; }
  .legal__lead { padding: 2rem; font-size: 1.125rem; }
}
