/* aburossi brand kit v1.0 – Farben und Schrift aus implementation/tokens.css */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand-carmine: #BE243C;
  --ink: #191E23;
  --paper: #F5F3F0;
  --surface: #FFFFFF;
  --line: #E2DED8;
  --text: var(--ink);
  --text-muted: #59626C;
  --link: var(--brand-carmine);
  --bg: var(--paper);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: .25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --surface: #222930;
    --line: #343C45;
    --text: #F5F3F0;
    --text-muted: #AEB6BF;
    /* Karmin auf Tinte hat nur 2.8:1 – kleine Funktionsschrift bleibt hell */
    --link: #FFFFFF;
  }
  /* Auf Dunkel bleibt kleine Schrift hell; die Farbe trägt nur Balken und Quadrat */
  .card .adresse a { color: var(--link); }
  .card { border-top-color: color-mix(in srgb, var(--akzent) 65%, white); }
  .card:hover, .card:focus-within { border-color: color-mix(in srgb, var(--akzent) 65%, white); }
  .marke .quadrat { fill: color-mix(in srgb, var(--akzent) 65%, white); }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
}

.kopf, main, .fuss {
  width: min(70rem, 100% - 2rem);
  margin-inline: auto;
}

.kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: clamp(2rem, 6vw, 4rem) 0 1.5rem;
}
/* Unterseiten: Kopf etwas kompakter, Logo kleiner */
body:not(.start) .kopf { padding-bottom: 1rem; }
body:not(.start) .logo img { width: min(240px, 100%); }

.logo { display: inline-block; padding: .5rem 0; }
.logo img { display: block; width: min(320px, 100%); height: auto; }

.hauptnav { display: flex; gap: .25rem 1.5rem; flex-wrap: wrap; font-weight: 600; font-size: 1rem; }
.hauptnav a { color: var(--text); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.hauptnav a:hover { border-bottom-color: var(--brand-carmine); }

.vorstellung { margin-bottom: 2rem; }
.person { margin: 0 0 .25rem; color: var(--text); }
.intro { margin: 0; max-width: 38rem; color: var(--text-muted); }

/* ---- Projektseiten und Textseiten ---- */
.zurueck { margin: .5rem 0 1.5rem; font-size: 1rem; }
.zurueck a { color: var(--text-muted); }
.projektseite, .textseite { max-width: 44rem; }
.projekt.gross { font-size: 1.25rem; gap: .6rem; }
.projekt.gross .bild { width: 2.5rem; height: 2.5rem; }
.projekt.gross .marke { height: 1.2em; }
.projektseite h1, .textseite h1 {
  margin: .75rem 0 .75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
}
.projektseite h1::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: .375rem;
  margin-top: 1rem;
  background: var(--akzent);
}
.textseite h1::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: .375rem;
  margin-top: 1rem;
  background: var(--brand-carmine);
}
.lead { margin: 0 0 1.5rem; font-size: 1.25rem; line-height: 1.5; }
.fakten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: .3125rem solid var(--akzent);
  border-radius: var(--radius);
}
.fakten dt { font-size: .875rem; color: var(--text-muted); }
.fakten dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fakten a { color: var(--text); text-underline-offset: .2em; }

.fliesstext h2 { margin: 2rem 0 .75rem; font-size: 1.375rem; line-height: 1.25; }
.fliesstext p, .fliesstext ul { margin: 0 0 1rem; }
.fliesstext ul { padding-left: 1.25rem; }
.fliesstext li { margin-bottom: .4rem; }
.fliesstext a { color: var(--text); text-decoration-color: var(--brand-carmine); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.angebote li::marker { color: var(--akzent); }

.weiter { margin: 2.5rem 0 0; }
.knopf {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  background: var(--akzent);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.knopf:hover .pfeil { transform: translateX(.2rem); }
.knopf:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

/* Kurzer Karminbalken wie im Dossier vor jeder Überschrift */
.abschnitt {
  margin: 1rem 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.abschnitt::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: .375rem;
  margin-bottom: 1rem;
  background: var(--brand-carmine);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

/* Jede Unterseite hat ihre eigene Farbe (--akzent aus cards.json, "farbe").
   Karmin bleibt dem Hauptlogo als persönliche Signatur vorbehalten. */
.card {
  --akzent: var(--text-muted);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: .3125rem solid var(--akzent);
  border-radius: var(--radius);
  transition: border-color .15s ease;
}
.card:hover, .card:focus-within { border-color: var(--akzent); }

/* Projektzeile: kompaktes Zeichen + Slug, wie die Projekt-Lockups im Kit */
.projekt {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--text);
}
/* Zeichen so hoch wie die Versalhöhe des Namens, Quadrat auf Mitte der Kleinbuchstaben */
.domain { font-weight: 500; color: var(--text-muted); overflow-wrap: anywhere; }
.domain b { font-weight: 700; color: var(--text); }
.marke { height: 1.1em; width: auto; aspect-ratio: 124 / 80; flex: none; transform: translateY(.06em); }
.marke .klammer { fill: currentColor; }
.marke .quadrat { fill: var(--akzent); }
/* Eigenes Logo eines Projekts: auf hellem Kärtchen, damit dunkle Logos auch im Dunkelmodus lesbar bleiben */
.bild {
  width: 1.75rem; height: 1.75rem; flex: none;
  padding: .125rem;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: var(--radius);
}
@media (prefers-color-scheme: dark) { .bild { padding: .2rem; } }

section + section { margin-top: 2.5rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.card h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
}

.card p { margin: 0; }
.beschreibung { color: var(--text); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.meta dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.meta dd { margin: 0; }

.adresse { margin-top: auto !important; padding-top: .25rem; font-size: 1rem; font-weight: 600; }
.adresse a {
  color: var(--akzent);
  text-decoration: underline;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
/* Ganze Card klickbar, der Link bleibt das einzige Ziel */
.adresse a::after { content: ""; position: absolute; inset: 0; }
.adresse a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: 3px solid var(--text); outline-offset: 3px; }
.pfeil { display: inline-block; transition: transform .15s ease; }
.card:hover .pfeil { transform: translateX(.2rem); }

.fuss {
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--text-muted);
}
.fuss p { margin: 0 0 .35rem; }
.fuss a { color: var(--text-muted); text-underline-offset: .2em; }
.projekt-detail main, .text main { min-height: 50vh; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
