/* AutoSajam – gemeinsames Stylesheet der Webseite.
   System-Schriften (keine externen Fonts), Hell/Dunkel über prefers-color-scheme,
   Farben aus dem App-Design (design/design-v2, app/src/theme). Kontraste >= 4,5:1 für Fließtext. */

:root {
  color-scheme: light dark;

  /* Marke */
  --blue: #0A5BD8;
  --blue-d: #0849B0;
  --yellow: #FFC94D;
  --orange: #FF6A00;
  --navy: #0E1726;

  /* Flächen und Text (hell) */
  --bg: #F2F4F8;
  --surface: #FFFFFF;
  --surface-2: #EAEFF7;
  --line: #D9DEE7;
  --text: #0E1726;
  --muted: #4A5568;
  --link: #0A4FBD;
  --focus: #0A5BD8;

  /* Kopfbereich (blau wie in der App) */
  --hero: #0A5BD8;
  --hero-2: #0849B0;
  --on-hero: #FFFFFF;
  --on-hero-muted: #DCE8FF;

  /* Aktion: Orange mit dunkler Schrift (6,3:1), weiße Schrift auf #FF6A00 wäre nur 2,9:1 */
  --accent: #FF6A00;
  --accent-hover: #FF8126;
  --on-accent: #0E1726;

  --ok: #1B6E3F;
  --ok-bg: #E3F5EA;
  --warn-bg: #FFF7DB;
  --warn-line: #E5B800;
  --warn-text: #5C4500;
  --ph-bg: #FFE08A;
  --ph-text: #3D2E00;

  --footer-bg: #0E1726;
  --footer-text: #C9D3E3;
  --footer-muted: #9AA8BF;

  --shadow: 0 1px 2px rgba(14, 23, 38, .05), 0 6px 18px rgba(14, 23, 38, .07);
  --radius: 20px;
  --radius-s: 12px;
  --wrap: 1120px;
  --gutter: 16px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0F17;
    --surface: #151B26;
    --surface-2: #1E2633;
    --line: #2A3342;
    --text: #F2F5FA;
    --muted: #A9B3C2;
    --link: #8DB8FF;
    --focus: #8DB8FF;

    --hero: #0B2E66;
    --hero-2: #08224D;
    --on-hero-muted: #C3D5F5;

    --accent: #FF7A1F;
    --accent-hover: #FF9147;
    --on-accent: #0B0F17;

    --ok: #5BD08E;
    --ok-bg: #12291C;
    --warn-bg: #2A240F;
    --warn-line: #8A6A00;
    --warn-text: #F2D27A;
    --ph-bg: #5A4708;
    --ph-text: #FFEFC2;

    --footer-bg: #070A10;
    --footer-text: #C9D3E3;
    --footer-muted: #93A0B5;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .25);
  }
}

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); font-weight: 850; }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-s);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

/* ---------- Kopfzeile ---------- */

.site-header {
  background: var(--hero);
  color: var(--on-hero);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--yellow); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-hero);
  text-decoration: none;
  flex-shrink: 0;
}
.logo img {
  width: 36px; height: 36px;
  border-radius: 22.37%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}
.wordmark {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -.03em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark span { color: var(--yellow); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--on-hero);
  text-decoration: none;
  font-weight: 650;
  font-size: .95rem;
  padding: 6px 2px;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.site-nav .lang {
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: .85rem;
  letter-spacing: .03em;
}
.site-nav .lang:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.nav-wide { display: none; }
@media (min-width: 720px) {
  .nav-wide { display: list-item; }
}

/* ---------- Startseite: Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--hero) 0%, var(--hero-2) 100%);
  color: var(--on-hero);
  padding: 20px 0 56px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 40px 0 80px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}
.eyebrow {
  display: inline-block;
  font-size: .9rem;
  font-weight: 650;
  color: var(--on-hero-muted);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 7.2vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -.035em;
  margin-bottom: .35em;
}
.hero h1 .hl { color: var(--yellow); }
.hero .lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--on-hero-muted);
  max-width: 34em;
  margin-bottom: 28px;
}
.hero .lead strong { color: var(--on-hero); }
.hero a:not(.btn):not(.store) { color: var(--on-hero); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 16px rgba(255, 106, 0, .28);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  color: var(--on-hero);
  border-color: rgba(255, 255, 255, .6);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-outline {
  color: var(--link);
  border-color: var(--line);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--link); }

/* App-Store-Hinweis (Platzhalter bis zur Freigabe) */
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 18px 6px 14px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, .35);
  line-height: 1.15;
}
.store svg { width: 24px; height: 24px; flex-shrink: 0; }
.store small { display: block; font-size: .72rem; font-weight: 600; color: #D0D6E0; letter-spacing: .02em; }
.store b { display: block; font-size: 1.02rem; font-weight: 750; }
.store[aria-disabled="true"] { cursor: default; }

/* ---------- Telefon-Illustration ---------- */

.phone {
  width: min(300px, 76vw);
  margin: 0 auto;
  background: #05070C;
  border-radius: 46px;
  padding: 11px;
  box-shadow: 0 30px 70px rgba(3, 18, 48, .45);
}
.phone-screen {
  background: #F2F4F8;
  color: #0E1726;
  border-radius: 36px;
  overflow: hidden;
  padding: 0 0 18px;
}
.phone-top {
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-top::before {
  content: "";
  width: 92px; height: 24px;
  border-radius: 14px;
  background: #05070C;
}
.mock-photo {
  margin: 4px 12px 0;
  height: 150px;
  border-radius: 18px;
  background: linear-gradient(160deg, #DCE8FB, #A9C4EE);
  color: #1E2A3D;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.mock-photo svg { width: 82%; height: auto; margin-bottom: 10px; }
.mock-count {
  position: absolute; right: 10px; bottom: 9px;
  background: rgba(14, 23, 38, .78);
  color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 7px;
}
.mock-body { padding: 12px 16px 0; }
.mock-title { font-weight: 800; font-size: 1rem; letter-spacing: -.01em; }
.mock-meta { font-size: .78rem; color: #4A5568; }
.mock-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.mock-price { font-weight: 900; font-size: 1.45rem; color: #0A5BD8; letter-spacing: -.02em; }
.mock-chip {
  font-size: .68rem; font-weight: 800;
  background: #E3F5EA; color: #1B6E3F;
  padding: 3px 8px; border-radius: 7px;
}
.mock-seal {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 12px 0;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(14, 23, 38, .07);
}
.mock-seal b { display: block; font-size: .82rem; }
.mock-seal small { display: block; font-size: .72rem; color: #4A5568; }
.seal {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
}
.seal svg { width: 60%; height: 60%; }
.mock-buttons { display: flex; gap: 8px; margin: 12px 12px 0; }
.mock-buttons span {
  flex: 1;
  height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800;
}
.mock-buttons .m1 { background: #E8F0FD; color: #0A4FBD; }
.mock-buttons .m2 { background: #FF6A00; color: #0E1726; flex: 1.3; }

/* ---------- Abschnitte ---------- */

.section { padding: 56px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 8px;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.section-alt .card { background: var(--bg); box-shadow: none; border: 1px solid var(--line); }
.card h3 { margin: 14px 0 6px; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.icon-box {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--link);
  display: flex; align-items: center; justify-content: center;
}
.icon-box svg { width: 26px; height: 26px; }
.card.feature-main .icon-box { background: var(--yellow); color: var(--navy); }

/* Schritte */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
@media (min-width: 900px) { .steps.row { grid-template-columns: repeat(4, 1fr); } }
.steps > li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 20px 20px 72px;
  box-shadow: var(--shadow);
}
.section-alt .steps > li { background: var(--bg); box-shadow: none; border: 1px solid var(--line); }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 20px; top: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (min-width: 900px) {
  .steps.row > li { padding: 72px 20px 20px; }
  .steps.row > li::before { top: 20px; }
}

/* Hinweis-/Warnkasten */
.note {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-left-width: 6px;
  border-radius: var(--radius-s);
  padding: 16px 18px;
  color: var(--text);
  margin: 24px 0;
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note strong:first-child { color: var(--warn-text); }
.note.info {
  background: var(--surface-2);
  border-color: var(--line);
  border-left-color: var(--blue);
}
.note.info strong:first-child { color: var(--text); }

.two-col { display: grid; gap: 16px; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; } }

.check-list, .x-list {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
}
.check-list li, .x-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
}
.check-list li::before, .x-list li::before {
  position: absolute;
  left: 0; top: .12em;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.check-list li::before { content: "\2713"; background: var(--ok-bg); color: var(--ok); }
.x-list li::before { content: "\2715"; background: var(--surface-2); color: var(--muted); }

/* ---------- Unterseiten ---------- */

.page-head {
  background: linear-gradient(180deg, var(--hero) 0%, var(--hero-2) 100%);
  color: var(--on-hero);
  padding: 18px 0 40px;
}
.page-head h1 { margin-bottom: .2em; }
.page-head p { color: var(--on-hero-muted); margin: 0; max-width: 40em; font-size: 1.08rem; }
.page-head a { color: var(--on-hero); }

.breadcrumb {
  font-size: .9rem;
  margin-bottom: 14px;
  color: var(--on-hero-muted);
}
.breadcrumb a { color: var(--on-hero); }

.page-body { padding: 32px 0 64px; }

.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  scroll-margin-top: 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--muted); }
.prose .meta { color: var(--muted); font-size: .95rem; }

.toc {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.toc h2 { font-size: 1rem; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin-bottom: 4px; break-inside: avoid; }

/* Entwurfs-Banner der Rechtstexte */
.draft {
  background: var(--warn-bg);
  border: 2px dashed var(--warn-line);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  margin-bottom: 28px;
  max-width: 760px;
}
.draft strong { display: block; font-size: 1.1rem; color: var(--warn-text); text-transform: uppercase; letter-spacing: .02em; }
.draft p { margin: 4px 0 0; font-size: .97rem; }

/* Platzhalter, die vor Veröffentlichung ersetzt werden müssen */
mark.ph {
  background: var(--ph-bg);
  color: var(--ph-text);
  font-weight: 700;
  padding: 0 .25em;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Tabellen (Datenarten, Fristen) */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border-radius: var(--radius-s); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 750; }
tr:last-child td { border-bottom: 0; }

/* Definitionen (Impressum) */
.facts {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 22px;
  margin: 0 0 1.5em;
}
.facts div {
  display: grid;
  gap: 2px 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 0; }
@media (min-width: 600px) { .facts div { grid-template-columns: 200px 1fr; } }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 650; }

/* FAQ */
.faq { display: grid; gap: 10px; margin: 0 0 1.5em; }
.faq details {
  background: var(--surface);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 18px;
  font-weight: 750;
  position: relative;
  border-radius: var(--radius-s);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--link);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 18px 16px; color: var(--text); }
.faq .answer > :last-child { margin-bottom: 0; }

/* Kontaktkarte */
.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 32px;
  max-width: 760px;
}
.contact-card .icon-box { flex-shrink: 0; }
@media (max-width: 479px) { .contact-card { flex-direction: column; gap: 12px; } }
.contact-card p { margin: 0 0 .4em; }
.contact-card .big { font-size: 1.2rem; font-weight: 800; }

/* Schritt-Pfad in der App (Profil > Obriši nalog) */
.path {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.path span {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1px 9px;
  position: relative;
}
.path span + span { margin-left: 14px; }
.path span + span::before {
  content: "\203A";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--muted);
  font-weight: 800;
}

/* ---------- Inserat-Vorschau (oglas.php) ---------- */

.listing {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.listing-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
@media (min-width: 700px) { .listing-photo { aspect-ratio: 16 / 10; } }
.listing-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.listing-photo .no-photo {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.listing-photo .no-photo svg { width: 40%; }
.badge-sold {
  position: absolute;
  left: 14px; top: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 8px;
}
.listing-body { padding: 20px 22px 24px; }
.listing-body h1 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-bottom: .25em; }
.listing-price { font-size: clamp(1.8rem, 6vw, 2.3rem); font-weight: 900; color: var(--link); letter-spacing: -.02em; margin: 0; }
.listing-price small { display: block; font-size: .95rem; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
}
@media (min-width: 600px) { .specs { grid-template-columns: repeat(4, 1fr); } }
.specs div {
  background: var(--bg);
  border-radius: var(--radius-s);
  padding: 10px 12px;
}
.specs dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.specs dd { margin: 0; font-weight: 800; }
.reviewed {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface-2);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  margin: 0 0 18px;
  font-size: .95rem;
}
.reviewed p { margin: 0; }
.listing-actions { display: grid; gap: 10px; }
@media (min-width: 600px) { .listing-actions { grid-template-columns: 1fr 1fr; } }
.listing-actions .btn, .listing-actions .store { width: 100%; justify-content: center; }
.listing .fine { font-size: .9rem; color: var(--muted); margin: 16px 0 0; }

/* ---------- 404 ---------- */

.error-page { text-align: center; padding-top: 56px; padding-bottom: 72px; }
.error-page .code {
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--link);
  line-height: 1;
  margin: 0 0 12px;
}
.error-page p { color: var(--muted); max-width: 32em; margin-left: auto; margin-right: auto; }
.error-page .cta-row { justify-content: center; margin-top: 24px; }
.error-page .en { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }

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

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0 calc(32px + env(safe-area-inset-bottom));
  font-size: .95rem;
}
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer .logo { color: #fff; }
.site-footer h2 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--footer-muted);
  margin: 0 0 10px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-claim { margin: 12px 0 0; color: var(--footer-muted); max-width: 26em; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: var(--footer-muted);
  font-size: .88rem;
}

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

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .page-head { background: none; color: #000; padding: 0; }
  .page-head p, .page-head a, .breadcrumb, .breadcrumb a { color: #000; }
}
