/* ==========================================
   B&B SCHLÜSSELDIENST - STYLESHEET

   Aufbau:
   1. Farben und Variablen
   2. Dark Mode
   3. Grundeinstellungen
   4. Header und Navigation
   5. Buttons
   6. Hero
   7. Allgemeine Sections
   8. Leistungen
   9. Ablauf
   10. Schließanlagen
   11. Einsatzgebiet
   12. FAQ
   13. Kontakt
   14. Footer
   15. Mobile Anrufleiste
   16. Responsive Design
   17. Barrierefreiheit
========================================== */


/* ==========================================
   1. FARBEN, SCHRIFTEN UND VARIABLEN

   Hier kannst du die Grundfarben der
   gesamten Website zentral verändern.
========================================== */

:root {
  color-scheme: light;

  /* Helle Hintergrundfarben */
  --bg: #EDF0EC;
  --surface: #F7F9F6;

  /* Textfarben */
  --fg: #13211B;
  --muted: #52615A;

  /* Trennlinien */
  --line: #CBD3CC;

  /* Gold / Messing */
  --brass: #C99A3B;
  --brass-ink: #82570A;

  /* Dunkle Grüntöne */
  --forest: #10241D;
  --forest-2: #183429;

  /* Text auf dunklem Hintergrund */
  --on-forest: #EAF0EA;
  --on-forest-muted: #A3B6AB;

  /* Schriftarten */
  --f-display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  /* Seitenabstände inkl. Smartphone Safe Area */
  --gutter: max(
    clamp(16px, 4vw, 40px),
    env(safe-area-inset-left, 0px)
  );

  --gutter-r: max(
    clamp(16px, 4vw, 40px),
    env(safe-area-inset-right, 0px)
  );

  /* Safe Areas für Geräte mit Notch */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}


/* ==========================================
   2. DARK MODE

   Automatischer Dark Mode, wenn das
   Betriebssystem dunkel eingestellt ist.

   Zusätzlich kann über data-theme="dark"
   auf dem HTML-Element der Dark Mode
   manuell erzwungen werden.
========================================== */

@media (prefers-color-scheme: dark) {

  :root:not([data-theme="light"]) {
    --bg: #0B1511;
    --surface: #111F19;

    --fg: #E6EDE7;
    --muted: #9BAEA3;
    --line: #243930;

    --brass-ink: #DDB363;

    --forest: #0F2119;
    --forest-2: #173025;

    color-scheme: dark;
  }
}

/* Manuelle Dark-Mode-Einstellung */
:root[data-theme="dark"] {
  --bg: #0B1511;
  --surface: #111F19;

  --fg: #E6EDE7;
  --muted: #9BAEA3;
  --line: #243930;

  --brass-ink: #DDB363;

  --forest: #0F2119;
  --forest-2: #173025;

  color-scheme: dark;
}


/* ==========================================
   3. GRUNDEINSTELLUNGEN
========================================== */

/* Einheitliche Größenberechnung */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;

  background: var(--bg);
  color: var(--fg);

  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;

  overflow-x: hidden;
}

/* Färbt den oberen Safe-Area-Bereich dunkel */
body::before {
  content: "";

  position: fixed;
  inset: 0 0 auto;

  height: env(safe-area-inset-top, 0px);

  background: var(--forest);
  z-index: 60;
}

/* Bilder bleiben innerhalb ihrer Container */
img {
  max-width: 100%;
}

/* Standardfarbe für Links */
a {
  color: inherit;
}

/* Tastaturfokus für bessere Bedienbarkeit */
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

/*
  Zentraler Inhaltscontainer.

  max-width begrenzt die Breite des Inhalts.
  Die seitlichen Abstände passen sich
  automatisch an die Bildschirmgröße an.
*/
.wrap {
  width: 100%;
  max-width: 1240px;

  margin-inline: auto;

  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* Einheitliche Überschriften */
h1,
h2,
h3 {
  margin: 0;

  font-family: var(--f-display);
  font-stretch: 72%;
  font-weight: 800;

  line-height: 0.98;
  letter-spacing: -0.01em;

  text-wrap: balance;
}

/* Kleine Überschrift oberhalb der Haupttitel */
.eyebrow {
  margin: 0 0 18px;

  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: var(--brass-ink);
}


/* ==========================================
   4. HEADER UND NAVIGATION

   Der Header ist fest oben positioniert.

   JavaScript fügt beim Scrollen die
   Klasse .solid hinzu und entfernt sie
   wieder am Seitenanfang.
========================================== */

.site-header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 50;

  padding-top: env(safe-area-inset-top, 0px);

  transition:
    background 0.25s,
    box-shadow 0.25s;
}

/* Hintergrund nach dem Scrollen */
.site-header.solid {
  background: var(--forest);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Positionierung von Logo und Navigation */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
  height: 72px;
}

/* Logo inklusive Schlüssel-Symbol */
.logo {
  display: flex;
  align-items: center;

  gap: 12px;

  color: #fff;
  text-decoration: none;
}

/* SVG-Schlüssel */
.logo svg {
  width: 34px;
  height: 34px;

  flex: none;
}

/* B&B Schriftzug */
.logo b {
  display: block;

  font-family: var(--f-display);
  font-stretch: 70%;
  font-weight: 850;
  font-size: 30px;

  line-height: 1;
  letter-spacing: 0.01em;
}

/* Kleiner Text unter dem Logo */
.logo small {
  display: block;

  margin-top: 3px;

  font-family: var(--f-mono);
  font-size: 10.5px;

  letter-spacing: 0.2em;
  text-transform: uppercase;

  color: var(--on-forest-muted);
}

/* Navigationslinks */
.nav {
  display: flex;
  align-items: center;

  gap: 30px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;

  color: var(--on-forest);
  opacity: 0.85;
}

.nav a:hover {
  opacity: 1;
  color: var(--brass);
}


/* ==========================================
   5. BUTTONS

   .btn = Goldener Standardbutton
   .ghost = Transparenter Button

   Beide Varianten können überall auf
   der Webseite wiederverwendet werden.
========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  padding: 15px 24px;

  border: 2px solid var(--brass);
  background: var(--brass);
  color: #1A1303;

  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 700;

  text-decoration: none;
  cursor: pointer;

  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.15s;
}

/* Hover für goldene Buttons */
.btn:hover {
  background: #DDB15A;
  border-color: #DDB15A;
}

/* Transparente Buttonvariante */
.btn.ghost {
  background: transparent;
  color: #fff;

  border-color: rgba(255, 255, 255, 0.4);
}

.btn.ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Kleiner Button in der Navigation */
.nav .btn {
  padding: 11px 18px;

  font-size: 15px;
  opacity: 1;
  color: #1A1303;
}

.nav .btn:hover {
  color: #1A1303;
}


/* ==========================================
   6. HERO SECTION

   Fullscreen Hero mit Hintergrundbild.

   Das Bild liegt im HTML innerhalb von
   .hero-media.

   Hier kannst du ändern:
   - Bildposition
   - Overlay
   - Überschriftengröße
   - Abstände
========================================== */

.hero {
  position: relative;

  min-height: calc(
    100vh - env(safe-area-inset-top, 0px) -
    env(safe-area-inset-bottom, 0px)
  );

  min-height: calc(
    100svh - env(safe-area-inset-top, 0px) -
    env(safe-area-inset-bottom, 0px)
  );

  display: flex;
  flex-direction: column;

  background: var(--forest);
  color: var(--on-forest);

  overflow: hidden;
  isolation: isolate;
}

/* Hintergrundbild füllt den kompletten Hero */
.hero-media {
  position: absolute;
  inset: 0;

  z-index: -2;
}

.hero-media img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  /*
    Hier die sichtbare Bildposition ändern.

    68% center = Motiv etwas weiter rechts.
    50% center = mittige Bildposition.
  */
  object-position: 68% center;
}

/*
  Dunkles Overlay über dem Hero-Bild.

  Erster Verlauf:
  Macht die linke Seite für den Text dunkel.

  Zweiter Verlauf:
  Dunkelt den unteren Bereich ab.

  Dritter Verlauf:
  Dunkelt den oberen Navigationsbereich ab.
*/
.hero::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: -1;

  background:
    linear-gradient(
      90deg,
      rgba(9, 21, 16, 0.9) 0%,
      rgba(9, 21, 16, 0.68) 34%,
      rgba(9, 21, 16, 0.12) 64%,
      rgba(9, 21, 16, 0) 100%
    ),
    linear-gradient(
      0deg,
      rgba(9, 21, 16, 0.65) 0%,
      rgba(9, 21, 16, 0) 30%
    ),
    linear-gradient(
      180deg,
      rgba(9, 21, 16, 0.55) 0%,
      rgba(9, 21, 16, 0) 22%
    );
}

/* Vertikale Positionierung des Hero-Inhalts */
.hero-main {
  flex: 1;

  display: flex;
  align-items: center;

  padding-block: 130px 40px;
}

/* Kleine goldene Zeile im Hero */
.hero-eyebrow {
  color: var(--brass);
}

/* Hauptüberschrift */
.hero h1 {
  max-width: 9.5em;

  font-size: clamp(58px, 9.6vw, 148px);
  text-transform: uppercase;

  color: #fff;
}

/* Goldener Teil der Hero-Überschrift */
.hero h1 em {
  font-style: normal;
  color: var(--brass);
}

/* Beschreibung unter der Überschrift */
.hero .lead {
  max-width: 34em;

  margin: 28px 0 36px;

  font-size: clamp(17px, 1.5vw, 20px);

  color: var(--on-forest);
  opacity: 0.92;
}

/* CTA-Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;
}

/* Telefonnummer im Hauptbutton */
.hero-actions .btn .num {
  font-family: var(--f-mono);
  font-size: 15.5px;
  font-weight: 500;

  letter-spacing: 0.02em;
}


/* ------------------------------------------
   Hero Faktenleiste
------------------------------------------ */

.facts {
  border-top: 1px solid rgba(255, 255, 255, 0.16);

  background: rgba(9, 21, 16, 0.55);
  backdrop-filter: blur(6px);
}

.facts ul {
  display: flex;
  flex-wrap: wrap;

  gap: 10px 44px;

  margin: 0;
  padding: 18px 0;

  list-style: none;

  font-family: var(--f-mono);
  font-size: 12.5px;

  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: var(--on-forest);
}

.facts li {
  display: flex;
  align-items: center;

  gap: 10px;
}

/* Kleine goldene Quadrate */
.facts li::before {
  content: "";

  width: 8px;
  height: 8px;

  background: var(--brass);

  flex: none;
}


/* ==========================================
   7. ALLGEMEINE SECTION-EINSTELLUNGEN
========================================== */

/* Berücksichtigt die feste Navigation bei Ankerlinks */
section {
  scroll-margin-top: 72px;
}

/* Wiederverwendbarer vertikaler Abstand */
.pad {
  padding-block: clamp(72px, 10vw, 140px);
}

/*
  Section-Header mit zwei Spalten.

  Links: Überschrift
  Rechts: Beschreibung
*/
.sec-head {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.1fr);

  align-items: end;

  gap: clamp(24px, 5vw, 80px);

  margin-bottom: clamp(40px, 6vw, 72px);
}

/* Abschnittsüberschriften */
.sec-head h2 {
  font-size: clamp(44px, 6.4vw, 92px);
  text-transform: uppercase;
}

/* Abschnittsbeschreibungen */
.sec-head p {
  max-width: 36em;

  margin: 0;

  color: var(--muted);
}

/* Kleine Eyebrow-Überschriften behalten ihren Abstand */
.sec-head .eyebrow {
  margin-bottom: 18px;
}


/* ==========================================
   8. LEISTUNGEN

   Statt klassischer Karten wird hier
   eine übersichtliche Liste verwendet.
========================================== */

.services {
  margin: 0;
  padding: 0;

  list-style: none;

  border-top: 2px solid var(--fg);
}

/* Einzelner Leistungseintrag */
.services li {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.1fr)
    auto;

  align-items: baseline;

  gap: clamp(12px, 3vw, 48px);

  padding: 26px 0;

  border-bottom: 1px solid var(--line);

  transition:
    padding 0.2s,
    background 0.2s;
}

/* Leichte Hervorhebung beim Hover */
.services li:hover {
  background: var(--surface);

  padding-left: 18px;
  padding-right: 18px;
}

/* Name der Dienstleistung */
.services h3 {
  font-size: clamp(28px, 3.1vw, 42px);
  text-transform: uppercase;
}

/* Beschreibung der Dienstleistung */
.services p {
  max-width: 34em;
  margin: 0;

  color: var(--muted);
}

/* Kategorie-Label */
.tag {
  justify-self: start;

  padding: 4px 9px;

  border: 1px solid currentColor;

  font-family: var(--f-mono);
  font-size: 11.5px;

  letter-spacing: 0.12em;
  text-transform: uppercase;

  white-space: nowrap;

  color: var(--brass-ink);
}

/* Alternative Label-Farbe */
.tag.alt {
  color: var(--muted);
}


/* ------------------------------------------
   Dekorativer Schlüsselprofil-Trenner
------------------------------------------ */

/* Schlüsselprofil über die gesamte Bildschirmbreite */
.bitting {
  display: block;

  width: 100vw;
  max-width: none;
  height: 56px;

  margin-left: calc(50% - 50vw);

  color: var(--fg);
}


/* ==========================================
   9. ABLAUF

   Dunkelgrüner Hintergrund mit vier
   automatisch nummerierten Schritten.
========================================== */

.process {
  margin-top: -1px;

  background: var(--forest);
  color: var(--on-forest);
}

.process .eyebrow {
  color: var(--brass);
}

.process .sec-head p {
  color: var(--on-forest-muted);
}

.process .sec-head .eyebrow {
  color: var(--brass);
}

.process h2 {
  color: #fff;
}

/* Vier Schritte nebeneinander */
.steps {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 0;

  margin: 0;
  padding: 0;

  list-style: none;

  border-top: 1px solid rgba(255, 255, 255, 0.2);

  /* Automatische Nummerierung */
  counter-reset: step;
}

/* Einzelner Schritt */
.steps li {
  position: relative;

  padding: 28px 28px 8px 0;

  counter-increment: step;
}

/* Trennlinien zwischen den Schritten */
.steps li + li {
  padding-left: 28px;

  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

/*
  Große Nummern 1 bis 4.

  Die Nummerierung wird automatisch erzeugt,
  es müssen keine Zahlen ins HTML geschrieben werden.
*/
.steps li::before {
  content: counter(step);

  display: block;

  margin-bottom: 14px;

  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 800;
  font-size: 76px;

  line-height: 1;

  color: var(--brass);
}

/* Schritt-Überschrift */
.steps h3 {
  margin-bottom: 10px;

  font-size: 26px;
  text-transform: uppercase;

  color: #fff;
}

/* Schritt-Beschreibung */
.steps p {
  margin: 0;

  font-size: 16px;

  color: var(--on-forest-muted);
}


/* ==========================================
   10. SCHLIESSANLAGEN

   Zweispaltig: links Text und Button,
   rechts ein Beispiel-Schließplan als Tabelle.
   Die Tabelle scrollt auf kleinen Displays
   seitlich in ihrem eigenen Container.
========================================== */

.lock-sec {
  background: var(--surface);

  border-bottom: 1px solid var(--line);
}

.lock-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(0, 1fr);

  align-items: start;

  gap: clamp(32px, 5vw, 80px);
}

/* Verhindert, dass lange Wörter oder die Tabelle die Spalte sprengen */
.lock-grid > * {
  min-width: 0;
}

/*
  Überschrift bewusst kleiner als bei den anderen Abschnitten,
  weil "Berechtigungen" ein langes Wort ist.
  Zu lange Wörter werden getrennt statt in die Nachbarspalte zu laufen.
*/
.lock-grid h2 {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.02;

  text-transform: uppercase;

  max-width: 100%;

  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Textabsätze */
.lock-grid .txt {
  display: grid;

  gap: 18px;

  max-width: 32em;
  margin-top: 28px;

  color: var(--muted);
}

.lock-grid .txt p {
  margin: 0;
}

/* Erster Absatz etwas größer und dunkler */
.lock-grid .txt p:first-child {
  font-size: 1.08em;

  color: var(--fg);
}


/* ------------------------------------------
   Schließplan (Tabelle)
------------------------------------------ */

.plan {
  min-width: 0;
  max-width: 100%;
  margin: 0;

  border-top: 2px solid var(--fg);
}

/* Beschriftung über der Tabelle */
.plan-cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  gap: 16px;

  padding: 12px 0;

  font-family: var(--f-mono);
  font-size: 12px;

  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: var(--muted);
}

/* Seitliches Scrollen auf dem Smartphone */
.plan-scroll {
  max-width: 100%;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.plan table {
  width: 100%;
  min-width: 460px;

  border-collapse: collapse;

  font-size: 14.5px;
}

.plan th,
.plan td {
  padding: 12px 8px;

  border-bottom: 1px solid var(--line);

  text-align: center;
}

/* Spaltenköpfe (Türen) */
.plan thead th {
  padding-bottom: 10px;

  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  vertical-align: bottom;

  color: var(--muted);
}

/* Zeilenköpfe (Schlüssel) */
.plan tbody th {
  padding-left: 0;

  font-weight: 600;
  text-align: left;

  white-space: nowrap;
}

.plan tbody th small {
  display: block;

  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;

  letter-spacing: 0.04em;

  color: var(--muted);
}

/* Goldenes Quadrat = Schlüssel öffnet diese Tür */
.plan td i {
  display: inline-block;

  width: 14px;
  height: 14px;

  background: var(--brass);
}

/* Strich = Schlüssel öffnet diese Tür nicht */
.plan td.no {
  color: var(--line);
}

/* Generalschlüssel-Zeile leicht hervorgehoben */
.plan tbody tr:first-child th,
.plan tbody tr:first-child td {
  background: color-mix(in srgb, var(--brass) 12%, transparent);
}

/* Erklärung unter der Tabelle */
.plan-note {
  margin: 16px 0 0;

  font-size: 14.5px;
  color: var(--muted);
}


/* ==========================================
   11. EINSATZGEBIET
========================================== */

/* Zweispaltiges Layout */
.area {
  display: grid;

  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(0, 1fr);

  align-items: start;

  gap: clamp(32px, 6vw, 100px);
}

/* Große Ortsüberschrift */
.area h2 {
  font-size: clamp(52px, 8vw, 124px);
  text-transform: uppercase;
}

/* Zweite Zeile in Gold */
.area h2 span {
  display: block;
  color: var(--brass-ink);
}

/* Einleitungstext */
.area p.intro {
  max-width: 30em;

  margin: 26px 0 0;

  color: var(--muted);
}

/* Ortsliste mit zwei Spalten */
.towns {
  columns: 2;
  column-gap: 32px;

  margin: 0;
  padding: 0;

  list-style: none;

  border-top: 2px solid var(--fg);
}

/* Einzelne Orte */
.towns li {
  display: flex;
  justify-content: space-between;

  gap: 12px;

  padding: 13px 0;

  border-bottom: 1px solid var(--line);

  font-weight: 600;

  break-inside: avoid;
}

/* Postleitzahlen */
.towns li small {
  align-self: center;

  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;

  letter-spacing: 0.06em;

  color: var(--muted);
}

/* Hinweis unter der Ortsliste */
.towns-note {
  margin: 16px 0 0;

  font-size: 14.5px;
  color: var(--muted);
}


/* ==========================================
   12. FAQ / HÄUFIGE FRAGEN

   Verwendet native HTML-Details-Elemente.
   Keine JavaScript-Bibliothek erforderlich.
========================================== */

.faq-wrap {
  background: var(--surface);

  border-block: 1px solid var(--line);
}

/* FAQ-Überschrift einspaltig */
.faq-head {
  grid-template-columns: minmax(0, 1fr);
}

/* Maximale Breite der Fragen */
.faq {
  max-width: 860px;
}

/* Einzelner FAQ-Eintrag */
.faq details {
  border-bottom: 1px solid var(--line);
}

/* Oberste Trennlinie */
.faq details:first-child {
  border-top: 2px solid var(--fg);
}

/* Klickbare Frage */
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 22px 0;

  list-style: none;
  cursor: pointer;

  font-family: var(--f-display);
  font-stretch: 78%;
  font-weight: 750;

  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;

  text-transform: uppercase;
}

/* Browser-Standardpfeil ausblenden */
.faq summary::-webkit-details-marker {
  display: none;
}

/* Plus-Zeichen rechts neben der Frage */
.faq summary::after {
  content: "+";

  flex: none;

  font-family: var(--f-mono);
  font-size: 28px;
  font-weight: 400;

  color: var(--brass-ink);

  transition: transform 0.2s;
}

/* Plus wird beim Öffnen zu einem X gedreht */
.faq details[open] summary::after {
  transform: rotate(45deg);
}

/* Antworttext */
.faq details p {
  max-width: 40em;

  margin: 0 0 24px;

  color: var(--muted);
}


/* ==========================================
   13. KONTAKT
========================================== */

.contact {
  background: var(--forest-2);
  color: var(--on-forest);
}

/* Kleine Gold-Überschrift */
.contact .eyebrow {
  color: var(--brass);
}

/* Kontaktüberschrift */
.contact h2 {
  max-width: 11em;

  font-size: clamp(46px, 7vw, 104px);
  text-transform: uppercase;

  color: #fff;
}

/* Besonders große Telefonnummer */
.phone-big {
  display: block;

  margin: 36px 0 10px;

  font-family: var(--f-display);
  font-stretch: 70%;
  font-weight: 850;

  font-size: clamp(54px, 11vw, 170px);

  line-height: 1;
  letter-spacing: -0.01em;

  font-variant-numeric: tabular-nums;

  color: var(--brass);
  text-decoration: none;

  overflow-wrap: anywhere;
}

.phone-big:hover {
  color: #E3B861;
}

/* Text unter der Telefonnummer */
.contact-note {
  margin: 0;
  color: var(--on-forest-muted);
}


/* ------------------------------------------
   Drei Informationsspalten
------------------------------------------ */

.contact-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 0;

  margin-top: clamp(40px, 6vw, 72px);

  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Einzelne Informationsspalten */
.contact-grid > div {
  padding: 24px 24px 0 0;
}

/* Trennlinien zwischen Spalten */
.contact-grid > div + div {
  padding-left: 24px;

  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

/* Kleine Spaltenüberschriften */
.contact-grid h3 {
  margin-bottom: 10px;

  font-family: var(--f-mono);
  font-stretch: 100%;
  font-size: 12px;
  font-weight: 500;

  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: var(--on-forest-muted);
}

/* Informationen */
.contact-grid p {
  margin: 0;
  font-size: 18px;
}


/* ==========================================
   14. FOOTER
========================================== */


/* ==========================================
   FOOTER – B&B SCHLÜSSELDIENST
========================================== */

.site-footer {
  background: var(--forest);
  color: var(--on-forest-muted);
  font-size: 14px;
}

/* Footer-Inhalt – ursprüngliches Layout */
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  gap: 10px 30px;
  padding-block: 26px;
}

/* Copyright und weitere Footer-Texte */
.site-footer span {
  font-family: var(--f-mono);
  font-size: 12px;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a {
  text-decoration: none;
}

/* ==========================================
   FOOTER NAVIGATION
========================================== */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
}

.footer-links a {
  font-family: var(--f-mono);
  font-size: 12px;

  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: var(--on-forest-muted);
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--brass);
}

/* ==========================================
   NARWEB CREDIT – DEZENT
========================================== */

.site-footer .footer-credit {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;

  letter-spacing: 0.02em;
  text-transform: none;

  color: var(--on-forest-muted);
  opacity: 0.55;

  text-decoration: none;
  white-space: nowrap;

  transition: opacity 0.2s ease;
}

.site-footer .footer-credit:hover {
  opacity: 0.9;
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

  .site-footer .wrap {
    gap: 14px 24px;
  }

  .footer-links {
    width: 100%;
    gap: 12px 20px;
  }

  .site-footer .footer-credit {
    font-size: 10px;
    margin: 0;
    padding: 0;
    border: none;
    width: auto;
  }

  
}



/* ==========================================
   MOBILE ANRUFLEISTE
   Standardmäßig auf Desktop ausgeblendet
========================================== */

.callbar {
  display: none;
}




/* ==========================================
   MOBILE NAVIGATION
========================================== */

/* Desktop: keine mobile Navigation */
.menu-toggle,
.mobile-menu,
.menu-backdrop {
  display: none;
}

@media (max-width: 980px) {

  /* Burger-Button ohne Rahmen */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 0;
    background: transparent;
    color: #fff;

    cursor: pointer;
    position: relative;
    z-index: 52;
  }

  .menu-toggle svg {
    display: block;
    width: 26px;
    height: 26px;
  }

  /* Burger wird zum X */
  .menu-toggle.active svg {
    display: none;
  }

  .menu-toggle.active::after {
    content: "×";
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    color: #fff;
  }

  /* Dunkle Überlagerung */
  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;

    z-index: 49;
    background: rgba(5, 15, 10, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      opacity .3s ease,
      visibility .3s ease;
  }

  .menu-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Mobile Menü */
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;

    padding: 22px var(--gutter) 32px;

    background: var(--forest);
    border-top: 1px solid rgba(255,255,255,0.1);

    z-index: 51;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;

    transition:
      opacity .25s ease,
      visibility .25s ease,
      transform .25s ease;
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Navigationslinks */
  .mobile-menu a {
    display: block;
    padding: 15px 0;

    border-bottom: 1px solid rgba(255,255,255,0.1);

    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    text-decoration: none;

    color: #fff;

    transition: color .2s ease;
  }

  .mobile-menu a:hover {
    color: var(--brass);
  }

  /* Anruf-Button im Menü */
  .mobile-menu .mobile-call {
    margin-top: 20px;
    padding: 15px 20px;

    background: var(--brass);
    border: 2px solid var(--brass);

    color: #1A1303;
    font-family: var(--f-body);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-transform: none;
  }

  .mobile-menu .mobile-call:hover {
    background: #DDB15A;
    color: #1A1303;
  }
}




/* ==========================================
   16. RESPONSIVE DESIGN
========================================== */


/* ------------------------------------------
   TABLET - maximal 980px

   - Normale Navigationslinks ausblenden
   - Section-Header einspaltig
   - Ablauf in zwei Spalten
   - Kontaktinformationen untereinander
------------------------------------------ */

@media (max-width: 980px) {

  /* Navigation vereinfachen */
  .nav a:not(.btn) {
    display: none;
  }

  /* Layoutbereiche einspaltig */
  .sec-head,
  .area,
  .lock-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Ablauf: zwei Schritte pro Zeile */
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Erster Schritt in der zweiten Reihe */
  .steps li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  /* Trennlinie oberhalb der zweiten Reihe */
  .steps li:nth-child(n + 3) {
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  /* Kontaktinformationen untereinander */
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Schließanlagen: Überschrift darf hier wieder größer sein */
  .lock-grid h2 {
    font-size: clamp(40px, 8vw, 64px);
  }

  .contact-grid > div,
  .contact-grid > div + div {
    padding: 20px 0;

    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
}


/* ------------------------------------------
   SMARTPHONE - maximal 700px

   - Größere Lesbarkeit auf kleinen Displays
   - Hero-Text weiter unten
   - Leistungen einspaltig
   - Ablauf untereinander
   - Fixierte Anrufleiste am unteren Rand
------------------------------------------ */

@media (max-width: 700px) {

  body {
    font-size: 16.5px;

    /* Platz für die fixierte Anrufleiste */
    padding-bottom: calc(
      68px + env(safe-area-inset-bottom, 0px)
    );
  }

  /* Kompakter Header */
  .site-header .wrap {
    height: 64px;
  }

  /* Header-Anrufbutton ausblenden */
  .nav .btn {
    display: none;
  }

  /* Stärkeres Overlay für bessere Lesbarkeit */
  .hero::after {
    background: linear-gradient(
      0deg,
      rgba(9, 21, 16, 0.96) 0%,
      rgba(9, 21, 16, 0.8) 46%,
      rgba(9, 21, 16, 0.3) 100%
    );
  }

  /* Hero-Inhalt weiter unten positionieren */
  .hero-main {
    align-items: flex-end;

    padding-block: 110px 28px;
  }

  /* Leistungen untereinander */
  .services li {
    grid-template-columns: minmax(0, 1fr);

    gap: 8px;
    padding: 22px 0;
  }

  /* Hover-Effekt für Touchgeräte deaktivieren */
  .services li:hover {
    padding-left: 0;
    padding-right: 0;

    background: transparent;
  }

  /* Label oberhalb des Leistungstitels */
  .tag {
    order: -1;
  }

  /* Ablauf einspaltig */
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li,
  .steps li + li {
    padding: 24px 0 8px;

    border-left: 0;
  }

  /* Trennlinie zwischen allen Schritten */
  .steps li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .steps li:nth-child(n + 3) {
    margin-top: 0;
  }

  /* Einsatzgebiete einspaltig */
  .towns {
    columns: 1;
  }

  /* Schließanlagen auf dem Smartphone */
  .lock-grid h2 {
    font-size: clamp(30px, 9.2vw, 44px);
  }

  .lock-grid .btn {
    width: 100%;
  }

  .plan-cap {
    flex-direction: column;
    gap: 4px;
  }

  /*
    Fixierte mobile Anrufleiste.

    Die Leiste bleibt beim Scrollen
    immer am unteren Bildschirmrand.
  */
  /* ==========================================
   MOBILE ANRUFLEISTE
========================================== */

.callbar {
  display: flex;
  align-items: center;
  justify-content: center;

  position: fixed;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 55;

  gap: 12px;

  padding:
    16px
    max(16px, env(safe-area-inset-right, 0px))
    calc(16px + env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));

  background: var(--brass);
  color: #1A1303;

  font-weight: 700;
  text-decoration: none;

  /* Anfangszustand: unsichtbar */
  opacity: 0;
  visibility: hidden;

  transform: translateY(100%);

  pointer-events: none;

  /* Dezente Animation */
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}


/* ==========================================
   SICHTBARE ANRUFLEISTE
========================================== */

.callbar.visible {

  opacity: 1;
  visibility: visible;

  transform: translateY(0);

  pointer-events: auto;

}

}


/* ==========================================
   17. BARRIEREFREIHEIT

   Wenn Nutzer reduzierte Animationen
   bevorzugen, werden Übergänge und
   sanftes Scrollen deaktiviert.
========================================== */

@media (prefers-reduced-motion: reduce) {

  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }

}

























/* ==========================================
   RECHTLICHE SEITEN
   Impressum und Datenschutzerklärung

   Beide Seiten teilen sich dieses Design.
========================================== */


/* ==========================================
   1. HERO
========================================== */

.legal-hero {
  position: relative;

  display: flex;
  align-items: flex-end;

  min-height: 420px;

  padding: 160px 0 75px;

  background: var(--forest);
  color: #fff;

  overflow: hidden;
}

/* Dezente dekorative Linie */
.legal-hero::after {
  content: "";

  position: absolute;

  right: -120px;
  bottom: -170px;

  width: 500px;
  height: 500px;

  border: 1px solid rgba(201, 154, 59, 0.18);
  border-radius: 50%;

  pointer-events: none;
}

.legal-hero .wrap {
  position: relative;
  z-index: 1;
}

.legal-hero .eyebrow {
  color: var(--brass);
}

/* Große Überschrift */
.legal-hero h1 {
  font-size: clamp(60px, 10vw, 140px);
  text-transform: uppercase;

  color: #fff;

  overflow-wrap: anywhere;
}

/* Goldener Punkt hinter der Überschrift */
.legal-hero h1 span {
  color: var(--brass);
}

/* Einleitung unterhalb der Überschrift */
.legal-intro {
  max-width: 650px;

  margin: 28px 0 0;

  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;

  color: var(--on-forest-muted);
}


/* ==========================================
   2. HAUPTBEREICH
========================================== */

.legal-section {
  padding: clamp(70px, 9vw, 130px) 0;

  background: var(--bg);
}

/* Zweispaltiger Aufbau */
.legal-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 0.75fr)
    minmax(0, 1.4fr);

  align-items: start;

  gap: clamp(40px, 8vw, 120px);
}


/* ==========================================
   3. LINKE SPALTE
========================================== */

.legal-sidebar {
  position: sticky;
  top: 120px;
}

.legal-sidebar .eyebrow {
  color: var(--brass-ink);
}

.legal-sidebar h2 {
  max-width: 100%;
  margin: 0;

  font-family: var(--f-display);
  font-stretch: 75%;
  font-weight: 800;

  font-size: clamp(32px, 3.5vw, 54px);
  line-height: 1.08;

  text-transform: uppercase;

  overflow-wrap: anywhere;
  hyphens: auto;
}

.sidebar-description {
  max-width: 340px;

  margin: 26px 0 0;

  font-size: 16px;
  line-height: 1.8;

  color: var(--muted);
}


/* ==========================================
   4. RECHTSTEXTE
========================================== */

.legal-content {
  min-width: 0;

  border-top: 2px solid var(--fg);
}

/* Einzelner Textabschnitt */
.legal-block {
  padding: 36px 0 42px;

  border-bottom: 1px solid var(--line);
}

/* Kapitelüberschriften */
.legal-block h2 {
  margin: 0 0 22px;

  font-family: var(--f-display);
  font-stretch: 75%;
  font-weight: 800;

  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;

  text-transform: uppercase;
}

/* Normale Fließtexte */
.legal-block p {
  margin: 0 0 18px;

  font-size: 16px;
  line-height: 1.85;

  color: var(--muted);
}

.legal-block p:last-child {
  margin-bottom: 0;
}

/* Hervorgehobene Texte */
.legal-block strong {
  color: var(--fg);
  font-weight: 700;
}

/* Anschriften */
.legal-block address {
  margin: 0 0 20px;

  font-size: 16px;
  font-style: normal;
  line-height: 1.9;

  color: var(--muted);
}

/* Links innerhalb der Rechtstexte */
.legal-block a {
  color: var(--brass-ink);

  text-decoration: underline;
  text-underline-offset: 4px;

  overflow-wrap: anywhere;

  transition: color 0.2s;
}

.legal-block a:hover {
  color: var(--fg);
}

/* Aufzählungen */
.legal-block ul {
  margin: 20px 0 26px;
  padding-left: 22px;
}

.legal-block li {
  padding-left: 8px;
  margin-bottom: 10px;

  font-size: 16px;
  line-height: 1.7;

  color: var(--muted);
}

.legal-block li::marker {
  color: var(--brass-ink);
}


/* ==========================================
   5. ZURÜCK-BUTTON
========================================== */

.legal-back {
  display: inline-flex;
  align-items: center;

  gap: 16px;

  margin-top: 45px;
  padding: 13px 0;

  border-bottom: 2px solid var(--brass);

  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;

  text-decoration: none;

  color: var(--fg);

  transition:
    gap 0.2s,
    color 0.2s;
}

/* Pfeil */
.legal-back span {
  font-size: 24px;
  line-height: 1;

  color: var(--brass-ink);
}

.legal-back:hover {
  gap: 24px;
  color: var(--brass-ink);
}


/* ==========================================
   6. FOOTER LINKS
========================================== */

.footer-links {
  display: flex;
  flex-wrap: wrap;

  gap: 12px 25px;
}

.footer-links a {
  font-family: var(--f-mono);
  font-size: 12px;

  letter-spacing: 0.04em;
  text-transform: uppercase;

  text-decoration: none;

  color: var(--on-forest-muted);

  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--brass);
}


/* ==========================================
   7. RESPONSIVE DESIGN
========================================== */


/* Tablet */
@media (max-width: 980px) {

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-sidebar h2 {
    max-width: 650px;
  }

}


/* Smartphone */
@media (max-width: 700px) {

  /* Kein Platz für mobile Anrufleiste nötig */
  body:has(.legal-section) {
    padding-bottom: 0;
  }

  .legal-hero {
    min-height: 350px;

    padding: 130px 0 55px;
  }

  .legal-hero h1 {
    font-size: clamp(42px, 10vw, 75px);
  }

  .legal-hero::after {
    width: 300px;
    height: 300px;

    right: -180px;
    bottom: -130px;
  }

  .legal-intro {
    margin-top: 22px;
    font-size: 16px;
  }

  .legal-section {
    padding: 60px 0 80px;
  }

  .legal-layout {
    gap: 40px;
  }

  .legal-sidebar h2 {
    font-size: 44px;
  }

  .legal-block {
    padding: 28px 0 34px;
  }

  .legal-block h2 {
    font-size: 27px;
  }

  .legal-block p,
  .legal-block li,
  .legal-block address {
    font-size: 15.5px;
    line-height: 1.8;
  }

  .footer-links {
    width: 100%;
  }

}