@import url('variables.css');
@import url('fonts.css');

/* ════════════════════════════════════════════════════════
   RTG Camping – Grundgerüst
   Kantig-technischer RTG-Look: Navy dominant, Gold als Akzent,
   Kanit-italic-Headlines, diagonale Schnittkanten, Plus-Bullets.
   ════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* ── Typo ── */
h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.04;
  letter-spacing: -0.005em;
}
/* Große Headlines in der Marken-Schrift Aero (nativ schräg → font-style normal). */
h1, h2 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
}
/* em in großen Headlines nur farblich hervorheben, KEIN künstliches Kursiv auf Aero. */
h1 em, h2 em { font-style: normal; color: var(--gold); }
/* Sub-Headlines bleiben Kanit (kursiv). */
h3, h4 {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p  { line-height: 1.7; }
strong, b { font-weight: 600; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ── Layout-Helfer ── */
.container        { max-width: var(--container);        margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow);  margin: 0 auto; padding: 0 1.5rem; }
.container-wide   { max-width: var(--container-wide);    margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.bg-paper { background: var(--paper); }
.bg-navy  { background: var(--navy); color: #fff; }
.bg-ink   { background: var(--ink); color: #fff; }

/* Eyebrow – kleines getracktes Kanit-Label über Headlines */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--gold); display: inline-block; }
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.on-dark::before { background: var(--gold); }

.lead { font-size: 1.15rem; color: var(--muted); line-height: 1.75; }

/* Section-Rhythmus */
.section    { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-title { margin-bottom: 2.75rem; }
.section-title h2 { margin: .6rem 0 .75rem; }
.section-title .lead { max-width: 46rem; }
.section-title.text-center .lead { margin-inline: auto; }

/* ════════════════════════════════════════════════════════
   Buttons – kantig, uppercase, Kanit
   ════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: .92rem; letter-spacing: .02em;
  padding: .95rem 1.9rem; border-radius: 8px;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 4px 14px rgba(255,205,0,.28); }
.btn-primary:hover { background: var(--gold-600); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); padding: calc(.95rem - 2px) calc(1.9rem - 2px); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline.on-dark { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline.on-dark:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { padding: .6rem 1.15rem; font-size: .82rem; border-radius: 7px; }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.02rem; }

/* ════════════════════════════════════════════════════════
   Topbar (Near-Black)
   ════════════════════════════════════════════════════════ */
.topbar { background: var(--ink); color: rgba(255,255,255,.72); font-size: .82rem; }
.topbar-inner {
  max-width: var(--container); margin: 0 auto; padding: .5rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar-loc { display: inline-flex; align-items: center; gap: .5rem; }
.topbar-loc svg { color: var(--gold); flex-shrink: 0; }
.topbar-meta { display: inline-flex; align-items: center; gap: 1.4rem; }
.topbar-hours { color: rgba(255,255,255,.55); }
.topbar-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: #fff; }
.topbar-phone svg { color: var(--gold); }
.topbar-phone:hover { color: var(--gold); }
@media (max-width: 860px) {
  .topbar-hours { display: none; }
}
@media (max-width: 560px) {
  .topbar-loc span, .topbar-loc { font-size: .76rem; }
  .topbar-inner { padding: .45rem 1rem; }
}

/* ════════════════════════════════════════════════════════
   Header / Nav (sticky, weiß)
   ════════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,40,85,.08); }
.nav {
  max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 98px; transition: height .3s ease;
}
/* Beim Scrollen kompakter (Logo + Nav schrumpfen) */
.site-header.scrolled .nav { height: 64px; }

/* Logo (Bild-Wortmarke) */
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 78px; width: auto; display: block; transition: height .3s ease; }
.site-header.scrolled .brand-logo { height: 46px; }

/* Slogan rechts neben dem Logo (wie im Footer); margin-right:auto gruppiert ihn zum Logo */
.header-claim {
  display: none;
  font-family: var(--font-head); font-style: italic; font-weight: 600;
  font-size: .95rem; line-height: 1.35; color: var(--navy);
  margin: 0 auto 0 1.25rem; padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
}
@media (min-width: 1100px) { .header-claim { display: block; } }
/* Mobil (Burger-Modus): Slogan kompakt neben dem Logo; nur im engen
   Zwischenbereich 881–1099px (Desktop-Links sichtbar) bleibt er aus. */
@media (max-width: 880px) {
  .header-claim { display: block; font-size: .78rem; line-height: 1.3; margin-left: .9rem; padding-left: .9rem; min-width: 0; }
}
@media (max-width: 360px) { .header-claim { display: none; } }
.footer-logo-link { display: inline-flex; }
.footer-logo { height: 76px; width: auto; display: block; }

.nav-desktop { display: flex; align-items: center; gap: 2.25rem; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a {
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: 1.16rem; color: var(--navy); position: relative; padding: .25rem 0;
  transition: color .2s, font-size .3s ease;
}
.site-header.scrolled .nav-links a { font-size: 1rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav-links a:hover { color: var(--navy-700); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; color: var(--navy); padding: 4px; }

/* Mobile-Menü */
.nav-mobile {
  display: none; overflow: hidden; max-height: 0;
  transition: max-height .3s ease, padding .3s ease;
  background: #fff; border-top: 1px solid var(--line);
}
.nav-mobile.open { max-height: 26rem; padding: 1.25rem 0 1.5rem; }
.nav-mobile ul { list-style: none; padding: 0 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.25rem; }
.nav-mobile a {
  font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: 1.15rem;
  color: var(--navy);
}
.nav-mobile a.active { color: var(--gold-600); }
.nav-mobile .mobile-cta { padding: 0 1.5rem; display: flex; flex-direction: column; gap: .85rem; }
.nav-mobile .mobile-cta .btn { width: 100%; }
.mobile-phone {
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  text-align: center; color: var(--navy); font-size: 1.05rem;
}

@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile { display: block; }
  /* Mobile etwas kompakter, aber Logo trotzdem gut erkennbar */
  .nav { height: 76px; }
  .site-header.scrolled .nav { height: 60px; }
  .brand-logo { height: 58px; }
  .site-header.scrolled .brand-logo { height: 44px; }
}

/* ════════════════════════════════════════════════════════
   Marken-Bausteine (für alle Seiten wiederverwendbar)
   ════════════════════════════════════════════════════════ */

/* Diagonale Schnittkante – das RTG-Signature-Element */
.cut-tr { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%); }
.cut-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, 28px 100%, 0 calc(100% - 28px)); }

/* Karten */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card h3 { margin-bottom: .6rem; }

/* Plus-Liste – RTG-Bullet-Stil */
.plus-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.plus-list li { position: relative; padding-left: 1.7rem; line-height: 1.55; }
.plus-list li::before {
  content: "+"; position: absolute; left: 0; top: -1px;
  font-family: var(--font-head); font-style: italic; font-weight: 800;
  color: var(--gold-600); font-size: 1.15rem;
}
.plus-list.on-dark li::before { color: var(--gold); }

/* Check-Liste (USP/Vorteile) */
.check-list { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
.check-list li { position: relative; padding-left: 2.1rem; line-height: 1.55; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 1.35rem; height: 1.35rem;
  border-radius: 50%; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/0.85rem no-repeat, linear-gradient(#000,#000);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/0.85rem no-repeat;
}
/* Fallback ohne Mask: einfacher Haken */
@supports not (mask: url("#")) {
  .check-list li::before { content: "✓"; background: none; color: var(--gold-600); font-weight: 800; width: auto; }
}

/* Badge / Pill */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase;
  background: rgba(0,40,85,.06); color: var(--navy);
  padding: .3rem .75rem; border-radius: 6px;
}
.badge.gold { background: var(--gold); color: var(--ink); }

/* Dünner Gold-Trenner */
.gold-rule { width: 54px; height: 4px; background: var(--gold); border: 0; }

/* Fahrzeugauswahl-Kacheln (Start + Service) */
.fz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; }
.fz-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.25rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.fz-icon {
  display: inline-flex; width: 66px; height: 66px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(0,40,85,.06); color: var(--navy);
  transition: background .2s ease, color .2s ease; margin-bottom: .35rem;
}
.fz-card:hover .fz-icon { background: var(--navy); color: var(--gold); }
.fz-card h3 { margin: 0; }
.fz-card p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ════════════════════════════════════════════════════════
   Footer (Navy, Gold-Kante oben)
   ════════════════════════════════════════════════════════ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.66); position: relative; }
.site-footer::before {
  content: ""; display: block; height: 5px;
  background: linear-gradient(90deg, var(--gold) 0 62%, var(--ink) 62% 100%);
}
.site-footer .footer-inner { max-width: var(--container); margin: 0 auto; padding: 4rem 1.5rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.75rem; margin-bottom: 3rem; }
.footer-brand .brand--footer { margin-bottom: 1.1rem; }
.footer-claim { font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: 1.15rem; color: #fff; line-height: 1.3; margin-bottom: 1rem; }
.footer-group { font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,.5); }
.footer-col .footer-heading { color: var(--gold); font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: .95rem; letter-spacing: .04em; margin: 0 0 1.15rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contact address { font-style: normal; display: flex; flex-direction: column; gap: .85rem; }
.footer-contact .footer-addr,
.footer-contact a,
.footer-contact .footer-hours { display: flex; align-items: flex-start; gap: .65rem; font-size: .95rem; line-height: 1.55; }
.footer-contact svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
  font-size: .85rem; text-align: center;
}
.footer-legal { display: flex; gap: 1.4rem; align-items: center; }
.footer-legal a:hover, .footer-legal button:hover { color: #fff; }
.cookie-settings-link { font-size: .85rem; color: inherit; font-family: inherit; }

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; gap: 3rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ════════════════════════════════════════════════════════
   Formulare (Kontakt)
   ════════════════════════════════════════════════════════ */
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 620px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label {
  font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: .9rem; color: var(--navy);
}
.field label .req { color: var(--gold-600); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,40,85,.1);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-check { display: flex; align-items: flex-start; gap: .7rem; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.field-check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--navy); flex-shrink: 0; }
.field-check a { color: var(--navy); text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted-2); }
.form-error {
  background: #fdecec; border: 1px solid #f4c9c9; color: var(--danger);
  padding: .85rem 1.1rem; border-radius: 8px; font-size: .92rem; margin-bottom: 1.1rem;
}
.form-success {
  background: #eaf6ee; border: 1px solid #bfe3ca; color: var(--success);
  padding: 1.5rem 1.5rem; border-radius: var(--radius);
}

/* ════════════════════════════════════════════════════════
   Scroll-Reveal (IntersectionObserver in main.js)
   ════════════════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ════════════════════════════════════════════════════════
   Google-Karte (DSGVO: lädt erst nach Klick) – Kontakt + Unternehmen
   ════════════════════════════════════════════════════════ */
.gmap {
  position: relative; width: 100%; min-height: 360px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--navy); box-shadow: var(--shadow-sm);
}
.gmap-placeholder {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: .45rem; padding: 1.75rem;
  background: var(--gradient-navy, var(--navy)); color: #fff;
}
.gmap-pin { color: var(--gold); }
.gmap-title { font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 1.3rem; color: #fff; }
.gmap-addr { color: rgba(255,255,255,.82); font-size: .96rem; }
.gmap-load { margin-top: .7rem; }
.gmap-note { font-size: .78rem; color: rgba(255,255,255,.6); max-width: 32ch; margin-top: .3rem; }
.gmap iframe { display: block; position: relative; z-index: 2; width: 100%; height: 100%; min-height: 360px; border: 0; }
/* Wichtig: .gmap-placeholder hat display:flex – das schlägt das UA-[hidden].
   Ohne diese Regel bleibt der Platzhalter über der geladenen Karte liegen. */
.gmap-placeholder[hidden] { display: none !important; }

/* ── Öffnungszeiten (Standard-Darstellung: Tag links fett, Uhrzeit rechts) ── */
.hours-table { display: inline-grid; grid-template-columns: auto auto; gap: .1rem 1.15rem; }
.hours-days { font-weight: 700; }
.hours-time { white-space: nowrap; }
