/* =========================================================
   Dekrell Invest GmbH — style.css
   Mobile-first, responsive, kein Framework
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --black: #1A1A1A;
  --gold: #B58D52;
  --gold-dark: #9a763f;
  --lightgray: #F2F2F2;
  --white: #ffffff;
  --text: #1A1A1A;
  --muted: #5c5c5c;
  --border: #e2e2e2;
  --ph-bg: #3a3a3a;      /* Platzhalter-Hintergrund */
  --ph-text: #c9c9c9;

  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .10);
  --ease: .25s ease;
  --header-h: 88px;

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-dark); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--black);
}

h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

p { margin: 0 0 1rem; }

ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .4rem; }

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--gray { background: var(--lightgray); }
.section--dark { background: var(--black); color: var(--lightgray); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.lead { font-size: 1.1rem; color: var(--muted); }
.section--dark .lead { color: #c9c9c9; }

/* Goldener Zierstrich */
.rule {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.5rem;
}
.center .rule { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.9rem;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--ease);
}
.btn--primary { background: var(--gold); color: var(--white); }
.btn--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost:hover { background: var(--gold); color: #fff; }
.section--dark .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost { color: #fff; }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- Platzhalter-Bilder ---------- */
.ph {
  background: var(--ph-bg);
  color: var(--ph-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: .82rem;
  letter-spacing: .5px;
  line-height: 1.4;
  border-radius: var(--radius);
  width: 100%;
}
.ph::before { content: "▦  "; opacity: .5; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--4x3  { aspect-ratio: 4 / 3; }
.ph--1x1  { aspect-ratio: 1 / 1; }
.ph--21x9 { aspect-ratio: 21 / 9; }
.ph--3x4  { aspect-ratio: 3 / 4; }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

/* Logo */
.logo { display: inline-flex; align-items: center; }
.logo svg { height: 62px; width: auto; }
/* Wortmarke: Header schwarz, Footer weiß — Gold-Elemente bleiben gold */
.logo .word { fill: var(--black); }
.footer-logo .word { fill: #ffffff; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--black);
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav list */
.main-nav { }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.nav-item { position: relative; }
.nav-link,
.nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  width: 100%;
  padding: .9rem 0;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .3px;
  color: var(--black);
  background: none;
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
}
.nav-link:hover,
.nav-parent:hover { color: var(--gold); }
.nav-link.is-active { color: var(--gold); }
.nav-parent .caret {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--ease);
  margin-left: .3rem;
  margin-bottom: 3px;
}
.nav-item.open > .nav-parent .caret { transform: rotate(-135deg); margin-bottom: -2px; }

/* Dropdown (mobile: accordion) */
.dropdown {
  list-style: none;
  margin: 0;
  padding: 0 0 .5rem .8rem;
  display: none;
}
.nav-item.open > .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: .6rem 0;
  font-size: .9rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: .2px;
}
.dropdown a:hover { color: var(--gold); }

/* Mobile drawer */
@media (max-width: 899px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list { padding-inline: clamp(1rem, 4vw, 2.5rem); }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-item:last-child { border-bottom: 0; }
}

/* Desktop nav */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: block !important; }
  .nav-list { flex-direction: row; align-items: center; gap: 1.6rem; }
  .nav-item { border: 0; }
  .nav-link,
  .nav-parent { padding: .5rem 0; width: auto; font-size: .82rem; letter-spacing: .5px; }

  .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    box-shadow: var(--shadow);
    padding: .5rem 1rem;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  }
  .nav-item:hover > .dropdown,
  .nav-item.open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .dropdown a { padding: .55rem 0; }
  .nav-item.open > .nav-parent .caret,
  .nav-item:hover > .nav-parent .caret { transform: rotate(225deg); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(460px, 78vh, 720px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1A1A1A 0%, #262320 55%, #35291a 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(181,141,82,.28), transparent 45%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.02) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; }
.hero h1 { color: #fff; }
.hero .tagline {
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero p { color: #d9d9d9; font-size: 1.12rem; max-width: 560px; }
.hero .btn-row { margin-top: 2rem; }

.page-hero {
  background: linear-gradient(135deg, #1A1A1A 0%, #2c2620 100%);
  color: #fff;
  padding-block: clamp(3rem, 8vw, 5rem);
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(181,141,82,.22), transparent 50%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #d0d0d0; max-width: 620px; }
.breadcrumb { font-size: .82rem; color: var(--gold); letter-spacing: .5px; margin-bottom: 1rem; }
.breadcrumb a { color: #bdbdbd; }
.breadcrumb a:hover { color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* =========================================================
   GRIDS & CARDS
   ========================================================= */
.grid { display: grid; gap: 1.8rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ph { border-radius: 0; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { color: var(--muted); font-size: .95rem; }
.card-link {
  margin-top: auto;
  padding-top: .8rem;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gold-dark);
}
.card-link::after { content: " →"; }

/* Split (Bild + Text) */
.split {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 2; }
}

/* Feature-Liste mit goldenem Haken */
.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: .7rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 8px; height: 14px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

/* Stat-Reihe */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat .num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--gold); line-height: 1; }
.stat .label { font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-top: .5rem; }
.section--dark .stat .label { color: #b7b7b7; }

/* =========================================================
   FAHRZEUG- / PREIS-TABELLE
   ========================================================= */
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.spec-table th,
.spec-table td {
  text-align: left;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.spec-table th { background: var(--lightgray); font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: .5px; }
.spec-table tr:hover td { background: #fafafa; }
.table-wrap { overflow-x: auto; }

.price-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: var(--radius);
  font-size: .9rem;
}

/* =========================================================
   CTA-Banner
   ========================================================= */
.cta-banner {
  background: linear-gradient(135deg, #1A1A1A 0%, #35291a 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #d0d0d0; max-width: 560px; margin-inline: auto; }

/* =========================================================
   KONTAKTFORMULAR
   ========================================================= */
.form-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid .two { grid-template-columns: 1fr 1fr; display: grid; gap: 1.2rem; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; letter-spacing: .3px; }
.field label .req { color: var(--gold); }
.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: .95rem;
  padding: .8rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181,141,82,.15);
}
.field textarea { resize: vertical; min-height: 140px; }
.checkbox { flex-direction: row; align-items: flex-start; gap: .6rem; }
.checkbox input { width: 18px; height: 18px; margin-top: .2rem; flex: none; }
.checkbox label { font-weight: 400; font-size: .85rem; color: var(--muted); }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.form-success {
  display: none;
  background: #eef6ee;
  border: 1px solid #bcd8bc;
  color: #2f6b2f;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.form-success.show { display: block; }

/* Kontakt-Infoboxen */
.info-list { list-style: none; padding: 0; }
.info-list li { display: flex; gap: .9rem; margin-bottom: 1.3rem; align-items: flex-start; }
.info-ic {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--lightgray);
  border-radius: 50%;
  color: var(--gold-dark);
  font-weight: 700;
}
.info-list .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.info-list .val { font-weight: 500; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--black);
  color: #bdbdbd;
  padding-block: 3.5rem 1.5rem;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo svg { height: 64px; width: auto; margin-bottom: 1.2rem; }
.footer-logo .frame { stroke: var(--gold); }
.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.1rem;
}
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .6rem; }
.footer-nav a { color: #bdbdbd; }
.footer-nav a:hover { color: var(--gold); }
.footer-contact p { margin-bottom: .5rem; color: #bdbdbd; }
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .82rem;
  color: #8a8a8a;
}
.footer-bottom a { color: #8a8a8a; }
.footer-bottom a:hover { color: var(--gold); }

/* =========================================================
   Utilities
   ========================================================= */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-gold { color: var(--gold); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
