/* =====================================================================
   AUTO BACKUS — Stylesheet
   --------------------------------------------------------------------
   Diese Datei steuert das gesamte Aussehen der Website.
   Aenderungen hier wirken sich auf ALLE Seiten aus.

   Aufbau:
     1. Variablen (Farben, Schriften) — hier zentral aendern
     2. Globale Grundregeln
     3. Header / Navigation
     4. Hauptinhalt (main)
     5. Footer
     6. Hilfsklassen
     7. Mobile-Anpassungen (unten)
   ===================================================================== */


/* 1. Variablen ------------------------------------------------------- */
/* Wenn du die Hauptfarbe oder Schrift aenderst — hier reicht eine Stelle */
:root {
    --farbe-primaer: #c8102e;          /* Rot — Akzentfarbe, Buttons, Links, Headlines */
    --farbe-sekundaer: #1d4e7d;        /* dunkles Blau — Sektions-Akzente */
    --farbe-dunkel: #1a1a1a;           /* Anthrazit — Header, Footer */
    --farbe-hell: #e3eef7;             /* leichtes Blau — Seiten-Hintergrund */
    --farbe-karte: #ffffff;            /* weiß — Karten/Boxen-Hintergrund */
    --farbe-text: #222;                /* Standardtextfarbe */
    --farbe-text-hell: #ffffff;        /* Text auf dunklem Hintergrund */
    --schrift-haupt: "Helvetica Neue", Arial, sans-serif;
    --max-breite: 100%;                /* volle Browser-Breite */
}


/* 2. Globale Grundregeln -------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--schrift-haupt);
    color: var(--farbe-text);
    background: var(--farbe-hell);
    line-height: 1.6;
    font-size: 17px;
}

a {
    color: var(--farbe-primaer);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; color: var(--farbe-sekundaer); }
h2 {
    font-size: 1.6rem;
    margin-top: 1.5em;
    color: var(--farbe-sekundaer);
    border-bottom: 3px solid var(--farbe-primaer);
    padding-bottom: 0.3em;
    display: inline-block;
}
h3 { font-size: 1.2rem; margin-top: 1em; color: var(--farbe-sekundaer); }

p {
    margin-bottom: 1em;
}

ul {
    margin: 0 0 1em 1.5em;
}


/* 3. Header / Navigation -------------------------------------------- */
.site-header {
    background: var(--farbe-dunkel);
    color: var(--farbe-text-hell);
    padding: 1.2rem 1rem;
}

.site-header .inner {
    max-width: var(--max-breite);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-header h1 {
    font-size: 1.4rem;
    margin: 0;
}

.site-header h1 a {
    color: var(--farbe-text-hell);
}

.site-header h1 a:hover {
    text-decoration: none;
    color: var(--farbe-primaer);
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

.site-nav a {
    color: var(--farbe-text-hell);
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a.aktiv {
    color: var(--farbe-primaer);
    text-decoration: none;
}

/* Sprach-Umschalter im Header (DE / EN) */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #555;
    font-size: 0.9rem;
}

.lang-switch a {
    color: var(--farbe-text-hell);
    opacity: 0.6;
    text-decoration: none;
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
    transition: opacity 0.15s;
}

.lang-switch a:hover {
    opacity: 1;
}

.lang-switch a.lang-aktiv {
    opacity: 1;
    color: var(--farbe-primaer);
    font-weight: 700;
}

@media (max-width: 700px) {
    .lang-switch {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 0.3rem;
    }
}


/* 4. Hauptinhalt ---------------------------------------------------- */
main {
    max-width: var(--max-breite);
    margin: 0 auto;
    padding: 2rem 2rem;
    min-height: 60vh;
    /* kein eigener Hintergrund — der blaue Body-Hintergrund leuchtet durch */
}

/* Jede Section bekommt eine weiße Karte als Hintergrund — wirkt aufgeraeumt
   und gibt dem Inhalt Struktur. Die Karten "schweben" auf dem blauen Body. */
main section {
    background: var(--farbe-karte);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(29, 78, 125, 0.08);
}

/* Hero-Section: kein Box-Look, soll luftig wirken */
main section.hero {
    background: transparent;
    box-shadow: none;
    text-align: center;
    padding: 1rem 0 2rem;
    border-bottom: none;
}

.hero {
    text-align: center;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
}

.hero p.lead {
    font-size: 1.15rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 1rem;
}

/* Marken-Claim oben in der Hero-Section: gross, breit gespaciedt,
   in Versalien, rot. Soll richtig auffallen. */
.hero-claim {
    color: var(--farbe-primaer);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--farbe-primaer);
    display: inline-block;
    line-height: 1.2;
}

/* Mobile: nicht so riesig, sonst sprengt es den Bildschirm */
@media (max-width: 700px) {
    .hero-claim {
        font-size: 1.2rem;
        letter-spacing: 0.2em;
    }
}

.hero-video {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto 1.5rem;
    border-radius: 6px;
    background: #000;
}

/* Hero-Bilder: zwei Fotos untereinander statt Video
   max-height begrenzt die Hoehe pro Bild, damit sie nicht uebermaessig
   gross werden. Wert anpassen, falls du andere Groesse willst:
     220px = klein
     280px = aktuell
     350px = grosser
*/
.hero-bilder {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-bilder img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(29, 78, 125, 0.15);
}

/* Hero-Layout mit USP-Karten links + Video Mitte + USP-Karten rechts */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1.5rem;
    align-items: center;
    margin: 1.5rem 0;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-layout .hero-video {
    margin: 0;
    max-width: 100%;
}

.usp-spalte {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.usp-karte {
    background: linear-gradient(135deg, #ffffff 0%, #f3f8fc 100%);
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
    border-top: 4px solid var(--farbe-primaer);
    box-shadow: 0 2px 8px rgba(29, 78, 125, 0.10);
    transition: transform 0.2s, box-shadow 0.2s;
}

.usp-karte:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(29, 78, 125, 0.18);
}

.usp-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.usp-titel {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--farbe-sekundaer);
    margin-bottom: 0.3rem;
}

.usp-text {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* Bilder-Galerie: 3-spaltig auf Desktop, 1-spaltig auf Mobile */
.galerie {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.galerie img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Einzel-Bild zentriert, schoen breit aber nicht riesig */
.galerie-einzel {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

.galerie-einzel img {
    height: auto;
    max-height: 400px;
}

/* Leistung mit Bild daneben (Preise-Seite): Bild links, Text rechts */
.leistung-mit-bild {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.leistung-mit-bild img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

.leistung-mit-bild h3 {
    margin-top: 0;
    color: var(--farbe-primaer);
}

/* Preis-Widget fuer die eigene Tankstelle (LPG-Seite) */
.preis-widget {
    background: linear-gradient(135deg, var(--farbe-dunkel) 0%, #2d2d2d 100%);
    color: var(--farbe-text-hell);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem auto;
    max-width: 500px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-top: 4px solid var(--farbe-primaer);
    /* sanfte Animation fuer den Hover-"Aufpopp"-Effekt */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Wenn die Maus ueber dem Preis-Widget ist: leicht vergroessern,
   anheben und staerker beschatten -> "poppt" hervor.
   Auf Touch-Geraeten (kein Hover) bleibt die Box unveraendert. */
.preis-widget:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.30);
}

.preis-widget h3 {
    color: var(--farbe-primaer);
    margin-top: 0;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.preis-zahl {
    margin: 1rem 0;
}

.preis-betrag {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--farbe-text-hell);
    line-height: 1;
}

.preis-einheit {
    font-size: 1.2rem;
    color: #ccc;
    margin-left: 0.3rem;
}

.preis-datum {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.preis-hinweis {
    color: var(--farbe-text-hell);
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Karten-Layout fuer "Werkstatt / Reifencenter" etc. */
.karten {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.karte {
    border: 1px solid #c5d9eb;
    border-left: 5px solid var(--farbe-primaer);
    padding: 1.2rem;
    background: linear-gradient(135deg, #f3f8fc 0%, #ffffff 100%);
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.karte:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 125, 0.15);
}

.karte h3 {
    margin-top: 0;
    color: var(--farbe-primaer);
}

/* Tabelle / Liste fuer die Marken/Geraete-Aufstellung */
.markenliste {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(29, 78, 125, 0.08);
    word-break: break-word;
}

.markenliste th,
.markenliste td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #d4e2ee;
    text-align: left;
}

.markenliste th {
    background: var(--farbe-sekundaer);
    color: var(--farbe-text-hell);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.markenliste tr:nth-child(even) {
    background: #f3f8fc;
}

.markenliste tr:hover {
    background: #e8f1f8;
}

/* HU/AU-Termin-Tabelle: kompakter, schmaler */
.hu-au-tabelle {
    max-width: 500px;
}

.hu-au-tabelle td:first-child {
    font-weight: 600;
    width: 40%;
}

/* Kontakt-Info-Box: hervorgehobener Block mit roter Akzentlinie links */
.kontakt-info {
    background: linear-gradient(135deg, #f0f7fc 0%, #e3eef7 100%);
    padding: 1.5rem;
    border-left: 5px solid var(--farbe-primaer);
    border-radius: 6px;
    margin: 1rem 0;
}

.kontakt-info p {
    margin-bottom: 0.4rem;
}

.tel-gross {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Grid fuer zwei Telefon-Nummern mit Namen, sodass die Namen sauber
   untereinander stehen (beide Telefonnummern haben unterschiedliche
   Laengen). grid-template-columns: max-content sorgt dafuer, dass die
   Nummern-Spalte so breit wie die laengere Nummer ist. */
.termin-kontakte {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: 0.6rem;
    row-gap: 0.3rem;
    font-size: 1.4rem;
    font-weight: 700;
    align-items: baseline;
}

.termin-kontakte span {
    font-weight: 600;
}

@media (max-width: 700px) {
    /* Auf Mobile: Namen UNTER die Telefonnummer statt rechts daneben,
       damit nichts ueber den rechten Rand abgeschnitten wird. */
    .termin-kontakte {
        grid-template-columns: 1fr;
        font-size: 1.2rem;
        row-gap: 0.1rem;
    }

    .termin-kontakte span {
        font-size: 0.85em;
        font-weight: 500;
        color: #444;
        padding-bottom: 0.7rem;
        padding-left: 0.2rem;
    }
}


/* 5. Footer --------------------------------------------------------- */
.site-footer {
    background: var(--farbe-dunkel);
    color: var(--farbe-text-hell);
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.site-footer .inner {
    max-width: var(--max-breite);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    font-size: 0.95rem;
}

.site-footer h4 {
    color: var(--farbe-primaer);
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.site-footer a {
    color: var(--farbe-text-hell);
}

.site-footer a:hover {
    color: var(--farbe-primaer);
}

.site-footer .copy {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    font-size: 0.85rem;
    color: #aaa;
}


/* 6. Hilfsklassen --------------------------------------------------- */
.zentriert { text-align: center; }
.bild-zentriert { margin: 1rem auto; display: block; }

/* Bild als Themen-Header (z. B. LPG-Bild oben auf der LPG-Seite).
   Auf Desktop max. 700 px breit, auf Mobile zusaetzlich hoehenbegrenzt. */
.themen-bild {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

@media (max-width: 700px) {
    .themen-bild {
        max-width: 100%;
        max-height: 220px;
        object-fit: cover;
    }
}


/* Cookie-Consent-Banner ------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--farbe-dunkel);
    color: var(--farbe-text-hell);
    border-top: 4px solid var(--farbe-primaer);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
    font-size: 0.95rem;
}

.cookie-banner-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cookie-banner-text {
    flex: 1 1 360px;
}

.cookie-banner-text h3 {
    margin: 0 0 0.3rem 0;
    color: var(--farbe-primaer);
    font-size: 1.05rem;
}

.cookie-banner-text p {
    margin: 0;
    line-height: 1.45;
}

.cookie-banner a {
    color: #ffd4d4;
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: var(--farbe-text-hell);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-btn {
    background: transparent;
    color: var(--farbe-text-hell);
    border: 1px solid #888;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
}

.cookie-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: #ccc;
}

.cookie-btn-primary {
    background: var(--farbe-primaer);
    border-color: var(--farbe-primaer);
}

.cookie-btn-primary:hover {
    background: #a30d24;
    border-color: #a30d24;
}

/* Kategorien-Bereich (klappt auf bei "Einstellungen") */
.cookie-categories {
    background: #2a2a2a;
    border-top: 1px solid #444;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cookie-cat {
    padding: 0.6rem 0;
    border-bottom: 1px solid #3a3a3a;
}

.cookie-cat:last-of-type {
    border-bottom: none;
}

.cookie-cat-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.cookie-cat-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.cookie-cat-label input[type="checkbox"][disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-cat-title {
    font-weight: 700;
    color: var(--farbe-text-hell);
}

.cookie-cat-locked {
    font-size: 0.8em;
    font-weight: 500;
    color: #aaa;
    margin-left: 0.4rem;
}

.cookie-cat-desc {
    margin: 0.3rem 0 0 1.7rem;
    font-size: 0.88rem;
    color: #ccc;
    line-height: 1.4;
}

.cookie-categories-actions {
    margin-top: 0.8rem;
    text-align: right;
}

@media (max-width: 700px) {
    .cookie-banner-main {
        padding: 0.8rem 1rem;
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-text {
        flex: 1 1 auto;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column-reverse;
    }

    .cookie-btn {
        width: 100%;
        padding: 0.7rem 1rem;
    }

    .cookie-categories {
        padding: 0.8rem 1rem;
    }

    .cookie-categories-actions {
        text-align: center;
    }
}


/* 7. Mobile-Anpassungen -------------------------------------------- */
/* Wenn das Fenster schmaler ist als 700px (z. B. Smartphone) */
@media (max-width: 700px) {

    /* Globale Anpassungen: kompakter, lesbarer */
    body {
        font-size: 16px;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; padding-bottom: 0.2em; }
    h3 { font-size: 1.1rem; }

    /* Hauptinhalt: enger an die Bildschirmraender */
    main {
        padding: 1rem 0.8rem;
    }

    /* Sektionen: weniger Innenabstand, knapper Aussen */
    main section {
        padding: 1rem 1rem;
        margin-bottom: 1rem;
        border-radius: 6px;
    }

    /* Header: Logo und Navigation untereinander */
    .site-header {
        padding: 0.8rem 0.8rem;
    }

    .site-header .inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .site-header h1 {
        font-size: 1.2rem;
    }

    /* Navigation: Buttons als untereinander, mit gutem Tap-Bereich */
    .site-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem 1rem;
        width: 100%;
    }

    .site-nav a {
        display: inline-block;
        padding: 0.3rem 0;
        font-size: 0.95rem;
    }

    /* Hero: alles untereinander, Marken-Claim mittig */
    .hero-claim {
        font-size: 1.1rem;
        letter-spacing: 0.18em;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }

    .hero p.lead {
        font-size: 1rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .hero-video {
        max-height: 50vh;
        object-fit: cover;
    }

    /* USP-Karten kompakter */
    .usp-karte {
        padding: 0.8rem;
    }

    .usp-icon {
        font-size: 1.8rem;
    }

    .usp-titel {
        font-size: 1rem;
    }

    .usp-text {
        font-size: 0.85rem;
    }

    /* Karten untereinander */
    .karten {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .karte {
        padding: 0.9rem;
    }

    /* Galerie untereinander */
    .galerie {
        grid-template-columns: 1fr;
    }

    .galerie img {
        height: auto;
        max-height: 280px;
    }

    /* Leistung-mit-Bild untereinander statt nebeneinander */
    .leistung-mit-bild {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin: 1.2rem 0;
    }

    .leistung-mit-bild img {
        height: 200px;
    }

    /* Tabellen: kompakter, scrollbar bei überbreit */
    .markenliste {
        font-size: 0.9rem;
    }

    .markenliste th,
    .markenliste td {
        padding: 0.5rem 0.6rem;
    }

    /* Preis-Widget kleiner */
    .preis-widget {
        padding: 1.5rem 1rem;
    }

    .preis-betrag {
        font-size: 2.5rem;
    }

    .preis-einheit {
        font-size: 1rem;
    }

    /* Kontakt-Info-Box kompakter */
    .kontakt-info {
        padding: 1rem;
    }

    .tel-gross {
        font-size: 1.15rem;
    }

    /* Footer kompakter, einspaltig */
    .site-footer {
        padding: 1.5rem 1rem;
    }

    .site-footer .inner {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

/* Ganz kleine Bildschirme (z. B. iPhone SE) ------------------------- */
@media (max-width: 380px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.15rem; }

    .hero-claim {
        font-size: 0.95rem;
        letter-spacing: 0.12em;
    }

    main {
        padding: 0.8rem 0.6rem;
    }

    main section {
        padding: 0.8rem 0.8rem;
    }

    .preis-betrag {
        font-size: 2rem;
    }

    .site-nav ul {
        gap: 0.3rem 0.8rem;
    }
}
