/* Baumann VBH – statische Website
   Gestaltung nach Corporate Design (Stand Oktober 2026), Werte aus ../ci/farben/tokens.json */

@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben */
  --ink: #020206;
  --navy: #151453;
  --indigo: #222185;
  --blue: #4752ac;
  --blue-light: #ccdaff;
  --surface: #ffffff;
  --surface-tint: #f3f6ff;
  --line: #d9dff2;
  --text-muted: #55577a;
  --on-dark: #ffffff;

  /* Schriften */
  --font-display: Quicksand, Nunito, system-ui, sans-serif;
  --font-text: Inter, system-ui, Arial, sans-serif;

  /* Abstände */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  /* Radien: Flächen kantig, Bedienelemente leicht gerundet, Pill nur für Linienenden */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-pill: 999px;

  /* Logo: Breite und Schutzzone (halbe Höhe des vorderen Hexagons = 322 von 1899 Einheiten Logobreite) */
  --logo-w: clamp(200px, 60vw, 440px);
  --logo-zone: calc(var(--logo-w) * 322 / 1899);

  /* Seitenrand: space-6, auf schmalen Bildschirmen weniger */
  --gutter: clamp(var(--space-4), 6vw, var(--space-6));
}

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

html { background: var(--surface); }

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--surface);
  color: var(--ink);
  /* Stil body */
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 23px;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
}

strong { font-weight: 600; } /* Stil body-strong */

.page {
  width: min(860px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-top: var(--space-6);
  /* Platz für die Hexagon-Staffel unten rechts */
  padding-bottom: calc(var(--staffel-h) + var(--space-5));
}

/* Logo mit Schutzzone: unterhalb und rechts bleibt die halbe Höhe des vorderen Hexagons frei */
.logo {
  width: var(--logo-w);
  margin: 0 0 max(var(--space-6), var(--logo-zone));
  padding-right: var(--logo-zone);
  box-sizing: content-box;
  max-width: calc(100% - var(--logo-zone));
}
.logo img { display: block; width: 100%; height: auto; }

/* Firmenangaben */
.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  position: relative;
}
/* Akzentlinie in indigo mit runden Enden, angelehnt an die Strichenden der Wortmarke */
.info::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: var(--space-6);
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--indigo);
}
.info p { margin: 0 0 var(--space-4); }
.info .key { color: var(--text-muted); }

a {
  color: var(--indigo);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

/* Datenschutz als ruhiger Kasten in surface-tint, Ecken kantig */
.privacy {
  margin-top: var(--space-4);
  background: var(--surface-tint);
  border-radius: var(--radius-none);
}
.privacy summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
  /* Stil label */
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
}
.privacy summary::-webkit-details-marker { display: none; }
/* Pfeil als Kennzeichnung, dreht beim Öffnen */
.privacy summary::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: var(--space-1);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
.privacy[open] summary::before { transform: rotate(45deg); }
.privacy p {
  max-width: 46em;
  margin: 0;
  padding: 0 var(--space-3) var(--space-3);
}

/* Hexagon-Staffel: drei gleichseitige Hexagone auf der Spitze, dunkelstes vorn, angeschnitten */
:root { --staffel-w: clamp(150px, 18vw, 240px); --staffel-h: calc(var(--staffel-w) * 0.6); }
.staffel {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(var(--staffel-w) * 0.75);
  height: var(--staffel-h);
  overflow: hidden;
  pointer-events: none;
}
.staffel svg {
  display: block;
  width: var(--staffel-w);
  margin-left: calc(var(--staffel-w) * -0.25);
  height: auto;
}

@media (max-width: 560px) {
  .info { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .privacy summary::before { transition: none; }
}
