/* =========================================================================
   garagen-wiesloch-walldorf.de — Hauptstylesheet
   Lokale System-Fonts, keine externen Ressourcen, responsive, WCAG-AA-Kontraste.
   ========================================================================= */

:root {
  --blue:        #1f4e79;
  --blue-dark:   #143352;
  --blue-light:  #eaf1f8;
  --accent:      #1f7a3d;   /* "frei" / Erfolg */
  --accent-dark: #155f2e;
  --ink:         #1c2733;
  --muted:       #51606e;
  --line:        #d9e0e8;
  --bg:          #ffffff;
  --bg-soft:     #f4f7fa;
  --warn-bg:     #fdecea;
  --warn-ink:    #8a1c14;
  --ok-bg:       #e7f5ec;
  --ok-ink:      #155f2e;
  --radius:      14px;
  --shadow:      0 6px 24px rgba(20, 51, 82, .10);
  --maxw:        1140px;
  --font:        system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3, h4 { line-height: 1.2; color: var(--blue-dark); margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Skip link & focus ------------------------------------------------ */
.skip-link {
  position: absolute; left: 8px; top: 8px;
  background: var(--blue-dark); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 1000;
  transform: translateY(-160%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid #ffae42; outline-offset: 2px; border-radius: 4px;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; white-space: nowrap;
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; transition: background .15s ease, transform .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue-light); }
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: translateY(1px); }
}

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue-dark); }
.brand img { height: 34px; width: auto; }
.brand b { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.brand span { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--blue); }
.nav a.nav-subtle { font-size: .85rem; font-weight: 500; color: var(--muted); }
.nav a.nav-subtle:hover { color: var(--blue); }
.nav .btn { padding: 10px 18px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; margin-left: auto; background: var(--blue); color: #fff;
    border: 0; border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 700; cursor: pointer;
  }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav[data-open="true"] { max-height: 520px; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav .btn { margin: 12px 20px; justify-content: center; }
}

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/stellplatz-ueberdacht.jpg") center 40% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(20,51,82,.92) 0%, rgba(20,51,82,.72) 45%, rgba(20,51,82,.45) 100%);
}
.hero .wrap { padding-top: 84px; padding-bottom: 84px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { font-size: 1.25rem; max-width: 46ch; color: #eaf1f8; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: .45em;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.free-flag {
  display: inline-flex; align-items: center; gap: .5em; margin-bottom: 18px;
  background: var(--accent); color: #fff; font-weight: 800;
  padding: 8px 16px; border-radius: 999px; font-size: 1rem;
}
.free-flag .dot { width: 10px; height: 10px; border-radius: 50%; background: #b6f2c8; box-shadow: 0 0 0 4px rgba(182,242,200,.35); }

/* ---- Cards / Angebot -------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .ico {
  width: 54px; height: 54px; border-radius: 12px; background: var(--blue-light);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--blue);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---- Vorteile / Steps ------------------------------------------------- */
.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .usp { grid-template-columns: 1fr; } }
.usp .item { display: flex; gap: 14px; align-items: flex-start; }
.usp .num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.1rem;
}
.usp h3 { margin: 4px 0 .25em; }
.usp p { color: var(--muted); margin: 0; }

.features { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.features li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.features svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }

/* ---- Galerie ---------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .gallery figure:hover img { transform: none; } }

/* ---- Standort --------------------------------------------------------- */
.location { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } }
.map-card {
  background: var(--blue-light); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center;
}
.map-card svg { width: 100%; height: auto; max-width: 360px; margin: 0 auto; }

/* ---- Kontakt / Formular ---------------------------------------------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-info p { color: var(--muted); }
.contact-info a { font-weight: 700; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }

form.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .req { color: var(--warn-ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }
.captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha-row label { font-weight: 700; }
.captcha-row input { width: 90px; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 6px; }

.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.alert--ok  { background: var(--ok-bg);  color: var(--ok-ink);  border: 1px solid #b5e2c4; }
.alert--err { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #f3c4bf; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--blue-dark); color: #cdd9e6; padding: 56px 0 28px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; }
.footer-logo { height: 28px; width: auto; margin-bottom: 14px; opacity: .7; filter: brightness(0) invert(1); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .9rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---- Unterseiten (Impressum / Datenschutz) ---------------------------- */
.subpage { padding: 48px 0 72px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.legal-content { max-width: 800px; }
.legal-content h1 { margin-bottom: .5em; }
.legal-content h3 { color: var(--blue-dark); margin-top: 1.4em; }
.legal-content h3:first-of-type { margin-top: .6em; }
.legal-content h4 { color: var(--blue); margin: 1.3em 0 .25em; font-size: 1.05rem; }
.legal-content p { color: var(--ink); }
