/*
Theme Name: Koop Smart Home
Theme URI: https://koop-smarthome.de/
Author: Koop Smart Home
Description: Individuelles Theme für Koop Smart Home – herstellerunabhängige Hausautomation. Klassisches Theme mit Customizer-Feldern für Kontaktdaten und einem eigenen Inhaltstyp für Leistungen.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koop-smarthome
Tags: business, one-column, custom-logo, custom-menu, block-styles
*/

/* ==========================================================================
   Koop Smart Home – Stylesheet
   Farben, Typografie und Layout an einer Stelle.
   ========================================================================== */

:root {
  /* Farben */
  --ink:         #0E1E1C;
  --petrol:      #183532;
  --petrol-soft: #244A46;
  --amber:       #E4A03A;
  --amber-deep:  #B87A1C;
  --paper:       #EFEEE8;
  --paper-2:     #E5E3DA;
  --line:        #D2D0C6;
  --line-dark:   #2E514D;
  --muted:       #5C6A67;
  --muted-dark:  #A8BAB6;

  /* Typografie */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* Maße */
  --wrap: 1120px;
  --gap: 2rem;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* --------------------------------------------------------------------------
   Typografie
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.012em; }
h4 { font-size: 1.05rem; letter-spacing: -0.008em; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 1rem;
  display: block;
}

.eyebrow--light { color: var(--amber); }

.lead {
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}

.lead--light { color: var(--muted-dark); }

/* --------------------------------------------------------------------------
   Struktur
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.band--dark {
  background: var(--petrol);
  color: var(--paper);
}
.band--dark h2, .band--dark h3 { color: var(--paper); }

.band--alt { background: var(--paper-2); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn--primary {
  background: var(--amber);
  color: var(--ink);
}
.btn--primary:hover { background: #F0B054; }

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--ink); }

.btn--ghost-light {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--paper);
}
.btn--ghost-light:hover { border-color: var(--amber); color: var(--amber); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Kopfzeile
   -------------------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 238, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Logo-Platzhalter: siehe Kommentar im HTML zum Austauschen */
.logo-slot {
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--paper-2);
}

.brand-name small {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

.nav-cta { margin-left: 0.4rem; padding: 0.62rem 1.1rem; font-size: 0.93rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.4rem;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--amber-deep); }
  .nav-cta { margin: 1rem 0 0; justify-content: center; border-bottom: 0 !important; }
}

/* --------------------------------------------------------------------------
   Hero mit Dimmer (Signature-Element)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

/* Der Lichtschein wird per JS über --glow (0–1) und --temp (0–1) gesteuert */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 72% 18%,
      rgba(255, 205, 130, calc(var(--glow, .55) * 0.5)) 0%,
      rgba(255, 176, 84, calc(var(--glow, .55) * 0.22)) 38%,
      rgba(14, 30, 28, 0) 72%);
  transition: background .12s linear;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line-dark);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.hero h1 { color: var(--paper); }

.hero .lead { color: var(--muted-dark); }

.hero-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

/* Dimmer-Panel */
.dimmer {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 1.4rem 1.5rem 1.6rem;
  backdrop-filter: blur(4px);
}

.dimmer-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.dimmer-room {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.dimmer-room span {
  display: block;
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 3px;
}

.dimmer-value {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.dimmer-lamp {
  height: 74px;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  border: 1px solid var(--line-dark);
  background:
    radial-gradient(70% 140% at 50% 130%,
      rgba(255, 209, 140, calc(var(--glow, .55) * 0.95)) 0%,
      rgba(255, 173, 74, calc(var(--glow, .55) * 0.45)) 45%,
      rgba(255,255,255,0.02) 85%);
  transition: background .12s linear;
}

input[type="range"].dim-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}

input[type="range"].dim-input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber) var(--pct, 55%), rgba(255,255,255,0.12) var(--pct, 55%), rgba(255,255,255,0.12) 100%);
}
input[type="range"].dim-input::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber) var(--pct, 55%), rgba(255,255,255,0.12) var(--pct, 55%), rgba(255,255,255,0.12) 100%);
}

input[type="range"].dim-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--amber-deep);
}
input[type="range"].dim-input::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--amber-deep);
}

input[type="range"].dim-input:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

.dimmer-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 0.3rem;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Seitenkopf (Unterseiten)
   -------------------------------------------------------------------------- */

.page-head {
  background: var(--petrol);
  color: var(--paper);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.page-head h1 { color: var(--paper); }
.page-head .lead { color: var(--muted-dark); }

/* --------------------------------------------------------------------------
   Raster & Karten
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 60ch; }
.section-head p { margin-bottom: 0; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
}

.band--alt .card { background: var(--paper); }

.card h3 { margin-bottom: 0.45rem; }
.card p { font-size: 0.97rem; color: var(--muted); margin-bottom: 0; }

.card-link {
  display: block;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.card-link:hover { border-color: var(--amber); }

.card-more {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-top: 1.1rem;
  display: inline-block;
}

.icon {
  width: 30px; height: 30px;
  margin-bottom: 1rem;
  stroke: var(--amber-deep);
  stroke-width: 1.6;
  fill: none;
}

.band--dark .icon { stroke: var(--amber); }

/* Benefit-Blöcke */
.benefit h3 { margin-bottom: 0.4rem; }
.benefit p { color: var(--muted); font-size: 0.99rem; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Zwei-Spalten-Block (Herstellerunabhängigkeit)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.check-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: 1rem;
}

.check-list svg {
  width: 20px; height: 20px;
  margin-top: 3px;
  stroke: var(--amber);
  stroke-width: 2;
  fill: none;
}

/* Protokoll-Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding: 0;
  list-style: none;
}

.chips li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  color: var(--muted-dark);
}

/* --------------------------------------------------------------------------
   Ablauf (echte Reihenfolge, daher nummeriert)
   -------------------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  padding: 1.8rem 1.4rem 1.8rem 0;
  border-right: 1px solid var(--line);
}
.steps li:last-child { border-right: 0; }
.steps li:not(:first-child) { padding-left: 1.4rem; }

.step-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--amber-deep);
  display: block;
  margin-bottom: 0.9rem;
}

.steps h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.steps p { font-size: 0.94rem; color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
  }
  .steps li:not(:first-child) { padding-left: 0; }
  .steps li:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Leistungen (Detailseite)
   -------------------------------------------------------------------------- */

.service {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.service:last-of-type { border-bottom: 0; }

.service h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: 0; }
.service p:last-of-type { margin-bottom: 0; }

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

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); max-width: 78ch; }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.012em;
  padding: 1.3rem 2.5rem 1.3rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--amber-deep);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }

.faq summary:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 3px; }

.faq-body { padding: 0 2.5rem 1.5rem 0; }
.faq-body p { color: var(--muted); margin-bottom: 0.9rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.2rem; }

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
}

.field textarea { min-height: 150px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--amber-deep);
  outline-offset: 1px;
  border-color: transparent;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--amber-deep); }
.consent a { color: var(--amber-deep); }

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

.contact-aside { position: sticky; top: 100px; }

.contact-block {
  border-top: 1px solid var(--line);
  padding-block: 1.2rem;
}

.contact-block dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact-block dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.contact-block dd a { text-decoration: none; }
.contact-block dd a:hover { color: var(--amber-deep); }
.contact-block dd.plain {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Person
   -------------------------------------------------------------------------- */

.person {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.8rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  max-width: 640px;
}

.portrait-slot {
  aspect-ratio: 1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--muted);
  padding: 0.5rem;
}

.person h3 { margin-bottom: 0.2rem; }
.person p { font-size: 0.96rem; color: var(--muted); margin: 0; }

.person-role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.7rem !important;
}

@media (max-width: 560px) {
  .person { grid-template-columns: 1fr; }
  .portrait-slot { max-width: 150px; }
}

/* --------------------------------------------------------------------------
   Abschluss-CTA
   -------------------------------------------------------------------------- */

.cta-band { text-align: center; }
.cta-band .wrap > * { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band p { max-width: 52ch; }

/* --------------------------------------------------------------------------
   Fußzeile
   -------------------------------------------------------------------------- */

.site-foot {
  background: var(--ink);
  color: var(--muted-dark);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.95rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--paper);
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.foot-grid p { font-size: 0.93rem; max-width: 38ch; margin-bottom: 0; }

.foot-head {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1rem;
}

.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.foot-list a { text-decoration: none; }
.foot-list a:hover { color: var(--amber); }

.foot-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.foot-bottom nav { display: flex; gap: 1.4rem; }
.foot-bottom a { text-decoration: none; }
.foot-bottom a:hover { color: var(--amber); }

/* --------------------------------------------------------------------------
   Rechtstexte
   -------------------------------------------------------------------------- */

.legal { max-width: 76ch; }
.legal h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.8rem; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }

.todo {
  background: #FFF4D6;
  border-left: 3px solid var(--amber);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.93rem;
}
.todo strong { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 0.4rem; }
.todo p { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Zugänglichkeit
   -------------------------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 0.8rem 1.2rem;
  z-index: 100;
  font-family: var(--display);
  font-weight: 600;
}
.skip:focus { left: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 3px;
}

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

/* ==========================================================================
   WordPress-spezifische Ergänzungen
   ========================================================================== */

/* Eigenes Logo aus dem Customizer */
.custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.custom-logo { max-height: 46px; width: auto; }

/* Inhalte aus dem Block-Editor */
.entry-content { max-width: 76ch; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content > h2 { margin-top: 2.4em; }
.entry-content > h3 { margin-top: 1.8em; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-content .lead { color: var(--muted); }

.entry-content ul,
.entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: 0.5rem; }

.entry-content a { color: var(--amber-deep); text-underline-offset: 3px; }

.entry-content img,
.wp-block-image img { border-radius: var(--radius); }

.entry-content blockquote,
.wp-block-quote {
  border-left: 3px solid var(--amber);
  margin-left: 0;
  padding-left: 1.3rem;
  font-style: normal;
  color: var(--muted);
}

.entry-content table,
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table td, .wp-block-table th {
  border: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
}

.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 2.5rem; }

/* Details-Block als Aufklapp-Frage (FAQ-Seite) */
.entry-content .wp-block-details {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.entry-content .wp-block-details:first-of-type { border-top: 1px solid var(--line); }

.entry-content .wp-block-details summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.012em;
  padding: 1.3rem 2.5rem 1.3rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--amber-deep);
  line-height: 1;
}
.entry-content .wp-block-details[open] summary::after { content: "\2013"; }

.entry-content .wp-block-details > *:not(summary) {
  padding-right: 2.5rem;
  color: var(--muted);
}
.entry-content .wp-block-details > *:last-child { padding-bottom: 1.5rem; }

/* Meldungen nach dem Absenden des Formulars */
.hinweis {
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
  border-left: 3px solid;
}
.hinweis strong {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}
.hinweis p { margin: 0; font-size: 0.97rem; }

.hinweis--ok { background: #E6F0E8; border-left-color: #3F7D53; color: #22412C; }
.hinweis--fehler { background: #F8E6E3; border-left-color: #B5462F; color: #5C2418; }

/* Blätterfunktion */
.wp-block-post-navigation-link,
.pagination .nav-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.pagination .page-numbers {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.pagination .page-numbers.current { background: var(--amber); border-color: var(--amber); }

/* Admin-Leiste nicht über die fixierte Kopfzeile legen */
.admin-bar .site-head { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-head { top: 46px; }
}

/* Menülinks aus wp_nav_menu in der Fußzeile */
.foot-list li { list-style: none; }
.foot-bottom nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
