/*
Theme Name:   Garantiert auf Platz 1 Theme
Theme URI:    https://garantiertaufplatz1.com
Description:  Custom High-Performance Theme für Garantiertaufplatz1.com
Author:       Digitalagentur René Löffler
Author URI:   https://www.rene-loeffler.com
Template:     generatepress
Version:      1.0.1
*/

/* =========================================
   1. SCHRIFTARTEN (Lokal & DSGVO-konform)
   ========================================= */

/* --- FIX: HORIZONTALES SCROLLEN VERHINDERN --- */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative; /* Hilft oft bei Mobile-Containern */
}

/* Regular (400) - Fließtext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}

/* Semi-Bold (600) - Buttons & Navigation */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-600.woff2') format('woff2');
}

/* Bold (700) - Überschriften */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

/* Extra-Bold (800) - Fette Headlines */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-800.woff2') format('woff2');
}

/* Schriftart global aktivieren */
body, h1, h2, h3, h4, h5, h6, input, textarea, button, select, .main-navigation {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

html {
    /*scroll-behavior: smooth;*/
    scroll-behavior: auto !important;
}

/* =========================================
   2. NAVIGATION & HEADER
   ========================================= */

.inside-header {
    padding: 16px 20px !important;
}

/* VARIANTE B: Outline-Button mit Scale-Effekt (Ohne Schatten) */
.main-navigation .main-nav ul li.nav-cta a {
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    border-radius: 3px;
    padding: 8px 36px;
    margin-left: 20px;
    line-height: normal;
    font-weight: 600;
    
    /* Wichtig: Transition auf 'transform' oder 'all' setzen */
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Optional: Will-change für Performance bei Animationen */
    will-change: transform;

    /* FIX GEGEN UNSCHÄRFE/WACKELN: */
    -webkit-font-smoothing: subpixel-antialiased;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.main-navigation .main-nav ul li.nav-cta a:hover {
    color: #FFFFFF;
    
    /* DER EFFEKT: */
    /* 0.95 bedeutet 95% der Originalgröße -> wirkt wie eingedrückt */
    transform: scale(0.95);
}

/* VARIANTE B: Solid-Button (BACKUP) - Orange gefüllt */
.main-navigation .main-nav ul li.nav-cta-backup a {
    background-color: #f57c00; 
    color: #ffffff;
    border-radius: 5px;
    padding: 10px 20px;
    margin-left: 20px;
    line-height: normal;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.main-navigation .main-nav ul li.nav-cta-backup a:hover {
    background-color: #e64a19; 
    color: #ffffff;
}


/* --- FIX: GROSSE HAKEN & ALIGNMENT --- */

/* 1. Den Container ansprechen (basierend auf deinem HTML) */
/*
.gb-element-513895b3 p {
    display: flex !important;
    align-items: flex-start !important;
}
*/

/* --- FIX FÜR DEN HERO BUTTON (Baulig Style) --- */
a.gb-text-638f1fd0 {
    /* 1. Geometrie & Position */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    
    width: 100% !important;
    max-width: 350px !important; /* Baulig-Maß */
    margin-left: auto !important; /* Zentriert den Button */
    margin-right: auto !important;
    
    /* 3. Optik (Verlauf & Schatten exakt wie Baulig) */
    background-image: linear-gradient(180deg, #ffac3b 0%, #f98e1d 100%) !important;
    box-shadow: 1px 1px 20px 0px rgba(0, 0, 0, 0.3) !important;
    
    
    /* Sicherheitsnetz gegen GeneratePress Defaults */
    line-height: 1.2 !important;
    text-decoration: none !important;
}





/* 2. Den Wrapper um das SVG ansprechen */
.gb-element-513895b3 .gb-shape {
    margin-right: 5px !important;  /* Abstand zwischen Haken und Text */
    margin-top: 5px !important;    /* Haken optisch auf Textlinie ziehen */
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

/* 3. Das SVG selbst massiv vergrößern */
.gb-element-513895b3 .gb-shape svg {
    width: 28px !important;   /* Oder 1.8em - Hier Größe einstellen */
    height: 28px !important;
    color: #4CAF50 !important;
    fill: #4CAF50 !important;
}

/* =========================================
   3. VORTEILS-BOXEN (Feature Cards)
   ========================================= */

/* --- CONTAINER LAYOUT FIX (Für Container statt Grid) --- */

/* 1. Der Eltern-Container wird zum Flex-Master */
.equal-height-grid {
    display: flex !important;       /* Aktiviert das Nebeneinander-Layout */
    flex-direction: row;            /* Von links nach rechts */
    flex-wrap: wrap;                /* Erlaubt Umbruch auf kleinen Screens */
    align-items: stretch;           /* WICHTIG: Zwingt alle Kinder auf gleiche Höhe */
    gap: 30px;                      /* Abstand zwischen den Boxen */
    justify-content: center;        /* Zentriert das Ganze */
}

/* 2. Die Feature-Cards (Kinder) */
.feature-card {
    flex: 1;                        /* Jede Box nimmt gleich viel Platz (33%) */
    min-width: 280px;               /* Mindestbreite, damit es auf Handys nicht quetscht */
    height: auto;                   /* Höhe passt sich dem Eltern-Container an */
    
    /* Deine Optik & Zentrierung */
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Inneres Layout (damit Icon/Text zentriert sind) */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 3. Text füllt den Raum (damit Buttons/Ränder unten bündig wären) */
.feature-card p {
    flex-grow: 1;
    display: flex;
    align-items: center; /* Zentriert den Text vertikal im verfügbaren Raum */
}

/* --- MOBILE OPTIMIERUNG --- */
/* Auf Handys (unter 768px) untereinander stapeln */
@media (max-width: 768px) {
    .equal-height-grid {
        flex-direction: column; /* Untereinander */
    }
    
    .feature-card {
        width: 100%;            /* Volle Breite */
        margin-bottom: 20px;    /* Abstand nach unten (statt Gap manchmal sicherer) */
    }
}

/* Icon in der Karte (Abstand & Farbe) */
.feature-card .gb-shape {
    margin-bottom: 15px;
    color: #191919;
}

/* Hover-Effekt der Karte */
.feature-card:hover {
    /*transform: translateY(-10px);*/
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* =========================================
   4. VIDEO ELEMENTE
   ========================================= */

.video-box {
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.4); 
    border-radius: 10px;
    overflow: hidden;
}


/* Unmute Button (SVG + Text) */
.unmute-button {
    position: absolute;
    top: 15px; 
    right: 15px;
    background: rgba(245, 124, 0, 0.9);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px; 
    padding: 8px 16px; 
    font-size: 14px;
    font-weight: 600;
    cursor: pointer; 
    z-index: 10;
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 0;
    transition: all 0.3s ease;
}

.unmute-button:hover {
    background: #f57c00;
    border-color: #f57c00;
}

.unmute-button svg {
    fill: currentColor;
    width: 20px;
    height: 20px;
}

/* =========================================
   5. KONTAKTFORMULAR (FluentForms)
   ========================================= */

/* --- LABELS (Die Überschriften über den Feldern) --- */
.fluentform .ff-el-input--label,
.fluentform .ff-el-input--label label {
    color: #000000 !important;     /* Zwingend Schwarz */
    font-size: 15px !important;    /* Zwingend 15px */
    font-weight: 600;              /* Empfehlung: Leicht fett für Lesbarkeit (optional) */
    line-height: 1.4;
}

/* --- EINGABEFELDER (Das Feld selbst) --- */
.fluentform .ff-el-form-control {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 15px;
    
    /* WICHTIG: Textfarbe und Größe */
    font-size: 15px !important;    
    color: #000000 !important;     
    
    transition: border-color 0.3s ease;
}

/* Optional: Damit auch der Platzhalter-Text dunkel ist (falls gewünscht) */
.fluentform .ff-el-form-control::placeholder {
    color: #000000 !important;
    opacity: 0.7;
}

/* Fokus-Zustand (wenn man reinklickt) */
.fluentform .ff-el-form-control:focus {
    border-color: #f57c00;
    outline: none;
    color: #000000 !important; /* Bleibt schwarz beim Tippen */
}

/* --- BUTTON (Unverändert übernommen, nur zur Sicherheit) --- */
.fluentform .ff-btn-submit {
    background-color: #FF9800 !important;
    color: #ffffff !important;
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700 !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, background-color 0.2s;
}

.fluentform .ff-btn-submit:hover {
    background-color: #FF9800 !important;
}


/* --- SUCCESS MESSAGE FIX (ID-BASIERT FÜR FORMULAR 3) --- */

/* Wir nutzen die ID #fluentform_3_success für maximale Priorität */
#fluentform_3_success.ff-message-success {
    background-color: #f98e1d !important; /* Dein Orange */
    border: none !important;
    border-radius: 5px !important;
    text-align: center !important;
    margin-top: 20px !important;         /* Etwas Abstand zum Formular-Rand */
    
    padding: 30px 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    display: block !important;           /* Zwingt die Box, sich korrekt zu verhalten */
}

/* Den Text darin stylen */
#fluentform_3_success.ff-message-success p {
    color: #ffffff !important;   /* Weiß */
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Abstand zwischen den Absätzen (falls Du <p>...<p> nutzt) */
#fluentform_3_success.ff-message-success p:not(:last-child) {
    margin-bottom: 10px !important;
}


/* =========================================
   6. FOOTER (Rechtliches & Animation)
   ========================================= */

/* Layout Wrapper */
.footer-legal-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Menü-Liste */
ul.legal-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 10px;
}

ul.legal-menu li {
    display: inline-block;
    margin: 0;
}

/* Trennpunkt */
ul.legal-menu li::before {
    content: "•";
    margin-right: 10px;
    opacity: 0.5;
}

/* Link Styling & Animation (Center Spread) */
ul.legal-menu li a {
    text-decoration: none;
    color: inherit;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

ul.legal-menu li a:hover {
    color: #00C853; /* Akzentfarbe Grün beim Hover */
}

/* Der animierte Strich */
ul.legal-menu li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #00C853;
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

ul.legal-menu li a:hover::after {
    width: 100%;
}



/* --- MOBILE OPTIMIERUNG (Handy < 768px) --- */
@media (max-width: 768px) {
    
    /* Zwingt H1 und H2 auf die gleiche, kompakte Größe */
    h1, h2, 
    h1.gb-headline, h2.gb-headline {
        font-size: 1.25rem !important;
        line-height: 1.3 !important; /* Etwas Luft zwischen den Zeilen */
        word-wrap: break-word;       /* Verhindert, dass lange Wörter das Layout sprengen */
    }
    
    /* Optional: Falls du H3 auch etwas kleiner willst (damit die Hierarchie stimmt) */
    h3, h3.gb-headline {
        font-size: 1.1rem !important;
    }
    
    /* 1. Container stapelt Elemente untereinander */
    .equal-height-grid {
        flex-direction: column !important; 
    }
    
    /* 2. Die Feature-Card bekommt Luft an den Seiten */
    .feature-card {
        /* Breite: Volle Breite minus 40px (für 20px Luft links & rechts) */
        width: calc(100% - 40px) !important; 
        
        /* Zentriert die Box horizontal (oben 0, automatisch seitlich, unten 20px) */
        margin: 0 auto 20px auto !important; 
        
        /* Optional: Eine maximale Breite, damit sie auf großen Handys nicht riesig wird */
        max-width: 400px; 
    }
}