/* ============================================================
   Fair Schlüsseldienst — Beta-Redesign 2026 / Unterseiten
   Ersetzt assets/css/stil.css: gleiche Klassen, neues dunkles
   Premium-Design (Markenakzent Rot). Startseite: beta.css.
   ============================================================ */

:root {
  --bg: #0a0c0f;
  --bg-2: #10141a;
  --karte: #151a21;
  --karte-hover: #1a212a;
  --rahmen: rgba(255, 255, 255, 0.08);
  --rahmen-stark: rgba(255, 255, 255, 0.14);
  --text: #eceff2;
  --gedaempft: #9aa6b0;
  --rot: #e40000;
  --rot-hell: #ff3b3b;
  --rot-dunkel: #a80000;
  --gold: #f5c518;
  --radius: 14px;
  --schatten: 0 18px 50px rgba(0, 0, 0, 0.45);
  --schrift-kopf: 'Montserrat', system-ui, sans-serif;
  --schrift-text: 'Open Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--schrift-kopf);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
h2 { font-size: 1.5rem; margin-top: 1.4em; }
h3 { font-size: 1.15rem; }

a { color: var(--rot-hell); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
main img { border-radius: 10px; }
figure { margin: 0 0 1em; }
main p { color: #d4dade; }
.rot { color: var(--rot-hell); }

.innen { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.springen { position: absolute; left: -9999px; top: 0; background: var(--rot); color: #fff; padding: 10px 18px; z-index: 200; }
.springen:focus { left: 10px; top: 10px; }

/* ---------- Kopf + Navigation (sticky, dunkel) ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rahmen);
}
.kopf-zeile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo img {
  display: block;
  width: 168px;
  height: auto;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  padding: 4px 10px;
}
.menue-knopf {
  display: none;
  font-family: var(--schrift-kopf);
  font-weight: 600;
  font-size: 0.95rem;
  background: none;
  border: 1px solid var(--rahmen-stark);
  border-radius: 10px;
  color: var(--text);
  padding: 9px 15px;
  cursor: pointer;
}
.navi { flex: 1; }
.menue, .menue ul { list-style: none; margin: 0; padding: 0; }
.menue { display: flex; gap: 2px; }
.menue a {
  display: block;
  font-family: var(--schrift-kopf);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.menue a:hover { color: #fff; background: rgba(228, 0, 0, 0.85); }
.menue li { position: relative; }
.menue li ul {
  display: none;
  position: absolute;
  left: 0; top: 100%;
  z-index: 110;
  background: #12161c;
  border: 1px solid var(--rahmen-stark);
  border-radius: 10px;
  min-width: 265px;
  box-shadow: var(--schatten);
  padding: 8px;
}
.menue li ul a { white-space: normal; }
.menue li ul ul { left: 100%; top: 0; }
.menue li:hover > ul, .menue li:focus-within > ul { display: block; }

/* Sprachumschalter im Menü: Desktop ausblenden */
.menue .sprache-li { display: none; }

.sprache {
  font-family: var(--schrift-kopf);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--rahmen-stark);
  border-radius: 8px;
  padding: 8px 10px;
  white-space: nowrap;
}
.sprache:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.kopf-zeile > .sprache + .sprache { margin-left: -8px; }
.recht-hinweis { font-size: 0.8rem; color: var(--gedaempft); margin: 4px 0 0; }

.tel-knopf {
  font-family: var(--schrift-kopf);
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--rot);
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(228, 0, 0, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
}
.tel-knopf:hover { background: var(--rot-hell); transform: translateY(-2px); }

/* ---------- Inhalt ---------- */
main { display: block; }
.abschnitt { padding: 46px 0; }
.abschnitt:nth-of-type(even) {
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(228, 0, 0, 0.05), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--rahmen);
  border-bottom: 1px solid var(--rahmen);
}
.abschnitt:first-of-type { padding-top: 60px; }

/* ---------- Buttons ---------- */
.knopf {
  display: inline-block;
  background: linear-gradient(135deg, var(--rot-hell), var(--rot-dunkel));
  color: #fff !important;
  font-family: var(--schrift-kopf);
  font-weight: 600;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(228, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.knopf:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(228, 0, 0, 0.45);
}
/* aufeinanderfolgende Button-Absätze nebeneinander */
main p:has(> a.knopf:only-child) {
  display: inline-block;
  margin: 6px 12px 6px 0;
}

/* ---------- Spalten-Layout ---------- */
.spalten {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  align-items: start;
  margin: 14px 0;
}

/* ---------- Bild-Boxen / Karten ---------- */
.bild-box {
  background: var(--karte);
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
  padding: 20px;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.bild-box:hover {
  box-shadow: var(--schatten);
  transform: translateY(-4px);
  border-color: rgba(228, 0, 0, 0.4);
}
.bild-box a { text-decoration: none; color: inherit; }
.bild-box img { border-radius: 8px; }
.bild-box h3 { margin-top: 12px; color: #fff; }

/* ---------- Icon-Liste (Häkchen) ---------- */
.icon-liste { list-style: none; padding: 0; margin: 0 0 1em; }
.icon-liste li { padding-left: 28px; position: relative; margin-bottom: 8px; color: #d4dade; }
.icon-liste li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rot-hell);
  font-weight: 700;
}

/* ---------- Preislisten ---------- */
table.preisliste {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  background: var(--karte);
  border: 1px solid var(--rahmen);
  border-radius: var(--radius);
  overflow: hidden;
}
table.preisliste td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--rahmen);
  color: #d4dade;
}
table.preisliste tr:last-child td { border-bottom: 0; }
table.preisliste tr:hover td { background: rgba(255, 255, 255, 0.025); }
table.preisliste td:last-child {
  text-align: right;
  white-space: nowrap;
  font-family: var(--schrift-kopf);
  font-weight: 700;
  color: var(--rot-hell);
}
.tab-block { margin-bottom: 30px; }
.tab-block > h3 { color: #fff; }
.tab-block > h3::before {
  content: "";
  display: inline-block;
  width: 26px; height: 3px;
  background: var(--rot);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- FAQ / Details (falls vorhanden) ---------- */
.faq details {
  border: 1px solid var(--rahmen);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 0 18px;
  background: var(--karte);
}
.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-family: var(--schrift-kopf);
  font-weight: 600;
}
.faq details[open] summary { border-bottom: 1px solid var(--rahmen); }

/* ---------- Eingebettete Inhalte ---------- */
iframe {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--rahmen);
  background: #fff; /* Formular-/Karten-iframes sind hell gestaltet */
}

/* ---------- Öffnungszeiten (live geladen) ---------- */
.fair-oeffnungszeiten { max-width: 340px; }
.fair-oeffnungszeiten > div {
  padding: 5px 0;
  border-bottom: 1px dashed var(--rahmen-stark);
}
.fair-oeffnungszeiten > div:last-child { border-bottom: 0; }

/* ---------- Rechtstexte ---------- */
.rechtstext h2, .rechtstext h3 { margin-top: 1.6em; }
.rechtstext { overflow-wrap: break-word; }

/* ---------- Fuß ---------- */
.fuss {
  background: #07090b;
  border-top: 1px solid var(--rahmen);
  color: var(--gedaempft);
  margin-top: 30px;
  font-size: 0.95rem;
}
.fuss .innen { padding-top: 40px; padding-bottom: 20px; }
.fuss h3 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 7px; padding-left: 16px; position: relative; }
.fuss li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid var(--rot-hell);
}
.fuss-siegel { display: flex; gap: 16px; align-items: center; }
.fuss-siegel img { border-radius: 6px; background: #fff; padding: 3px; }
.fuss a { color: var(--gedaempft); text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss-spalten {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rahmen);
}
.fuss-unten {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
}
.fuss-unten p { margin: 0; }
.fuss-unten nav { display: flex; flex-wrap: wrap; gap: 4px 16px; min-width: 0; }

/* ---------- WhatsApp ---------- */
.whatsapp {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
}
.whatsapp svg { width: 30px; height: 30px; }
.whatsapp:hover { transform: scale(1.1); color: #fff; }

/* ---------- Cookie-Banner ---------- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: rgba(10, 12, 15, 0.97);
  border-top: 1px solid var(--rahmen-stark);
  backdrop-filter: blur(10px);
  color: #eee;
  padding: 16px 20px;
  font-size: 0.9rem;
}
#cookie-banner .innen { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
#cookie-banner p { margin: 0; max-width: 720px; color: #d4dade; }
#cookie-banner a { color: #fff; }
#cookie-banner button {
  font-family: var(--schrift-kopf);
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 10px 22px;
  font-size: 0.9rem;
}
#cookie-banner .annehmen { background: var(--rot); color: #fff; }
#cookie-banner .ablehnen { background: #2a323c; color: #eee; margin-left: 8px; }

/* ---------- Telefon-Störungs-Banner (telefon-status.js) ---------- */
#telefon-status-banner {
  background: var(--rot) !important;
  color: #fff !important;
}

/* =====================================================================
   MOBILE: ab 1080px Header + Navigation
   ===================================================================== */
@media (max-width: 1080px) {
  .kopf-zeile {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .tel-knopf {
    order: -2;
    width: 100%;
    text-align: center;
    border-radius: 0;
    margin: 0;
    padding: 12px 14px;
    font-size: 1rem;
  }

  .logo { order: -1; }
  .logo img { width: 140px; }

  .menue-knopf {
    display: block;
    order: 0;
    margin-left: auto;
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .kopf-zeile > .sprache { display: none; }

  .menue .sprache-li { display: block; }
  .menue .sprache-li .sprache {
    border: none;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 0.88rem;
    font-weight: 700;
    display: block;
  }

  .navi {
    display: none;
    flex-basis: 100%;
    order: 1;
  }
  .navi.offen { display: block; }

  .menue { flex-direction: column; }
  .menue li ul {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    padding-left: 18px;
    min-width: 0;
    background: transparent;
  }

  h1 { font-size: 1.7rem; }
}

@media (max-width: 640px) {
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
  .abschnitt { padding: 34px 0; }
  table.preisliste td { padding: 10px 12px; font-size: 0.95rem; }
}

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