/* =====================================================================
   R & A Autoservice – styles.css
   Eigenes CSS, kein Framework, keine externen Schriften.
   Aufbau: 1 Tokens · 2 Reset · 3 Layout · 4 Buttons · 5 Header/Nav
           6 Hero · 7 Trust · 8 Leistungen · 9 Selbsthilfewerkstatt
           10 Über uns · 11 Kontakt · 12 Formular · 13 Footer
           14 Action-Bar · 15 Rechtstexte · 16 Animation/Motion
   ===================================================================== */

/* ---------- 1 · Tokens ---------- */
:root {
  --bg:          #0b0b0d;
  --bg-alt:      #101013;
  --surface:     #141417;
  --surface-2:   #1c1c21;
  --surface-3:   #232329;
  --line:        #2a2a30;
  --line-strong: #3a3a43;

  /* Rot in zwei Rollen, damit die Kontraste nach WCAG AA stimmen:
     --accent        = Flaechen, Rahmen, Verlaeufe (weisser Text darauf: 5.07:1)
     --accent-hover  = Flaechen im Hover-Zustand   (weisser Text darauf: 6.30:1)
     --accent-text   = rote Schrift und Icons auf dunklem Grund (>= 4.64:1)
     Das satte Markenrot bleibt sichtbar, nur Text wird leicht aufgehellt. */
  --accent:      #d81f26;
  --accent-hover:#bd1a20;
  --accent-text: #f2555c;
  --accent-text-hover: #ff8a8e;
  --accent-dark: #a5151b;
  --accent-soft: rgba(216, 31, 38, .12);

  /* Gruen ebenso: Flaeche dunkel genug fuer weisse Schrift (5.02:1),
     das Icon auf dunklem Grund dagegen hell genug (6.55:1). */
  --whatsapp:    #15803d;
  --whatsapp-hover: #116b33;
  --whatsapp-icon: #25c063;

  --text:        #f5f5f7;
  --text-muted:  #b8bcc4;
  --text-dim:    #8b8f98;
  --silver:      #d5d8de;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow:    0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);

  --header-h: 68px;
  --container: 1200px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2 · Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Sticky-Header-Offset fuer Anker-Sprünge */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  /* "clip" statt "hidden": verhindert seitliches Scrollen (das geschlossene
     Mobilmenue liegt per transform rechts ausserhalb), ohne einen neuen
     Scroll-Container zu erzeugen – "hidden" wuerde den Sticky-Header brechen. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 1.35rem + 3.1vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
h4 { font-size: 1rem; }

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

a { color: var(--text); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-text-hover); }

:focus-visible {
  outline: 3px solid var(--accent-text-hover);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- 3 · Layout ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}
@media (max-width: 420px) {
  .container { width: min(var(--container), 100% - 1.75rem); }
}

.section { padding: clamp(3.5rem, 2.4rem + 5vw, 7rem) 0; }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .9rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.section-eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, .96rem + .2vw, 1.13rem);
  margin: 0;
}

/* ---------- 4 · Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .72rem 1.35rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn .ico { flex: 0 0 auto; }

.btn-sm  { min-height: 40px; padding: .5rem 1rem; font-size: .88rem; }
.btn-lg  { min-height: 54px; padding: .95rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bd: var(--accent);
  box-shadow: 0 6px 20px rgba(216, 31, 38, .28);
}
.btn-primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); box-shadow: 0 10px 26px rgba(216, 31, 38, .38); }

.btn-whatsapp {
  --btn-bg: var(--whatsapp);
  --btn-fg: #fff;
  --btn-bd: var(--whatsapp);
}
.btn-whatsapp:hover { --btn-bg: var(--whatsapp-hover); --btn-bd: var(--whatsapp-hover); }

.btn-outline {
  --btn-bg: rgba(255, 255, 255, .04);
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-bd: var(--silver); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--silver);
  --btn-bd: var(--line);
}
.btn-ghost:hover { --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-bd: var(--line-strong); }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- 5 · Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 13, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 11, 13, .96);
  border-bottom-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  transition: min-height .3s var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: 58px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: 0 0 auto;
}
.brand-mark { color: var(--accent-text); display: flex; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-text span {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav > ul { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > ul a {
  position: relative;
  font-size: .94rem;
  font-weight: 600;
  color: var(--silver);
  padding: .35rem 0;
}
.main-nav > ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.main-nav > ul a:hover, .main-nav > ul a.is-active { color: var(--text); }
.main-nav > ul a:hover::after, .main-nav > ul a.is-active::after { width: 100%; }

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

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.nav-toggle-bars span {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(2px);
}

@media (max-width: 1023px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    z-index: 99;
    width: min(340px, 88vw);
    height: 100dvh;
    padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.5rem;
    background: var(--surface);
    border-left: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s var(--ease);
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }

  .main-nav > ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .main-nav > ul a {
    display: block;
    padding: .95rem .25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .main-nav > ul a::after { display: none; }

  .nav-actions { flex-direction: column; align-items: stretch; gap: .7rem; }
  .nav-actions .btn { min-height: 48px; font-size: .95rem; }
}

/* ---------- 6 · Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 860px);
  padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
/* Overlay: links dunkel genug fuer den Text, rechts bleibt das Motiv erkennbar */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 13, .35) 0%, rgba(11, 11, 13, .55) 55%, var(--bg) 100%),
    linear-gradient(100deg, rgba(11, 11, 13, .94) 6%, rgba(11, 11, 13, .78) 38%, rgba(11, 11, 13, .3) 78%);
}
/* Auf schmalen Displays laeuft der Text ueber die volle Breite –
   dort muss das Overlay durchgehend kraeftiger sein. */
@media (max-width: 899px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(11, 11, 13, .72) 0%, rgba(11, 11, 13, .82) 55%, var(--bg) 100%),
      linear-gradient(100deg, rgba(11, 11, 13, .9) 0%, rgba(11, 11, 13, .7) 100%);
  }
}
/* Dezenter roter Lichtschimmer */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -10%; top: -20%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(216, 31, 38, .16) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 760px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.4rem;
  padding: .45rem .95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 20, 23, .7);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 { margin-bottom: 1.4rem; }
.hero-brand {
  display: block;
  margin-bottom: .5rem;
  font-size: clamp(.9rem, .82rem + .35vw, 1.05rem);
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.hero-claim { display: block; }

.hero-text {
  max-width: 56ch;
  margin-bottom: 1rem;
  font-size: clamp(1.02rem, .97rem + .35vw, 1.22rem);
  color: var(--text-muted);
}
.hero-welcome {
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 2.2rem;
}
@media (max-width: 479px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

.hero-hours {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.6rem;
  margin: 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--text-dim);
}
.hero-hours span { white-space: nowrap; }
.hero-hours strong { color: var(--silver); }

/* ---------- 7 · Trust ---------- */
.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 1.6rem 1rem;
  background: var(--surface);
  text-align: center;
}
.trust-ico { color: var(--accent-text); margin-bottom: .4rem; }
.trust-title { font-weight: 800; font-size: 1rem; }
.trust-sub { font-size: .84rem; color: var(--text-dim); }

/* ---------- 8 · Leistungen ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}
@media (max-width: 400px) {
  .service-grid { grid-template-columns: 1fr; }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.service-card:hover::before,
.service-card:focus-within::before { transform: scaleX(1); }

.service-card-accent { border-color: rgba(216, 31, 38, .38); }
.service-card-accent::before { transform: scaleX(1); }

.service-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--accent-text);
}
.service-card h3 { margin-bottom: .5rem; }
.service-card p {
  flex: 1 1 auto;
  margin-bottom: 1.1rem;
  font-size: .94rem;
  color: var(--text-muted);
}
.service-link {
  align-self: flex-start;
  font-size: .89rem;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: .01em;
}
.service-link:hover { color: var(--accent-text-hover); }

/* ---------- 9 · Selbsthilfewerkstatt ---------- */
.shw-layout {
  display: grid;
  gap: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .shw-layout { grid-template-columns: 1.15fr .85fr; }
}

.shw-lead {
  font-size: clamp(1.08rem, 1rem + .5vw, 1.35rem);
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 1.1rem;
}
.shw-text { color: var(--text-muted); max-width: 60ch; }

.shw-list { margin: 1.6rem 0; display: grid; gap: .9rem; }
.shw-list li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  color: var(--text-muted);
  font-size: .97rem;
}
.shw-list strong { color: var(--text); }
.ico-check { flex: 0 0 auto; margin-top: .15rem; color: var(--accent-text); }

.shw-note {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin: 1.75rem 0;
  padding: 1.1rem 1.2rem;
  background: var(--accent-soft);
  border: 1px solid rgba(216, 31, 38, .3);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  color: var(--silver);
}
.shw-note .ico { flex: 0 0 auto; margin-top: .15rem; color: var(--accent-text); }

.shw-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (max-width: 479px) {
  .shw-actions { flex-direction: column; align-items: stretch; }
}

.shw-figure { margin: 0; }
.shw-figure img {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: saturate(.85) contrast(1.05);
}
.shw-figure figcaption {
  margin-top: .7rem;
  font-size: .8rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- 10 · Über uns ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.15rem;
}
.why-card {
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.why-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.why-ico {
  display: inline-flex;
  margin-bottom: .9rem;
  color: var(--accent-text);
}
.why-card h3 { margin-bottom: .45rem; }
.why-card p { margin: 0; font-size: .93rem; color: var(--text-muted); }

/* ---------- 11 · Kontakt ---------- */
.contact-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .contact-layout { grid-template-columns: .9fr 1.1fr; }
}

.contact-info { display: grid; gap: 1.5rem; }

.info-card, .map-card, .contact-form {
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card h3 { margin-bottom: 1.2rem; }

.info-block {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  font-style: normal;
  color: var(--text-muted);
}
.info-ico { flex: 0 0 auto; margin-top: .2rem; color: var(--accent-text); }
.info-block a { color: var(--text); font-weight: 600; }
.info-block a:hover { color: var(--accent-text-hover); }
.info-strong { font-size: 1.15rem; font-weight: 800 !important; letter-spacing: .01em; }

.info-sub-head {
  margin: 1.6rem 0 .7rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hours-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hours-table th, .hours-table td {
  padding: .6rem 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.hours-table th { color: var(--text-muted); font-weight: 600; }
.hours-table td { text-align: right; color: var(--text); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table .closed { color: var(--text-dim); }

.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.4rem;
}
.info-actions .btn { flex: 1 1 auto; min-width: 130px; }

/* Karte mit Consent */
.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.25rem;
  text-align: center;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}
.map-consent-ico { color: var(--accent-text); }
.map-consent-text { margin: 0; font-size: .88rem; color: var(--text-muted); max-width: 46ch; }
.map-consent-text a { color: var(--accent-text); text-decoration: underline; }

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.map-attribution { margin: .6rem 0 0; font-size: .76rem; color: var(--text-dim); }
.map-attribution a { color: var(--text-dim); text-decoration: underline; }

/* ---------- 12 · Formular ---------- */
.contact-form h3 { margin-bottom: .4rem; }
.form-intro { margin-bottom: 1.6rem; font-size: .87rem; color: var(--text-dim); }

.field { display: flex; flex-direction: column; margin-bottom: 1.15rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label {
  margin-bottom: .45rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--silver);
}
.req { color: var(--accent-text); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem .9rem;
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* verhindert Auto-Zoom auf iOS */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }

.field input::placeholder,
.field textarea::placeholder { color: #6c707a; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--silver); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent-text-hover); outline-offset: 1px; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b8bcc4'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 22px;
  padding-right: 2.6rem;
  cursor: pointer;
}
.field select option { background: var(--surface); color: var(--text); }

/* Datumsfeld: Kalendersymbol im Dark Mode sichtbar machen */
.field input[type="date"] { color-scheme: dark; }

/* Kurzes Hervorheben, wenn eine Leistung aus einer Servicekarte vorausgewaehlt wurde */
.field.is-prefilled select {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--accent); }

.field-error {
  margin-top: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: #ff6b70;
}

.field-check {
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 1.5rem;
}
.field-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  min-height: 22px;
  margin-top: .15rem;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.field-check label {
  flex: 1 1 260px;
  margin: 0;
  font-size: .87rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-muted);
  cursor: pointer;
}
.field-check label a { color: var(--accent-text); text-decoration: underline; }
.field-check .field-error { flex: 1 1 100%; margin-left: 0; }

/* Honeypot – fuer Menschen unsichtbar, fuer Bots im DOM vorhanden.
   Bewusst NICHT display:none, da einfache Bots das erkennen und das Feld
   dann gezielt auslassen wuerden. Stattdessen aus dem Sichtbereich geschoben,
   nicht anklickbar, nicht fokussierbar (tabindex="-1") und aria-hidden. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  top: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 1.2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: .93rem;
  color: var(--text-muted);
}
.form-status.is-success {
  border-color: var(--whatsapp);
  background: rgba(31, 168, 85, .1);
  color: #a6efc4;
}
.form-status.is-error {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #ffb3b6;
}
.form-status.is-loading { border-color: var(--line-strong); }

.form-foot {
  margin: 1.2rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .87rem;
  color: var(--text-dim);
}
.form-foot a { color: var(--silver); font-weight: 600; text-decoration: underline; }
.form-foot a:hover { color: var(--accent-text-hover); }

/* ---------- 13 · Footer ---------- */
.site-footer {
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.brand-footer { margin-bottom: 1rem; }
.footer-claim { font-size: .93rem; color: var(--text-dim); max-width: 30ch; }

.footer-head {
  margin-bottom: .9rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.site-footer address,
.footer-hours { font-style: normal; font-size: .93rem; color: var(--text-muted); line-height: 1.9; }
.site-footer address a { color: var(--text); font-weight: 600; }
.site-footer address a:hover { color: var(--accent-text-hover); }

.footer-links { display: grid; gap: .45rem; }
.footer-links a { font-size: .93rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-text-hover); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; font-size: .84rem; color: var(--text-dim); }
.footer-legal a { color: var(--text-dim); }
.footer-legal a:hover { color: var(--accent-text-hover); }

/* ---------- 14 · Mobile Action-Bar ---------- */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: none;
  background: rgba(16, 16, 19, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .45);
}
.action-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  min-height: 60px;
  padding: .55rem .3rem;
  font-size: .74rem;
  font-weight: 700;
  color: var(--silver);
  border-right: 1px solid var(--line);
}
.action-item:last-child { border-right: 0; }
.action-item:hover, .action-item:active { color: var(--text); background: var(--surface-2); }
.action-item svg { color: var(--silver); }
.action-wa svg { color: var(--whatsapp-icon); }
.action-primary { color: #fff; background: var(--accent); }
.action-primary svg { color: #fff; }
.action-primary:hover, .action-primary:active { color: #fff; background: var(--accent-hover); }

@media (max-width: 767px) {
  .action-bar { display: flex; }
  /* Platz schaffen, damit die Bar nichts verdeckt */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { margin-bottom: 0; }
}

/* ---------- 15 · Rechtstexte (Impressum / Datenschutz) ---------- */
.legal-page { padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0; }
.legal-wrap { width: min(820px, 100% - 2.5rem); margin-inline: auto; }
.legal-wrap h1 { margin-bottom: 1.5rem; }
.legal-wrap h2 {
  margin: 2.5rem 0 .9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
}
.legal-wrap h3 { margin: 1.6rem 0 .6rem; font-size: 1.05rem; color: var(--silver); }
.legal-wrap p, .legal-wrap li { color: var(--text-muted); font-size: .97rem; }
.legal-wrap a { color: var(--accent-text); text-decoration: underline; }
.legal-wrap a:hover { color: var(--accent-text-hover); }
.legal-wrap ul.legal-list { margin: 0 0 1rem; padding-left: 1.3rem; list-style: disc; }
.legal-wrap ul.legal-list li { margin-bottom: .45rem; }
.legal-wrap address { font-style: normal; color: var(--text-muted); line-height: 1.9; }
.legal-wrap code {
  padding: .12rem .4rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: .9em;
  color: var(--silver);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--silver) !important;
  text-decoration: none !important;
}
.legal-back:hover { color: var(--accent-text-hover) !important; }

.placeholder {
  display: inline-block;
  padding: .1rem .45rem;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: 4px;
  color: #ff9ea2;
  font-weight: 700;
  font-size: .9em;
  white-space: nowrap;
}

.notice-box {
  margin: 1.5rem 0 2.5rem;
  padding: 1.15rem 1.3rem;
  background: var(--accent-soft);
  border: 1px solid rgba(216, 31, 38, .35);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
}
.notice-box p:last-child { margin-bottom: 0; }
.notice-box strong { color: var(--text); }

/* ---------- 16 · Animation / Motion ---------- */
/* Reveal wirkt nur bei aktivem JavaScript – sonst bliebe Inhalt unsichtbar. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .service-card:hover { transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .action-bar, .nav-backdrop, .hero-media, .map-card, .skip-link { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .hero::before, .hero::after { display: none; }
  a { color: #000; }
}
