/* Schrift lokal eingebunden (statt Google Fonts): kein Nachladen von fremden Servern,
   kein Umspringen von Ersatzschrift auf Source Sans beim Seitenwechsel, DSGVO-freundlich.
   Source Sans 3, SIL Open Font License; variable Datei für Strichstärken 400–700, Zeichensatz Latin. */
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: block;
}

:root {
  --orange: #f75900;
  --orange-dark: #bf4400;   /* Text/Buttons: erfüllt WCAG AA (≥4.5:1) auf Weiß und --bg-soft */
  --orange-darker: #a83c00;
  --grey: #505050;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg-soft: #faf6f3;
  --line: #ebe4de;
  --accent: var(--orange-dark);
  --surface: #ffffff;
  --header-bg: rgba(255,255,255,.96);
  --footer-bg: #505050;
  --mark-bg: #fff3c4;
  --mark-text: inherit;
  --art-line: #505050;
  --art-paper: #ffffff;
  --art-tint: #fdebe0;
  --art-outline: #f7b48c;
  --shadow: rgba(0,0,0,.08);
  --max: 1080px;
  color-scheme: light;
}

/* Dunkles Design: folgt der Systemeinstellung, außer man hat per Schalter „hell“ gewählt … */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #ff9257;        /* Links/Hervorhebungen auf dunklem Grund (≥7:1) */
    --grey: #f0ebe6;          /* Überschriften */
    --text: #e9e6e3;
    --muted: #a8a29d;
    --bg: #1c1b1a;
    --bg-soft: #262321;
    --surface: #24211f;
    --line: #3a3532;
    --header-bg: rgba(28,27,26,.92);
    --footer-bg: #121110;
    --mark-bg: #4d4013;
    --mark-text: #ffe9a8;
    --art-line: #d9d4cf;
    --art-paper: #2b2826;
    --art-tint: #3a2a20;
    --art-outline: #8a4a26;
    --shadow: rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
/* … oder per Schalter ausdrücklich „dunkel“ gewählt hat. */
:root[data-theme="dark"] {
  --accent: #ff9257;        /* Links/Hervorhebungen auf dunklem Grund (≥7:1) */
  --grey: #f0ebe6;          /* Überschriften */
  --text: #e9e6e3;
  --muted: #a8a29d;
  --bg: #1c1b1a;
  --bg-soft: #262321;
  --surface: #24211f;
  --line: #3a3532;
  --header-bg: rgba(28,27,26,.92);
  --footer-bg: #121110;
  --mark-bg: #4d4013;
  --mark-text: #ffe9a8;
  --art-line: #d9d4cf;
  --art-paper: #2b2826;
  --art-tint: #3a2a20;
  --art-outline: #8a4a26;
  --shadow: rgba(0,0,0,.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: var(--accent); }
a:hover { color: var(--orange); }

h1, h2, h3 { color: var(--grey); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: 1.6rem; margin: 2em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center;
  gap: 24px; min-height: 84px;
}
.logo img { display: block; height: 52px; width: auto; }
.nav { margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav li { position: relative; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 6px;
  color: var(--grey); text-decoration: none; font-weight: 600;
}
.nav a:hover { color: var(--accent); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { position: relative; }
/* absolut positioniert, damit der Unterstrich die Höhe der Navigation nicht verändert */
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px;
  background: var(--orange); border-radius: 2px;
}

.nav .sub {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 180px; padding: 6px; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px var(--shadow);
}
.nav li:hover > .sub, .nav li:focus-within > .sub { display: flex; }
.nav .sub a { font-weight: 500; }

.nav-toggle, .theme-toggle {
  background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 12px; font: inherit; font-weight: 600;
  color: var(--grey); cursor: pointer;
}
.nav-toggle { display: none; }
.theme-toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; }
/* Mond im hellen Design (wechselt zu dunkel), Sonne im dunklen Design (wechselt zu hell) */
.theme-toggle .icon-sun, .logo .logo-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun,
:root[data-theme="dark"] .logo .logo-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon,
:root[data-theme="dark"] .logo .logo-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun,
  :root:not([data-theme="light"]) .logo .logo-dark { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon,
  :root:not([data-theme="light"]) .logo .logo-light { display: none; }
}

@media (max-width: 820px) {
  .logo img { height: 40px; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         background: var(--surface); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .sub { display: flex; position: static; border: 0; box-shadow: none;
              padding: 0 0 0 16px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 64px;
}
.hero .eyebrow {
  color: var(--accent); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: .9rem; margin: 0 0 12px;
}
.hero h1 span { color: var(--orange); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero-media svg, .hero-media img { display: block; width: 100%; height: auto; }
/* Farben der Illustration an das Design anpassen (CSS hat Vorrang vor den SVG-Attributen) */
.hero-media svg { stroke: var(--art-line); }
.hero-media svg [fill="#fff"] { fill: var(--art-paper); }
.hero-media svg [fill="#fdebe0"] { fill: var(--art-tint); }
.hero-media svg [stroke="#f7b48c"] { stroke: var(--art-outline); }
.hero-media img { aspect-ratio: 6 / 5; object-fit: cover; border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.hero-media .sun { transform-origin: 408px 78px; animation: sun 6s ease-in-out infinite; }
@keyframes sun { 50% { transform: scale(1.12); } }
@media (max-width: 820px) {
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-media { order: -1; max-width: 340px; }
}
.hero p.lead { font-size: 1.3rem; max-width: 680px; color: var(--text); margin: 0 0 28px; }

.page-head { padding: 56px 0 8px; }
.page-head .eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase;
                      letter-spacing: .08em; font-size: .9rem; margin: 0 0 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 26px; border: 2px solid transparent; border-radius: 8px;
  /* 19px fett = „großer Text“ nach WCAG, dafür reicht 3:1 – das Logo-Orange schafft 3,3:1 */
  font-size: 1.1875rem; line-height: 1.4;
  background: var(--orange); color: #fff; font-weight: 700; text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px);
             box-shadow: 0 6px 16px rgba(247,89,0,.3); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--grey); border: 2px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Content ---------- */
.section { padding: 24px 0 64px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 24px 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px;
}
.card .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--orange-dark); color: #fff; font-weight: 700;
  margin-bottom: 12px;
}
.card p { margin: 0; }

.callout {
  background: var(--bg-soft); border-left: 4px solid var(--orange);
  border-radius: 0 10px 10px 0; padding: 20px 24px; margin: 28px 0;
}
.callout p { margin: .4em 0; }

.cta-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.cta-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px;
}
.cta-list .arrow { color: var(--orange); font-weight: 700; font-size: 1.3rem; line-height: 1.3; }

.survey-box {
  text-align: center; background: var(--bg-soft); border-radius: 14px;
  padding: 36px 24px; margin: 40px 0;
}
.survey-box p { margin: 0 0 16px; color: var(--muted); }

.empty {
  text-align: center; color: var(--muted); border: 2px dashed var(--line);
  border-radius: 12px; padding: 40px 24px; margin: 28px 0;
}

.placeholder { background: var(--mark-bg); color: var(--mark-text); padding: 0 4px; border-radius: 3px; }

.signature { color: var(--muted); font-style: italic; }

dl.contact { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
dl.contact dt { font-weight: 600; color: var(--grey); }
dl.contact dd { margin: 0; }
@media (max-width: 560px) { dl.contact { grid-template-columns: 1fr; } dl.contact dd { margin-bottom: 8px; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg); color: #e8e8e8; padding: 36px 0; font-size: 1rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer a { color: #fff; text-decoration: none; margin-left: 20px; }
.site-footer a:hover { color: #ffb088; text-decoration: underline; }
.site-footer nav a:first-child { margin-left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: .2em 0; }
