/* ==========================================================================
   Immobilien-Sachverständigenbüro Fritz N. Osterried
   Stylesheet v4 – responsiv, performanceoptimiert
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Schriften (selbst gehostet, subsetted – kein Google-Fonts-Request)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "PT Sans";
  src: url("../fonts/pt-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("../fonts/pt-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg-page:      #bdbdbd;
  --bg-card:      #ffffff;
  --bg-footer:    #222222;
  --accent:       #0095db;
  --accent-dark:  #0079b3;
  --text:         #555454;
  --text-strong:  #222222;
  --text-invert:  #bdbdbd;
  --border:       #e2e2e2;

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

  --card-width:   960px;
  --gutter:       40px;

  /* Einheitliche vertikale Abstände – hieraus ergibt sich der immer
     gleiche Abstand zwischen Inhalt und Footer auf ALLEN Seiten. */
  --space-top:    44px;   /* Inhaltsbeginn nach Titelbild */
  --space-bottom: 64px;   /* Inhaltsende bis Footer */
  --space-block:  32px;   /* Abstand zwischen Inhaltsblöcken */

  --radius: 3px;
  --shadow-card: 0 0 14px rgba(0, 0, 0, .22);
}

/* --------------------------------------------------------------------------
   3. Reset / Basis
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg-page);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover,
a:focus-visible { color: var(--accent-dark); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  color: var(--text-strong);
  font-weight: 400;
  margin: 0 0 .5em;
  line-height: 1.3;
}
h1 { font-size: 2rem; }        /* 32px */
h2 { font-size: 1.5rem; }      /* 24px */
h3 { font-size: 1.1875rem; }   /* 19px */

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.25em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-block) 0;
}

.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: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. Seitenrahmen (weiße Karte auf grauem Grund)
   -------------------------------------------------------------------------- */
/* Wichtig: Die Karte wächst NICHT auf Bildschirmhöhe. Dadurch ist der
   Abstand zwischen Inhaltsende und Footer auf jeder Seite exakt gleich
   (siehe --space-bottom) – unabhängig davon, wie lang der Inhalt ist. */
.page {
  width: 100%;
  max-width: var(--card-width);
  margin: 0 auto;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.wrap {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --------------------------------------------------------------------------
   5. Kopfbereich & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: var(--bg-card);
}

.site-logo { flex: 0 0 auto; line-height: 0; }
.site-logo img { width: 256px; height: auto; }

/* Navigations-Umschalter (nur mobil sichtbar) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 14px;
  font: inherit;
  font-size: .9375rem;
  color: var(--text-strong);
  cursor: pointer;
}
.nav-toggle .bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--text-strong);
  transition: background .2s;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text-strong);
  transition: transform .2s;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav li { margin: 0; position: relative; }

.site-nav a,
.site-nav .subnav-toggle {
  display: block;
  padding: 8px 10px;
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--text-strong);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .subnav-toggle:hover,
.site-nav .subnav-toggle:focus-visible {
  color: var(--accent);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}

.subnav-toggle .caret {
  display: inline-block;
  margin-left: 5px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

/* Aufklapp-Menü – Desktop */
.has-subnav > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 232px;
  background: var(--bg-card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  border-radius: var(--radius);
  padding: 6px 0;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-subnav:hover > ul,
.has-subnav:focus-within > ul,
.has-subnav > ul.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-subnav > ul a { padding: 7px 18px; }

/* Header-Navigation mobil */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 20px rgba(0, 0, 0, .16);
    display: none;
    z-index: 80;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  .site-header { position: relative; flex-wrap: wrap; }
  .site-nav.open { display: block; }

  .site-nav > ul { display: block; padding: 8px 0; }
  .site-nav a,
  .site-nav .subnav-toggle {
    width: 100%;
    text-align: left;
    padding: 12px var(--gutter);
    font-size: 1rem;
    white-space: normal;
  }
  .subnav-toggle { display: flex; justify-content: space-between; align-items: center; }
  .subnav-toggle .caret { transition: transform .2s; }
  .subnav-toggle[aria-expanded="true"] .caret { transform: translateY(2px) rotate(180deg); }

  .has-subnav > ul {
    position: static;
    box-shadow: none;
    border-radius: 0;
    min-width: 0;
    padding: 0 0 6px;
    background: #f7f7f7;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    display: none;
  }
  .has-subnav > ul.open { display: block; }
  .has-subnav > ul a { padding-left: calc(var(--gutter) + 18px); }
}

/* --------------------------------------------------------------------------
   6. Titelbild
   -------------------------------------------------------------------------- */
.hero { line-height: 0; }
.hero img {
  width: 100%;
  aspect-ratio: 9650 / 3631;   /* verhindert Layout-Sprünge (CLS) */
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   7. Inhaltsbereich
   Hier entsteht der EINHEITLICHE Abstand zum Footer:
   jede Seite nutzt dieselbe untere Innenabstands-Variable.
   -------------------------------------------------------------------------- */
.content {
  padding: var(--space-top) var(--gutter) var(--space-bottom);
}
.content > *:first-child { margin-top: 0; }
.content > *:last-child  { margin-bottom: 0; }

.lead { font-size: 1.0625rem; }

.section { margin-top: var(--space-block); }

/* Zweispaltiges Textlayout */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-block);
  align-items: start;
}
.cols-text-media { grid-template-columns: 1fr 1fr; }

@media (max-width: 767px) {
  .cols-text-media { grid-template-columns: 1fr; }
}

/* Leistungs-Kacheln */
.services,
.linkgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.services      { grid-template-columns: 1fr; }
.linkgrid      { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

@media (min-width: 620px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}

/* Sprungziele (z. B. Impressum#haftung) nicht bündig an den oberen Rand
   setzen, sondern mit etwas Luft darüber. */
:target { scroll-margin-top: 24px; }

/* Linktipps – schlichte Liste wie auf der Vorgängerseite:
   Name in Fettschrift, darunter die Adresse als Link. */
.linklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.linklist li { margin: 0 0 22px; }
.linklist li:last-child { margin-bottom: 0; }
.linklist strong { color: var(--text-strong); }
.linklist a { word-break: break-word; }

.services li,
.linkgrid li { margin: 0; }

.services a,
.linkgrid a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-strong);
  font-size: 1rem;
  background: #fff;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.services a:hover,
.services a:focus-visible,
.linkgrid a:hover,
.linkgrid a:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 149, 219, .16);
  text-decoration: none;
  color: var(--accent);
  transform: translateY(-1px);
}
.services svg { flex: 0 0 auto; width: 40px; height: 40px; }

/* Video-Vorschau (lädt YouTube erst nach Klick – DSGVO-freundlich & schnell) */
.video-embed {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-embed img { width: 100%; height: 100%; object-fit: cover; }
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .72);
  display: grid;
  place-items: center;
  transition: background .2s;
  pointer-events: none;
}
.video-embed:hover .play,
.video-embed:focus-visible .play { background: #e62117; }
.video-embed .play::before {
  content: "";
  border: 10px solid transparent;
  border-left: 17px solid #fff;
  margin-left: 5px;
}
.figure-caption {
  margin: 12px 0 0;
  font-size: .9375rem;
}

.badge-award {
  display: block;
  width: 260px;
  max-width: 100%;
  margin: var(--space-block) auto 0;
}

/* --------------------------------------------------------------------------
   8. Immobilienangebote (ImmobilienScout24-Einbindung)
   -------------------------------------------------------------------------- */
.offers { margin-top: var(--space-block); }

/* Startwert: wird von iframe-resizer sofort auf die tatsächliche
   Inhaltshöhe gesetzt. Dadurch bleibt der Abstand zum Footer konstant. */
.offers iframe {
  width: 100%;
  min-width: 100%;
  height: 900px;
  border: 0;
  display: block;
}

/* Solange keine Zustimmung vorliegt, hat der iFrame kein src-Attribut –
   dann darf er auch keinen Platz beanspruchen. */
.offers iframe:not([src]) { display: none; }

.offers-fallback {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fafafa;
  font-size: .9375rem;
}

.offers-note {
  margin-top: 18px;
  font-size: .875rem;
  color: #777;
}

/* --------------------------------------------------------------------------
   8a. Bilderreihe „Damals und heute“
   -------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: var(--space-block) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.timeline li { margin: 0; }
.timeline figure { margin: 0; }
.timeline img {
  width: 100%;
  height: auto;              /* Hochformat bleibt Hochformat */
  object-fit: cover;
  border-radius: var(--radius);
}

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

/* DIA-Logo und Jubiläumsbild nebeneinander */
.about-badges {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
}
.about-badges > *:first-child { flex: 0 0 140px; }
.about-badges img { width: 100%; height: auto; }
.about-badges > picture { flex: 1 1 200px; max-width: 260px; }
.timeline figcaption {
  margin-top: 8px;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text-strong);
}

/* --------------------------------------------------------------------------
   8d. Blog „Aktuelles“
   -------------------------------------------------------------------------- */
.posts {
  list-style: none;
  margin: var(--space-block) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px 26px;
}
.posts li { margin: 0; }

.post-card { height: 100%; display: flex; flex-direction: column; }

/* Der Platz für das Vorschaubild ist immer gleich hoch – so hoch wie ein
   YouTube-Vorschaubild (16:9) in voller Kartenbreite. Bilder mit anderem
   Seitenverhältnis werden nicht beschnitten, sondern auf diese Höhe
   skaliert und links ausgerichtet, bündig mit dem Text darunter. */
.post-card .thumb {
  display: block;
  position: relative;          /* gibt dem Bild eine eindeutige Bezugshöhe */
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
  line-height: 0;
}
.post-card .thumb img {
  position: absolute;
  top: 0;
  bottom: 0;                   /* zusammen mit top ist die Höhe eindeutig */
  left: 0;                     /* linksbündig mit dem Text darunter */
  height: 100%;
  width: auto;
  border-radius: var(--radius);
  /* Der Schatten grenzt auch Bilder mit weißem Hintergrund
     (Urkunden, Aushänge) sichtbar vom Seitenhintergrund ab. */
  box-shadow: 0 2px 10px rgba(0, 0, 0, .20);
  transition: box-shadow .2s ease, transform .2s ease;
}
.post-card a:hover .thumb img,
.post-card a:focus-visible .thumb img {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transform: translateY(-2px);
}

.post-card h2 {
  font-size: 1.125rem;
  margin: 0 0 4px;
  line-height: 1.35;
}
.post-card h2 a { color: var(--text-strong); }
.post-card h2 a:hover,
.post-card h2 a:focus-visible { color: var(--accent); text-decoration: none; }

.post-date {
  display: block;
  font-size: .875rem;
  color: #8a8a8a;
  margin-bottom: 8px;
}
.post-card p { font-size: .9375rem; margin-bottom: 0; }

/* Einzelbeitrag */
.post-media { margin: 0 0 var(--space-block); }

/* Obergrenze für die Bildhöhe: 495 px – genau so hoch wie ein
   YouTube-Vorschaubild (16:9) über die volle Textspalte von 880 px.
   Hochformate werden dadurch proportional kleiner, nie beschnitten und nie
   verzerrt, und bleiben linksbündig mit dem Text.
   Auf schmalen Bildschirmen greift zuerst max-width, dort bleibt also alles
   wie bisher – ein Hochformat wird nicht künstlich winzig. */
.post-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 495px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .20);
}
.post-media figcaption { margin-top: 10px; font-size: .9375rem; }

.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: var(--space-block);
  align-items: start;
}
.post-gallery img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .20);
}

/* Blättern zwischen Beiträgen */
.post-nav {
  margin-top: var(--space-block);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.post-nav a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-strong);
  font-size: .9375rem;
  transition: border-color .18s, box-shadow .18s;
}
.post-nav a:hover,
.post-nav a:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 149, 219, .14);
  text-decoration: none;
}
.post-nav .dir {
  display: block;
  font-size: .8125rem;
  color: var(--accent);
  margin-bottom: 3px;
}
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav .empty { border: 0; }

.post-back { margin-top: 22px; text-align: center; }

@media (max-width: 520px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; grid-column: 1; }
}

/* --------------------------------------------------------------------------
   8c. Formulare
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-size: .9375rem;
  color: var(--text-strong);
}
.field .hint { color: #888; font-weight: 400; }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--text-strong);
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: var(--radius);
  padding: 11px 13px;
}
textarea { min-height: 170px; resize: vertical; }

input:focus-visible,
textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid rgba(0, 149, 219, .35);
  outline-offset: 0;
}

.checkbox {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .9375rem;
  margin: 20px 0;
}
.checkbox input { margin-top: 4px; flex: 0 0 auto; width: 17px; height: 17px; }

/* Honigtopf gegen Spam – für Menschen unsichtbar, für Bots sichtbar */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: .875rem;
  color: #777;
  margin-top: 16px;
}

/* Hinweis zu einem einzelnen Feld */
.field-error {
  display: block;
  margin-top: 6px;
  font-size: .875rem;
  color: #c02b1d;
}
.checkbox + .field-error { margin-top: -10px; margin-bottom: 18px; }

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #c02b1d;
  background: #fdf6f5;
}
.checkbox input[aria-invalid="true"] { outline: 2px solid #c02b1d; outline-offset: 2px; }

/* --------------------------------------------------------------------------
   8b. Rechtstexte (Datenschutz, Impressum)
   -------------------------------------------------------------------------- */
.legal h2 {
  margin-top: var(--space-block);
  padding-top: 4px;
  font-size: 1.375rem;
}
.legal h3 {
  margin-top: 1.6em;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-strong);
}
.legal ul { padding-left: 1.15em; }

.legal-toc {
  background: #f6f6f6;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-top: var(--space-block);
}
.legal-toc h2 {
  margin: 0 0 .6em;
  font-size: 1rem;
  font-weight: 700;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 2;
  column-gap: 32px;
  font-size: .9375rem;
}
.legal-toc li { break-inside: avoid; }

@media (max-width: 600px) {
  .legal-toc ol { columns: 1; }
}

.legal-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafafa;
  padding: 20px 24px;
  margin: 1.4em 0;
}
.legal-box p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 11px 24px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover:not(:disabled) { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn:disabled { background: #9a9a9a; cursor: default; }

.legal address {
  font-style: normal;
  line-height: 1.75;
  margin-bottom: 1.25em;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-invert);
  padding: 34px var(--gutter) 38px;
  font-size: .9375rem;
}
.site-footer h2 {
  font-size: .9375rem;
  color: #fff;
  margin: 0 0 1.1em;
  font-weight: 700;
}
.site-footer a { color: var(--accent); }
.site-footer p { margin-bottom: 1em; }
.site-footer p:last-child { margin-bottom: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}
.footer-contact address {
  font-style: normal;
  line-height: 1.75;
}

.copyright {
  text-align: center;
  font-size: .9375rem;
  color: #4a4a4a;
  padding: 30px 20px 34px;
}
.copyright a { color: #3a3a3a; text-decoration: underline; }
.copyright a:hover { color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   10. Cookie-/Consent-Hinweis
   -------------------------------------------------------------------------- */
.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: rgba(34, 34, 34, .97);
  color: #e6e6e6;
  padding: 16px 20px;
  font-size: .875rem;
  line-height: 1.6;
  display: none;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .25);
}
.consent.show { display: block; }
.consent-inner {
  max-width: var(--card-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.consent p { margin: 0; }
.consent a { color: #6ec8f2; }
.consent button {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 26px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.consent button:hover { background: var(--accent-dark); }

/* --------------------------------------------------------------------------
   11. Responsive Feinschliff
   -------------------------------------------------------------------------- */
@media (max-width: 1039px) {
  .page { box-shadow: none; }
}

@media (max-width: 767px) {
  :root {
    --gutter: 22px;
    --space-top: 30px;
    --space-bottom: 44px;
    --space-block: 26px;
  }
  h1 { font-size: 1.6875rem; }  /* 27px */
  h2 { font-size: 1.3125rem; }  /* 21px */
  .site-logo img { width: 200px; }
  .copyright { padding: 22px 18px 26px; }
}

@media (max-width: 380px) {
  .site-logo img { width: 168px; }
}

/* --------------------------------------------------------------------------
   12. Druck
   -------------------------------------------------------------------------- */
@media print {
  body { background: #fff; }
  .page { box-shadow: none; max-width: none; }
  .site-nav, .nav-toggle, .consent, .video-embed .play { display: none !important; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a, a { color: #000; }
}
