/*
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.0
*/

/* =========================================
   1. SCHRIFTARTEN (Lokal & DSGVO-konform)
   ========================================= */

/* 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;
}

/* =========================================
   2. NAVIGATION & HEADER
   ========================================= */

/* VARIANTE A: Outline-Button (AKTIV) - Weißer Rahmen, transparent */
.main-navigation .main-nav ul li.nav-cta a {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    border-radius: 5px;
    padding: 8px 24px; /* Habe es auf 24px angepasst, 36px war sehr breit */
    margin-left: 20px;
    line-height: normal;
    font-weight: 600;
    transition: all 0.3s ease;
}

.main-navigation .main-nav ul li.nav-cta a:hover {
    background-color: #ffffff;
    color: #f57c00;
}

/* 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;
}

/* =========================================
   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(0, 0, 0, 0.6);
    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)
   ========================================= */

.fluentform .ff-el-form-control {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.fluentform .ff-el-form-control:focus {
    border-color: #f57c00;
    outline: none;
}

.fluentform .ff-btn-submit {
    background-color: #f57c00 !important;
    color: #ffffff !important;
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
    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: #e64a19 !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; 
    }
}