/* ==========================================================================
   HALL Haus- und Bau Service · Werbeagentur Hoffmann · 2026
   Mobile First · Design-Tokens aus der Visitenkarte (Indigo + Weiß)
   ========================================================================== */

/* ---------- Schriften (lokal, keine Google-Verbindung) ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/archivo-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-slab-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #0f0d1f;
  --bg-soft: #161330;
  --bg-panel: #1e1a3f;
  --ink: #f3f2f9;
  --ink-muted: #a9a6c2;
  --brand: #2c2380;          /* Indigo der Visitenkarte */
  --brand-bright: #3d32b0;
  --accent: #8f86ff;         /* Bildschirm-Akzent, aus dem Indigo aufgehellt */
  --accent-strong: #5a4ef0;
  --indigo: #2a1d7c;         /* Logo-Indigo */
  --line: rgba(243, 242, 249, 0.12);
  --ghost: rgba(243, 242, 249, 0.09);
  --ghost-border: rgba(243, 242, 249, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- Helle Bereiche (wie die weiße Seite der Visitenkarte) ---------- */
.theme-light {
  --bg: #ffffff; --bg-soft: #f4f3fb; --bg-panel: #ebe9f7;
  --ink: #1b1548; --ink-muted: #5f5a85;
  --accent: #3d32b0; --accent-strong: #2a1d7c;
  --line: rgba(27, 21, 72, 0.12); --ghost: rgba(42, 29, 124, 0.08); --ghost-border: rgba(27, 21, 72, 0.28);
  background: var(--bg); color: var(--ink);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--accent); color: var(--bg); padding: 0.6rem 1rem; border-radius: 4px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- Typo-Bausteine ---------- */
.label {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent);
}
.label::before { content: ""; width: 2.2rem; height: 2px; background: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 6vw, 3.6rem); }
.accent { color: var(--accent); }
p { margin: 0 0 1.1rem; }
.muted { color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  font: inherit; font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; background: transparent; color: inherit;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn-solid { background: var(--accent-strong); color: #fff; }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--accent); color: var(--bg); transform: translateY(-2px); }
.theme-light .btn-solid:hover, .theme-light .btn-solid:focus-visible { color: #fff; }
.btn-ghost { border-color: var(--ghost-border); color: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--ink); background: var(--ink); color: var(--bg); }

/* ---------- Fortschrittsbalken ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 500; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.preloader-logo { width: min(320px, 70vw); height: auto; }
.preloader-line { position: relative; width: 220px; height: 2px; background: var(--line); overflow: hidden; }
.preloader-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: sweep 1.3s var(--ease) infinite; }
@keyframes sweep { 0% { transform: translateX(-100%); } 60% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 50px; width: auto; }
.brand-footer .brand-logo { height: 64px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150; height: var(--header-h);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header { background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(27, 21, 72, 0.12); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-right { display: flex; align-items: center; gap: 0.6rem; }

.lang-switch { display: inline-flex; border: 1.5px solid var(--ghost-border); border-radius: 999px; overflow: hidden; }
.lang-switch a, .lang-switch span { display: block; padding: 0.38rem 0.7rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; }
.lang-switch .is-current { background: var(--ink); color: var(--bg); }
.lang-switch a:hover, .lang-switch a:focus-visible { background: var(--accent); color: #fff; }

.main-nav { display: none; }
.burger { width: 46px; height: 46px; border: 1.5px solid var(--ghost-border); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.35s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.offcanvas {
  position: fixed; inset: 0; z-index: 140; background: var(--bg-soft);
  padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 2rem;
  transform: translateY(-100%); transition: transform 0.6s var(--ease); visibility: hidden;
}
.offcanvas.is-open { transform: none; visibility: visible; }
.offcanvas nav a { display: block; padding: 0.55rem 0; font-size: 1.9rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.offcanvas nav a:hover { color: var(--accent); }
.offcanvas-contact { font-size: 1rem; color: var(--ink-muted); }
.offcanvas-contact a { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; padding: 0.25rem 0; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-slider { position: absolute; inset: 0; will-change: transform; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.92) contrast(1.05); transform: scale(1); }
.hero-slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,13,31,0.35) 0%, rgba(15,13,31,0.08) 30%, rgba(15,13,31,0.55) 62%, rgba(15,13,31,0.92) 90%, var(--bg) 100%), linear-gradient(90deg, rgba(15,13,31,0.55) 0%, rgba(15,13,31,0) 60%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5.5rem; }
.hero-kicker { margin-bottom: 1.4rem; color: #c9c4ff; }
.hero-kicker::before { background: #c9c4ff; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 6.2rem); max-width: 15ch; }
.rotator { display: inline-block; color: var(--accent); white-space: nowrap; }
.rotator.is-out { animation: wordOut 0.45s var(--ease) forwards; }
.rotator.is-in { animation: wordIn 0.6s var(--ease) forwards; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-0.35em); filter: blur(4px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.35em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.hero-sub { max-width: 40rem; margin: 1.6rem 0 2.2rem; font-size: 1.12rem; color: #d9d7ea; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-count { position: absolute; z-index: 3; right: 1.25rem; bottom: 1.6rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; color: var(--ink-muted); }
.hero-count b { color: var(--ink); font-weight: 700; }

/* ---------- Skizzen-Band ---------- */
.sketch-band { background: var(--bg); padding: 2.5rem 0 0; }
.sketch-band svg { width: 100%; height: auto; display: block; }
.sketch-band path { fill: none; stroke: var(--ink-muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sketch-band .sk-accent { stroke: var(--accent); }

/* ---------- Sektionen ---------- */
.section { position: relative; padding: 7rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { position: relative; margin-bottom: 3.5rem; }
.section-head > *:not(.ghost-word) { position: relative; z-index: 1; }
.section-head h2 { margin-top: 1.1rem; }
.ghost-word {
  position: absolute; left: 0; top: -0.55em; z-index: 0;
  font-size: clamp(4.5rem, 14vw, 11rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px var(--ghost);
  white-space: nowrap; pointer-events: none; user-select: none; will-change: transform;
}

/* Reveal + Stagger */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--rd, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 01 Über uns ---------- */
.about-grid { display: grid; gap: 3.5rem; }
.statement { font-size: clamp(1.6rem, 4.4vw, 2.7rem); font-weight: 700; line-height: 1.18; margin-bottom: 2rem; }
.statement span { display: block; color: var(--accent); }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.counter-value { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; line-height: 1; }
.counter-label { margin-top: 0.5rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); }

.media { position: relative; overflow: hidden; background: var(--bg-panel); margin: 0; width: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transform: translateY(var(--py, 0)) scale(1.14); transition: filter 0.8s var(--ease); }
.media:hover img, .media:focus-within img { filter: grayscale(0); }
.about-media { aspect-ratio: 4 / 3; }
.media-caption { position: absolute; left: 0; bottom: 0; z-index: 2; background: var(--accent-strong); color: #fff; padding: 0.7rem 1.1rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- Zitat ---------- */
.quote-band { background: var(--bg-soft); padding: 6.5rem 0; text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 52rem; }
.quote-band p { font-size: clamp(1.45rem, 4vw, 2.4rem); font-weight: 300; line-height: 1.35; margin-bottom: 1.6rem; }
.quote-band cite { font-style: normal; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }

/* ---------- 02 Leistungen (Visitenkarten-Layout: indigo Liste + Detailfeld) ---------- */
.service-intro { max-width: 46rem; color: var(--ink-muted); margin-top: 1.4rem; }
.svc { display: grid; box-shadow: 0 30px 80px rgba(27, 21, 72, 0.12); }
.svc-nav {
  background: var(--indigo); color: #fff;
  display: flex; gap: 0.4rem; overflow-x: auto; padding: 1rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.svc-nav::-webkit-scrollbar { display: none; }
.svc-tab {
  flex: none; display: inline-flex; align-items: center; gap: 0.7rem;
  border: 1.5px solid rgba(255, 255, 255, 0.28); border-radius: 999px; background: transparent; color: #fff; cursor: pointer;
  font-family: "Roboto Slab", Georgia, serif; font-weight: 700; font-size: 0.98rem; line-height: 1.2;
  padding: 0.6rem 1rem; white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), padding 0.45s var(--ease);
}
.svc-tab-no { font-family: "Archivo", sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.6; }
.svc-tab[aria-selected="true"] { background: #fff; color: var(--indigo); border-color: #fff; }
.svc-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.svc-panels { display: grid; background: var(--bg-soft); border: 1px solid var(--line); }
.svc-panel {
  grid-area: 1 / 1; padding: 2.2rem 1.4rem 2.4rem;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0.5s;
}
.svc-panel.is-active { opacity: 1; visibility: visible; transform: none; }
.svc-panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.svc-count { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); }
.svc-count b { display: block; font-size: clamp(3rem, 9vw, 5.5rem); line-height: 0.9; font-weight: 800; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 0.4rem; }
.svc-icon { width: 76px; height: 76px; flex: none; }
.svc-icon path { fill: none; stroke: var(--indigo); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-panel h3 { font-family: "Roboto Slab", Georgia, serif; font-size: clamp(1.7rem, 4.6vw, 2.7rem); font-weight: 700; color: var(--indigo); margin-bottom: 1.1rem; }
.svc-panel p { max-width: 40rem; color: var(--ink-muted); }
.svc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0 2rem; padding: 0; }
.svc-chips li { font-size: 0.8rem; font-weight: 600; padding: 0.4rem 0.85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.svc-link { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--accent-strong); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 0.2rem; transition: gap 0.35s var(--ease), color 0.3s; }
.svc-link:hover { gap: 0.9rem; color: var(--accent); }

/* ---------- Vermieter ---------- */
.hosts-grid { display: grid; gap: 3rem; align-items: center; }
.hosts-media { aspect-ratio: 4 / 5; }
.check-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.check-list li { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.check-list i { color: var(--accent); margin-top: 0.3rem; }

/* ---------- 03 Einblicke ---------- */
.tiles { display: grid; gap: 1rem; }
.tile { position: relative; aspect-ratio: 4 / 3; margin: 0; }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.2rem 1.2rem 1.1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15,13,31,0.92) 70%);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
@media (hover: hover) {
  .tile figcaption { transform: translateY(101%); opacity: 0; }
}
.tile:hover figcaption, .tile:focus-within figcaption { transform: none; opacity: 1; }
.tile-cat { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); }
.tile-name { display: block; margin-top: 0.25rem; font-size: 1.15rem; font-weight: 700; }
.tiles-note { margin-top: 2rem; font-size: 0.92rem; color: var(--ink-muted); }

/* ---------- 04 Einsatzgebiet ---------- */
.area-grid { display: grid; gap: 3rem; }
.place-list { list-style: none; margin: 2rem 0 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.place-list li { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.4rem 0; break-inside: avoid; }
.place-list i { color: var(--accent); font-size: 0.85rem; }
.gmap-container { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--bg-panel); border: 1px solid var(--line); overflow: hidden; }
.gmap-container.is-live { filter: grayscale(1) invert(0.92) contrast(0.9); }
.gmap-container.is-live .leaflet-marker-icon, .gmap-container.is-live .leaflet-marker-shadow { filter: invert(1) hue-rotate(180deg); }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: center; color: var(--ink-muted); font-size: 0.9rem; }
.map-consent i { font-size: 2rem; color: var(--accent); }
.map-consent p { max-width: 26rem; margin: 0; }
.leaflet-container { font-family: inherit; background: #222; }

/* ---------- 05 Kontakt ---------- */
.contact-grid { display: grid; gap: 3.5rem; }
.contact-lead { font-size: 1.15rem; color: var(--ink-muted); max-width: 34rem; margin: 1.6rem 0 2rem; }
.contact-blocks { display: grid; gap: 2.4rem; }
.contact-block h3 { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; font-weight: 700; }
.contact-block address { font-style: normal; }
.contact-block address + address { margin-top: 1rem; }
.contact-links a { display: flex; align-items: center; gap: 0.8rem; padding: 0.45rem 0; text-decoration: none; transition: color 0.3s; }
.contact-links a:hover { color: var(--accent); }
.contact-links i, .contact-links .ico { width: 1.2rem; text-align: center; color: var(--accent); }
.socials { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.socials a { width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background 0.35s, border-color 0.35s, color 0.35s; }
.socials a:hover, .socials a:focus-visible { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.socials i { font-size: 0; }
.socials i::before { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 0; background: var(--bg); }
.footer-grid { display: grid; gap: 2rem; }
.footer-keywords { color: var(--ink-muted); font-size: 0.85rem; max-width: 36rem; margin-top: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.92rem; }
.footer-nav a { text-decoration: none; color: var(--ink-muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; font-size: 0.82rem; color: var(--ink-muted); }
.footer-bottom a { color: var(--ink-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
.agency-branding { font-size: 0.82rem; color: var(--ink-muted); }
.agency-branding p { margin: 0; }
.agency-branding a { color: var(--ink); }

/* ---------- Nach oben ---------- */
.to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 130;
  width: 50px; height: 50px; border: 0; border-radius: 50%;
  background: var(--accent-strong); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s, background 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--bg); }
.to-top i { font-size: 0; line-height: 1; }
.to-top i::before { font-size: 1rem; }

/* ---------- Cookie-/Karten-Hinweis ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 260;
  max-width: 34rem; padding: 1.4rem 1.4rem 1.2rem;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  font-size: 0.9rem; color: var(--ink-muted);
  transform: translateY(140%); transition: transform 0.6s var(--ease);
}
.cookie-banner.is-visible { transform: none; }
.cookie-banner strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 0.4rem; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.cookie-actions .btn { padding: 0.7rem 1.2rem; font-size: 0.85rem; }

/* ---------- Unterseiten (Impressum, Datenschutz, 404) ---------- */
.page-hero { padding: calc(var(--header-h) + 5rem) 0 3rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); margin-top: 1rem; }
.legal { padding: 4rem 0 6rem; }
.legal .wrap { max-width: 860px; }
.legal h2 { font-size: 1.35rem; margin: 2.6rem 0 0.8rem; }
.legal h3 { font-size: 1.05rem; margin: 1.8rem 0 0.5rem; }
.legal p, .legal li { color: var(--ink-muted); }
.legal a { color: var(--accent); }
.legal ul { padding-left: 1.2rem; }
.notfound { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 2rem) 0 4rem; }
.notfound-code { font-size: clamp(6rem, 26vw, 15rem); font-weight: 800; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.notfound h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin: 1.5rem 0 1rem; }

/* ==========================================================================
   Tablet / Desktop
   ========================================================================== */
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .contact-blocks { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
@media (min-width: 900px) {
  .wrap { padding: 0 2.5rem; }
  .section { padding: 10.5rem 0; }
  .main-nav { display: flex; align-items: center; gap: 1.7rem; }
  .main-nav a { font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--ink); position: relative; padding: 0.3rem 0; }
  .main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
  .main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
  .main-nav a.nav-cta { border: 1.5px solid var(--accent-strong); background: var(--accent-strong); border-radius: 999px; padding: 0.5rem 1.15rem; color: #fff; }
  .main-nav a.nav-cta::after { display: none; }
  .main-nav a.nav-cta:hover { background: var(--accent); border-color: var(--accent); }
  .burger { display: none; }
  .hero-content { padding-bottom: 7rem; }
  .hero-count { right: 2.5rem; bottom: 2.4rem; }
  .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 6rem; align-items: center; }
  .svc { grid-template-columns: minmax(300px, 0.85fr) 1.15fr; }
  .svc-nav { flex-direction: column; gap: 0; overflow: visible; padding: 2.6rem 2.8rem; }
  .svc-tab { border: 0; border-radius: 0; padding: 0.5rem 0; font-size: 1.28rem; color: rgba(255, 255, 255, 0.62); white-space: normal; text-align: left; position: relative; }
  .svc-tab::after { content: ""; position: absolute; left: -2.8rem; top: 50%; width: 0; height: 2px; background: #fff; transition: width 0.45s var(--ease); }
  .svc-tab:hover { color: #fff; }
  .svc-tab[aria-selected="true"] { background: none; color: #fff; padding-left: 0.6rem; }
  .svc-tab[aria-selected="true"]::after { width: 2.2rem; }
  .svc-panels { border-left: 0; }
  .svc-panel { padding: 3.6rem 4rem; display: flex; flex-direction: column; justify-content: center; }
  .svc-icon { width: 104px; height: 104px; }
  .hosts-grid { grid-template-columns: 0.9fr 1.1fr; gap: 6rem; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .area-grid { grid-template-columns: 0.85fr 1.15fr; gap: 6rem; align-items: center; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 6rem; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .to-top { right: 2rem; bottom: 2rem; }
  .cookie-banner { left: 2rem; bottom: 2rem; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide.is-active img { animation: none; }
}

/* ---------- Hilfsklassen ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.fax-line { display: flex; align-items: center; gap: 0.8rem; padding: 0.45rem 0; color: var(--ink-muted); }
.fax-line i { width: 1.2rem; text-align: center; color: var(--accent); }
.socials-inline { margin-top: 0; }
.page-hero .wrap { max-width: 860px; }

/* ---------- Feinschliff v2 ---------- */
@media (max-width: 639px) {
  .hero-kicker { font-size: 0.68rem; letter-spacing: 0.14em; }
  .hero-kicker::before { display: none; }
  .brand-logo { height: 44px; }
}
@media (min-width: 900px) {
  .brand-logo { height: 56px; }
}

/* ---------- v4: Logo im ungescrollten Zustand größer, Header schrumpft beim Scrollen ---------- */
:root { --header-h-top: 92px; }
html { scroll-padding-top: var(--header-h); }
.site-header { height: var(--header-h-top); transition: height 0.45s var(--ease), box-shadow 0.4s var(--ease); }
.site-header.is-scrolled { height: var(--header-h); }
.brand-logo { height: 66px; transition: height 0.45s var(--ease); }
.site-header.is-scrolled .brand-logo { height: 44px; }
.hero-content { padding-top: calc(var(--header-h-top) + 3rem); }
.offcanvas { padding-top: calc(var(--header-h-top) + 2rem); }
.page-hero { padding-top: calc(var(--header-h-top) + 5rem); }
.notfound { padding-top: calc(var(--header-h-top) + 2rem); }
.brand-footer .brand-logo { height: 70px; }
@media (min-width: 900px) {
  :root { --header-h-top: 128px; }
  .brand-logo { height: 96px; }
  .site-header.is-scrolled .brand-logo { height: 54px; }
  .brand-footer .brand-logo { height: 84px; }
}

/* ---------- v8: Social-Icons exakt mittig (Pflicht-&nbsp; neutralisieren) ---------- */
.socials a { color: var(--ink); }
.socials i { position: relative; display: block; width: 1.1rem; height: 1.1rem; font-size: 1.1rem; line-height: 1; overflow: hidden; color: transparent; }
.socials i::before { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--ink); }
.socials a:hover i::before, .socials a:focus-visible i::before { color: #fff; }

/* ---------- Freigabe 11/2026: Firmenwagen nur mit Logo, Signet links nicht anschneiden ---------- */
.about-media img { transform-origin: 0 50%; }

/* ==========================================================================
   Unterseiten (Design-Mockup, 11/2026)
   ========================================================================== */
.page-hero-lead { margin-top: 1.4rem; max-width: 40rem; font-size: 1.15rem; color: var(--ink-muted); }

/* aktive Seite in Navigation, Offcanvas und Footer */
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a.nav-cta[aria-current="page"] { background: var(--accent); border-color: var(--accent); }
.offcanvas nav a[aria-current="page"] { color: var(--accent); }
.footer-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Startseite: zwei Links je Leistung */
.svc-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.svc-link-mail { color: var(--ink-muted); border-bottom-width: 1px; font-weight: 600; }

/* Leistungsseite */
.jump-list { margin: 1.6rem 0 1rem; }
.jump-list a { color: inherit; text-decoration: none; display: block; }
.jump-list li { transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.jump-list li:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.svc-detail { display: grid; gap: 2rem; padding: 3.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.svc-detail:first-child { border-top: 0; }
.svc-detail-media { aspect-ratio: 4 / 3; }
.svc-detail h2 { font-family: "Roboto Slab", Georgia, serif; font-size: clamp(1.7rem, 4.6vw, 2.6rem); color: var(--indigo); margin: 0.6rem 0 1.1rem; }
.svc-detail p { color: var(--ink-muted); }
.svc-detail .svc-count b { font-size: clamp(2.6rem, 7vw, 4rem); }
@media (min-width: 900px) {
  .svc-detail { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; padding: 5rem 0; }
  .svc-detail:nth-child(even) .svc-detail-media { order: 2; }
}

/* Abschluss-Band */
.cta-text { max-width: 42rem; color: var(--ink-muted); }

/* Kontaktformular */
.contact-form { margin-top: 2.4rem; }
.form-grid { display: grid; gap: 1.1rem; }
.form-field label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.45rem; }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 0; padding: 0.85rem 1rem; transition: border-color 0.3s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 9rem; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; color: var(--ink-muted); }
.form-check input { margin-top: 0.3rem; accent-color: var(--accent-strong); }
.form-check a { color: var(--accent); }
.contact-blocks .about-media { margin-top: 0.5rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field-full { grid-column: 1 / -1; }
}
.contact-blocks .about-media { grid-column: 1 / -1; }

/* ---------- Kontaktformular: Spamschutz und Statusmeldung ---------- */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: flex; gap: 0.8rem; align-items: flex-start; margin-top: 2rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status-ok { background: #ecf8f0; border-color: #9fd4b0; color: #1d5a33; }
.form-status-err { background: #fdf0ef; border-color: #f0b4ad; color: #8a2a20; }
.form-status i { margin-top: 0.2rem; }

/* ==========================================================================
   Referenzen und Google-Bewertungen (12/2026)
   ========================================================================== */
.ref-projects { display: grid; gap: 4.5rem; margin-top: 1rem; }
.ref-project { display: grid; gap: 1.6rem; }
.ref-head h3 { font-family: "Roboto Slab", Georgia, serif; font-size: clamp(1.5rem, 3.6vw, 2.1rem); color: var(--indigo); margin-bottom: 0.9rem; }
.ref-head .svc-chips { margin: 0 0 1rem; }
.ref-head p { color: var(--ink-muted); }
.ref-gallery { display: grid; gap: 0.8rem; grid-template-columns: repeat(2, 1fr); }
.ref-gallery.ref-count-1 { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.ref-photo { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-soft); }
.ref-photo a { display: block; height: 100%; cursor: zoom-in; }
.ref-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ref-photo a:hover img, .ref-photo a:focus-visible img { transform: scale(1.04); }
.ref-tag { position: absolute; left: 0.7rem; top: 0.7rem; background: var(--indigo); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.3rem 0.6rem; pointer-events: none; }
.ref-tag-before { background: #fff; color: var(--indigo); }
@media (min-width: 640px) {
  .ref-gallery.ref-count-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .ref-project { grid-template-columns: minmax(260px, 0.8fr) 2fr; gap: 3rem; align-items: start; }
  .ref-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.reviews-grid { display: grid; gap: 2.5rem; align-items: center; }
.review-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; min-height: 240px; padding: 3rem 2rem; background: var(--bg-panel); border: 1px solid var(--line); }
.review-stars { display: flex; gap: 0.45rem; font-size: 2rem; color: #fbbc04; }
.review-g { font-size: 2.4rem; color: var(--ink-muted); }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: 1.2fr 0.8fr; gap: 5rem; } }

.tiles-more { margin-top: 2rem; }

/* Bildbetrachter */
.lightbox { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 4.5rem 1rem; background: rgba(10, 8, 25, 0.94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 900px); max-height: 82vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.1rem; cursor: pointer; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, 0.2); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 1.2rem; padding: 0 4rem; text-align: center; color: #d9d7ea; font-size: 0.9rem; }

/* Navigation mit sechs Punkten: kein Umbruch, auf mittleren Breiten etwas enger */
.main-nav a { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1199px) {
  .main-nav { gap: 1.05rem; }
  .main-nav a { font-size: 0.86rem; }
}
/* Referenzen mobil: bei drei Fotos das erste (Vorher) über die volle Breite */
@media (max-width: 639px) {
  .ref-gallery.ref-count-3 .ref-photo:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}

/* ---------- Mobilansicht 12/2026: kein seitliches Verschieben, Fotos nicht mehr schmal ---------- */
html, body { overflow-x: clip; }
.section, .page-hero, .quote-band { overflow-x: clip; }
@media (max-width: 639px) {
  .ref-gallery, .ref-gallery.ref-count-3, .ref-gallery.ref-count-1 { grid-template-columns: 1fr; max-width: none; gap: 0.9rem; }
  .ref-photo, .ref-gallery.ref-count-3 .ref-photo:first-child { aspect-ratio: 1 / 1; }
}
@media (max-width: 899px) {
  .hosts-media { aspect-ratio: 4 / 3; }
}
