/* =====================================================================
   Anhängervermietung Wiesloch – CaRD GmbH
   Eigenständiges, lokales Stylesheet. Keine externen Ressourcen.
   Fonts: Oswald (Headlines) + Poppins (Text) – lokal eingebunden.
   ===================================================================== */

:root {
  --ink:        #14324c;   /* tiefes Navy  */
  --ink-2:      #1f2933;   /* Asphalt      */
  --amber:      #f5a300;   /* Signal-Amber */
  --amber-d:    #d98800;
  --amber-soft: #fff6e2;
  --bg:         #ffffff;
  --bg-soft:    #f4f7fa;
  --bg-soft-2:  #eef2f7;
  --line:       #e2e8f0;
  --text:       #2b3a47;
  --muted:      #5d6f7e;
  --white:      #ffffff;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 2px 8px rgba(20,50,76,.07);
  --shadow:     0 10px 30px rgba(20,50,76,.12);
  --shadow-lg:  0 22px 60px rgba(20,50,76,.18);
  --maxw:       1140px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

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

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

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

h1,h2,h3,h4 {
  font-family: 'Oswald', 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: .2px;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem); }
h3 { font-size: 1.32rem; }

p { margin: 0 0 1rem; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--amber-d); }
img { max-width: 100%; display: block; }

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

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--amber-d);
  background: var(--amber-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Oswald', sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1px;
  font-size: .98rem;
  padding: 14px 26px; border-radius: 999px;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: #3a2600; box-shadow: 0 8px 22px rgba(245,163,0,.35); }
.btn--primary:hover { background: var(--amber-d); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color:#fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color:#fff; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 30px; width: auto; }
.brand__txt { font-family: 'Oswald', sans-serif; font-weight: 600; line-height: 1.05; color: var(--ink); }
.brand__txt small { display: block; font-family: 'Poppins',sans-serif; font-weight: 500; font-size: .68rem; letter-spacing:.5px; color: var(--muted); text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a.nav__link { font-weight: 500; font-size: .98rem; color: var(--ink-2); }
.nav a.nav__link:hover { color: var(--amber-d); }
.nav__phone { display: inline-flex; align-items:center; gap:8px; font-family:'Oswald',sans-serif; font-weight:500; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../images/anhaenger.jpg") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(15,40,62,.93) 0%, rgba(15,40,62,.78) 45%, rgba(20,50,76,.45) 100%);
}
.hero__inner { padding: 92px 0 100px; max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.7rem); margin-bottom: .35em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero h1 .accent { color: var(--amber); }
.hero__lead { font-size: 1.2rem; color: rgba(255,255,255,.92); max-width: 600px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .96rem; color: rgba(255,255,255,.92); }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges svg { flex: none; }

/* ---------- Vorteile ---------- */
.benefits { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.benefit {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit__ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber-d); margin-bottom: 16px;
}
.benefit h3 { font-size: 1.18rem; margin-bottom: 6px; }
.benefit p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Anhänger-Karten ---------- */
.fleet { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.trailer {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .25s;
}
.trailer:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.trailer__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft-2); }
.trailer__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.trailer:hover .trailer__media img { transform: scale(1.05); }
.trailer__price {
  position: absolute; top: 14px; left: 14px;
  background: var(--amber); color: #3a2600; font-family: 'Oswald',sans-serif; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; font-size: .95rem; box-shadow: var(--shadow-sm);
}
.trailer__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.trailer__body h3 { margin-bottom: 8px; }
.trailer__body p { color: var(--muted); font-size: .98rem; }
.trailer__specs { list-style: none; padding: 0; margin: 4px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.trailer__specs li {
  font-size: .82rem; background: var(--bg-soft); color: var(--ink-2);
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
}
.trailer__cta { margin-top: auto; }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding: 34px 26px 28px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step__num {
  counter-increment: step; position: absolute; top: -22px; left: 26px;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: 'Oswald',sans-serif; font-size: 1.3rem; font-weight: 600;
}
.step__num::before { content: counter(step); }
.step h3 { margin: 12px 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Preis-Hinweis Banner ---------- */
.note {
  background: var(--amber-soft); border: 1px solid #f2d89a; border-radius: var(--radius);
  padding: 22px 26px; color: #6b4e12; font-size: .98rem;
  display: flex; gap: 14px; align-items: flex-start;
}
.note svg { flex: none; color: var(--amber-d); margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-family: 'Oswald',sans-serif;
  font-weight: 500; font-size: 1.12rem; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--amber-d); transition: transform .25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--muted); }
.faq details > div p { margin: 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.contact-info { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 38px 34px; }
.contact-info h3 { color: #fff; }
.contact-info a { color: var(--amber); }
.contact-info a:hover { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { flex: none; width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--amber); }
.contact-list strong { display: block; font-family:'Oswald',sans-serif; font-weight:500; letter-spacing:.5px; }
.contact-list span { color: rgba(255,255,255,.8); font-size: .95rem; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.field .req { color: var(--amber-d); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .98rem; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,163,0,.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; flex: none; }
.captcha-row { display: flex; align-items: center; gap: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; }
.captcha-row label { margin: 0; font-family:'Oswald',sans-serif; font-size: 1.02rem; white-space: nowrap; }
.captcha-row input { max-width: 90px; }

.alert { border-radius: 10px; padding: 14px 18px; margin-bottom: 22px; font-size: .96rem; }
.alert--ok  { background: #e8f7ee; border: 1px solid #b7e4c7; color: #1b6b3a; }
.alert--err { background: #fdecec; border: 1px solid #f5c2c2; color: #9b2226; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,.78); padding: 56px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-logo { background:#fff; padding:10px 14px; border-radius:10px; display:inline-block; margin-bottom:16px; }
.footer-logo img { height: 26px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .88rem; color: rgba(255,255,255,.6); }

/* ---------- Legal pages ---------- */
.legal { padding: 60px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem,1.3rem+2vw,2.6rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.3rem; margin-top: 34px; }
.legal p, .legal li { color: var(--text); }
.back-link { display:inline-flex; align-items:center; gap:8px; margin-bottom: 28px; font-weight:500; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .benefits { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
         background: #fff; border-bottom: 1px solid var(--line); padding: 8px 22px 20px;
         transform: translateY(-130%); transition: transform .3s var(--ease); box-shadow: var(--shadow); }
  .nav.open { transform: translateY(0); }
  .nav a.nav__link { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav__phone { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: block; margin-left: auto; }
  .fleet { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .benefits { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
