/* =========================================================================
   DATACUSTOS · Design-System v1.0
   Farben und Typografie verbindlich nach Brand Package v1.0 (25.07.2026)
   ========================================================================= */

/* ---------- Schrift: Montserrat Variable, selbst gehostet ---------------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Variable-Latin.woff2") format("woff2-variations"),
       url("../fonts/Montserrat-Variable-Latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ----------------------------------------------- */
:root {
  /* Markenfarben (Forum-Palette) */
  --travertine:  #F1E9DA;
  --terracotta:  #C05B33;
  --data-blue:   #1B4965;
  --ink:         #38261F;
  --navy:        #0F2E3D;
  --gold:        #D9A441;

  /* Abgeleitete Töne */
  --travertine-deep: #E7DCC8;
  --travertine-soft: #F7F2E8;
  --ink-muted:   #6B564D;
  --line:        #D9CDB8;
  --line-dark:   rgba(241, 233, 218, 0.18);
  --terracotta-dark: #A44A26;   /* AA-tauglich fuer Flaechen + kleinen Text */
  --terracotta-deep: #8F3F20;   /* Hover auf gefuellten Flaechen */
  --blue-deep:   #143A51;

  /* Typografie */
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;

  /* Maße */
  --wrap: 1120px;
  --wrap-narrow: 760px;
  --radius: 4px;
  --gap: 1.5rem;

  /* Vertikaler Rhythmus */
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--travertine);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

/* ---------- Typografie -------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--terracotta);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.35rem); }
h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--data-blue);
  letter-spacing: 0;
}

p { margin: 0 0 1.15em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--data-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color .18s ease;
}
a:hover { color: var(--terracotta-dark); }

strong { font-weight: 600; color: var(--ink); }

ul, ol { padding-left: 1.15rem; margin: 0 0 1.15em; max-width: 66ch; }
li { margin-bottom: 0.45em; }
li::marker { color: var(--terracotta); }

/* Kicker: kleine gesperrte Vorzeile */
.kicker {
  display: block;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--data-blue);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.075rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 60ch;
}

.muted { color: var(--ink-muted); }
.small { font-size: 0.9rem; line-height: 1.6; }

/* ---------- Layout ------------------------------------------------------ */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section--alt   { background: var(--travertine-soft); }
.section--dark  { background: var(--navy); color: var(--travertine); }
.section--dark h2, .section--dark h3 { color: var(--travertine); }
.section--dark h4 { color: var(--gold); }
.section--dark strong { color: #FFFFFF; }
.section--dark a { color: var(--gold); }
.section--dark a:hover { color: #FFFFFF; }
.section--dark .kicker { color: var(--gold); }
.section--dark .muted { color: rgba(241, 233, 218, 0.72); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Der Aquädukt-Strich: schmale Terracotta-Linie als Sektions-Auftakt */
.tick {
  width: 44px;
  height: 3px;
  background: var(--terracotta);
  border: 0;
  margin: 0 0 1.6rem;
}
.section--dark .tick { background: var(--gold); }

/* ---------- Skip-Link --------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--travertine);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--data-blue);
  outline-offset: 3px;
}
.section--dark :focus-visible { outline-color: var(--gold); }

/* ---------- Header / Navigation ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 233, 218, 0.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
  padding-block: 0.75rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--terracotta-dark); background: rgba(192, 91, 51, 0.07); }
.nav a[aria-current="page"] {
  color: var(--terracotta-dark);
  border-bottom-color: var(--terracotta);
}
.nav .btn { margin-left: 0.6rem; }
.nav .btn:hover { background: var(--terracotta-deep); color: #FFF; }

/* Mobile-Navigation über Checkbox-Toggle – ohne JavaScript */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  cursor: pointer;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  line-height: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

@media (max-width: 860px) {
  .nav-burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--travertine);
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { border-bottom-color: var(--terracotta); }
  .nav .btn { margin: 0.9rem 0 0; text-align: center; border: 0; }
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn--primary { background: var(--terracotta-dark); color: #FFFFFF; }
.btn--primary:hover { background: var(--terracotta-deep); color: #FFFFFF; }

.btn--ghost {
  background: transparent;
  color: var(--data-blue);
  border-color: var(--data-blue);
}
.btn--ghost:hover { background: var(--data-blue); color: var(--travertine); }

.section--dark .btn--ghost { color: var(--travertine); border-color: rgba(241,233,218,.55); }
.section--dark .btn--ghost:hover { background: var(--travertine); color: var(--navy); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  background:
    radial-gradient(120% 100% at 85% 0%, rgba(27, 73, 101, 0.07) 0%, rgba(27, 73, 101, 0) 62%),
    var(--travertine);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: 0.5em; }

.hero__claim {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  font-weight: 600;
  color: var(--data-blue);
  letter-spacing: 0.005em;
  margin: 0 0 1.4rem;
}

.hero__art { display: flex; justify-content: center; }
.hero__art img { width: min(100%, 420px); }

/* Portraet im Hero (Ueber mich) */
.portrait { margin: 0; justify-self: center; }
.portrait img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -28px rgba(56, 38, 31, 0.55);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; justify-content: flex-start; }
  .hero__art img { width: min(78%, 300px); }
  .portrait { justify-self: start; }
  .portrait img { width: min(62%, 240px); }
}

/* ---------- Karten-Raster ----------------------------------------------- */
.grid {
  display: grid;
  gap: var(--gap);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }

.card {
  background: var(--travertine-soft);
  border: 1px solid var(--line);
  border-top: 3px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
}
.card h3 { margin-bottom: 0.55rem; color: var(--ink); }
.card p { font-size: 0.965rem; }
.card__num {
  display: block;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--terracotta-dark);
  margin-bottom: 0.6rem;
}

.card--dark {
  background: rgba(241, 233, 218, 0.05);
  border-color: var(--line-dark);
  border-top-color: var(--gold);
}
.card--dark h3 { color: var(--travertine); }
.card--dark .card__num { color: var(--gold); }

.card--flat {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.5rem 0 0;
}

/* ---------- Methoden-Blöcke --------------------------------------------- */
.method {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}
.method:last-of-type { border-bottom: 1px solid var(--line); }

.method__name {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1.2;
  margin: 0 0 0.4rem;
  letter-spacing: -0.015em;
}
.method__key {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}
.method__badge {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(217, 164, 65, 0.22);
  border-radius: var(--radius);
}

@media (max-width: 760px) {
  .method { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Zitat / Claim-Band ------------------------------------------ */
.quote {
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--travertine);
  margin: 0;
  max-width: 22ch;
}
.quote__source {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(241, 233, 218, 0.75);
  max-width: none;
}

/* ---------- Definitionslisten (Kontakt, Impressum) ---------------------- */
.dl {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 0.55rem 1.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
}
.dl dt { font-weight: 600; color: var(--data-blue); }
.dl dd { margin: 0; }

@media (max-width: 620px) {
  .dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .dl dd { margin-bottom: 0.9rem; }
}

/* ---------- Hinweis-Box ------------------------------------------------- */
.note {
  border-left: 3px solid var(--data-blue);
  background: rgba(27, 73, 101, 0.05);
  padding: 1.1rem 1.35rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.5rem;
}
.note p { font-size: 0.95rem; }
.note--gold { border-left-color: var(--terracotta); background: rgba(192, 91, 51, 0.07); }

/* ---------- Fakten-Zeile ------------------------------------------------ */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.facts li { margin: 0; }
.facts b {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section--dark .facts b { color: var(--gold); }
.facts span { font-size: 0.925rem; color: var(--ink-muted); }
.section--dark .facts span { color: rgba(241, 233, 218, 0.75); }

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
  background: var(--navy);
  color: rgba(241, 233, 218, 0.8);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.935rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.site-footer img { height: 42px; width: auto; margin-bottom: 1.25rem; }
.site-footer h4 {
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(241, 233, 218, 0.85); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer p { color: rgba(241, 233, 218, 0.7); }

.site-footer__bar {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(241, 233, 218, 0.6);
}

@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Rechtstexte ------------------------------------------------- */
.legal h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem); margin-top: 2.5rem; }
.legal h3 { margin-top: 1.75rem; }
.legal p, .legal li { font-size: 0.965rem; }

.legal dl.dl { margin-block: 1.25rem; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--travertine-deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.1em 0.35em;
}

/* ---------- Platzhalter (nur waehrend der Entstehung sichtbar) ----------- */
.todo {
  display: inline-block;
  background: repeating-linear-gradient(
    -45deg, #FDF6E3, #FDF6E3 8px, #F6EBCF 8px, #F6EBCF 16px);
  border: 1px dashed var(--signal-gold, #D9A441);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  color: #7A5A16;
  font-size: 0.9rem;
  line-height: 1.5;
}
.todo::before { content: "⚠ "; }

/* ---------- Bewegung reduzieren ----------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Druck ------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .btn-row { display: none; }
  body { background: #FFF; color: #000; font-size: 11pt; }
}
