/* =========================================================
   Autoglas Kraemer – Stylesheet (DARK primary)
   Refined utilitarian, b/w, large typography.
   ========================================================= */

:root {
  /* DARK is now the primary theme. */
  --bg: #0d0d0d;
  --bg-2: #161616;
  --bg-3: #1f1f1f;
  --fg: #f5f5f0;
  --fg-muted: #a3a39d;
  --line: #2a2a2a;
  --line-soft: rgba(255,255,255,0.08);

  /* Inverted "light" section tokens — used in .insurance (the one light slab) */
  --light-bg: #fafaf7;
  --light-bg-2: #f1f1ec;
  --light-fg: #0d0d0d;
  --light-muted: #6b6b65;
  --light-line: #d9d9d3;

  --radius: 2px;
  --container: 1240px;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ----- Typography ----- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}
h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 2.5rem;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: currentColor;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}
/* Primary on dark = light fill */
.btn--primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn--primary:hover {
  background: transparent;
  color: var(--fg);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn--ghost:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-1px);
}
.btn--full { width: 100%; }

/* ----- Navigation ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo img {
  height: 64px;
  width: auto;
  display: block;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__menu a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
  color: var(--fg);
}
.nav__menu a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--fg);
  transition: width 0.25s ease;
}
.nav__menu a:not(.nav__cta):hover::after { width: 100%; }
.nav__menu a.nav__cta,
.nav__cta {
  background: var(--fg);
  color: var(--bg);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav__cta:hover { background: #fff; color: var(--bg); }

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ----- HERO (dark) ----- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% 20%, rgba(255,255,255,0.04), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(255,255,255,0.025), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}
.hero__content {
  animation: fadeUp 0.8s ease both;
}
.hero h1 {
  margin-bottom: 1.5rem;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 38ch;
  margin-bottom: 2.25rem;
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.hero__badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1.2s 0.2s ease both;
}
.hero__shape {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 14px,
      rgba(255,255,255,0.03) 14px,
      rgba(255,255,255,0.03) 15px
    ),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform: rotate(-1.5deg);
}
.hero__logo {
  position: relative;
  width: 78%;
  max-width: 460px;
  height: auto;
  z-index: 1;
  transform: rotate(1.5deg);
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.4));
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ----- Section heads ----- */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { margin-top: 0.5rem; }

/* ----- SERVICES (dark) ----- */
.services {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.services__list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.service {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s ease;
  position: relative;
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--fg);
  transition: width 0.3s ease;
}
.service:hover { padding-left: 1.5rem; }
.service:hover::before { width: 4px; }
.service__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--fg-muted);
  letter-spacing: 0;
}
.service h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  color: var(--fg);
}
.service p {
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 58ch;
}

/* ----- INSURANCE (the one LIGHT slab) ----- */
.insurance {
  background: var(--light-bg);
  color: var(--light-fg);
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}
.insurance::before {
  content: "";
  position: absolute;
  top: 0; right: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0,0,0,0.035) 0%, transparent 60%);
  pointer-events: none;
}
.insurance__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
}
.insurance .eyebrow { color: var(--light-muted); }
.insurance h2 { color: var(--light-fg); margin-bottom: 1.5rem; }
.insurance__text p {
  color: var(--light-muted);
  font-size: 1.05rem;
  max-width: 56ch;
  margin-bottom: 1.75rem;
}
.checklist {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--light-fg);
  font-size: 0.98rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1.2rem;
  height: 1.5px;
  background: var(--light-fg);
}
.insurance__card {
  background: var(--light-bg-2);
  border: 1px solid var(--light-line);
  padding: 2.25rem;
  border-radius: var(--radius);
}
.insurance__card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-muted);
  margin-bottom: 1rem;
}
.insurance__card__phone {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1;
  color: var(--light-fg);
}
.insurance__card__phone a:hover { opacity: 0.7; }
.insurance__card__hint {
  color: var(--light-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ----- CONTACT (dark) ----- */
.contact {
  background: var(--bg-2);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.info-block {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.info-block:last-child { border-bottom: 0; }
.info-block__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.info-block__value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.5;
}
.info-block__value--muted { color: var(--fg-muted); font-weight: 400; }
.info-block__value a:hover { text-decoration: underline; }

/* ----- FORM (dark) ----- */
.contact__form {
  background: var(--bg-3);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 1.1rem;
}
.form-row { display: grid; gap: 0.45rem; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--fg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--fg-muted);
  opacity: 0.7;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--fg);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row--hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-row--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.form-row--check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--fg); }
.form-row--check label { font-weight: 400; color: var(--fg-muted); }
.form-row--check a { text-decoration: underline; color: var(--fg); }
.form-note { font-size: 0.8rem; color: var(--fg-muted); margin-top: -0.25rem; }

/* ----- FOOTER (deep dark) ----- */
.footer {
  background: #050505;
  color: var(--fg);
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
}
.footer__brand img {
  height: 32px;
  width: auto;
  display: block;
}
.footer__brand p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
}
.footer__nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
}
.footer__nav a {
  color: var(--fg-muted);
  transition: color 0.2s ease;
}
.footer__nav a:hover { color: var(--fg); }
.footer__copy {
  font-size: 0.85rem;
  color: var(--fg-muted);
  opacity: 0.7;
}

/* =========================================================
   Subpage (Impressum / Datenschutz) — DARK
   ========================================================= */
.subpage {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--bg);
  color: var(--fg);
}
.subpage h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  color: var(--fg);
}
.subpage h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--fg);
}
.subpage p,
.subpage li {
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.7;
  max-width: 70ch;
  margin-bottom: 0.75rem;
}
.subpage ul { padding-left: 1.25rem; }
.subpage a:not(.btn) { text-decoration: underline; color: var(--fg); }
.subpage .placeholder {
  background: rgba(212, 167, 44, 0.12);
  border-left: 3px solid #e2b748;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.93rem;
  color: #f0c97a;
  max-width: 70ch;
}
.subpage .placeholder strong { color: #ffd97d; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }
  .insurance__inner {
    grid-template-columns: 1fr;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .service {
    grid-template-columns: 60px 1fr;
  }
  .service h3 { grid-column: 2; }
  .service p { grid-column: 2; }
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__nav { justify-content: center; flex-wrap: wrap; }
  .footer__brand { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__menu a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__menu a:last-child { border-bottom: 0; margin-top: 0.5rem; text-align: center; }

  .hero__actions .btn { flex: 1 1 100%; }
  .hero__badges { flex-direction: column; gap: 0.5rem; }
  .nav__logo img { height: 52px; }
}
