/*
Theme Name: Royal-Lux Gebäudeservice
Theme URI: https://rl-gebaeudeservice.de
Author: Royal-Lux Gebäudeservice
Description: Maßgeschneidertes Theme für Royal-Lux Gebäudeservice (Leverkusen). Reproduziert das abgestimmte Design. Beim Aktivieren werden alle Seiten automatisch angelegt.
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: royal-lux
*/

/* ==========================================================================
   Royal-Lux Gebäudeservice — Design-System
   Zentrale Stylesheet-Datei für alle Seiten.
   Aufbau:
     1. Design-Tokens (CSS-Variablen)
     2. Reset & Basis
     3. Typografie
     4. Layout-Utilities (.wrap, .section, Grids)
     5. Buttons
     6. Header + Mega-Menü + Mobile-Navigation
     7. Footer
     8. Komponenten (Cards, Check-Listen, Badges, Breadcrumb, Blockquote …)
     9. Hero-Varianten
    10. CTA-Banner (Gold)
    11. Seiten-spezifische Bereiche (Start / Leistung / Standort)
    12. Toast (Hinweis für noch nicht gebaute Seiten)
    13. Responsive Breakpoints
   ========================================================================== */

/* 1. DESIGN-TOKENS ---------------------------------------------------------- */
:root {
  /* Markenfarben (aus Briefing) */
  --gold: #b8924f;
  --gold-dark: #9a7838;
  --ink: #2b2926;
  --ink-soft: #5b5650;
  --bg: #faf7f1;
  --card: #ffffff;
  --line: #e9e2d4;

  /* Abgeleitete Töne */
  --gold-light: #e9c37a;              /* Akzentwörter auf dunklem Grund */
  --gold-tint: rgba(184, 146, 79, .08); /* zarte Gold-Flächen/Hover */
  --ink-2: #3a352d;                   /* zweiter Ton im Hero-Verlauf */

  /* Verläufe */
  --grad-gold: linear-gradient(135deg, var(--gold), var(--gold-dark));
  --grad-ink: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);

  /* Schrift */
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;

  /* Maße */
  --maxw: 1140px;
  --gutter: 24px;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Schatten */
  --shadow-sm: 0 1px 2px rgba(43, 41, 38, .04), 0 2px 6px rgba(43, 41, 38, .05);
  --shadow-md: 0 8px 30px rgba(43, 41, 38, .09);
  --shadow-lg: 0 20px 50px rgba(43, 41, 38, .16);

  /* Übergänge */
  --t-fast: .15s ease;
  --t: .25s ease;
}

/* 2. RESET & BASIS ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--gold-dark); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold); }

ul { margin: 0; padding: 0; list-style: none; }

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

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

.sans { font-family: var(--sans); }

/* Klasse zum Verstecken (Screenreader bleibt) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. TYPOGRAFIE ------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.18; }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 21px; }
h4 { font-size: 18px; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 19px; color: var(--ink-soft); line-height: 1.7; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

/* Startseite: Intro-Text etwas größer */
.home-intro p { font-size: 18px; line-height: 1.75; }
.home-intro p.lead { font-size: 21px; }

/* Akzentwörter im Titel */
em, .accent { font-style: italic; color: var(--gold-dark); }
.on-dark em, .accent-light { font-style: italic; color: var(--gold-light); }

/* Kicker/Eyebrow über Überschriften */
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 12px;
}
.on-dark .eyebrow { color: var(--gold-light); }

/* 4. LAYOUT ----------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(36px, 5vw, 60px); }
.section--alt { background: #f4efe5; }           /* leicht abgesetzter Abschnitt */
.section--dark { background: var(--grad-ink); color: #efe9de; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--ink-soft); font-size: 18px; margin: 0; }
.section--dark .section-head p { color: #d9d1c4; }

/* Grid-Utilities */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 5. BUTTONS ---------------------------------------------------------------- */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 18px; height: 18px; flex: none; }

.btn--gold { background: var(--grad-gold); color: #fff; box-shadow: 0 6px 18px rgba(154, 120, 56, .28); }
.btn--gold:hover { color: #fff; box-shadow: 0 10px 24px rgba(154, 120, 56, .38); }

.btn--dark { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.btn--dark:hover { background: #000; color: var(--gold-light); }

.btn--outline { background: transparent; color: var(--gold-dark); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold-tint); color: var(--gold-dark); }

/* Outline auf dunklem Grund (Hero) */
.btn--ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }

.btn--sm { padding: 11px 16px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 17px 30px; font-size: 16px; }

/* 6. HEADER + MEGA-MENÜ ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
}

/* Marke / Logo */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__img { height: 60px; width: auto; display: block; }
.site-footer .brand__img { height: 76px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__word {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .01em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand__sub {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* Hauptnavigation */
.mainnav { margin-left: auto; }
.mainnav > ul { display: flex; align-items: center; gap: 2px; }
.mainnav .navlink {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 11px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.mainnav .navlink:hover { color: var(--gold-dark); background: var(--gold-tint); }
.mainnav li[aria-current] .navlink,
.mainnav .navlink[aria-current] { color: var(--gold-dark); }
.mainnav .caret { width: 10px; height: 10px; transition: transform var(--t-fast); }
.has-mega.is-open .caret { transform: rotate(180deg); }

/* Mega-Dropdown */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: max-content;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.has-mega.is-open .mega,
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega::before { /* unsichtbare Brücke, damit Hover nicht abreißt */
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.mega__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 26px; }
.mega--std .mega__cols { grid-template-columns: 1fr; }
.mega a.mega__item {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
}
.mega a.mega__item:hover { background: var(--gold-tint); color: var(--gold-dark); }
.mega__foot {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.mega__foot a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  display: inline-flex;
  gap: 6px;
}

/* Header-CTAs */
.header-cta { display: flex; align-items: center; gap: 8px; }
.mobile-cta { display: none; }   /* Basis: nur im Mobile-Menü sichtbar (siehe Media-Query) */

/* Hamburger */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  position: relative; transition: transform var(--t), opacity var(--t);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* 7. FOOTER ----------------------------------------------------------------- */
.site-footer { background: var(--grad-ink); color: #cfc7ba; margin-top: 0; }
.site-footer a { color: #cfc7ba; }
.site-footer a:hover { color: var(--gold-light); }
.footer-top { padding-block: clamp(44px, 6vw, 64px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul { font-family: var(--sans); font-size: 14.5px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand__word { color: #fff; }
.footer-brand p { font-size: 14.5px; line-height: 1.6; color: #b7afa0; max-width: 34ch; }
.footer-badge {
  font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 8px 13px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-pill);
  font-size: 13px; color: #efe9de;
}
.footer-badge .stars { color: var(--gold-light); letter-spacing: 1px; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(255, 255, 255, .08); border-color: var(--gold-light); }
.footer-social svg { width: 17px; height: 17px; }
.footer-contact { font-family: var(--sans); font-size: 14.5px; line-height: 1.7; }
.footer-contact strong { color: #fff; font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 20px;
  font-family: var(--sans);
  font-size: 13px;
}
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; }
.footer-bottom .legal a { margin-left: 18px; }

/* 8. KOMPONENTEN ------------------------------------------------------------ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card--pad-lg { padding: 30px; }
.card--hover { transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dccfb4; }

.card__title { font-size: 20px; margin-bottom: 10px; }
.card__title.with-mark { display: flex; align-items: baseline; gap: 10px; }

/* Check-Listen */
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 13px;
  line-height: 1.55;
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-tint);
  border: 1px solid rgba(184, 146, 79, .35);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 7px; top: 8px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
  transform: rotate(-45deg);
}
.check-list--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.on-dark .check-list li::before { background: rgba(233, 195, 122, .14); border-color: rgba(233, 195, 122, .4); }
.on-dark .check-list li::after { border-color: var(--gold-light); }

/* Badges / Vertrauens-Pills */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.badge .ic { width: 18px; height: 18px; color: var(--gold-dark); }
.on-dark .badge { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.on-dark .badge .ic { color: var(--gold-light); }

/* Breadcrumb */
.breadcrumb { font-family: var(--sans); font-size: 13.5px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "/"; opacity: .5; }
.breadcrumb a { color: inherit; opacity: .85; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb [aria-current] { font-weight: 700; opacity: 1; }
.on-dark .breadcrumb { color: #d9d1c4; }

/* Blockquote */
.blockquote {
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 27px);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 26px;
  margin: 0;
}
.blockquote cite { display: block; font-size: 15px; font-style: normal; color: var(--ink-soft); margin-top: 12px; font-family: var(--sans); }

/* Icon-Kachel (Leistungen-Raster) */
.tile { display: flex; flex-direction: column; height: 100%; }
.tile__icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--gold-tint);
  border: 1px solid rgba(184, 146, 79, .25);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--gold-dark);
}
.tile__icon svg { width: 26px; height: 26px; }
.tile h3 { font-size: 19px; margin-bottom: 8px; }
.tile p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.tile__link { margin-top: auto; font-family: var(--sans); font-weight: 700; font-size: 14.5px; color: var(--gold-dark); display: inline-flex; gap: 6px; }
.tile__link .arrow { transition: transform var(--t-fast); }
.card--hover:hover .tile__link .arrow { transform: translateX(3px); }

/* Nummerierte Vorteils-Karten */
.numcard { position: relative; }
.numcard__num {
  font-family: var(--serif);
  font-size: 42px; font-weight: 700; line-height: 1;
  color: var(--gold);
  opacity: .55;
  margin-bottom: 12px;
}
.numcard h3 { font-size: 18px; margin-bottom: 8px; }
.numcard p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* Stat-Kacheln */
.stat { text-align: center; }
.stat__num { font-family: var(--serif); font-weight: 700; font-size: 34px; color: var(--gold-dark); line-height: 1; }
.stat__label { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

/* "X statt Y"-Zeile */
.vs-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.vs-item:last-child { border-bottom: 0; }
.vs-item .ic { width: 22px; height: 22px; color: var(--gold-dark); flex: none; margin-top: 2px; }
.vs-item b { font-weight: 700; }
.vs-item span { color: var(--ink-soft); }

/* "Warum uns" – 9-Punkte-Raster (Karten mit Gold-Check) */
.reason { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 22px 24px; }
.reason h4 { position: relative; padding-left: 34px; margin: 0 0 8px; font-size: 16px; line-height: 1.35; }
.reason h4::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-tint); border: 1px solid rgba(184,146,79,.35); }
.reason h4::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px; border-left: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); transform: rotate(-45deg); }
.reason p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* Dunkle Marken-Platte (Über uns) */
.brand-plate { background: var(--grad-ink); color: #efe9de; border-radius: var(--radius); padding: 40px 30px; text-align: center; }
.brand-plate img { height: 70px; width: auto; margin: 0 auto 20px; display: block; }
.brand-plate .q { font-family: var(--serif); font-style: italic; font-size: 22px; color: #fff; margin: 0 0 8px; }
.brand-plate .sub { font-family: var(--sans); font-size: 13px; letter-spacing: .04em; color: #cfc7ba; margin: 0; }

/* Bewertungskarte */
.review { display: flex; flex-direction: column; height: 100%; }
.review .stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; margin-bottom: 10px; }
.review p { font-style: italic; margin-bottom: 16px; }
.review__who { margin-top: auto; font-family: var(--sans); font-size: 14px; }
.review__who b { display: block; color: var(--ink); }
.review__who span { color: var(--ink-soft); }

/* Vertrauens-/Mitgliedschafts-Logos (Text-Platzhalter bis echte Logos vorliegen) */
.trust-logo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 26px;
  min-width: 180px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.trust-logo:hover { border-color: #dccfb4; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.trust-logo img { max-height: 50px; max-width: 160px; width: auto; height: auto; object-fit: contain; display: block; }

/* Foto-Platzhalter (bis echte Bilder vorliegen) */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(184,146,79,.05) 0 12px, rgba(184,146,79,.09) 12px 24px),
    var(--grad-ink);
  color: #efe9de;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 220px;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--sans); font-size: 13px; letter-spacing: .06em;
  color: rgba(255,255,255,.78);
  padding: 8px 14px; border: 1px dashed rgba(255,255,255,.35); border-radius: 8px;
  max-width: 80%;
}
.ph--tall { min-height: 340px; }
.figure figcaption { font-family: var(--sans); font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; }

/* Gerahmte Fotos (echte Bilder) */
.media { display: block; width: 100%; border-radius: var(--radius); object-fit: cover; }
.media--tall { height: clamp(300px, 42vw, 460px); box-shadow: var(--shadow-sm); }
.media--wide { height: clamp(240px, 34vw, 380px); box-shadow: var(--shadow-sm); }
/* Natürliches Seitenverhältnis (Hochformat-Fotos), Höhe gedeckelt, zentriert */
.media--photo { width: auto; max-width: 100%; height: auto; max-height: 480px; margin-inline: auto; box-shadow: var(--shadow-sm); }
/* Vorher/Nachher (quadratisch), vollständig sichtbar */
.media--beforeafter { width: 100%; max-width: 620px; height: auto; margin-inline: auto; box-shadow: var(--shadow-sm); }

/* 9. HERO ------------------------------------------------------------------- */
.hero { position: relative; color: #f3ede2; overflow: hidden; }
.hero--dark { background: var(--grad-ink); }
.hero--photo { background: var(--grad-ink); }
.hero--photo .hero__bg {
  position: absolute; inset: 0;
  background-color: var(--ink);
  background-image: var(--grad-ink);   /* Fallback; echtes Foto per inline background-image */
  background-size: cover;
  background-position: center;
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.55), rgba(20,18,15,.75)); }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(56px, 9vw, 104px); }
.hero--sm .hero__inner { padding-block: clamp(40px, 6vw, 64px); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #e4ddd0; font-size: clamp(17px, 2.2vw, 20px); max-width: 54ch; margin-top: 14px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* 10. GOLD-CTA-BANNER ------------------------------------------------------- */
.cta-banner { background: var(--grad-gold); color: #fff; }
.cta-banner__inner { padding-block: clamp(40px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; margin: 0 0 6px; }
.cta-banner p { color: rgba(255, 255, 255, .9); margin: 0; font-size: 17px; }
.cta-banner .btn--light { background: #fff; color: var(--gold-dark); }
.cta-banner .btn--light:hover { background: #fff; color: var(--ink); }
.cta-banner .btn--outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.cta-banner .btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Kleiner Hinweis-Banner (z. B. "andere Leistung gesucht?") */
.notice-banner {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.notice-banner p { margin: 0; }

/* 11. SEITEN-SPEZIFISCHE LAYOUTS -------------------------------------------- */
/* Einsatzgebiet (Startseite) */
.area-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.area-round {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid #fff;
}
.area-round .ph { min-height: 100%; height: 100%; border-radius: 0; }
.area-round img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Zweispalten-Layout (Leistung / Standort) */
.split { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.split--wide-left { grid-template-columns: 1.6fr 1fr; }
.sidebar-card { position: sticky; top: 96px; }

/* Sidebar-Buttonstapel */
.btn-stack { display: flex; flex-direction: column; gap: 10px; }

/* Leistungsliste auf Standortseite */
.svc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 22px; }
.svc-links a {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 4px; border-bottom: 1px solid var(--line);
}
.svc-links a:hover { color: var(--gold-dark); }
.svc-links a .arrow { color: var(--gold); flex: none; }

/* Standort-Bildkacheln (Übersicht) */
.loc-card { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; }
.loc-card__img { width: 100%; height: 190px; object-fit: cover; display: block; }
.loc-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.loc-card__body h3 { margin: 0 0 6px; font-size: 20px; }
.loc-card__body p { margin: 0 0 16px; font-size: 15px; color: var(--ink-soft); }
.loc-card__body .tile__link { margin-top: auto; }

/* Karten-Raster andere Städte */
.place-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.place-card b { font-size: 17px; }
.place-card span { font-family: var(--sans); font-size: 13.5px; color: var(--gold-dark); font-weight: 700; display: inline-flex; gap: 5px; }

/* Kontaktseite -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.contact-method { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-method:first-of-type { padding-top: 0; }
.contact-method__icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: var(--gold-tint); border: 1px solid rgba(184,146,79,.25);
  color: var(--gold-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-method__icon svg { width: 22px; height: 22px; }
.contact-method h4 { margin: 0 0 3px; font-size: 16px; }
.contact-method a { font-family: var(--sans); font-size: 16px; font-weight: 700; }
.contact-method p { margin: 0; font-family: var(--sans); font-size: 14.5px; color: var(--ink-soft); }

/* Karten-Platzhalter (klick-zu-öffnen, DSGVO-freundlich, kein Auto-Laden) */
.map-embed {
  margin-top: 8px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(rgba(250,247,241,.4), rgba(250,247,241,.4)),
    repeating-linear-gradient(0deg, rgba(184,146,79,.12) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(184,146,79,.12) 0 1px, transparent 1px 34px),
    var(--bg);
  min-height: 220px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px;
}
.map-embed__pin { text-align: center; }
.map-embed__pin svg { width: 34px; height: 34px; color: var(--gold-dark); }
.map-embed__pin b { display: block; margin: 8px 0 4px; }

/* Goldenes Formular-Panel */
.form-panel {
  position: relative;
  background: linear-gradient(180deg, #fffdf8, #fbf4e7);
  border: 1px solid #ecd9b0;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.form-panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad-gold); border-radius: var(--radius) var(--radius) 0 0;
}
.form-panel h3 { margin-top: 6px; }

.field { margin-bottom: 16px; }
.field label { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  width: 100%; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint);
}
.field textarea { min-height: 130px; resize: vertical; }

.check-field { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; }
.check-field input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--gold-dark); }
.check-field label { font-family: var(--sans); font-size: 13.5px; color: var(--ink-soft); font-weight: 400; line-height: 1.5; }

.form-note { font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft); text-align: center; margin: 12px 0 0; }
.form-success {
  font-family: var(--sans); font-size: 15px;
  background: rgba(184,146,79,.1); border: 1px solid rgba(184,146,79,.35);
  color: var(--gold-dark); border-radius: 8px; padding: 14px 16px; margin-bottom: 18px;
}

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

/* SEO-Seite: Index- & Kombinationslisten */
.svc-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 16px; }
.svc-index__link {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  display: flex; align-items: center;
  padding: 12px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px;
  transition: border-color var(--t), color var(--t), box-shadow var(--t);
}
.svc-index__link:hover { border-color: #dccfb4; color: var(--gold-dark); box-shadow: var(--shadow-sm); }

.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.combo h3 { font-size: 18px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.combo h3 a { color: var(--ink); }
.combo h3 a:hover { color: var(--gold-dark); }
.combo__list { font-family: var(--sans); font-size: 14px; columns: 2; column-gap: 18px; }
.combo__list li { margin-bottom: 7px; break-inside: avoid; }
.combo__list a { color: var(--ink-soft); }
.combo__list a:hover { color: var(--gold-dark); }
@media (max-width: 620px) { .combo__list { columns: 1; } }

/* Rechtstext-Seiten (Impressum / Datenschutz) */
.legal-doc { max-width: 820px; }
.legal-doc h2 { font-size: 22px; margin-top: 36px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 17px; margin-top: 24px; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); }
.legal-doc a { word-break: break-word; }
.legal-note {
  background: var(--gold-tint); border: 1px solid rgba(184,146,79,.3);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px;
  font-family: var(--sans); font-size: 14px; color: var(--ink-soft);
}

/* FAQ-Akkordeon (aufklappbare Fragen) */
.faq-accordion { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.faq-item[open] { border-color: #dccfb4; box-shadow: var(--shadow-sm); }
.faq-item > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark);
  transform: rotate(45deg); transition: transform var(--t);
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-item > summary:hover { color: var(--gold-dark); }
.faq-item__a { padding: 0 24px 22px; }
.faq-item__a p { margin: 0; color: var(--ink-soft); }

/* 12. TOAST (Hinweis für noch nicht gebaute Seiten) ------------------------- */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  font-family: var(--sans); font-size: 14px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 200;
  max-width: min(90vw, 460px);
  display: flex; align-items: center; gap: 10px;
}
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); flex: none; }
.toast.is-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* 13. RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .area-grid { grid-template-columns: 1fr; gap: 28px; }
  .area-round { max-width: 380px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .split--wide-left { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

/* Navigation → Mobile: früh umschalten, damit die breite Navigation nie gedrängt wirkt */
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .mainnav {
    position: fixed;
    top: 74px; left: 0; right: 0;
    /* Explizite Höhe statt bottom:0 — der Header ist durch backdrop-filter der
       Bezugsrahmen des fixierten Panels, deshalb würde bottom:0 die Höhe auf die
       Header-Höhe kollabieren. */
    height: calc(100vh - 74px);
    height: calc(100dvh - 74px);
    z-index: 90;                 /* unter dem Header (100), über dem Seiteninhalt */
    background: var(--bg);
    margin: 0;
    padding: 18px var(--gutter) 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--t);
    border-top: 1px solid var(--line);
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .mainnav { transform: translateX(0); }
  .mainnav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .mainnav .navlink { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 16px; border-radius: 8px; white-space: normal; }
  .mainnav .navlink:hover { background: var(--gold-tint); }

  .mega {
    position: static; transform: none; width: auto; max-width: none;
    box-shadow: none; border: 0; border-radius: 0;
    padding: 4px 8px 10px 18px; opacity: 1; visibility: visible;
    display: none;
  }
  .has-mega.is-open .mega { display: block; transform: none; }  /* höhere Spezifität als Desktop-Open-Regel überschreiben */
  .mega__cols { grid-template-columns: 1fr; }
  .mega--std .mega__cols { grid-template-columns: 1fr; }

  .mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
}

/* Inhalts-Raster zusammenklappen */
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .check-list--2col { grid-template-columns: 1fr; }
  .svc-links { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .wrap { justify-content: center; text-align: center; }
  .footer-bottom .legal a { margin: 0 9px; }
  .cta-banner__inner { flex-direction: column; align-items: flex-start; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
