/* --- LOKALE SCHRIFTEN START --- */


/* 1. DIE SCHRIFT-DATEIEN (Wegweiser) */
/* FONT AWESOME - Solid (Icons wie Telefon, Werkzeug) */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url('../fonts/fa-solid-900.woff2') format('woff2');
}

/* FONT AWESOME - Brands (Icons wie WhatsApp) */
@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/fa-brands-400.woff2') format('woff2');
}

/* 2. DIE ZUWEISUNG (Welche Klasse nutzt welche Schrift), WICHTIG: Diese Zuweisung braucht das !important */
.fas, .fa-solid {
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900 !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.fab, .fa-brands {
  font-family: 'Font Awesome 6 Brands' !important;
  font-weight: 400 !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* 3. DIE ÜBERSETZUNG (Das Wörterbuch für die Icons) */

/* Navigation & Allgemein */
.fa-bars:before { content: "\f0c9"; }
.fa-whatsapp:before { content: "\f232"; }
.fa-phone:before { content: "\f095"; }
.fa-envelope:before { content: "\f0e0"; }
.fa-globe:before { content: "\f0ac"; }
.fa-map-marker-alt:before { content: "\f3c5"; }
.fa-clock:before { content: "\f017"; }
.fa-star:before { content: "\f005"; }
.fa-instagram:before { content: "\f16d"; }

/* Leistungen */
.fa-cogs:before { content: "\f085"; }
.fa-clipboard-check:before { content: "\f46d"; }
.fa-caravan:before { content: "\f8ff"; }
.fa-shuttle-van:before { content: "\f5b6"; }
.fa-rv:before { content: "\f7d9"; }
.fa-tools:before { content: "\f7d9"; } /* oder \f7d3 */
.fa-microchip:before { content: "\f2db"; }
.fa-compact-disc:before { content: "\f51f"; }
.fa-oil-can:before { content: "\f613"; }


/* INTER - Light (300) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-300.woff2') format('woff2');
}

/* INTER - Regular (400) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}

/* INTER - Semibold (600) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

/* INTER - Extra Bold (800) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-800.woff2') format('woff2');
}

/* PLAYFAIR DISPLAY - Bold (700) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-v40-latin-700.woff2') format('woff2');
}

/* PLAYFAIR DISPLAY - Bold Italic (700italic) */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-v40-latin-700italic.woff2') format('woff2');
}



/* --- LOKALE SCHRIFTEN ENDE --- */

:root {
    --primary-red: #e63946; 
    --whatsapp-green: #25D366;
    --bg-white: #ffffff;
    --text-dark: #1d3557;
    --text-light: #4a4a4a;
    --accent-gray: #f8f9fa;

    --hero-image: url('../img/start.png'); 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--text-dark); background-color: var(--bg-white); scroll-behavior: smooth; }

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.logo { 
    font-weight: 800; 
    font-size: 1.5rem; 
    color: var(--primary-red);  /* Nur der Hauptname bleibt rot */
    text-decoration: none; 
    letter-spacing: -1px;

    /* Sorgt dafür, dass Name und Inhaber nebeneinander stehen */
    display: flex;
    align-items: baseline; 
    gap: 12px;                  /* Abstand zwischen Logo und Inhabername */ 
}

.inhaber {
    font-size: 0.85rem;       /* Deutlich kleiner */
    font-weight: 400;         /* Dünnere Schrift, wirkt ruhiger */
    color: var(--text-light); /* Ein dezentes Grau statt Rot */
    letter-spacing: 0;        /* Normale Buchstabenabstände */
    text-transform: none;     /* Falls das Logo in Großbuchstaben ist, bleibt dies normal */
    white-space: nowrap;      /* Verhindert Zeilenumbruch im Namen */
}

/* Desktop Menü */
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 2rem; }
nav ul li a { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: 0.3s; }
nav ul li a:hover { color: var(--primary-red); }

/* Hamburger Icon (Standardmäßig versteckt) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.pre-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--primary-red);
    font-size: 0.8rem;
    margin-bottom: 1rem; /* Ein bisschen Abstand nach unten */
    display: block;
}

/* Hero Section */
.hero {
    padding: 80px 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(90deg, #ffffff 0%, #fcfcfc 100%);
}

/* Der Text unter der Überschrift */
.hero-sub {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 450px;        /* Begrenzt die Breite, damit es "lüftig" bleibt */
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-text h1 {
    font-size: 2.5rem;       
    line-height: 1.2;        /* Etwas mehr Zeilenabstand macht es luftiger */
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    max-width: 550px;      /* Verhindert, dass die Zeilen zu lang werden */
}

.hero-text h1 span {
    color: var(--primary-red); /* Ein Wort in Rot für den Akzent */
}

.hero-image {
    width: 100%; height: 400px; background: #eee; border-radius: 30px;
    background-image: var(--hero-image);
    background-size: cover; background-position: center;
}

.btn {
    padding: 0.9rem 2rem; background-color: var(--primary-red); color: white;
    text-decoration: none; border-radius: 50px; font-weight: 600;
    transition: 0.3s; display: inline-block;
}

/* Sektionen */
section { padding: 80px 10%; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.underline { width: 40px; height: 3px; background: var(--primary-red); margin: 0.5rem auto; }

/* Services */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 1.5rem; 
}

.service-card {
    display: block;          /* Wichtig, damit die ganze Kachel klickbar ist */
    padding: 2.5rem 2rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;   /* Entfernt die Unterstreichung */
    color: inherit;          /* Behält die dunkle Textfarbe bei */
    cursor: pointer;
}

/* Hover-Effekt: Kachel hebt sich leicht ab */
.service-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Icons in den Kacheln */
.service-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    display: block;
}

/* Überschriften in den Kacheln */
.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);    /* Stellt sicher, dass die Überschrift dunkel bleibt */
    font-size: 1.2rem;          /* Etwas kleiner als vorher (war meist 1.5rem) */
    hyphens: auto;              /* Automatische Silbentrennung */
    overflow-wrap: break-word;  /* Verhindert das Herausragen aus dem Rahmen */
    word-break: break-word;
    line-height: 1.2;           /* Engerer Zeilenabstand für mehrzeilige Titel */
}

/* Text in den Kacheln */
.service-card p {
    font-size: 0.95rem;
    color: var(--text-light); /* Stellt sicher, dass der Text grau bleibt */
    line-height: 1.5;
}

/* Über uns */
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; border: 1px solid #eee; padding: 40px; }
.newspaper-image img { width: 100%; border: 1px solid #ccc; padding: 10px; transform: rotate(-1deg); }
.newspaper-content h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 0.5rem; }
.newspaper-subtitle { font-style: italic; color: #666; margin-bottom: 1rem; display: block; font-weight: 600; }
.newspaper-content .meta { font-size: 0.8rem; text-transform: uppercase; color: var(--primary-red); font-weight: bold; margin-bottom: 1rem; display: block; }

.article-source {
    margin-top: 2rem;               /* Abstand zum Bild */
    padding-top: 1rem;
    border-top: 1px solid #eee;     /* Feine Trennlinie */
    font-size: 0.75rem;             /* Schön klein */
    color: #999;                    /* Dezentes Grau */
    font-family: var(--font-main);  /* Einfache Schrift, keine Serif */
    font-style: italic;             /* Kursiv wirkt wie eine Quelle */
    line-height: 1.4;
}

/* Kontakt */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-item { 
    display: flex; 
    align-items: center; 
    margin-bottom: 1.2rem; 
    text-decoration: none;                              /* Entfernt Unterstreichung */
    color: var(--text-dark);
    cursor: default;                                    /* Standard-Cursor für Text */
}

/* NUR für die Links (<a>): Zeiger-Hand und Effekte */
a.contact-item {
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease; /* Sanfter Übergang für alles */
}

/* Der Effekt für die ganze Zeile beim Drüberfahren */
a.contact-item:hover {
    color: var(--primary-red);      /* Text wird rot */
    transform: translateX(4px);    /* Kleiner Bewegungseffekt nach rechts.  Falls keine Bewegung nötig - einfach löschen  */
}

.contact-item i { 
    width: 30px; 
    color: var(--primary-red); 
    font-size: 1.2rem; 
    margin-right: 12px; 
}

.contact-item .fa-whatsapp { color: var(--whatsapp-green); }

/* Spezielle Ausnahme: Das WhatsApp-Icon bleibt auch beim Hover grün */
.contact-item:hover .fa-whatsapp {
    color: var(--whatsapp-green) !important;
}


/* Das Formular-Gitter kompakter machen */
form {
    display: grid;
    gap: 0; /* Wir steuern den Abstand nur über margin-bottom der Felder */
}

/* Button etwas anpassen, damit er zur Kompaktheit passt */
form .btn {
    margin-top: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Eingabefelder: Rein-Weiß auf grauem Grund */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    box-sizing: border-box;     /* Verhindert, dass Felder aus dem Fenster ragen */
    font-family: inherit;       /* Gleiche Schrift wie der Rest der Seite */
    font-size: 0.85rem;         /* Dezentere Schriftgröße */
    padding: 0.7rem 1rem;       /* Kompakterer Innenabstand */
    
    /* Hintergrund & Rand */
    background-color: #ffffff;  /* REIN-WEIẞ für maximalen Kontrast zum grauen Bereich */
    border: 1px solid #ddd;     /* Ganz feiner Rand, damit Weiß auf Grau edel wirkt */
    border-radius: 6px;         /* Sanfte Rundung */
    color: var(--text-dark);    /* Textfarbe */
    
    margin-bottom: 0.5rem;          /* Abstand zwischen den Feldern */
    transition: border-color 0.3s;  /* Weicher Übergang beim Reinklicken */
}

/* Spezielle Korrektur für für das große Textfeld mit dem Template */
textarea {
    min-height: 140px;  /* Ausreichend Platz für die Vorlage */
    line-height: 1.5;   /* Zeilenabstand im Textfeld */
    resize: vertical;   /* Nur nach unten ziehbar */
}

/* Fokus-Effekt: Wenn man in ein Feld reinklickt */
input:focus,
textarea:focus {
    border-color: var(--primary-red);       /* Nur der Rand wird rot */
    outline: none;
}

footer { padding: 2rem 10%; text-align: center; background: var(--accent-gray); border-top: 1px solid #eee; }

/* --- Styling für die Formular-Rückmeldungen --- */

/* Der Container, der die Nachricht hält */
#form-status {
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Gemeinsame Stile für Erfolg und Fehler */
.status-msg {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
}


/* Die Icons in der Nachricht etwas größer machen */
.status-msg i {
    font-size: 1.2rem;
}

/* Styling für ERFOLG (Grün) - wie gewünscht beibehalten */
.status-msg.success {
    background-color: #f0fff4; /* Sehr helles Grün */
    color: #2f855a;           /* Dunkelgrüner Text */
    border: 1px solid #9ae6b4; /* Dezenter grüner Rand */
}

/* Styling für HINWEIS (Hellgelb/Gold) - Gleicher Stil wie Grün */
.status-msg.error {
    background-color: #fffbeb; /* Sehr helles, freundliches Gelb */
    color: #92400e;           /* Dunkler Bernstein-Ton für gute Lesbarkeit */
    border: 1px solid #fde68a; /* Dezenter gold-gelber Rand */
}

/* Icon-Farbe im gelben Block anpassen */
.status-msg.error i {
    color: #d97706;           /* Warmes Gold für das Icon */
}


/* Mobile Anpassungen */
@media (max-width: 900px) {
    nav { padding: 1rem 5%; }
    .menu-toggle { display: block; } /* Hamburger anzeigen */

    nav ul {
        display: none; /* Erstmal verstecken */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    nav ul.active { display: flex; } /* Anzeigen wenn aktiv */
    nav ul li { margin: 1rem 5%; }

    .hero, .about-container, .contact-container { grid-template-columns: 1fr; }
    .hero-text { text-align: center; }
    .hero-image { order: -1; height: 250px; }
}

/* Zusätzliche Verfeinerung für sehr schmale Handys (600px) --- */
@media (max-width: 600px) {
    .logo {
        flex-direction: column; /* Name und Inhaber untereinander */
        align-items: flex-start; 
        gap: 2px;
        line-height: 1.1;
    }
    .inhaber {
        font-size: 0.7rem; /* Noch kleiner auf Mini-Screens */
    }
    .hero-text h1 {
        font-size: 2.2rem;   /* Noch kleiner auf dem Handy */
    }
}

/* Auf Geräten mit Maus (PC/Laptop) den Klick auf Telefon-Links unterbinden */
@media (pointer: fine) {
    a[href^="tel:"] {
        pointer-events: none; /* Macht den Link unklickbar */
        cursor: text;         /* Mauszeiger zeigt keinen Finger, sondern den normalen Pfeil */
        text-decoration: none; /* Keine Unterstreichung */
        color: inherit !important; /* Verhindert, dass der Link rot wird (sieht aus wie Text) */
    }
}

/* Auf Touch-Geräten (Handy/Tablet) bleibt der Link aktiv */
@media (pointer: coarse) {
    a[href^="tel:"] {
        pointer-events: auto;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: var(--whatsapp-green); color: white; border-radius: 50px;
    display: flex; align-items: center; justify-content: center; font-size: 30px;
    z-index: 2000; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); text-decoration: none;
}

/* --- Styling für die Datenschutzerklärung --- */

/* Der Hauptcontainer für den Text */
.privacy-text {
    line-height: 1.6;
    color: #444;
}

.privacy-text h2 {
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--primary-red);
    font-size: 1.5rem;
    border-bottom: 1px solid #eee; /* Eine feine Linie zur Strukturierung */
    padding-bottom: 0.3rem;
}

.privacy-text h3 {
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Texte und Listen enger zusammen */
.privacy-text p, 
.privacy-text ul {
    margin-bottom: 0.8rem;
}

/* Listen-Elemente: Keine roten Punkte mehr, dafür schlichtes Grau */
.m-elements {
    list-style-type: disc; /* Klassische Punkte */
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.m-elements li {
    margin-bottom: 0.4rem; /* Deutlich engerer Abstand zwischen den Zeilen */
    color: #555;
    padding-left: 0.2rem;
}

/* Inhaltsübersicht: Sachlicher und kompakter */
.index-list {
    list-style: none;
    padding: 1rem;
    margin-bottom: 2rem;
    background-color: var(--accent-gray); /* Ganz dezenter grauer Kasten statt rotem Strich */
    border-radius: 8px;
}

.index-list li {
    margin-bottom: 0.3rem;
}

.index-link {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.index-link:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Spezielle Korrektur für fette Texte im Widerspruchsrecht */
.m-elements li strong {
    color: var(--text-dark);
    display: inline-block;
    margin-bottom: 0.2rem;
}

/* Begriffsdefinitionen (Glossar) etwas enger */
.glossary li {
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 0.5rem;
}

/* --- Styling für die Rechtstexte (Impressum & Datenschutz) --- */
.legal-page {
    padding: 100px 10% 80px 10%;
    background-color: #ffffff;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #444;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.legal-content p {
    margin-bottom: 1.2rem;
}

.legal-content a {
    color: var(--primary-red);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}


/* Test-Klassen für die neuen Fonts */
.test-light { font-weight: 300; }
.test-semibold { font-weight: 600; }
.test-playfair-italic { font-family: 'Playfair Display'; font-style: italic; font-weight: 700; }


/* Spezieller Abstand für Inhaltsseiten, damit sie nicht unter dem Header verschwinden */
.seiten-abstand {
    padding-top: 80px; /* Genug Platz für den schwebenden Header */
    padding-bottom: 50px;
    padding-left: 5%; 
    padding-right: 5%;
    min-height: 70vh;   /* Sorgt dafür, dass die Seite nicht zu kurz wirkt */
    max-width: 800px;   /* Damit der Text nicht über die ganze Breite läuft */
    margin: 0 auto;     /* Zentriert den Text */
}

/* Optional: Eine dezente Trennlinie für den Header auf Unterseiten */
body:not(.home) nav {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
