:root {
  --bg: #ffffff;
  --bg-alt: #f6f5f2;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e5e3de;
  --dark: #0e0e0e;
  --accent: #b8964e;
  --accent-dark: #9c7d3c;
  --max: 1120px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

a { color: inherit; }
img { max-width: 100%; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 14, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: box-shadow .3s;
}

.site-header.scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, .25); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.logo-mark {
  width: 34px;
  height: 26px;
  flex: none;
}

.logo-mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-text {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .25);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.logo-text b {
  font-weight: 600;
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  position: relative;
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .03em;
  opacity: .85;
  padding: 4px 0;
  transition: color .2s, opacity .2s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right .25s;
}

nav a:hover,
nav a.active { opacity: 1; color: var(--accent); }
nav a.active::after,
nav a:hover::after { right: 0; }

.lang { display: flex; gap: 4px; }

.lang button {
  background: none;
  border: 1px solid #444;
  color: #fff;
  font: inherit;
  font-size: .75rem;
  padding: 2px 7px;
  cursor: pointer;
}

.lang button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform .3s, opacity .3s;
}

.open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.open .nav-toggle span:nth-child(2) { opacity: 0; }
.open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  font: inherit;
  font-size: .95rem;
  letter-spacing: .03em;
  text-decoration: none;
  padding: 12px 28px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.button-secondary {
  background: none;
  color: var(--text);
  border-color: #999;
}

.button-secondary:hover { background: #eee; border-color: #999; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(300px, 46vh, 460px);
  display: flex;
  align-items: flex-end;
  padding: 56px 0 120px;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, .85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.hero-text {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #ddd;
  max-width: 560px;
}

/* ---------- Abschnitte ---------- */
main > section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  margin: 0 0 24px;
  font-weight: 300;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.2;
}

.lead {
  margin: 0 0 48px;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 680px;
}

/* Leistungen */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.card svg {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); }

/* Flotte */
.vehicle {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 56px;
  margin-bottom: 72px;
}

.vehicle-reverse { grid-template-columns: 1fr 1.2fr; }
.vehicle-reverse img { order: 2; }

/* Fahrzeug ohne Foto */
.vehicle-noimg {
  grid-template-columns: 1fr;
  max-width: 720px;
  padding: 32px 40px;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
}

.vehicle img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .15);
}

.vehicle h3 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  font-weight: 300;
}

.vehicle p { margin: 0 0 16px; color: var(--muted); }

.vehicle .vehicle-meta {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
}

.gallery-title {
  margin: 0 0 20px;
  font-size: 1.2rem;
  font-weight: 400;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery a { display: block; overflow: hidden; background: #ddd; }

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .5s;
}

.gallery a:hover img { transform: scale(1.05); }

.lightbox {
  padding: 0;
  border: none;
  background: none;
  max-width: 95vw;
  max-height: 95vh;
  cursor: zoom-out;
}

.lightbox::backdrop { background: rgba(0, 0, 0, .88); }

.lightbox img {
  display: block;
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

/* Einsatzgebiet */
.area {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}

.area .lead { margin-bottom: 0; }

.places {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.places li {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 8px 16px;
  font-size: .95rem;
}

/* Buchen – Karte ragt in das Titelbild hinein */
main > section.booking { padding: 0 0 80px; background: var(--bg); }

.booking-card {
  position: relative;
  z-index: 3;
  margin-top: -80px;
  background: #fff;
  padding: 40px 40px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .14);
}

.booking-card h2 { margin-bottom: 20px; }

/* WhatsApp */
.wa-icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: #25d366;
}

.wa-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 10px 20px;
  border: 1px solid #25d366;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.wa-button:hover { background: #25d366; color: #fff; }
.wa-button-after { margin: 28px 0 0; }
.wa-button:hover .wa-icon { fill: #fff; }

.whatsapp-link { display: inline-flex; align-items: center; gap: 8px; }
.whatsapp-link .wa-icon { width: 20px; height: 20px; }

.booking-note {
  max-width: 720px;
  margin: -4px 0 28px;
  padding: 12px 18px;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: .95rem;
}

.booking iframe {
  display: block;
  width: 100%;
  height: 1100px;
  border: none;
  background: #fff;
}

.consent-placeholder {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px 24px;
  text-align: center;
}

.consent-placeholder p { margin: 0 auto 20px; color: var(--muted); max-width: 560px; }

/* Kontakt */
.contact {
  background: var(--dark);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 16px;
}

.contact-grid p { margin: 0; font-size: 1.1rem; }
.contact-grid a { text-decoration: none; }
.contact-grid a:hover { color: var(--accent); }

.contact .contact-label {
  margin-bottom: 6px;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #999;
}

/* Einblenden beim Scrollen (nur mit JavaScript) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: 60px 0; }
.legal h1 { font-weight: 300; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { margin-top: 32px; font-size: 1.2rem; font-weight: 600; }
.legal h3 { margin: 20px 0 6px; font-size: 1rem; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.placeholder { background: #fff6d6; padding: 0 4px; }

/* ---------- Footer ---------- */
footer {
  background: #000;
  color: #888;
  padding: 24px 0;
  font-size: .88rem;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer a { margin-left: 16px; text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ---------- Einwilligung ---------- */
.consent {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .6);
}

.consent-box {
  background: #fff;
  max-width: 520px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 28px;
}

.consent-box h3 { margin: 0 0 12px; }
.consent-box p { margin: 0 0 12px; font-size: .95rem; }

.consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

[hidden] { display: none !important; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: rgba(14, 14, 14, .98);
    border-top: 1px solid #222;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }

  .open nav { visibility: visible; opacity: 1; transform: none; }

  nav a {
    padding: 14px 0;
    border-bottom: 1px solid #222;
    font-size: 1.05rem;
  }

  nav a::after { display: none; }
  .lang { margin-top: 18px; }
  .lang button { font-size: .85rem; padding: 6px 12px; }

  .vehicle,
  .vehicle-reverse { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .vehicle-noimg { padding: 24px; }
  .vehicle-reverse img { order: 0; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .area { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Handy ---------- */
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .wrap { padding: 0 20px; }

  main > section { padding: 64px 0; }
  .hero { min-height: 0; padding: 36px 0 88px; }

  .lead { margin-bottom: 32px; }
  .card { padding: 24px 20px; }

  main > section.booking { padding-bottom: 48px; }
  .booking-card { margin: -64px -20px 0; padding: 28px 20px 20px; box-shadow: 0 -12px 32px rgba(0, 0, 0, .12); }

  /* Auf dem Handy ist das Formular länger */
  .booking iframe { height: 1400px; }

  .contact-grid p { overflow-wrap: anywhere; }

  footer .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer a { margin: 0 8px; }
}

/* Rechtstexte der IT-Recht Kanzlei (iframes). Höhen nach Textlänge je Bildschirmbreite gemessen,
   mit etwas Reserve; wird der Text länger, scrollt das iframe innen. */
.legal-frame {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
}

.legal-frame-imprint { height: 760px; }
.legal-frame-privacy { height: 6700px; }

@media (max-width: 1119px) { .legal-frame-privacy { height: 7300px; } }
@media (max-width: 960px)  { .legal-frame-privacy { height: 7900px; } }
@media (max-width: 840px)  { .legal-frame-privacy { height: 8700px; } }
@media (max-width: 720px)  { .legal-frame-privacy { height: 9800px; } }
@media (max-width: 620px)  { .legal-frame-privacy { height: 11100px; } .legal-frame-imprint { height: 860px; } }
@media (max-width: 540px)  { .legal-frame-privacy { height: 12900px; } }
@media (max-width: 460px)  { .legal-frame-privacy { height: 15000px; } }
@media (max-width: 400px)  { .legal-frame-privacy { height: 17800px; } }

.legal-frame + h2 {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
/* Ohne JavaScript übernimmt das iframe im <noscript> */
html:not(.js) .legal-frame[data-src] { display: none; }
