/* ============================================================
   TESLA TAXI 24 – Base
   Variablen, Reset, Typografie, Buttons, Utilities, A11y
   ============================================================ */

/* --- Lokale Schriften --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-var.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 22.4%;
    line-gap-override: 0%;
}

:root {
    --brand:        #103e36;
    --brand-hover:  #28514a;
    --brand-deep:   #0a2a24;
    --mint:         #2cec9a;
    --mint-hover:   #24d189;
    --mint-dark:    #16764d;
    --mint-light:   #f0fdf7;
    --error-light:  #fdf0f0;
    --error-border: #e0b4b4;
    --error-text:   #b85450;

    --bg-body:      #f4f4f4;
    --bg-card:      #ffffff;
    --bg-dark:      #282828;

    --text-main:    #282828;
    --text-muted:   #595959; /* Optimiert für Lighthouse Kontrast (vorher #7e7e7e) */
    --text-light:   #ffffff;
    --text-light-muted: #a9a9a9;
    --text-sub:     #d8e4e1;

    --border:       #eaeaea;
    --border-dark:  #3a3a3a;

    --radius-sm:    4px;
    --radius-md:    5px;
    --radius-lg:    8px;
    --radius-full:  999px;

    --shadow-sm:    0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:    0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg:    0 20px 40px rgba(0,0,0,0.25);

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

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ---------- Typografie ---------- */
h1, h2, h3, h4 { letter-spacing: -0.02em; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 12px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
p  { color: var(--text-muted); font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: var(--radius-md);
    font-size: 0.95rem; font-weight: 600; border: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    text-align: center; white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary      { background: var(--brand); color: var(--text-light); }
.btn-primary:hover{ background: var(--brand-hover); }
.btn-accent       { background: var(--mint); color: var(--text-main); }
.btn-accent:hover { background: var(--mint-hover); }
.btn-outline      { background: transparent; color: var(--text-light); border: 1px solid var(--border-dark); }
.btn-outline:hover{ border-color: var(--text-light); }
.btn-outline-dark { background: transparent; color: var(--text-main); border: 1px solid var(--border); }
.btn-outline-dark:hover { border-color: var(--text-main); }
.btn-outline-light{ background: transparent; color: var(--text-light); border: 1px solid var(--text-light); }
.btn-outline-light:hover { background: var(--text-light); color: var(--bg-dark); }
.btn-block { width: 100%; }

/* ---------- Layout / Utilities ---------- */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 820px;  margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 960px;  margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

.text-center      { text-align: center; }
.text-light       { color: var(--text-light) !important; }
.text-muted-light { color: var(--text-light-muted) !important; }
.text-mint        { color: var(--mint) !important; }
.text-error       { color: var(--error-text) !important; }
.text-sm          { font-size: 0.85rem; }
.text-xs          { font-size: 0.75rem; }
.font-bold        { font-weight: 700; }

.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 48px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 24px; }
.mt-6 { margin-top: 32px; }
.mt-8 { margin-top: 48px; }

.bg-white { background: var(--bg-card); }
.bg-body  { background: var(--bg-body); }
.bg-dark  { background: var(--bg-dark); }

.max-w-md    { max-width: 600px; margin-left: auto; margin-right: auto; }
.flex-center { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.img-fluid   { width: 100%; height: auto; border-radius: var(--radius-md); display: block; }
.highlight   { color: var(--brand); font-weight: 700; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Accessibility ---------- */
*:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: var(--radius-sm); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1000;
    padding: 12px 20px; background: var(--mint); color: var(--brand);
    font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Responsive – Basis
   ============================================================ */
@media (max-width: 900px) {
    section { padding: 64px 0; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
    .container { padding: 0 20px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .btn { padding: 12px 20px; font-size: 0.9rem; }
}