/* =========================================================================
   Omar Automobile — „Warm & hochwertig" Light-Theme (mobile-first)
   Creme-Töne, dunkle Schrift, Tannengrün-Akzent. Ruhig, edel, klar.
   ========================================================================= */

:root {
  --bg:        #f7f4ef;   /* Creme */
  --bg-2:      #f1ece3;   /* etwas tiefer */
  --surface:   #ffffff;   /* Karten */
  --surface-2: #f3eee5;
  --border:    rgba(45,36,28,0.12);
  --border-2:  rgba(45,36,28,0.22);

  --text:      #2a2420;   /* Dunkelbraun/Anthrazit */
  --muted:     #6f655a;

  --accent:        #1f6f5c;  /* Tannengrün */
  --accent-dark:   #185a4a;
  --accent-soft:   rgba(31,111,92,0.10);
  --accent-tint:   #eef4f1;

  --success:   #1f6f5c;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius:    14px;
  --radius-sm: 9px;
  --maxw: 980px;
  --shadow:    0 14px 36px -22px rgba(45,36,28,0.40);
  --shadow-sm: 0 6px 18px -12px rgba(45,36,28,0.30);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ----------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section--tight { padding: 42px 0; }
.divider { border: 0; border-top: 1px solid var(--border); }

h1, h2, h3 { line-height: 1.18; font-weight: 700; color: #211c18; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 2.9rem); }
h2 { font-size: clamp(1.55rem, 4.5vw, 2rem); }
h3 { font-size: 1.12rem; }

p { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--text); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 18px; }

.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

.section-head { margin-bottom: 30px; }
.section-head p { margin-top: 8px; max-width: 60ch; }

/* ----------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.97rem; transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
  min-height: 48px;
}
.btn--gold { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--border-2); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,244,239,0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 1rem; box-shadow: var(--shadow-sm); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.04rem; color: #211c18; }
.brand__name span { color: var(--accent); }
.brand__sub { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a { padding: 8px 14px; border-radius: 8px; font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.nav__links a:hover { color: #211c18; background: var(--bg-2); }
.nav__links a.active { color: var(--accent); }

.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__call { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--text); white-space: nowrap; font-size: 0.95rem; }
.nav__call svg { color: var(--accent); }

.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: #211c18; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__toggle span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: 0.2s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------- Hero */
.hero { padding: 64px 0 48px; }
.hero h1 { margin-bottom: 16px; }
.hero h1 .hl { color: var(--accent); }
.hero p { font-size: 1.12rem; color: var(--text); max-width: 56ch; }
.hero .btn-row { margin-top: 28px; }

/* ----------------------------------------------------------- Grid / Karten */
.cols { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cols-3 { grid-template-columns: repeat(3,1fr); } .cols-2 { grid-template-columns: repeat(2,1fr); } }

.item { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.item h3 { margin-bottom: 7px; display: flex; align-items: center; gap: 10px; }
.item h3 svg { color: var(--accent); flex-shrink: 0; }
.item p { font-size: 0.95rem; }

/* Checkliste */
.checks { list-style: none; display: grid; gap: 11px; margin-top: 14px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; color: var(--text); font-size: 0.97rem; }
.checks svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* Info-Zeilen */
.info { display: grid; gap: 4px; margin-bottom: 20px; }
.info .k { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.info .v { font-weight: 600; color: #211c18; }
.info .v a:hover { color: var(--accent); }

/* Öffnungszeiten */
.hours { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.hours .row { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 0.95rem; }
.hours .row + .row { border-top: 1px solid var(--border); }
.hours .d { color: var(--muted); }
.hours .h { color: #211c18; font-weight: 600; }
.hours .row.closed .h { color: var(--muted); font-weight: 500; }
.hours .row.today { background: var(--accent-tint); }
.hours .row.today .d { color: var(--accent); font-weight: 600; }

/* ----------------------------------------------------------- Embeds */
.embed-frame { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 10px; box-shadow: var(--shadow-sm); }
.embed-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 12px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.embed-bar .live { display: inline-flex; align-items: center; gap: 7px; }
.embed-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.embed-wrap { width: 100%; background: #fff; border-radius: var(--radius-sm); overflow: hidden; min-height: 75vh; }
.embed-wrap iframe { width: 100%; height: 100%; min-height: 75vh; border: 0; display: block; }

.consent-block { display: grid; place-items: center; text-align: center; padding: 46px 20px; min-height: 300px; background: var(--accent-tint); border-radius: var(--radius-sm); }
.consent-block svg { color: var(--accent); margin-bottom: 14px; }
.consent-block h3 { margin-bottom: 8px; }
.consent-block p { max-width: 44ch; margin: 0 auto 18px; font-size: 0.93rem; }

/* ----------------------------------------------------------- Formulare */
.form { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 24px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field label .req, .req-i { color: var(--accent); }
.field input, .field textarea {
  width: 100%; padding: 12px 13px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--border-2); color: var(--text);
  font-size: 1rem; font-family: inherit;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #a39a8d; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); margin: 16px 0 18px; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox a { color: var(--accent); text-decoration: underline; }
.note { font-size: 0.84rem; color: var(--muted); }
.note a { color: var(--accent); text-decoration: underline; }

/* ----------------------------------------------------------- Subpage-Hero */
.page-hero { padding: 46px 0 8px; }
.page-hero .crumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 { margin-bottom: 12px; }

/* ----------------------------------------------------------- Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.32rem; margin: 32px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; color: var(--accent); }
.legal h4 { font-size: 0.98rem; margin: 16px 0 4px; color: #211c18; }
.legal p, .legal li { color: var(--text); font-size: 0.96rem; margin-bottom: 10px; }
.legal ul { padding-left: 20px; margin-bottom: 12px; }
.legal a { color: var(--accent); text-decoration: underline; word-break: break-word; }
.legal address { font-style: normal; color: var(--text); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 0.92rem; }

/* ----------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 42px 0 26px; margin-top: 24px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-grid p { font-size: 0.9rem; margin-top: 12px; max-width: 36ch; }
.footer h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a, .footer ul span { color: var(--text); font-size: 0.92rem; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.84rem; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 16px; }

/* ----------------------------------------------------------- Consent-Banner */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200; max-width: 440px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 20px; display: none; box-shadow: var(--shadow); }
.cookie-banner.show { display: block; }
.cookie-banner h3 { font-size: 1.02rem; margin-bottom: 7px; }
.cookie-banner p { font-size: 0.86rem; margin-bottom: 14px; }
.cookie-banner p a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: grid; gap: 9px; grid-template-columns: 1fr 1fr; }
.cookie-actions .btn { padding: 11px 14px; font-size: 0.9rem; min-height: 44px; }
.cookie-toggles { display: grid; gap: 9px; margin-bottom: 14px; }
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cookie-toggle .ct-l { font-size: 0.86rem; }
.cookie-toggle .ct-l small { display: block; color: var(--muted); font-size: 0.76rem; }
.switch { position: relative; width: 40px; height: 23px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 999px; transition: 0.2s; }
.switch .track::before { content: ""; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; background: var(--muted); border-radius: 50%; transition: 0.2s; }
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track::before { transform: translateX(17px); background: #fff; }
.switch input:disabled + .track { opacity: 0.55; }
.cookie-link-row { margin-top: 11px; font-size: 0.8rem; }
.cookie-link-row a { color: var(--muted); text-decoration: underline; cursor: pointer; }

.cookie-reopen { position: fixed; left: 12px; bottom: 12px; z-index: 150; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-2); color: var(--accent); display: none; place-items: center; box-shadow: var(--shadow-sm); }
.cookie-reopen.show { display: grid; }

/* ----------------------------------------------------------- Toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 200%); z-index: 300;
  background: var(--surface); border: 1px solid var(--border-2); border-left: 3px solid var(--accent);
  padding: 13px 18px; border-radius: var(--radius-sm); color: var(--text); font-size: 0.92rem;
  transition: transform 0.3s ease; max-width: 92vw; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); }

.reveal { opacity: 1 !important; transform: none !important; }

/* ----------------------------------------------------------- Mobile-Navigation */
@media (max-width: 760px) {
  .nav__links, .nav__call { display: none; }
  .nav__toggle { display: flex; }
  .site-header.nav-open .nav__links {
    display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 12px; background: rgba(247,244,239,0.98); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px);
  }
  .site-header.nav-open .nav__links a { padding: 13px 14px; font-size: 1.05rem; }
}
@media (max-width: 620px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
