/* PCbit – Stylesheet. Hell und dunkel ueber CSS-Variablen.
   Standard folgt der Geraeteeinstellung, data-theme auf <html> ueberschreibt sie. */

/* Hausschriften, lokal eingebunden (keine Verbindung zu Google).
   Ueberschriften: Poppins, Fliesstext: Noto Sans. */
@font-face {
  font-family: "Noto Sans"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("/fonts/noto-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/noto-sans-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/poppins-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/poppins-700-latin.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --card: #ffffff;
  --text: #1a2330;
  --muted: #566274;
  --border: #dbe2ec;
  --accent: #3162af;
  --accent-strong: #234a87;
  --accent-soft: #e7eef9;
  --on-accent: #ffffff;
  --brand: #3162af;          /* Logofarbe, in beiden Modi gleich */
  --brand-strong: #234a87;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 16px rgba(16, 24, 40, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1620;
    --bg-alt: #141e2b;
    --card: #172334;
    --text: #e5ebf2;
    --muted: #9eadbf;
    --border: #273649;
    --accent: #7aa5e8;
    --accent-strong: #a6c4f2;
    --accent-soft: #1c2b42;
    --on-accent: #0b1220;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f1620;
  --bg-alt: #141e2b;
  --card: #172334;
  --text: #e5ebf2;
  --muted: #9eadbf;
  --border: #273649;
  --accent: #7aa5e8;
  --accent-strong: #a6c4f2;
  --accent-soft: #1c2b42;
  --on-accent: #0b1220;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-strong); }
a[href^="tel:"] { white-space: nowrap; }

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

h1, h2, h3, h4, .footer-title {
  font-family: "Poppins", "Noto Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.85rem, 4.2vw, 2.8rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 12px; }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.logo { width: 118px; height: auto; display: block; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li > a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 500;
  white-space: nowrap;
}
.main-nav li > a:hover { background: var(--accent-soft); color: var(--text); }
.main-nav li > a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; }
.nav-cta { display: none; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  display: inline-grid; place-items: center; cursor: pointer;
}
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

/* Knoepfe */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  text-decoration: none; border: 2px solid var(--accent);
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.btn-small { padding: 8px 14px; font-size: 0.95rem; }
.btn-phone { display: inline-flex; align-items: center; gap: 8px; }
.icon-phone { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-strong); }

/* Kopfbereich der Seiten */
.hero { padding: 56px 0 36px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.hero-home { padding: 80px 0 56px; background: linear-gradient(180deg, var(--accent-soft), var(--bg-alt)); }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 64ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-weight: 500; }
.facts li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }

/* Abschnitte */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-intro { max-width: 70ch; color: var(--muted); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin-bottom: 0.8em; }
.card a.more { font-weight: 600; text-decoration: none; }
.card a.more::after { content: " →"; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 12px;
}

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 0.55em; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.two-col { display: grid; gap: 40px; grid-template-columns: 1.3fr 1fr; align-items: start; }

.team { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.two-col .team { grid-template-columns: 1fr; }
.person { display: flex; gap: 16px; align-items: center; }
.person img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-soft); }
.person p { margin: 0; color: var(--muted); }
.person strong { color: var(--text); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.tags li { background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 4px 14px; font-size: 0.95rem; }

.note { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 8px; }

/* Haeufige Fragen */
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--card); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* Aufruf am Seitenende */
.cta-band { background: var(--brand); color: #ffffff; }
.cta-band .btn { background: #ffffff; color: var(--brand-strong); border-color: #ffffff; }
.cta-band .btn:hover { background: #e7eef9; border-color: #e7eef9; color: var(--brand-strong); }
.cta-band .btn-ghost { background: transparent; color: #ffffff; border-color: #ffffff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.cta-band :focus-visible { outline-color: #ffffff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-inner p { margin: 0; opacity: 0.9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Logos der Hersteller und Partner. Weisse Kacheln auch im Dunkelmodus, sonst verschwinden dunkle Logos. */
.partner-logos {
  list-style: none; margin: 0 0 1em; padding: 0;
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}
.partner-logos li {
  display: flex; align-items: center; justify-content: center;
  height: 84px; padding: 12px 16px;
  background: #ffffff; border: 1px solid var(--border); border-radius: 12px;
}
.partner-logos img { width: 100%; height: 100%; max-height: 44px; object-fit: contain; }
@media (max-width: 520px) {
  .partner-logos { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .partner-logos li { height: 64px; padding: 8px 10px; }
  .partner-logos img { max-height: 36px; }
}

/* Startseite: Foto im Kopfbereich */
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero-media { margin: 0; }
.hero-grid h1 { font-size: clamp(1.85rem, 3.3vw, 2.5rem); }
.nowrap { white-space: nowrap; }
.hero-media img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 12px 40px rgba(16, 24, 40, 0.18); }
.hero-media figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { max-width: 560px; }
}

/* Dezent fallende Nullen und Einsen hinter dem Kopfbereich (alle Seiten).
   Hinter dem Text links schwaecher (Maske), damit alles gut lesbar bleibt. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.rain-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55) 45%, #000 75%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55) 45%, #000 75%);
}
@media (max-width: 900px) {
  .rain-canvas {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6));
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6));
  }
}

/* Symbole auf den Leistungskacheln */
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 14px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
}
.card-icon svg { width: 26px; height: 26px; }

/* Vorher-nachher-Regler */
.compare {
  --pos: 50%;
  position: relative; max-width: 440px; width: 100%; justify-self: center;
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow);
  user-select: none; touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #ffffff; box-shadow: 0 0 6px rgba(0, 0, 0, 0.4); pointer-events: none;
}
.compare-handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #ffffff; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.compare-label {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(15, 22, 32, 0.72); color: #ffffff; font-size: 0.85rem; font-weight: 600; pointer-events: none;
}
.compare-label-before { left: 12px; }
.compare-label-after { right: 12px; }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare:has(.compare-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Sanftes Einblenden beim Scrollen (nur Startseite, nur mit Skript, nicht bei "weniger Bewegung") */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.15s, border-color 0.15s; }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }

/* Volltextsuche: Lupe im Header, Suchfenster als Dialog */
.search-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  display: inline-grid; place-items: center; cursor: pointer; padding: 0;
}
.search-toggle[hidden] { display: none; }
.search-toggle svg, .search-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.search-dialog {
  width: min(680px, calc(100% - 24px)); max-height: min(78vh, 720px); margin: 10vh auto auto; padding: 0;
  border: 1px solid var(--border); border-radius: 16px; background: var(--card); color: var(--text);
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.28); overflow: hidden;
}
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog::backdrop { background: rgba(15, 22, 32, 0.45); }
.search-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.search-icon { flex: none; color: var(--muted); }
.search-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 1.1rem; padding: 8px 0;
}
.search-input::-webkit-search-cancel-button { display: none; }
.search-close {
  flex: none; border: 1px solid var(--border); background: var(--bg-alt); color: var(--muted);
  border-radius: 8px; padding: 4px 8px; font: inherit; font-size: 0.8rem; cursor: pointer;
}
.search-results { overflow-y: auto; padding: 8px; }
.search-results ul { list-style: none; margin: 0; padding: 0; }
.search-results a {
  display: block; padding: 12px 14px; border-radius: 10px; color: var(--text); text-decoration: none;
}
.search-results a:hover, .search-results a:focus-visible, .search-results a.active { background: var(--accent-soft); outline: none; }
.search-results strong { display: block; font-family: "Poppins", "Noto Sans", system-ui, sans-serif; font-weight: 600; color: var(--accent); }
.search-results .snippet { display: block; margin-top: 2px; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.search-results mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); border-radius: 3px; padding: 0 1px; }
.search-hint { margin: 0; padding: 18px 14px; color: var(--muted); }
@media (max-width: 520px) {
  .search-dialog { margin-top: 12px; max-height: calc(100vh - 24px); }
}

/* AGB (Stand November 2026): Inhaltsverzeichnis, PDF-Link, Anker unter dem festen Header */
.pcbit-agb { overflow-wrap: anywhere; }
.pcbit-agb [id] { scroll-margin-top: 90px; }
.pcbit-agb h2 { margin-top: 2em; }
.pcbit-agb h4 { font-size: 1rem; margin: 1.2em 0 0.3em; }
.agb-stand { color: var(--muted); }
.agb-download a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--accent); color: var(--accent); font-weight: 600; text-decoration: none;
}
.agb-download a::before { content: "\2193"; font-weight: 700; }
.agb-download a:hover { background: var(--accent); color: var(--on-accent); }
.agb-inhalt { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 14px 20px; margin: 1.5em 0 2em; }
.agb-inhalt p { margin-bottom: 0.4em; }
.pcbit-agb .agb-inhalt ul { list-style: none; padding-left: 0; margin: 0; columns: 2 280px; column-gap: 32px; }
.agb-inhalt li { margin-bottom: 0.25em; break-inside: avoid; }

/* Fusszeile */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 24px; font-size: 0.97rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-title { font-weight: 700; margin-bottom: 0.4em; }
.footer-subtitle { margin-top: 1.2em; }
.footer-nav { list-style: none; margin: 0 0 1.4em; padding: 0; }
.footer-nav li + li { margin-top: 4px; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; }
.hours .nw { white-space: nowrap; }
.hours-note { color: var(--muted); margin-top: 0.4em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); margin-top: 32px; padding-top: 18px; color: var(--muted); }
.footer-links a { margin-left: 14px; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social-links a {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.social-links svg { width: 20px; height: 20px; }
.theme-choice { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.theme-choice button { background: var(--card); color: var(--text); border: 0; padding: 8px 12px; cursor: pointer; font: inherit; font-size: 0.93rem; }
.theme-choice button + button { border-left: 1px solid var(--border); }
.theme-choice button[aria-checked="true"] { background: var(--accent); color: var(--on-accent); }

/* Lange Texte (Rechtliches) */
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }

/* Begriff und Erklaerung (Geschichte, Orte) */
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 1em; }
.facts-list dt { font-weight: 700; color: var(--accent); }
.facts-list dd { margin: 0; }

/* Referenzen */
.ref-list { columns: 3 240px; column-gap: 32px; padding-left: 1.2em; margin: 0 0 1em; }
.ref-list li { break-inside: avoid; margin-bottom: 0.5em; }

/* Kontaktformular */
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
}
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.form-note { font-size: 0.93rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.card .btn { margin-top: 4px; }

/* Handy und Tablet */
/* Mittlere Breiten: Menue enger, Telefon nur als Symbol, damit nichts umbricht */
@media (max-width: 1180px) {
  .main-nav li > a { padding: 8px 9px; }
  .header-actions .phone-text { display: none; }
  .header-actions .btn-phone { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
}

@media (max-width: 1023px) {
  /* Handy-Menue: Burger-Knopf rechts, Panel klappt unter der Kopfzeile auf und liegt ueber der Seite */
  .header-inner { gap: 10px; }
  .header-actions { margin-left: auto; order: 2; }
  .header-actions .phone-text { display: none; }
  .header-actions .btn-phone { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
  .nav-toggle {
    order: 3; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
    border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer;
  }
  .burger { position: relative; display: block; width: 18px; height: 12px; }
  .burger span {
    position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
  }
  .burger span:nth-child(1) { top: 0; }
  .burger span:nth-child(2) { top: 5px; }
  .burger span:nth-child(3) { top: 10px; }
  .nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 5px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 5px; transform: rotate(-45deg); }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 72px); overflow-y: auto;
    padding: 4px 16px 20px; background: var(--card);
    border-bottom: 1px solid var(--border); box-shadow: 0 18px 36px rgba(16, 24, 40, 0.16);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .main-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li + li { border-top: 1px solid var(--border); }
  .main-nav li > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 4px; border-radius: 0; font-size: 1.05rem; background: none;
  }
  .main-nav li > a::after { content: "\203A"; color: var(--muted); font-size: 1.4rem; line-height: 1; }
  .main-nav li > a:hover { background: none; color: var(--accent); }
  .main-nav li > a[aria-current="page"] { background: none; color: var(--accent); font-weight: 600; }
  .main-nav li > a[aria-current="page"]::after { color: var(--accent); }
  .nav-cta { display: grid; gap: 10px; margin-top: 14px; }
  .nav-cta .btn { width: 100%; text-align: center; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(15, 22, 32, 0.38); }
  .two-col { grid-template-columns: 1fr; }
  .footer-links a { margin: 0 14px 0 0; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero-home { padding: 56px 0 40px; }
  .section { padding: 48px 0; }
  .btn { width: 100%; text-align: center; }
  .hero-actions, .cta-actions { width: 100%; }
  .facts-list { grid-template-columns: 1fr; gap: 2px; }
  .facts-list dd { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .main-nav li > a, .card { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
}

/* Fotos */
.photos { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); align-items: start; }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.photo figcaption { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .photos { grid-template-columns: 1fr; } }

/* Fehlerseite des Kontaktformulars: Text retten */
.rescue { margin-bottom: 28px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.rescue h2 { margin-top: 0; }
.rescue-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rescue label { display: block; font-weight: 600; margin-bottom: 6px; }
.rescue textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-alt); color: var(--text); font: inherit; resize: vertical; }

/* Sehr schmale Handys (bis 360 px): Logo und Kopfzeilen-Knoepfe etwas kleiner, damit alles in eine Zeile passt */
@media (max-width: 360px) {
  .logo { width: 100px; }
  .header-inner { gap: 6px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-phone, .theme-toggle, .search-toggle, .nav-toggle { width: 38px; height: 38px; }
}
