﻿/* ============================================================
   B&A â€” Design System
   Anthracite base, warm copper/amber accent, Fraunces + Inter
   ============================================================ */

@import url('../fonts/fonts.css');

:root {
  color-scheme: dark;
  --bg: #131215;
  --bg-soft: #1a1a1e;
  --surface: #201f23;
  --surface-2: #27262b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f3f1ec;
  --text-muted: #b3aea8;
  --text-faint: #7d7874;

  --accent: #d98b3f;
  --accent-light: #f0ab68;
  --accent-dark: #a8631f;
  --accent-contrast: #1a1208;

  --green: #7fae7a;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(217, 139, 63, 0.25), 0 20px 60px rgba(217, 139, 63, 0.08);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #131215;
    --bg-soft: #1a1a1e;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(217, 139, 63, 0.10), transparent 60%),
    radial-gradient(50rem 35rem at -10% 30%, rgba(217, 139, 63, 0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

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

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.amp {
  display: inline;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; padding-block: 112px; }

@media (max-width: 720px) {
  section { padding-block: 72px; }
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.btn {
  --btn-fg: var(--accent-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}

.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--accent-light), var(--accent) 60%, var(--accent-dark));
  color: var(--btn-fg);
  box-shadow: 0 10px 30px -8px rgba(217, 139, 63, 0.55);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg) translateX(0%);
  transition: transform .65s ease-in-out;
}

/* translateX(600%) of this element's own 35%-of-parent width clears past the
   button regardless of its size - animating transform instead of left keeps
   this off the layout/paint path. */
.btn-primary:hover::after { transform: skewX(-20deg) translateX(600%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(217, 139, 63, 0.7); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }

.btn:active { transform: scale(0.97); transition: transform .14s ease-out; }

.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  padding: 12px 0;
  /* No backdrop-filter here: the nav is position:fixed, so a blur would be
     recomputed on every scroll frame for the entire viewport behind it - very
     costly without GPU acceleration. A more opaque background gives a similar
     "solid header" look for near-zero cost. */
  background: rgba(17, 16, 19, 0.94);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.brand img { height: 58px; width: auto; flex-shrink: 0; }

.brand-text { line-height: 1.2; white-space: nowrap; }
.brand-text strong { display: block; font-size: 1.5rem; font-weight: 600; white-space: nowrap; }
.brand-text > span { display: block; font-size: 0.92rem; color: var(--text-muted); letter-spacing: 0.02em; margin-top: 2px; white-space: nowrap; }

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 999px;
}

.nav-pill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  z-index: 0;
  transition: transform .45s var(--ease), width .45s var(--ease);
}

.nav-links a {
  position: relative;
  z-index: 1;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .3s, background .3s;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--accent-contrast); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: background .3s, transform .3s, border-color .3s;
  flex: none;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.icon-btn:active { transform: scale(0.92); transition: transform 140ms ease-out; }
.icon-btn svg { width: 18px; height: 18px; }

.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  align-items: center; justify-content: center;
  color: var(--text);
}
.nav-burger svg { width: 18px; height: 18px; flex: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}

@media (max-width: 640px) {
  .nav .container { gap: 10px; }
  .brand { gap: 10px; }
  .brand img { height: 38px; }
  .brand-text strong { font-size: 1.15rem; }
  .brand-text > span { display: none; }
  .nav-actions { gap: 6px; }
  .icon-btn, .nav-burger { width: 38px; height: 38px; }
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  /* Background is already near-opaque, so the blur added negligible visual
     effect for a full-viewport rendering cost - dropped it. */
  background: rgba(15, 14, 16, 0.98);
  display: flex;
  flex-direction: column;
  padding: 24px 28px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  overflow: hidden;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }

.mobile-menu-bg {
  position: absolute;
  bottom: -6%;
  right: -18%;
  width: 78vw;
  max-width: 480px;
  height: auto;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.mobile-menu-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu-brand img { height: 34px; width: auto; }
.mobile-menu-brand > span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-menu-nav {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.mobile-menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.mobile-menu-nav a:first-child { border-top: 1px solid var(--border); }
.mobile-menu-nav a:active,
.mobile-menu-nav a:hover { color: var(--accent-light); }

.mobile-menu.is-open .mobile-menu-nav a { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(1) { transition-delay: .08s; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(2) { transition-delay: .15s; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(3) { transition-delay: .22s; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(4) { transition-delay: .29s; }

.mm-label {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.mobile-menu-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-top: 12px;
}

.mobile-menu-cta {
  width: 100%;
  font-weight: 500;
}

.mobile-menu-quick {
  display: flex;
  gap: 14px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 190px;
  padding-bottom: 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Once the grid stacks, the copy was still laid out for the wide two-column
     version (flush left). Centering reads much better as a single column. */
  .hero-copy { text-align: center; }
  .hero-copy .hero-lede, .hero-copy .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
}

/* Tablets (iPad etc.): the visual keeps full width once the grid stacks,
   so a tall aspect-ratio makes it enormous. Phones stay on the default ratio.
   max-height is a hard backstop on top of aspect-ratio: cover-fit backgrounds
   just get cropped shorter, so this can't distort anything. */
@media (min-width: 641px) and (max-width: 960px) {
  .hero-visual { aspect-ratio: 16 / 9; max-height: 55vh; }
  .about-photo { aspect-ratio: 16 / 9; max-height: 55vh; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  margin-top: 18px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-light);
}

.hero-lede {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero-sub {
  margin-top: 14px;
  color: var(--text-faint);
  max-width: 50ch;
  font-size: 0.98rem;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 34px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-badge svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual .ph-fill {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center;
  will-change: transform;
}

.ph-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.ph-slide.is-active { opacity: 1; }

.hero-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgba(19,18,21,0.75));
}

.hero-visual .mono {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  z-index: 2;
}

.stat-pill {
  position: absolute;
  z-index: 3;
  background: rgba(19, 18, 21, 0.72);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}

.stat-pill strong { font-family: var(--font-display); font-size: 1.15rem; display: block; color: var(--accent-light); }
.stat-pill > span { font-size: 0.68rem; color: var(--text-muted); }

.stat-pill.pill-top { top: 14px; left: 14px; }
.stat-pill.pill-bottom { bottom: 14px; right: 14px; }

.placeholder-note {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 0.72rem;
  color: var(--text-faint);
  border: 1px dashed var(--border-strong);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 1;
  white-space: nowrap;
}

/* ---------- Trust strip ---------- */

.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 28px;
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 960px) {
  /* flex-wrap packs items by available space, so icons end up at different
     x-positions once they wrap. A fixed 2-col grid keeps both columns'
     icons lined up (item 1+3 left column, item 2+4 right column). */
  .trust-strip .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }
  /* Grid columns default to min-width:auto, so a long unbreakable word (e.g.
     "Betriebshaftpflicht-versichert") can force the column - and the whole
     page - wider than the phone screen. min-width:0 lets the text wrap instead. */
  .trust-item { min-width: 0; }
  .trust-item span { min-width: 0; overflow-wrap: break-word; }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.trust-item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.trust-item strong { color: var(--text); font-weight: 600; }

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { text-align: center; }
  .service-icon { margin-inline: auto; }
  .service-hint { justify-content: center; }
  .service-list { text-align: left; }
}

.service-card {
  position: relative;
  background: linear-gradient(165deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}

/* Press feedback: both are tap/click targets (see main.js toggle()). Higher
   specificity than the base transition above so the press itself is snappy;
   releasing falls back to the slower hover/expand transition, which is fine
   since that's the "settling" motion, not the "did it hear me" one. */
.service-card:active,
.founder-chip:active {
  transform: scale(0.98);
  transition: transform 160ms ease-out;
}

.service-card.is-expanded {
  transform: translateY(-6px);
  border-color: rgba(217, 139, 63, 0.35);
  box-shadow: var(--shadow-glow);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 139, 63, 0.35);
    box-shadow: var(--shadow-glow);
  }
}
.service-card:focus-within { outline: none; }
.service-card:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(217,139,63,0.22), rgba(217,139,63,0.05));
  border: 1px solid rgba(217, 139, 63, 0.3);
  color: var(--accent-light);
  margin-bottom: 22px;
  transition: transform .5s var(--ease), background .5s var(--ease);
}

.service-card.is-expanded .service-icon {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(155deg, rgba(217,139,63,0.3), rgba(217,139,63,0.08));
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(155deg, rgba(217,139,63,0.3), rgba(217,139,63,0.08));
  }
}

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Structure: .service-hint (outer, visibility only) > .hint-pulse (inner,
   animation only). The animation NEVER gets toggled/removed - if it did,
   re-applying "animation: name ..." restarts it at 0%, drifting this hint
   out of sync with every other pulsing hint on the page (this happened
   twice already: once via display:none, once via animation:none). Instead,
   only the outer wrapper's opacity is toggled to hide it - since the inner
   element's own animated opacity is irrelevant once its ancestor is fully
   transparent, this hides it completely without ever touching the timer. */
.service-hint {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  transition: opacity .25s ease;
}
.hint-pulse {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-light);
  animation: serviceHintPulse 1.8s ease-in-out infinite;
}
.service-hint svg { width: 14px; height: 14px; flex: none; }

/* Tapping/Enter toggles .is-expanded (added by main.js - CSS alone can't
   "tap again to close"). Real mouse hover is a separate, gated trigger below
   - iOS Safari keeps :hover "stuck" after a tap, which would otherwise fight
   the tap-to-close toggle on touch devices. */
.service-card.is-expanded .service-hint { opacity: 0; pointer-events: none; }

.service-list {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s ease;
}
.service-card.is-expanded .service-list {
  max-height: 320px;
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .service-hint { opacity: 0; pointer-events: none; }
  .service-card:hover .service-list { max-height: 320px; opacity: 1; }
}
@keyframes serviceHintPulse {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(3px); }
}

.service-list { display: flex; flex-direction: column; gap: 10px; }

.service-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-muted);
  padding-block: 3px;
  border-bottom: 1px dashed var(--border);
}
.service-list li:last-child { border-bottom: none; }

.service-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  transform: translateY(-2px);
}

.services-footer {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.services-footer p { color: var(--text-muted); font-size: 0.92rem; max-width: 44ch; }

/* ---------- Price table (modal) ---------- */

.price-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 24px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-dialog:not([open]) { display: none; }

.price-dialog::backdrop {
  /* No backdrop-filter here on purpose: blurring the whole viewport behind an
     animated element is one of the most expensive things a browser can render,
     and it falls back to slow CPU compositing on machines without GPU
     acceleration. A plain darker tint gives nearly the same visual effect for
     a fraction of the cost. */
  background: rgba(8, 7, 9, 0.82);
}

@keyframes priceDialogIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes priceDialogOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes priceBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes priceBackdropOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
.price-dialog[open] {
  animation: priceDialogIn 0.2s var(--ease) both;
}
.price-dialog[open]::backdrop {
  animation: priceBackdropIn 0.2s var(--ease) both;
}
.price-dialog.is-closing {
  animation: priceDialogOut 0.15s var(--ease) both;
}
.price-dialog.is-closing::backdrop {
  animation: priceBackdropOut 0.15s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  .price-dialog[open],
  .price-dialog[open]::backdrop,
  .price-dialog.is-closing,
  .price-dialog.is-closing::backdrop {
    animation: none;
  }
}

.price-dialog-inner {
  position: relative;
  width: min(880px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 44px;
}

.price-dialog-close {
  position: sticky;
  top: 0;
  float: right;
  margin-left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s, transform .3s;
  flex: none;
}
.price-dialog-close svg { width: 18px; height: 18px; }
.price-dialog-close:hover { background: rgba(255,255,255,0.08); transform: scale(1.06); }

.price-note {
  color: var(--text-muted);
  max-width: 68ch;
  margin-bottom: 40px;
}

.price-groups {
  display: grid;
  gap: 20px;
}

.price-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.price-group summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.price-group summary::-webkit-details-marker { display: none; }

.price-group-title {
  display: inline-block;
}

.price-group-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  color: var(--accent);
  vertical-align: -5px;
}
.price-group-icon svg { width: 100%; height: 100%; }

.price-group summary .chev {
  width: 22px; height: 22px;
  color: var(--accent);
  transition: transform .35s var(--ease);
  flex: none;
}

.price-group[open] summary .chev { transform: rotate(180deg); }

.price-collapse {
  display: grid !important;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .55s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear .55s;
}

.price-group[open] .price-collapse {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .55s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear;
}

.price-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.price-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.price-table th, .price-table td {
  text-align: left;
  padding: 12px 26px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.price-table th { color: var(--text-faint); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.price-table td:first-child { color: var(--text); }

.price-fine {
  margin-top: 26px;
  color: var(--text-faint);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { text-align: center; }
  .founders { justify-content: center; }
}

.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  background: linear-gradient(165deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  overflow: hidden;
}

.about-photo .ph-fill { position: absolute; inset: 0; background-size: cover; background-position: center; }

.about-copy p { color: var(--text-muted); margin-top: 18px; font-size: 1.02rem; }
.about-copy p strong { color: var(--text); }

/* Desktop/tablet-landscape only - the tablet-portrait sidebar already shows these
   same 6 traits (with its own "Unser Anspruch" label) next to the image, so both
   are hidden there to avoid duplication (see the max-width:960 rule further down). */
.about-traits-label { margin-top: 28px; }
.about-traits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  row-gap: 14px;
  margin-top: 14px;
  max-width: 480px;
}
.about-trait { display: flex; align-items: center; gap: 9px; }
.about-trait svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.about-trait span { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* Must come after the unqualified .about-traits rule above, otherwise that
   later, always-applying rule would win the cascade and undo overrides here -
   that ordering bug is what previously caused this to overflow on phones. */
@media (max-width: 640px) {
  /* Phone: show the traits too, but 2 per row (not 3 - "ZuverlÃ¤ssigkeit" /
     "Fachkompetenz" don't fit 3-across) with icons left-aligned in each
     column so they line up vertically instead of drifting per label length. */
  .about-traits {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    max-width: 100%;
    column-gap: 20px;
  }
  .about-trait { justify-content: flex-start; }
}

@media (min-width: 641px) and (max-width: 960px) and (orientation: portrait) {
  /* Tablet portrait already shows these same traits in the sidebar next to
     the image - don't also show the desktop version further down the text. */
  .about-traits, .about-traits-label { display: none; }
}

.founders {
  margin-top: 32px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.founder-chip {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 20px;
  background: var(--surface);
  max-width: 320px;
  cursor: pointer;
  transform: scale(1);
  transition: transform 220ms var(--ease);
}

.founder-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.founder-chip .avatar {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(155deg, var(--accent-light), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-contrast);
  flex: none;
  transform: scale(1);
  transition: transform 260ms var(--ease);
}
.founder-chip.is-expanded .avatar { transform: scale(1.35); }
@media (hover: hover) and (pointer: fine) {
  .founder-chip:hover .avatar { transform: scale(1.35); }
}

/* Initials sit on the gradient by default; a real photo (once uploaded via
   /verwaltung.html) crossfades in on top when the chip opens - blur on the
   initials bridges the swap so it reads as one smooth reveal, not two layers
   trading places. Gated the same way as the hint/bio: real :hover only for
   mouse, .is-expanded (JS) covers tap. */
.avatar-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 260ms var(--ease);
}
.avatar-initials {
  position: relative;
  transition: opacity 220ms ease-out, filter 220ms ease-out;
}
.founder-chip.has-photo.is-expanded .avatar-photo { opacity: 1; }
.founder-chip.has-photo.is-expanded .avatar-initials { opacity: 0; filter: blur(2px); }
.founder-chip.has-photo.is-expanded .founder-top strong { transform: scale(1.08); }
@media (hover: hover) and (pointer: fine) {
  .founder-chip.has-photo:hover .avatar-photo { opacity: 1; }
  .founder-chip.has-photo:hover .avatar-initials { opacity: 0; filter: blur(2px); }
  .founder-chip.has-photo:hover .founder-top strong { transform: scale(1.08); }
}

.founder-top strong {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  transform-origin: left center;
  transition: transform 260ms var(--ease);
}

/* Same outer/inner split as .service-hint (see the comment there) - the
   animation lives on .hint-pulse and is never toggled, so this stays in
   sync with every other pulsing hint on the page regardless of how often
   this particular chip gets opened/closed. */
.founder-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  transition: opacity .25s ease;
}
.founder-hint .hint-pulse {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-light);
  animation: serviceHintPulse 1.8s ease-in-out infinite;
}
.founder-hint svg { width: 12px; height: 12px; flex: none; }
.founder-chip.is-expanded .founder-hint { opacity: 0; pointer-events: none; }

.founder-bio {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  transition: max-height .5s var(--ease), opacity .4s ease, margin-top .5s var(--ease);
}
.founder-chip.is-expanded .founder-bio {
  max-height: 420px;
  opacity: 1;
  margin-top: 8px;
}
@media (hover: hover) and (pointer: fine) {
  .founder-chip:hover .founder-hint { opacity: 0; pointer-events: none; }
  .founder-chip:hover .founder-bio { max-height: 420px; opacity: 1; margin-top: 8px; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

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

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--surface);
}

.contact-methods { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color .3s, background .3s;
}
.contact-method:hover { border-color: rgba(217,139,63,0.35); background: rgba(217,139,63,0.05); }

.contact-method .ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(217,139,63,0.12);
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.contact-method .ico svg { width: 20px; height: 20px; }
.contact-method .ico.ico-clip { overflow: hidden; position: relative; }
.contact-method .ico.ico-whatsapp { position: relative; }

/* ---------- Icon micro-animations ---------- */

/* Some icon animations (phone waves, mail fly-off) move content outside the
   0-24 viewBox on purpose. Chrome shows that overflow by default; Firefox/Safari
   clip it at the SVG's own edge unless told otherwise. */
.icon-anim { overflow: visible; }
.icon-anim * { animation-play-state: paused; }

/* Wrench: tighten a bolt */
.icon-wrench { transform-box: fill-box; }
.icon-wrench .wrench-body { transform-origin: 78% 20%; transform-box: fill-box; }
.icon-wrench .wrench-nut { transform-origin: 50% 50%; transform-box: fill-box; transition: opacity 0.3s ease-in-out; }
@keyframes iconWrenchTurn {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-26deg); }
}
@keyframes iconNutTurn {
  0%, 100% { transform: rotate(45deg); }
  50% { transform: rotate(19deg); }
}
.service-card.is-expanded .icon-wrench .wrench-body,
.price-group[open] .icon-wrench .wrench-body { animation: iconWrenchTurn 1s ease-in-out infinite; animation-play-state: running; }
.service-card.is-expanded .icon-wrench .wrench-nut,
.price-group[open] .icon-wrench .wrench-nut { opacity: 1; animation: iconNutTurn 1s ease-in-out infinite; animation-play-state: running; }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .icon-wrench .wrench-body { animation: iconWrenchTurn 1s ease-in-out infinite; animation-play-state: running; }
  .service-card:hover .icon-wrench .wrench-nut { opacity: 1; animation: iconNutTurn 1s ease-in-out infinite; animation-play-state: running; }
}

/* Leaf: blown by the wind */
.leaf-sway { transform-origin: 60% 55%; transform-box: fill-box; }
@keyframes iconLeafSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(6deg); }
}
@keyframes iconWindDrift {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(16px, -6px); }
}
.service-card.is-expanded .icon-leaf .leaf-sway,
.price-group[open] .icon-leaf .leaf-sway { animation: iconLeafSway 1.6s ease-in-out infinite; animation-play-state: running; }
.service-card.is-expanded .icon-leaf .wind-dot-1,
.price-group[open] .icon-leaf .wind-dot-1 { animation: iconWindDrift 1.4s ease-in-out infinite; animation-play-state: running; }
.service-card.is-expanded .icon-leaf .wind-dot-2,
.price-group[open] .icon-leaf .wind-dot-2 { animation: iconWindDrift 1.4s ease-in-out infinite 0.3s; animation-play-state: running; }
.service-card.is-expanded .icon-leaf .wind-dot-3,
.price-group[open] .icon-leaf .wind-dot-3 { animation: iconWindDrift 1.4s ease-in-out infinite 0.6s; animation-play-state: running; }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .icon-leaf .leaf-sway { animation: iconLeafSway 1.6s ease-in-out infinite; animation-play-state: running; }
  .service-card:hover .icon-leaf .wind-dot-1 { animation: iconWindDrift 1.4s ease-in-out infinite; animation-play-state: running; }
  .service-card:hover .icon-leaf .wind-dot-2 { animation: iconWindDrift 1.4s ease-in-out infinite 0.3s; animation-play-state: running; }
  .service-card:hover .icon-leaf .wind-dot-3 { animation: iconWindDrift 1.4s ease-in-out infinite 0.6s; animation-play-state: running; }
}

/* Gear: turning */
.icon-gear { transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes iconGearSpin {
  to { transform: rotate(360deg); }
}
.service-card.is-expanded .icon-gear,
.price-group[open] .icon-gear { animation: iconGearSpin 2.4s linear infinite; animation-play-state: running; }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .icon-gear { animation: iconGearSpin 2.4s linear infinite; animation-play-state: running; }
}

/* Wifi: signal pulsing outward */
@keyframes iconWifiPulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}
.service-card.is-expanded .icon-wifi .wifi-arc-1,
.price-group[open] .icon-wifi .wifi-arc-1 { animation: iconWifiPulse 1.2s ease-in-out infinite; animation-play-state: running; }
.service-card.is-expanded .icon-wifi .wifi-arc-2,
.price-group[open] .icon-wifi .wifi-arc-2 { animation: iconWifiPulse 1.2s ease-in-out infinite 0.15s; animation-play-state: running; }
.service-card.is-expanded .icon-wifi .wifi-arc-3,
.price-group[open] .icon-wifi .wifi-arc-3 { animation: iconWifiPulse 1.2s ease-in-out infinite 0.3s; animation-play-state: running; }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover .icon-wifi .wifi-arc-1 { animation: iconWifiPulse 1.2s ease-in-out infinite; animation-play-state: running; }
  .service-card:hover .icon-wifi .wifi-arc-2 { animation: iconWifiPulse 1.2s ease-in-out infinite 0.15s; animation-play-state: running; }
  .service-card:hover .icon-wifi .wifi-arc-3 { animation: iconWifiPulse 1.2s ease-in-out infinite 0.3s; animation-play-state: running; }
}

/* Phone: vibrating, with sound waves from both sides */
.icon-phone .phone-body { transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes iconPhoneVibrate {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-0.8px, 0.4px) rotate(-7deg); }
  20% { transform: translate(0.8px, -0.4px) rotate(7deg); }
  30% { transform: translate(-0.8px, 0.4px) rotate(-6deg); }
  40% { transform: translate(0.8px, -0.4px) rotate(6deg); }
  50% { transform: translate(-0.6px, 0.3px) rotate(-5deg); }
  60% { transform: translate(0.6px, -0.3px) rotate(5deg); }
  70% { transform: translate(-0.4px, 0.2px) rotate(-3deg); }
  80% { transform: translate(0.4px, -0.2px) rotate(3deg); }
  90% { transform: translate(0, 0) rotate(0deg); }
}
/* Gated behind real-mouse-hover: iOS Safari keeps :hover "stuck" on a tapped
   link (same issue found and fixed on the service cards), which would leave
   these looping forever after a tap on touch devices. */
@media (hover: hover) and (pointer: fine) {
  .contact-method:hover .icon-phone .phone-body { animation: iconPhoneVibrate 0.5s ease-in-out infinite; animation-play-state: running; }
}

.icon-phone .wave-left,
.icon-phone .wave-right { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.icon-phone .wave-left-1 { transform: translate(0.51px, 9.35px) rotate(-45deg); }
.icon-phone .wave-left-2 { transform: translate(1.16px, 11.47px) rotate(-45deg); }
.icon-phone .wave-right-1 { transform: translate(-1.51px, -8.35px) rotate(-45deg); }
.icon-phone .wave-right-2 { transform: translate(-2.16px, -10.47px) rotate(-45deg); }
@keyframes iconWaveFade {
  0%, 100% { opacity: 0; }
  35% { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) {
  .contact-method:hover .icon-phone .wave-left-1,
  .contact-method:hover .icon-phone .wave-right-1 { animation: iconWaveFade 1.1s ease-out infinite; animation-play-state: running; }
  .contact-method:hover .icon-phone .wave-left-2,
  .contact-method:hover .icon-phone .wave-right-2 { animation: iconWaveFade 1.1s ease-out infinite 0.2s; animation-play-state: running; }
}

/* WhatsApp: typing indicator badge */
.ico-whatsapp .typing-dots {
  display: flex;
}
.typing-dots {
  position: absolute;
  right: -3px;
  bottom: -3px;
  gap: 2px;
  padding: 3px 4px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  opacity: 0;
  transition: opacity .3s;
}
.typing-dots i {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0.25;
}
@keyframes iconTypingDot {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-1.5px); }
}
@media (hover: hover) and (pointer: fine) {
  .contact-method:hover .typing-dots { opacity: 1; }
  .contact-method:hover .typing-dots i:nth-child(1) { animation: iconTypingDot 1s ease-in-out infinite 0s; }
  .contact-method:hover .typing-dots i:nth-child(2) { animation: iconTypingDot 1s ease-in-out infinite 0.15s; }
  .contact-method:hover .typing-dots i:nth-child(3) { animation: iconTypingDot 1s ease-in-out infinite 0.3s; }
}

/* Mail: envelope zips off to the right, leaving wind streaks behind */
.icon-mail .mail-envelope { transform-box: fill-box; }
@keyframes iconMailFly {
  0% { transform: translateX(0); opacity: 1; }
  25% { transform: translateX(22px); opacity: 0; }
  26%, 85% { transform: translateX(0); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@media (hover: hover) and (pointer: fine) {
  .contact-method:hover .icon-mail .mail-envelope { animation: iconMailFly 1.8s ease-in-out infinite; }
}

.icon-mail .streak { opacity: 0; transform-box: fill-box; }
@keyframes iconMailStreak {
  0%, 3% { opacity: 0; }
  10%, 20% { opacity: 1; }
  30%, 100% { opacity: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .contact-method:hover .icon-mail .streak-1 { animation: iconMailStreak 1.8s ease-in-out infinite; }
  .contact-method:hover .icon-mail .streak-2 { animation: iconMailStreak 1.8s ease-in-out infinite 0.06s; }
  .contact-method:hover .icon-mail .streak-3 { animation: iconMailStreak 1.8s ease-in-out infinite 0.12s; }
}

/* Adresse: waypoint drops into place, looping */
.icon-address .pin-mark { transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes iconPinDrop {
  0% { opacity: 0; transform: translateY(-14px); }
  8% { opacity: 1; }
  40% { transform: translateY(0); }
  48% { transform: translateY(-3px); }
  56%, 82% { transform: translateY(0); }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-14px); }
}
@media (hover: hover) and (pointer: fine) {
  .contact-method:hover .icon-address .pin-mark { animation: iconPinDrop 1.8s ease-in-out infinite; }
}
.contact-method strong { display: block; font-size: 0.95rem; }
.contact-method span { display: block; font-size: 0.82rem; color: var(--text-muted); }

/* Reduced motion: the decorative icon loops above (wrench/leaf/gear/wifi/
   phone/mail/pin) serve no purpose beyond delight, so they're switched off
   entirely rather than slowed down. The card/avatar transforms below DO
   carry meaning (they're part of the open/close state), so those keep their
   opacity-based reveals and only lose the movement component. */
@media (prefers-reduced-motion: reduce) {
  .icon-anim * { animation: none !important; }
  .service-card,
  .founder-chip,
  .founder-chip .avatar,
  .founder-top strong {
    transform: none !important;
  }
}

.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: linear-gradient(165deg, var(--surface), var(--bg-soft));
}

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

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color .3s, background .3s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(217, 139, 63, 0.06);
}

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

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d98b3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
  cursor: pointer;
}

.field select option {
  background: var(--surface);
  color: var(--text);
}

.recurring-box {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.recurring-box .field:last-child { margin-bottom: 0; }

.check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.check-option:hover { border-color: rgba(217, 139, 63, 0.35); background: rgba(217, 139, 63, 0.05); }
.check-option input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check-option span { color: var(--text); }

.field-file {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.field-file:hover { border-color: var(--accent); background: rgba(217,139,63,0.05); }
.field-file.is-dragover { border-color: var(--accent); background: rgba(217,139,63,0.12); }
.field-file input { display: none; }
.field-file svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 8px; }
.field-file .file-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* renderFileList() rebuilds the whole list on every add/remove, so every
   chip is a fresh DOM node each time - @starting-style picks that up
   automatically, no JS or "is-new" class needed. */
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: rgba(217, 139, 63, 0.1);
  border: 1px solid rgba(217, 139, 63, 0.3);
  font-size: 0.78rem;
  color: var(--text);
  opacity: 1;
  transform: scale(1);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  @starting-style {
    opacity: 0;
    transform: scale(0.9);
  }
}

.file-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.file-chip-remove {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  position: relative;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.file-chip-remove svg {
  width: 10px;
  height: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.file-chip-remove:hover { background: #d65a46; color: #fff; }

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.field-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.field-check a { color: var(--accent-light); text-decoration: underline; }

.form-status {
  margin-top: 18px;
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 250ms var(--ease), transform 250ms var(--ease), display 250ms allow-discrete;
}
/* @starting-style lets it animate in even from display:none, instead of
   snapping into place the instant the form is submitted. */
.form-status.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  @starting-style {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.form-status.ok { background: rgba(127, 174, 122, 0.12); color: #a9d1a4; border: 1px solid rgba(127,174,122,0.3); }
.form-status.err { background: rgba(214, 90, 70, 0.12); color: #f1a08f; border: 1px solid rgba(214,90,70,0.3); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding-block: 64px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

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

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 48px; width: auto; flex-shrink: 0; }
.footer-brand-text { line-height: 1.2; font-family: var(--font-display); white-space: nowrap; }
.footer-brand-text strong { display: block; font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.footer-brand-text > span { display: block; font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.02em; margin-top: 2px; white-space: nowrap; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: color .3s; }
.footer-col a:hover { color: var(--accent-light); }
.footer-desc { color: var(--text-muted); font-size: 0.92rem; max-width: 40ch; }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ---------- WhatsApp float button ---------- */

.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--accent-light), var(--accent-dark));
  color: var(--accent-contrast);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(217,139,63,0.6);
  transition: transform .3s var(--ease);
  opacity: 0;
  transform: scale(0.9);
  animation: waFloatIn 400ms var(--ease) 900ms forwards;
}
@keyframes waFloatIn {
  to { opacity: 1; transform: scale(1); }
}
.wa-float:hover { transform: scale(1.08); }
.wa-float:active { transform: scale(0.94); transition: transform 140ms ease-out; }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Reveal-on-scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- Legal pages ---------- */

.legal {
  padding-top: 160px;
  padding-bottom: 100px;
}
.legal .container { max-width: 820px; }
.legal h1 { font-size: 2.1rem; }
.legal .meta { color: var(--text-faint); margin-top: 10px; font-size: 0.88rem; }
.legal h2 { font-size: 1.3rem; margin-top: 42px; margin-bottom: 14px; }
.legal p, .legal li { color: var(--text-muted); margin-top: 10px; font-size: 0.96rem; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--accent-light); text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.9rem; }
.legal th, .legal td { text-align: left; padding: 10px 14px; border: 1px solid var(--border); color: var(--text-muted); }
.legal strong { color: var(--text); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--text-muted); font-size: 0.9rem; }
.back-link:hover { color: var(--accent-light); }

/* ---------- Tablet portrait only: image + sidebar instead of stacked ---------- */

.hero-sidebar, .about-sidebar { display: none; }

@media (min-width: 641px) and (max-width: 960px) and (orientation: portrait) {
  .hero-grid {
    grid-template-columns: 1.3fr 1fr;
    grid-template-areas: "copy copy" "visual sidebar";
    align-items: center;
  }
  .hero-visual { grid-area: visual; }
  .hero-copy { grid-area: copy; }
  .hero-visual .stat-pill { display: none; }

  .hero-sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .hero-sidebar .stat-pill { position: static; width: 100%; }

  .about-grid {
    grid-template-columns: 1.3fr 1fr;
    grid-template-areas: "photo sidebar" "copy copy";
    align-items: center;
  }
  .about-photo { grid-area: photo; }
  .about-copy { grid-area: copy; }
  /* The sidebar next to the image already shows these 6 traits - don't also
     show the desktop version further down in the text (redundant belt-and-
     suspenders on top of the general â‰¤960 rule that hides these). */
  .about-traits, .about-traits-label { display: none; }

  .about-sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .about-sidebar-label { text-align: center; justify-content: center; margin-bottom: 2px; }
  .sidebar-badge {
    display: flex;
    justify-content: center;
    background: rgba(19, 18, 21, 0.72);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--accent-light);
  }
  /* Fixed-width inner box: centering this (not the icon+text directly) means
     every badge centers identically, so the icons still line up in a column
     instead of drifting left/right with each label's text length. */
  .badge-content { display: flex; align-items: center; gap: 10px; width: 176px; max-width: 100%; }
  .sidebar-badge svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

  /* Section intros (Leistungen, Kontakt) and the service-card activity lists
     were still left over from the wide desktop layout - center them too. */
  .section-head { text-align: center; margin-inline: auto; }
  /* Centering each row individually made the bullet dots zig-zag (row width
     depends on its text length). 6 items per card always, so a 2-column
     grid keeps 3 dots lined up on the left and 3 on the right instead. */
  .service-list {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    column-gap: 28px;
    row-gap: 10px;
  }
  .service-list li { justify-content: flex-start; }
  .services-footer { flex-direction: column; text-align: center; }
  .services-footer p { margin-inline: auto; }
  .services-footer-actions { justify-content: center; }
}
