/* ==========================================================================
   johanneskunze.com — gemeinsames Stylesheet aller Seiten
   Editorial/Zeitungs-Look: Navy als Trägerfarbe, Terrakotta als Akzent.
   Kein Build-Step: reines CSS, Custom Properties für alle Farben.
   ========================================================================== */

:root {
  /* Flächen */
  --cream:      #f4f1ea;  /* Seitenhintergrund */
  --cream-alt:  #efebe1;  /* abgesetzte Sektionen */
  --paper:      #fffdf7;  /* Karten */
  --navy:       #13203a;  /* dunkle Bänder, Fließtext-Kontrast, Rahmen */
  --navy-card:  #1d2b48;  /* Karten auf dunklem Grund */
  --navy-line:  #33405c;  /* Linien auf dunklem Grund */

  /* Akzent */
  --accent:       #c94b1e;
  --accent-hover: #e05a2b;
  --accent-soft:  #f0a68a; /* Akzent auf dunklem Grund */

  /* Text */
  --ink:        #13203a;  /* Überschriften */
  --body:       #2f3c58;  /* Fließtext auf hell */
  --muted:      #6b7891;  /* Meta auf hell */
  --on-navy:    #a9b4c8;  /* Meta auf dunkel */
  --on-navy-lg: #c8d0de;  /* Fließtext auf dunkel */

  /* Linien */
  --line:     #d8d2c6;
  --line-alt: #cfc8ba;

  /* Typografie */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:  'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap:   1240px;
  --gutter: 36px;
}

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

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

html, body { margin: 0; padding: 0; background: var(--cream); }

body {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

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

::selection { background: var(--navy); color: var(--cream); }

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

/* Skip-Link — sichtbar erst bei Tastaturfokus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 18px;
}
.skip-link:focus {
  left: 0;
  color: var(--paper);
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

main { flex: 1; }

/* Sektionen: durchgehende 3px-Trennlinie wie im Zeitungssatz */
.section        { border-bottom: 3px solid var(--navy); }
.section--alt   { background: var(--cream-alt); }
.section--navy  { background: var(--navy); color: var(--cream); border-bottom: 0; }

.section-pad    { padding-top: 76px;    padding-bottom: 76px; }
.section-pad-sm { padding-top: 64px;    padding-bottom: 64px; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--navy);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  padding: 18px 0;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color .15s;
}
.nav-brand:hover { color: var(--accent-soft); }

.nav-links {
  display: flex;
  align-items: stretch;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 18px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--on-navy);
  transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--cream); background: var(--navy-card); }

.nav-links a.is-active { color: var(--cream); background: var(--accent); }
.nav-links a.is-active:hover { background: var(--accent-hover); color: var(--cream); }

/* --------------------------------------------------------------------------
   Typografische Bausteine
   -------------------------------------------------------------------------- */

/* Eyebrow: Mono-Kleinschrift über Überschriften */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

/* Variante mit vorangestelltem Strich */
.eyebrow--rule {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow--rule::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.eyebrow--soft { color: var(--accent-soft); }

/* Eyebrow mit auslaufender Haarlinie (dunkle Bänder) */
.rule-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}
.rule-head .eyebrow { margin: 0; }
.rule-head::after {
  content: "";
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: var(--navy-line);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: inherit;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 26px;
  line-height: 1.15;
}

em { font-style: italic; color: var(--accent); }
.section--navy em { color: var(--accent-soft); }

/* Fließtext */
p { margin: 0; text-wrap: pretty; }

.lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
}

.body-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
}

.body-text--lg { font-size: 16px; }

.section--navy .lede,
.section--navy .body-text { color: var(--on-navy); }

/* Kursive Terrakotta-Zeile: der eine Satz, der ein Projekt erklärt */
.claim {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  font-style: italic;
  color: var(--accent);
}
.claim--sm { font-size: 17px; }
.claim--lg { font-size: 22px; line-height: 1.4; }

/* Meta-Zeile in Mono */
.meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.label--muted { color: var(--muted); }
.label--soft  { color: var(--accent-soft); }

/* Große Mono-Ziffer (Prozessschritte, Kennzahlen) */
.numeral {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

strong { font-weight: 600; color: var(--ink); }
.section--navy strong { font-weight: 500; color: var(--cream); }

/* --------------------------------------------------------------------------
   Buttons, Tags, Badges
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  padding: 15px 24px;
  transition: background-color .15s, color .15s, border-color .15s;
}

.btn--navy   { background: var(--navy); color: var(--cream); padding: 15px 26px; }
.btn--navy:hover { background: var(--accent); color: var(--cream); }

.btn--accent { background: var(--accent); color: var(--paper); }
.btn--accent:hover { background: var(--accent-hover); color: var(--paper); }

.btn--outline { color: var(--ink); border: 2px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--cream); }

/* Outline auf dunklem Grund */
.btn--ghost { color: var(--cream); border: 2px solid var(--navy-line); padding: 15px 22px; }
.btn--ghost:hover { border-color: var(--cream); color: var(--cream); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Textlink mit Akzentlinie darunter */
.link-rule {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  transition: color .15s;
}
.link-rule:hover { color: var(--accent); }

.tag {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--line-alt);
  background: var(--paper);
  padding: 9px 14px;
}

.tag--sm {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-color: var(--line-alt);
  padding: 4px 9px;
  background: none;
}

.badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  background: var(--accent);
  color: var(--paper);
  padding: 5px 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Karten und Raster
   -------------------------------------------------------------------------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 28px;
}

/* Rasterspalten mit 2px-Fuge (Zeitungsanmutung statt Schattenkarten) */
.grid-2px { display: grid; gap: 2px; }

.cols-sm  { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2px; }
.cols-md  { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}
.split--wide { gap: 56px; }
.split--end  { align-items: end; }
.split--top  { align-items: start; }

/* Zwei Spalten mit deterministischem Umbruch — dort, wo eine Seite
   eigene Kanten trägt (Trennlinie, asymmetrisches Padding). */
.duo { display: grid; grid-template-columns: 1fr; }

/* Bildrahmen: feste Proportion, damit nichts springt, während Bilder laden */
.frame {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.frame--cover img { object-fit: cover; }

.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-4-5  { aspect-ratio: 4 / 5; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-16-11 { aspect-ratio: 16 / 11; }

/* Screenshot in Passepartout */
.shot {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px;
}
.shot--sm { padding: 12px; }

/* Platzhalter, solange kein freigegebener Screenshot vorliegt */
.shot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: repeating-linear-gradient(135deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 12px);
  border: 1px dashed var(--line-alt);
}
.shot-placeholder span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--paper);
  padding: 6px 12px;
  border: 1px solid var(--line-alt);
}

/* Karte auf dunklem Grund */
.dark-card {
  background: var(--navy-card);
  padding: 26px 28px;
  min-width: 0;
}

/* Dreispalter mit breiter Textspalte (Rolle, Prozessschritt) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px 48px;
  align-items: start;
}
.grid-3 > * { min-width: 0; }
.span-2 { grid-column: span 2; }

/* Kennzahlkarte im dunklen Band */
.shipped-card {
  background: var(--navy-card);
  padding: 26px 24px;
  min-width: 0;
}
.shipped-card .tag-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  margin: 0 0 12px;
}
.shipped-card h3 { font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
.shipped-card p:last-child {
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-navy);
  margin: 0;
}

/* Angebotskarte mit Beleg-Zeile im Fuß */
.offer-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px 34px;
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}
.offer-card .numeral { margin: 0; }
.offer-proof {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Listenzeilen (Prozess, Projekte, Stationen)
   -------------------------------------------------------------------------- */

.rows {
  display: grid;
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 36px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.row > * { min-width: 0; }
.row:last-child { border-bottom: 0; }

/* Beschreibungsspalte nimmt doppelte Breite, wo Platz ist */
.row-body { grid-column: span 2; }

/* --------------------------------------------------------------------------
   Kennzahlen
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2px;
  border-top: 2px solid var(--navy);
}
.stats > div { padding: 18px 0 0; min-width: 0; }
.stats p:last-child {
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Fuß: Kontaktband + Rechtliches
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--cream);
}

.footer-legal {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--navy-line);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.footer-legal p { color: var(--muted); margin: 0; }
.footer-legal nav { display: flex; gap: 22px; }
.footer-legal a { color: var(--on-navy); transition: color .15s; }
.footer-legal a:hover { color: var(--cream); }

/* --------------------------------------------------------------------------
   Startseite: Hero
   -------------------------------------------------------------------------- */

.hero .wrap { padding-bottom: 0; }

.hero-grid { display: grid; grid-template-columns: 1fr; }

.hero-text {
  display: grid;
  align-content: center;
  gap: 26px;
  padding: 56px 0;
}
.hero-text h1 { font-size: clamp(38px, 4.8vw, 64px); line-height: 1.02; }
.hero-text .lede { font-size: 19px; line-height: 1.6; max-width: 540px; }

.hero-portrait { overflow: hidden; min-width: 0; }

/* --------------------------------------------------------------------------
   Startseite: Projekt-Aufmacher
   -------------------------------------------------------------------------- */

.feature {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 2px;
  color: var(--ink);
  transition: border-color .15s;
}
.feature:hover { border-color: var(--accent); color: var(--ink); }

.feature-grid { display: grid; grid-template-columns: 1fr; }

.feature-text {
  padding: 38px 34px;
  display: grid;
  gap: 16px;
  align-content: center;
  min-width: 0;
}
.feature-text h3 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.feature-media { min-width: 0; overflow: hidden; }

/* Kleine Projektkacheln */
.project-card {
  display: grid;
  gap: 12px;
  align-content: start;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 26px 30px;
  color: var(--ink);
  min-width: 0;
  transition: border-color .15s;
}
.project-card:hover { border-color: var(--accent); color: var(--ink); }

/* --------------------------------------------------------------------------
   Rechtliches (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */

.legal-main { max-width: 900px; padding-top: 72px; padding-bottom: 88px; }
.legal-main h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; margin-bottom: 44px; }
.legal-main h1.with-sub { margin-bottom: 20px; }

.legal-sub {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  font-style: italic;
  color: var(--accent);
  margin: 0 0 44px;
  max-width: 560px;
}

.legal-row {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  align-items: start;
}
.legal-row > * { min-width: 0; }

.legal-row h2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0;
  line-height: 1.6;
}

.legal-body {
  grid-column: span 2;
  font-size: 15px;
  line-height: 1.8;
  color: var(--body);
}
.legal-body.strong { font-size: 16px; color: var(--ink); }
.legal-body p + p { margin-top: 12px; }
.legal-body .mono {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--body);
}

.legal-stand {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 860px) {
  /* align-items:start statt des Grid-Defaults „stretch": die Bildspalte
     soll nur so hoch werden wie ihr eigenes Seitenverhältnis vorgibt, nicht
     auf die (meist größere) Höhe der Textspalte gedehnt werden — sonst
     hängt die Rahmenlinie unter dem Bild in leerer Fläche „in der Luft". */
  .hero-grid    { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .hero-text    { padding: 64px 36px 56px 0; }
  /* Oberkante Foto auf Höhe der H1, nicht des Eyebrows darüber:
     hero-text padding-top (64px) + Eyebrow-Zeile (~15px) + dessen
     margin-bottom (16px) + Grid-gap (26px) = 121px. */
  .hero-portrait { margin-top: 121px; }
  .hero-portrait .frame { border-left: 1px solid var(--line); }

  .feature-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .feature-media .frame { border-left: 1px solid var(--line); }

  .duo          { grid-template-columns: 1fr 1fr; gap: 56px; }
}

@media (max-width: 859px) {
  /* Bild unter den Text: Proportion flacher, damit es nicht die halbe
     Seite einnimmt, sobald es die volle Breite hat. */
  .hero-portrait .ratio-4-3 { aspect-ratio: 3 / 2; }
  .feature-media .ratio-16-11 { aspect-ratio: 16 / 10; }
}

@media (max-width: 700px) {
  :root { --gutter: 22px; }

  .section-pad    { padding-top: 56px; padding-bottom: 56px; }
  .section-pad-sm { padding-top: 48px; padding-bottom: 48px; }

  .nav-inner   { gap: 0; }
  .nav-brand   { padding: 16px 0; font-size: 12px; }
  .nav-links   { width: 100%; gap: 1px; padding-bottom: 8px; }
  .nav-links a { padding: 12px 12px; font-size: 11px; }

  .split, .split--wide { gap: 36px; }

  .feature-text { padding: 28px 24px; }

  /* Listenzeilen: gestapelt lesen sich die Spalten sonst als Fragmente */
  .row, .legal-row, .grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .row-body, .legal-body, .span-2 { grid-column: auto; }
  .grid-3 { gap: 20px; }

  .hero-text .lede { font-size: 17px; }
}

/* Bewegung nur, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Druck: dunkle Bänder kosten nur Toner */
@media print {
  .nav, .skip-link { display: none; }
  .section--navy, .site-footer { background: #fff !important; color: #000 !important; }
  .section--navy .lede, .section--navy .body-text { color: #000 !important; }
  a { color: #000; }
}
