/* Gemeinsame Gestaltung der Unterseiten (Impressum, Datenschutz); Kopf, Footer und Werte wie auf der Startseite */
/* Schriften lokal eingebunden (keine Verbindung zu Google-Servern); Montserrat nur für den Logo-Schriftzug */
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

/* Markenfarben aus dem späteren Webauftritt (Repository hsing) */
:root {
  --green:       #8CBF32;
  --green-light: #B0D95D;
  --green-dark:  #6E9B25;
  --grey:        #575756;   /* offizielles HS-Grau, Weiß darauf 7,2:1 */
  --paper:       #FFFFFF;
  --ink:         #2A2A2A;
  --ink-2:       #404040;

  --font-logo: "Montserrat", system-ui, sans-serif;
  --font:      "Source Sans 3", system-ui, sans-serif;

  --fs-lead:  clamp(19px, 1.45vw, 22px);
  --fs-body:  17px;
  --fs-small: 15px;

  --gutter: clamp(16px, 4.4vw, 64px);
  --wrap:   1312px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: rgba(140, 191, 50, 0.25); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a, button { touch-action: manipulation; }
img { display: block; max-width: 100%; }
::selection { background: var(--green-light); color: var(--ink); }
:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; }
.footer :focus-visible { outline-color: var(--green-light); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sign { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 96px); }

/* ───────────── Logo (wie BrandLockup im späteren Auftritt) ───────────── */
.lockup {
  --u: 38px;
  display: inline-grid; grid-template-columns: auto auto; column-gap: calc(var(--u) * 0.32);
  align-items: end; color: var(--lockup-ink, var(--grey)); text-decoration: none;
}
a.lockup { padding: 7px 0; }   /* Trefferfläche ≥ 44 px */
.lockup img { height: var(--u); width: auto; max-width: none; grid-column: 1; grid-row: 1; }   /* Logo nie stauchen */
.lockup-name { grid-column: 2; grid-row: 1; font-family: var(--font-logo); font-weight: 600; font-size: calc(var(--u) * 0.88); line-height: 0.7; white-space: nowrap; }
.lockup-claim {
  grid-column: 1 / -1; grid-row: 2; margin-top: calc(var(--u) * 0.17);
  display: flex; justify-content: space-between; white-space: nowrap; width: 0; min-width: 100%;
  font-family: var(--font-logo); font-weight: 600; font-size: calc(var(--u) * 0.245);
  line-height: 1; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lockup-sub, #6B6B6B);
}
.lockup-claim i { font-style: normal; }

/* ───────────── Kopfleiste: weiß, Logo mittig, Startseite links, Telefon rechts ───────────── */
.bar { background: var(--paper); }
.bar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 84px; }
.bar-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; justify-content: center;
  font-size: var(--fs-body); text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color .2s var(--ease-out);
}
.bar-link:first-child { justify-self: start; }
.bar-link:last-child { justify-self: end; }
.bar-link svg { flex: none; }

/* ───────────── Rechtsseiten ───────────── */
.legal-page { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 112px); }
.legal-page .content { max-width: 760px; }
.legal-page h1 {
  margin: 0 0 clamp(28px, 4vw, 44px); font-weight: 600; text-transform: uppercase;   /* Versalien wie auf der Startseite */
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.005em; color: var(--ink); overflow-wrap: anywhere;
}
/* Datenschutz: höchstens so groß, dass „DATENSCHUTZERKLÄRUNG“ auch auf dem Handy in eine Zeile passt (≈ 12,5 × Schriftgröße) */
body:has(.footer-nav a[href="datenschutz.html"][aria-current="page"]) .legal-page h1 {
  font-size: min(clamp(32px, 4.4vw, 56px), calc((100vw - 2 * var(--gutter)) / 12.5));
}
.legal-page h2 { margin: 36px 0 8px; font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--ink); }
.legal-page p, .legal-page ul { margin: 0 0 10px; font-size: var(--fs-body); color: var(--ink-2); overflow-wrap: break-word; }
.legal-page ul { padding-left: 22px; }
.legal-page li { margin-bottom: 4px; }
.legal-page a { text-underline-offset: 4px; }

/* ───────────── Footer: grauer Abschluss, Logo und die zwei Pflichtlinks ───────────── */
.footer { background: var(--grey); color: var(--paper); --lockup-ink: #fff; --lockup-sub: rgba(255,255,255,0.82); padding: clamp(56px, 6vw, 88px) 0 32px; }
.footer .lockup { --u: 34px; justify-self: start; }
.footer-top { align-items: end; row-gap: 32px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 3vw, 44px); margin: 0; padding: 0; list-style: none; font-size: var(--fs-lead); }
.footer-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color .2s var(--ease-out); }
.footer-nav a[aria-current="page"] { text-decoration-color: rgba(255,255,255,0.6); }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: clamp(40px, 5vw, 64px) 0 0; font-size: var(--fs-small); color: rgba(255,255,255,0.86); }
/* taste-skill-ignore: Screenreader-Hilfsklasse, kein sichtbarer Strich */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hover nur mit Maus: auf Touch-Geräten bliebe der Zustand nach dem Tippen hängen */
@media (hover: hover) and (pointer: fine) {
  .bar-link:hover { text-decoration-color: var(--green); }
  .footer-nav a:hover { text-decoration-color: var(--green-light); }
}

/* ───────────── Responsiv ───────────── */
@media (max-width: 1023px) {
  .footer .sign { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
}
@media (max-width: 640px) {
  .bar-inner { min-height: 72px; }
  .lockup { --u: 30px; }
  .bar-link span { display: none; }
  .footer-nav ul { font-size: var(--fs-body); }
}
@media (max-width: 380px) {
  .bar .lockup-claim { display: none; }
}
/* sehr schmale Handys (320 px): Kopfleiste passt sonst nicht in die Breite */
@media (max-width: 359px) {
  .bar-inner { gap: 8px; }
  .bar .lockup { --u: 25px; }
  .bar a.lockup { padding: 10px 0; }   /* Trefferfläche bleibt ≥ 44 px */
}
@media (min-width: 1700px) {
  :root { --wrap: 1520px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
