/* Open Sans (variable, 300–800), lokal eingebunden – SIL Open Font License, siehe ../fonts/OFL.txt */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans-latin-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/open-sans-latin-wght-normal.woff2') format('woff2');
}

:root {
  --navy: #354775;
  --orange: #f48222;
  --ink: #27304f;
  --text: #3d4566;
  --muted: #5a6485;
  --label: #6b7797;
  --accent: #b3232a;
  --tile: #f2f4f8;
  --line: #e3e7ef;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Kopf ---------- */

.stripes {
  flex-shrink: 0;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--navy) 0 14px, #fff 14px 28px);
}

.site-header {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 18px 20px;
  background: var(--orange);
}
.site-header a { display: block; }
.site-header img { display: block; width: 290px; max-width: 100%; height: auto; }
.legal .site-header img { width: 260px; }

/* ---------- Startseite ---------- */

.home main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 32px;
  text-align: center;
}

.intro { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 820px; }

.home h1 {
  margin: 0;
  color: var(--navy);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.intro p { margin: 0; color: var(--text); font-size: 17px; line-height: 1.55; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact a {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 18px 20px;
  background: var(--tile);
  border-radius: 12px;
  color: var(--ink);
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(39, 48, 79, .12); }
.contact svg { flex-shrink: 0; width: 24px; height: 24px; }

.contact .text { display: flex; flex-direction: column; gap: 2px; }
.contact .label {
  color: var(--label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact .value { color: var(--navy); font-size: 18px; font-weight: 600; }

.closing { margin: 0; color: var(--text); font-size: 16px; line-height: 1.5; }
.closing strong { display: block; margin-top: 12px; color: var(--navy); font-weight: 600; }

/* ---------- Rechtliche Seiten ---------- */

.legal main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 56px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.back {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}
.back svg { width: 18px; height: 18px; }

.legal h1 {
  margin: 12px 0 8px;
  color: var(--navy);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal h2 {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
}

.legal h3 { margin: 10px 0 0; color: var(--navy); font-size: 19px; font-weight: 700; line-height: 1.35; }
.legal h4 { margin: 4px 0 0; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5; }
.legal p, .legal ul { margin: 0; }
.legal ul { padding-left: 24px; }
.legal .prose a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.box { padding: 18px 22px; background: var(--tile); border-radius: 12px; }
.box strong, .imprint strong { color: var(--navy); font-weight: 600; }

.imprint {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.imprint div { display: flex; flex-direction: column; gap: 6px; }
.imprint .label {
  color: var(--label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Fuß ---------- */

.site-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 20px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.site-footer strong { color: var(--navy); font-weight: 600; }
.site-footer .sep { display: none; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { padding: 12px 4px; color: var(--muted); }
.site-footer nav a:hover { color: var(--accent); }
.site-footer nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ---------- ab Tablet / Desktop ---------- */

@media (min-width: 768px) {
  .stripes { height: 14px; background: repeating-linear-gradient(-45deg, var(--navy) 0 22px, #fff 22px 44px); }

  .site-header { padding: 28px 40px; }
  .site-header img { width: 420px; }
  .legal .site-header { padding: 18px 40px; }

  .home main { justify-content: center; gap: 36px; padding: 48px 40px 40px; }
  .intro { gap: 22px; }
  .home h1 { font-size: 56px; }
  .intro p { font-size: 21px; }
  .contact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .contact a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 28px; border-radius: 14px; }
  .contact svg { width: 26px; height: 26px; }
  .contact .text { gap: 10px; }
  .contact .label { font-size: 15px; }
  .contact .value { font-size: 21px; }
  .closing { font-size: 18px; }
  .closing strong { display: inline; margin-top: 0; }

  .legal main { padding: 56px 40px 72px; font-size: 17px; }
  .legal h1 { margin-top: 20px; font-size: 48px; }
  .legal h2 { margin-top: 32px; padding-top: 24px; font-size: 28px; }
  .legal h3 { margin-top: 12px; font-size: 20px; }
  .legal h4 { font-size: 17px; }
  .imprint { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
  .imprint .label { font-size: 14px; }

  .site-footer { flex-direction: row; justify-content: space-between; padding: 22px 40px; font-size: 15px; text-align: left; }
  .site-footer br { display: none; }
  .site-footer .sep { display: inline; }
  .site-footer nav { gap: 28px; }
  .site-footer nav a { padding: 4px 0; }
}

@media (min-width: 1200px) {
  .site-header, .legal .site-header { padding-left: 120px; padding-right: 120px; }
  .site-footer { padding-left: 120px; padding-right: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact a { transition: none; }
  .contact a:hover { transform: none; }
}
