:root {
  --navy: #1b3a5f;
  --navy-dark: #142c48;
  --navy-light: #2b5688;
  --accent: #f4a71d;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --text: #1f2933;
  --muted: #5b6b7b;
  --border: #dce4ec;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(27, 58, 95, 0.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--navy-dark); }
.btn-primary:hover { background: #ffb838; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-phone { background: var(--navy); color: #fff; padding: 10px 18px; }
.btn-phone:hover { background: var(--navy-light); }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 56px; width: auto; display: block; align-self: flex-start; }
.brand-mark { font-weight: 800; font-size: 1.5rem; letter-spacing: 1px; color: var(--navy); }
.brand-sub { font-weight: 600; font-size: 0.72rem; letter-spacing: 4px; color: var(--navy-light); }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--text); font-weight: 500; }
.header-inner .btn-phone { margin-left: 8px; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 72px 0;
}
.hero-photo {
  background:
    linear-gradient(100deg, rgba(15, 32, 52, 0.88) 0%, rgba(15, 32, 52, 0.55) 55%, rgba(15, 32, 52, 0.25) 100%),
    url("/img/hero.webp") center / cover no-repeat;
  padding: 110px 0;
}
.hero-inner { display: flex; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 62%; max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 16px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.92); max-width: 60ch; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 32px; text-align: center; }
.hint { text-align: center; color: var(--muted); margin-top: 24px; }

/* ── Cards ───────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; }
.card p { margin: 0; color: var(--muted); }
.card.model { border-top: 4px solid var(--accent); }

/* ── Modelle ─────────────────────────────────────────── */
.models { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.model-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.model-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--border);
  padding: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.model-images img { width: 100%; height: 260px; object-fit: cover; display: block; }
.model-images:focus-visible { outline: 3px solid var(--navy-light); outline-offset: 2px; }
.model-images:hover img { filter: brightness(1.05); }
.model-price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 5px 15px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.model-gallery-hint {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(15, 32, 52, 0.75);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
}
.model-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.model-body h3 { margin: 0; font-size: 1.25rem; }
.model-kurz { color: var(--muted); margin: 10px 0 6px; }
.model-list { margin: 0 0 20px; padding-left: 20px; color: var(--text); }
.model-list li { margin-bottom: 6px; }
.model-body .btn { align-self: flex-start; margin-top: auto; }

.konditionen {
  margin-top: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.konditionen h3 { margin: 0 0 12px; }
.konditionen ul { margin: 0; padding-left: 20px; color: var(--muted); }
.konditionen li { margin-bottom: 6px; }

/* ── Lightbox ────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 22, 38, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1000px, 86vw); text-align: center; }
.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}
.lightbox figcaption { color: rgba(255, 255, 255, 0.85); margin-top: 12px; font-size: 0.95rem; }
#lbCounter { color: rgba(255, 255, 255, 0.55); margin-left: 8px; }
.lb-close, .lb-prev, .lb-next {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.25); }
.lb-prev, .lb-next { width: 52px; height: 52px; font-size: 2rem; flex: 0 0 auto; }
.lb-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.2rem; }

/* ── Steps ───────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  border-radius: 50%; font-weight: 700;
}
.steps h3 { margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

/* ── Kontakt ─────────────────────────────────────────── */
.kontakt-inner { display: flex; gap: 48px; flex-wrap: wrap; }
.kontakt-info { flex: 1 1 320px; }
.kontakt-info .section-title { text-align: left; }
.kontakt-list { list-style: none; padding: 0; margin: 20px 0 0; }
.kontakt-list li { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 10px; }
.kontakt-form { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.kontakt-form label { display: flex; flex-direction: column; font-weight: 600; color: var(--navy); gap: 6px; }
.kontakt-form input, .kontakt-form textarea {
  font: inherit;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.kontakt-form input:focus, .kontakt-form textarea:focus { outline: 2px solid var(--navy-light); border-color: var(--navy-light); }
.kontakt-form button { align-self: flex-start; }
.form-status { font-weight: 600; margin: 4px 0 0; }
.form-status.ok { color: #1a7f4b; }
.form-status.err { color: #c0392b; }
.form-note { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ── Legal pages ─────────────────────────────────────── */
.legal h1 { margin-top: 0; }
.legal h2 { margin-top: 32px; font-size: 1.2rem; }
.legal code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.85); margin-top: 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
.footer-col { flex: 1 1 200px; }
.footer-col h4 { color: #fff; margin: 0 0 12px; }
.footer-col a { display: block; color: rgba(255, 255, 255, 0.85); margin-bottom: 6px; }
.footer-brand .brand-logo { height: 64px; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 16px 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 760px) {
  .site-nav { display: none; }
  .hero-photo { padding: 72px 0; }
  .header-inner .btn-phone { margin-left: auto; }
  .model-images img { height: 200px; }
  .lightbox { padding: 10px; gap: 4px; }
  .lb-prev, .lb-next { width: 42px; height: 42px; font-size: 1.5rem; }
  .lightbox img { max-height: 70vh; }
}
