/* Webdesigner Nagold, Entwurf November 2026
   Layout: Kartenband oben, darunter ein Schachbrett aus grauen Flächen mit
   hellblauen Titelbalken, Text in 40rem-Spalten. Nur helles Farbschema.
   Abstandsstufen (12.11.2026): 0.5 / 0.75 / 1.25 / 2 / 3 / 6 rem.
   Aufgeräumt am 12.11.2026: Überschreibungen zusammengeführt, je Baustein eine Stelle. */

:root {
  --paper: #ffffff;
  --panel-a: #ecedef;
  --panel-b: #e1e3e7;
  --label: #d0e7f5;
  --bar: #c4def2;
  --navy: #200072;
  --navy-hover: #3415a8;
  --btn: #0e0e11;
  --btn-hover: #34353c;
  --ink: #16161b;
  --ink-2: #454852;
  --line: #c6c9d1;
  --footer: #2b2c31;
  --footer-ink: #ecedf0;
  --focus: #1a5fb4;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 74rem;
  --text: 40rem;
  --gutter-l: max(clamp(1.5rem, 5vw, 4rem), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(1.5rem, 5vw, 4rem), env(safe-area-inset-right, 0px));
  --header-bg: #0e0e11;
  --sky: #eef6fc;
  --prussian: #003153;
  --hover-red: #8b1a1a;
  --yellow: #ffd60a;
  --yellow-hover: #ffe55c;
  --turquoise: #5ce6d6;
  font-size: 100%;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--header-bg);
}

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

h1, h2, h3 { text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2rem, 3.2vw + 1rem, 3.25rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 750; }
h2 { font-size: clamp(1.625rem, 1.6vw + 1rem, 2.25rem); line-height: 1.18; letter-spacing: -0.015em; font-weight: 720; }
h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
small { font-size: 0.875rem; letter-spacing: 0.01em; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
a:hover { text-decoration-thickness: 0.12em; }
a, button, .button { touch-action: manipulation; }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.flow-lg { display: grid; gap: 1.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 300; background: var(--paper); padding: .5rem 1rem; }

/* ---------- Kopfzeile: Glas mit deckender Ausweichlösung ---------- */
.site-header {
  color: #fff;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: linear-gradient(90deg, #0e0e11 0%, #1a5034 55%, #1f6340 100%);
  box-shadow: 0 1px 10px rgba(22, 22, 27, 0.07);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: linear-gradient(90deg, rgba(14, 14, 17, 0.96) 0%, rgba(26, 80, 52, 0.96) 55%, rgba(31, 99, 64, 0.96) 100%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header { background: linear-gradient(90deg, #0e0e11 0%, #1a5034 55%, #1f6340 100%); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 2px solid #fff; }
}
.site-header :focus-visible { outline-color: #8cc8ff; }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem; margin-right: auto;
  font-weight: 780; font-size: 1.1875rem; letter-spacing: -0.01em; color: #fff; text-decoration: none; white-space: nowrap;
}
.brand img { width: 2.5rem; height: 2.5rem; border-radius: .5rem; flex: none; }
.brand-text { white-space: nowrap; min-width: 0; }
.brand-text span { color: #fff; }
.anchors { display: flex; gap: 0.25rem; }
.anchors a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  padding: 0.5rem 0.7rem; border-radius: .25rem; min-height: 2.75rem; display: inline-flex; align-items: center;
}
.anchors a:hover { background: rgba(255, 255, 255, 0.12); }
.header-actions { display: flex; gap: 0.5rem; align-items: center; }

.menu-button, .call-button {
  font: inherit; font-size: 1rem; font-weight: 650; letter-spacing: 0.01em;
  min-height: 2.75rem; padding: 0 1rem; border-radius: 0.25rem; cursor: pointer;
  display: inline-flex; align-items: center; text-decoration: none;
}
.menu-button { background: var(--yellow); color: #1c1c1c; border: 0; }
.menu-button:hover { background: var(--yellow-hover); }
.call-button { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.7); display: none; }

@media (max-width: 60rem) { .anchors { display: none; } }
@media (max-width: 40rem) {
  .call-button { display: inline-flex; }
  .brand { font-size: 1.0625rem; gap: .45rem; }
  .brand img { width: 2rem; height: 2rem; }
  .header-row { gap: .5rem; }
  .menu-button, .call-button { padding: 0 .8rem; }
}
/* "Webdesigner in Nagold" ist lang: Kopfzeile auf schmalen Handys enger setzen */
@media (max-width: 26rem) {
  .header-row { padding-left: max(1rem, env(safe-area-inset-left, 0px)); padding-right: max(1rem, env(safe-area-inset-right, 0px)); gap: .35rem; }
  .brand { font-size: .875rem; gap: .35rem; }
  .brand img { width: 1.75rem; height: 1.75rem; }
  .menu-button, .call-button { padding: 0 .55rem; font-size: .9375rem; }
}
@media (max-width: 23rem) { .call-button { display: none; } }

/* ---------- Seitenmenü: kommt von rechts, geht nach rechts ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(22, 22, 27, 0.38);
  opacity: 0; transition: opacity 220ms ease-out;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(24rem, 100%);
  background-color: var(--paper);
  /* freundlicher, leichter Verlauf: Hellblau, Lindgrün, zartes Rosé aus dem Logo */
  background-image: linear-gradient(165deg, #e6f2fb 0%, #eef0fb 30%, #eff7dd 62%, #fcebe8 100%);
  box-shadow: -8px 0 32px rgba(22, 22, 27, 0.18);
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
  --drawer-pr: max(1.25rem, env(safe-area-inset-right, 0px));
  padding: calc(1rem + env(safe-area-inset-top, 0px)) var(--drawer-pr) calc(1.25rem + env(safe-area-inset-bottom, 0px)) 1.25rem;
  overflow-y: auto;
}
.menu-open .scrim { opacity: 1; }
.menu-open .drawer { transform: translateX(0); transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
.drawer.closing { transition-timing-function: cubic-bezier(.8, .2, .8, 1); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer-head strong { font-size: 1rem; letter-spacing: 0.01em; color: var(--ink-2); }
.close-button {
  font: inherit; font-size: 1rem; font-weight: 650; min-height: 2.75rem; padding: 0 1rem;
  background: #fff; color: var(--ink); border: 0; border-radius: .25rem; cursor: pointer;
}
.close-button:hover { background: #fff; color: var(--hover-red); }
.drawer nav + nav { margin-top: 1.5rem; }
.drawer h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 0.5rem; font-weight: 700; }
.drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.drawer li a {
  display: flex; align-items: center; min-height: 2.75rem;
  padding: 0.5rem var(--drawer-pr) 0.5rem 0.75rem; margin-right: calc(-1 * var(--drawer-pr));
  color: var(--ink); text-decoration: none; font-weight: 600; border-radius: .25rem;
}
.drawer li a:hover { background: transparent; color: var(--hover-red); }
.drawer .drawer-contact a:hover { color: var(--hover-red); }
.drawer li a[aria-current="page"] { background: #fff; color: var(--navy); border-radius: .25rem 0 0 .25rem; box-shadow: 0 1px 4px rgba(22, 22, 27, 0.08); }
.drawer-contact { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid rgba(22, 22, 27, 0.15); display: grid; gap: .25rem; font-size: 1rem; }
.only-small { display: none; }
@media (max-width: 60rem) { .only-small { display: block; } }

/* ---------- Kartenband ---------- */
.map-band {
  position: relative;
  background-color: #e4e5e8;
  background-image: url("img/karte.jpg?v=123rf-1600");
  background-size: cover;
  background-position: 70% 50%;
}
/* Weißer Schleier, rechts heller: mildert die Farben des 123RF-Plans */
.map-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.84) 40%, rgba(255,255,255,.5) 66%, rgba(255,255,255,.42) 100%);
}
.map-band > .wrap { position: relative; }
@media (max-width: 48rem) {
  .map-band { background-position: 85% 50%; }
  .map-band::before { background: rgba(255,255,255,.84); }
}
.hero { padding-block: clamp(3rem, 7vw, 6rem); }
.hero-text { max-width: 36rem; display: grid; gap: 1.25rem; }
.hero .hero-text { max-width: 46rem; }
.hero-text .lead { max-width: 38rem; }
.hero-h1 { text-wrap: wrap; }
.hero-h1 .line { display: block; }
.h1-sub { display: block; margin-top: .5rem; font-size: .55em; line-height: 1.2; letter-spacing: -0.01em; font-weight: 650; color: var(--navy); }
.eyebrow { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.hero-contact { font-weight: 650; }
.hero-contact a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.hero-contact a:hover { text-decoration: underline; }
.subhero { padding-block: clamp(2.25rem, 5vw, 4rem); }

/* ---------- Knöpfe ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.6rem 1.25rem; border-radius: .25rem;
  background: var(--btn); color: #fff; text-decoration: none; letter-spacing: 0.005em;
  border: 2px solid var(--btn); font: inherit; font-size: 1.0625rem; font-weight: 650; cursor: pointer;
  transition: background-color 120ms ease-out;
}
.button:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.button:active, .menu-button:active, .close-button:active, .call-button:active { transform: scale(0.97); transition: transform 100ms ease-out; }
.button.ghost { background: transparent; color: var(--btn); }
.button.ghost:hover { background: rgba(14, 14, 17, 0.07); }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
/* Zwei hellblaue Abschnitte hintereinander: halber Abstand statt doppelt (DTH 12.11.2026: vor "Meine letzten Projekte" mehr Luft) */
.section.sky + .section.sky { padding-top: clamp(3rem, 6vw, 4.5rem); }
.section-head { display: grid; gap: .75rem; margin-bottom: 3rem; max-width: var(--text); }
.section-head p { color: var(--ink-2); }
.section-head.center { margin-inline: auto; text-align: center; }
.tint { background: var(--panel-a); }
.sky { background: var(--sky); }

/* Hellblauer Titelbalken, das Erkennungszeichen der alten Version */
.label-bar {
  display: block; background: var(--bar);
  padding: 0.35rem 0.75rem; margin-inline: -0.75rem;
}

/* ---------- Angebote: Schachbrett, oben viel Raum über dem Titelbalken ---------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; }
.offer {
  display: flex;
  padding: clamp(3.5rem, 6.5vw, 6rem) var(--gutter-r) clamp(2.75rem, 5vw, 4.5rem) var(--gutter-l);
}
.offer-inner { display: flex; flex-direction: column; gap: 1.25rem; max-width: 30rem; width: 100%; }
.offer:nth-child(odd) { justify-content: flex-end; }
.offer:nth-child(odd) .offer-inner { margin-right: clamp(0rem, 3vw, 3rem); }
.offer:nth-child(even) .offer-inner { margin-left: clamp(0rem, 3vw, 3rem); }
.offer:nth-child(4n+1), .offer:nth-child(4n+4) { background: var(--panel-a); }
.offer:nth-child(4n+2), .offer:nth-child(4n+3) { background: var(--panel-b); }
.offer ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.75rem; }
.offer .price { font-weight: 700; margin-top: auto; padding-top: 1.25rem; }
.offer .price span { font-weight: 400; color: var(--ink-2); }
.offer .button { align-self: flex-start; }
.offer.open .button { margin-top: auto; }
@media (max-width: 48rem) {
  .offers { grid-template-columns: 1fr; }
  .offer { justify-content: flex-start !important; }
  .offer .offer-inner { margin: 0 !important; }
  .offer:nth-child(odd) { background: var(--panel-a); }
  .offer:nth-child(even) { background: var(--panel-b); }
}

/* ---------- Grundausstattung ---------- */
.basics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.basics > div { display: grid; gap: 0.75rem; align-content: start; }
.basics p { color: var(--ink-2); }
@media (max-width: 56rem) { .basics { grid-template-columns: 1fr; } }

/* ---------- Ablauf: zwei breite Karten ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.75rem; align-content: start; padding: 2rem 2rem 2.25rem; background: var(--paper); border-radius: .375rem; box-shadow: 0 6px 28px rgba(22, 22, 27, 0.10); }
.steps li::before { content: "Schritt " counter(step); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.steps p { color: var(--ink-2); font-size: 1.0625rem; }
@media (max-width: 34rem) {
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .steps li { padding: 1.5rem 1.5rem 1.75rem; }
}

/* ---------- Referenzen: Browserfenster mit schwarzem Rahmen ---------- */
.refs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; max-width: 44rem; margin-inline: auto; }
.ref { display: grid; gap: .6rem; align-content: start; text-align: center; }
.ref .shot {
  box-shadow: 0 6px 28px rgba(22, 22, 27, 0.10); max-width: 100%; background: var(--paper); border: 1px solid #000; border-radius: .375rem;
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
}
.ref .shot img { width: 100%; height: auto; }
.ref .shot-bar { background: #000; color: #fff; padding: .4rem .8rem; font-size: .875rem; letter-spacing: .01em; }
.ref p { color: var(--ink-2); font-size: 1.0625rem; }
.ref h3 { margin-top: .6rem; }
/* Heben sich beim Hineinscrollen sanft ins Bild, jedes Mal neu (menu.js setzt die Klassen).
   Ohne JavaScript oder bei "Bewegung reduzieren" sofort sichtbar. */
.ref.einblenden { opacity: 0; transform: translateY(3rem); }
.ref.einblenden.da { opacity: 1; transform: none; transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.ref.einblenden.da + .ref.einblenden.da { transition-delay: .25s; }
.ref.einblenden.da + .ref.einblenden.da + .ref.einblenden.da { transition-delay: .5s; }

/* Platzhalter deutlich sichtbar */
.ph { outline: 2px dashed #b4570e; outline-offset: -4px; background: #fff6ec !important; color: #7a3a06 !important; }
.ph-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #fff0dc; color: #7a3a06; padding: .1rem .45rem; border-radius: .2rem; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 3rem; align-items: end; }
.portrait-img { width: 100%; height: auto; border-radius: .375rem; box-shadow: 0 6px 28px rgba(22, 22, 27, 0.10); }
@media (max-width: 44rem) {
  .about { grid-template-columns: 1fr; }
  .portrait-img { max-width: 14rem; }
}

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4rem; }
.contact-info { display: grid; gap: 1rem; align-content: start; }
.contact-info .tel { font-size: 1.375rem; font-weight: 700; }
.contact-info .tel a { color: var(--ink); text-decoration: none; }
.contact-info .tel a:hover { text-decoration: underline; }
form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 650; font-size: 1rem; }
.field .hint { font-size: .9375rem; color: var(--ink-2); }
input, select, textarea {
  font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid #8b8f9a; border-radius: .25rem; padding: .65rem .75rem; min-height: 2.75rem; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); }
textarea { min-height: 9rem; resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.error { color: #b3261e; font-size: .9375rem; font-weight: 600; }
.hp { position: absolute; left: -999px; }
.form-status { padding: .9rem 1rem; border-radius: .25rem; background: var(--label); font-weight: 600; }
.note { font-size: .9375rem; color: var(--ink-2); }
@media (max-width: 48rem) { .contact { grid-template-columns: 1fr; gap: 3rem; } }

/* ---------- Kontaktband "Lassen Sie uns kurz sprechen." ---------- */
.cta-band { background: var(--prussian); color: #fff; }
.cta-band a:not(.button) { color: #fff; }
/* Überschrift groß, Knöpfe auf allen Breiten darunter */
.cta-band .inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-block: 3rem; }
.cta-band h2 { font-size: clamp(2rem, 3.2vw + 1rem, 3rem); line-height: 1.12; letter-spacing: -0.02em; color: #fff; }
/* Farbverlauf in der Schrift: beginnt in Weiß, endet in leuchtendem Türkis.
   Ohne Unterstützung im Browser bleibt die Schrift weiß. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .cta-band h2 {
    background: linear-gradient(90deg, #ffffff 0%, #c9efff 35%, #5fe9ff 65%, #00f5c8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
/* Knöpfe: helles Türkis, beim Darüberfahren Farben getauscht */
.cta-band .button { background: var(--turquoise); color: #000; border-color: var(--turquoise); transition: background-color .12s ease-out, color .12s ease-out, border-color .12s ease-out; }
.cta-band .button:hover { background: #000; color: var(--turquoise); border-color: #000; }
@media (prefers-contrast: more), (forced-colors: active) {
  .cta-band h2 { background: none; -webkit-text-fill-color: currentColor; color: #fff; }
}

/* ---------- Unterseiten ---------- */
.crumbs { font-size: .9375rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 4rem; align-items: start; }
.prose { display: grid; gap: 1.25rem; max-width: var(--text); }
.prose h2 { margin-top: 2rem; font-size: clamp(1.4rem, 1vw + 1rem, 1.75rem); }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.75rem; }
.facts {
  position: sticky; top: calc(5rem + env(safe-area-inset-top, 0px));
  background: var(--panel-a); padding: 2rem; display: grid; gap: 1.25rem;
}
.facts dl { margin: 0; display: grid; gap: 1.25rem; }
.facts dt { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; }
.facts .big { font-size: 1.75rem; font-weight: 780; letter-spacing: -0.01em; color: var(--navy); }
@media (max-width: 56rem) {
  .page-grid { grid-template-columns: 1fr; gap: 3rem; }
  .facts { position: static; max-width: var(--text); }
}

.faq { display: grid; gap: 0.75rem; max-width: var(--text); }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: .25rem; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 650; min-height: 2.75rem; list-style-position: inside; }
.faq details > div { padding: 0 1.25rem 1.25rem; color: var(--ink-2); }

.siblings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.siblings a {
  display: grid; gap: 0.5rem; padding: 1.5rem 1.5rem 1.75rem; background: var(--paper); color: var(--ink);
  text-decoration: none; border-top: 3px solid var(--bar); min-height: 2.75rem;
}
.siblings a:hover { border-top-color: var(--navy); }
.siblings strong { font-size: 1.0625rem; }
.siblings span { font-size: .9375rem; color: var(--ink-2); }
@media (max-width: 56rem) { .siblings { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .siblings { grid-template-columns: 1fr; } }

/* ---------- Fußzeile mit Tannen-Silhouette ---------- */
/* Platz für die Tannen im letzten Abschnitt selbst (3rem Tannen plus 2rem Luft),
   damit hinter den Tannen dieselbe Farbe steht wie im Abschnitt darüber */
main > .section:last-child { padding-bottom: calc(clamp(3.5rem, 7vw, 6rem) + 5rem); }
.site-footer { position: relative; background: var(--footer); color: var(--footer-ink); }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 3rem;
  background: url("img/tannen.svg") repeat-x left bottom / auto 100%;
  pointer-events: none;
}
@media (forced-colors: active) { .site-footer::before { display: none; } }
.site-footer .inner { padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); display: grid; gap: 1rem; }
.site-footer p { max-width: 48rem; }
.site-footer a { color: var(--footer-ink); }
/* Drei Spalten: Copyright und Telefon / Angebote / Rechtliches, alle in derselben Schrift */
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem 2rem; padding-top: 1.25rem; font-size: .9375rem; letter-spacing: .01em; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col > * { min-height: 2.75rem; display: inline-flex; align-items: center; }
.footer-col a[aria-current="page"] { text-decoration-thickness: 2px; font-weight: 600; }
@media (max-width: 40rem) { .footer-cols { grid-template-columns: minmax(0, 1fr); } }
/* Mit der Maus dichter, mit dem Finger 44 px */
@media (pointer: fine) and (min-width: 40.01rem) { .footer-col > * { min-height: 2rem; } }

/* ---------- Nach-oben-Knopf, nur Startseite. Erscheint nach etwas Scrollen (menu.js) ---------- */
.nach-oben {
  position: fixed; z-index: 50;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: #1c1c1c;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.18);
  opacity: 0; visibility: hidden; transform: translateY(0.5rem);
  transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s linear .2s, background-color .12s ease-out;
  touch-action: manipulation;
}
.nach-oben.sichtbar { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nach-oben:hover { background: var(--yellow-hover); }
.nach-oben:active { transform: scale(0.94); transition: transform 100ms ease-out; }
.nach-oben:focus-visible { outline: 3px solid var(--prussian); outline-offset: 3px; }
@media (forced-colors: active) { .nach-oben { border: 2px solid ButtonText; } }

/* ---------- Bewegung und Kontrast nach Systemeinstellung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #1f2026; }
  a { text-decoration: underline; }
  .drawer { background-image: none; }
}
