/*
 Theme Name:   GeneratePress Child
 Description:  Child Theme für automatiko
 Author:       Felix Rizo-Patron
 Template:     generatepress
 Version:      1.0.0
*/


/* --- HERO PLATINE & OVERLAY --- */

.atmo-hero-pattern {
    position: relative; /* Erlaubt es, Ebenen (::before) innerhalb des Containers zu stapeln */
    z-index: 1;         /* Stellt sicher, dass dieser Container eine eigene Ebene bildet */
    overflow: hidden;   /* Verhindert, dass das kachelnde Muster über die Ränder hinausragt */
    background-color: var(--base-3); /* Behält dein Eggshell als Hintergrundfarbe bei */
}

/* Die Kachelebene */
.atmo-hero-pattern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://automatiko.at/wp-content/uploads/2026/02/automatiko-platine-1300.png'); /* URL aus der Mediathek */
    background-repeat: repeat;
    background-size: 650px;
    opacity: 0.80; /* Subtiles Muster */
    z-index: -1;
}


/* --- HERO PLATINE & OVERLAY --- END */


/* --- MODERN INTERACTION SYSTEM START --- */

/* 1. Fließtext-Links: Eleganter Abstand & Reaktion */
.entry-content p a, 
.entry-content li a {
    text-decoration: underline;
    text-underline-offset: 3px; /* Edler Freiraum für Unterlängen */
    text-decoration-thickness: 1px;
    transition: all 0.2s ease-in-out;
}

.entry-content p a:hover, 
.entry-content li a:hover {
    color: var(--contrast); /* Dein dunkles Umbra beim Hover */
    text-decoration-thickness: 2px;
}

/* 2. Header-Navigation: Sanftes Feedback */
.main-navigation .main-nav ul li a {
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.main-navigation .main-nav ul li a:hover {
    opacity: 0.6; /* Subtiles Verblassen für moderne UX */
}

/* --- MODERN INTERACTION SYSTEM END --- */



/* FOOTER PAKET AUSWAHL - OPTIMIERT */

.atmo-footer-selection {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Minimal kompakter */
    margin-bottom: 24px;
}

.atmo-radio-item {
    cursor: pointer;
    display: flex; /* Flex statt Block für bessere vertikale Ausrichtung */
    align-items: center;
    padding: 6px 12px; /* Etwas mehr vertikaler Klickraum */
    border-radius: 6px;
    transition: background 0.2s ease;
    color: var(--base-2); /* Schriftfarbe direkt hier festlegen */
    font-size: 15px;
}

.atmo-radio-item:hover {
    background: rgba(255, 255, 255, 0.08); /* Minimal deutlicherer Hover */
}

.atmo-radio-item input[type="radio"] {
    margin-right: 12px;
    accent-color: var(--accent); /* Nutzt jetzt dein dunkles Umbra */
    cursor: pointer;
}

/* Die separate .radio-label Klasse kann entfallen, wenn du den Text 
   direkt in das Label schreibst, das spart HTML-Ballast */

.atmo-footer-trigger {
    cursor: pointer !important;
}

/* FOOTER PAKET AUSWAHL - END */



/* STREIFE UNTEN FIX - MINIMALISTISCH */

/* Verhindert weißes Blitzen in technischen Lücken, ohne Positionen zu verändern */
html {
    background-color: var(--base-3) !important; 
}

/* Der funktionierende Footer-Fix */
.site-footer {
    margin-bottom: -20px !important;
    position: relative;
    z-index: 99;
}

/* STREIFE UNTEN FIX - END */

/* --- MOBILE FIX FÜR ÜBERLAUFENDE GRIDS - START-- */

@media (max-width: 768px) {
    /* Erzwingt, dass die Grid-Kinder innerhalb der Sektion bleiben */
    .atmo-grid-50-50 {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .atmo-grid-child {
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }
}

/* --- MOBILE FIX FÜR ÜBERLAUFENDE GRIDS - ENDE-- */

/* --- RECHNER HAUPTSEITE - START --- */

/* Erzwingt die Schriftart für das gesamte Element */
.calculation-box {
    font-family: 'Inter';
}

.calculation-box {
    display: flex !important;
    flex-wrap: nowrap;
    background-color: var(--base-3) !important;
    border-radius: 8px !important;
    margin-bottom: 50px !important;
    overflow: hidden;
    border: none !important;
    align-items: stretch !important; /* Erzwingt gleiche Höhe beider Spalten */
    box-sizing: border-box !important;
    border: 1px solid var(--contrast-3) !important;
}

/* Linke Spalte (Eingabe) */
.calculation-box > .ff-t-cell:first-child {
    flex: 0 0 35% !important;
    /* Aligned auf die Text-Oberkante der rechten Kachel: 
       25px (Zellen-Padding) + 12px (Border) + 40px (Kachel-Innenabstand) = 77px */
    padding: 77px 40px 50px 40px !important; 
    color: var(--contrast-2) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
}

/* Rechte Spalte (Ergebnis) */
.calculation-box > .ff-t-cell:last-child {
    flex: 0 0 65% !important;
    background-color: var(--base-3) !important;
    /* Symmetrisches Padding für oben, rechts und unten */
    padding: 25px 35px 10px 0px !important; 
    display: flex;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

/* DIE WEISSE KACHEL */
.result-card-white {
    background-color: #ffffff !important;
    border: 1px solid var(--contrast-3) !important; /* Dein massiver Rahmen */
    border-radius: 20px !important;
    padding: 40px 40px 40px 30px !important;
    width: 100%;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box !important; /* Verhindert, dass die Border die Box vergrößert */
}

/* TYPOGRAFIE */
.kachel-label { color: var(--contrast); font-family: var(--gp-font--space-mono); font-size:14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 8px 0; }
.kachel-value { color: var(--contrast); font-size: 42px; margin: 0 0 20px 0; font-weight: 800; line-height: 1.1; }
.kachel-text  { color: var(--contrast-2); font-size: 17px; line-height: 1.5; margin-bottom: 25px; }
.kachel-divider { border: 0; border-top: 1px solid #c7c0bb; margin: 0 0 15px 0; }
.kachel-source { color: var(--contrast-2); font-size: 11px; line-height: 1.4; }

/* --- RESPONSIVE ANPASSUNGEN --- */

@media (max-width: 1024px) {
    .calculation-box > .ff-t-cell:first-child { flex: 0 0 40% !important; padding-top: 67px !important; }
    .calculation-box > .ff-t-cell:last-child { flex: 0 0 60% !important; }
}

@media (max-width: 768px) {
    .calculation-box { flex-direction: column !important; }
    .calculation-box > .ff-t-cell:first-child { width: 100% !important; padding: 40px 25px !important; }
    .calculation-box > .ff-t-cell:last-child { width: 100% !important; padding: 0px 15px 15px 15px !important; }
    .result-card-white { border-width: 1px !important; padding: 25px !important; }
    .kachel-value { font-size: 32px !important; }
}

.kv-hinweis {
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: var(--contrast) !important; 
    margin-top: 11px !important;
    opacity: 0.8;
}


/* Spezifisch für die H3 innerhalb oder über dem Rechner */
.rechner-subheading {
    color: var(--contrast) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-bottom: 0px !important;
    margin-top: 20px !important;
    line-height: 1.3 !important;
    display: block !important;
    width: 100% !important;
}

/* Optimierung für Mobile */
@media (max-width: 768px) {
    .rechner-subheading {
        font-size: 20px !important;
        margin-top: 30px !important;
    }
}

/* --- RECHNER HAUPTSEITE - ENDE --- */


/* FLUENT FORMS: Verhindert das Überlagern der Fehlermeldung */

.atmo-gdpr-field .error.text-danger {
    margin-top: 20px !important;
    margin-left: 23px !important; /* Richtet den Text "Pflichtfeld" unter dem Text aus, nicht unter der Checkbox */
}
