/* ==========================================================================
   KÜCHENFUCHS - DESIGN SYSTEM (JOOMLA 5)
   ========================================================================== */

/* 1. LOKALE FONTS */
@font-face {
    font-family: 'Signika Negative';
    src: url('../ttf/signika-negative-v26-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 2. DESIGN-VARIABLEN */
:root {
    --kf-primary: #ff6600;
    --kf-brand-dark: #444444;
    --kf-dark: #1a1a1a;
    --kf-light: #ffffff;
    --kf-gray-light: #f4f4f4;
    --kf-gray-medium: #dddddd;
    --kf-text: #222222;
    --kf-font-brand: 'Signika Negative', sans-serif;
    --kf-font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --header-height: 120px;
    --transition: all 0.3s ease;
}

/* 3. GRUND-SETUP */
* { box-sizing: border-box; }
body {
    font-family: var(--kf-font-body);
    color: var(--kf-text);
    line-height: 1.6;
    margin: 0;
    background-color: var(--kf-gray-light);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4. HEADER & BRANDING */
.header-wrapper {
    background: var(--kf-light);
    border-bottom: 6px solid var(--kf-primary);
    box-shadow: 0 4px 12px rgba(255,102,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    position: relative;
}

.brand-lettering {
    font-family: var(--kf-font-brand);
    font-size: 4.2rem;
    font-weight: 700;
    font-style: italic;
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: -1.5px;
    line-height: 1;
}

.brand-kitchen { color: var(--kf-brand-dark); }
.brand-fox { color: var(--kf-primary); }

/* 5. LOGO (DESKTOP) */
.logo-icon {
 position: relative;
    right: -70px;
    top: 20px;
    width: 280px;
    height: 280px;
    background: #fff;
    border-radius: 99%;

    box-shadow: 0 10px 14px rgba(255,102,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    overflow: hidden;

}


	.logo-icon img {
    width: 65%;
    height: auto;
    transform: translateY(20px);
}

/* 6. HERO SEKTION (BILD ALS ECHTER HINTERGRUND) */
.hero-section {
    /* Pfad basierend auf deinem Modul-Code */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('/images/headers/banner.png') no-repeat center center;
    background-size: cover;      /* Bild füllt den Bereich aus */
    background-position: center; /* WICHTIG: Schneidet mobil links/rechts gleichmäßig ab */
    color: var(--kf-light);
    padding: 100px 0;
    border-bottom: 6px solid var(--kf-primary);
    min-height: 400px;           /* Verhindert, dass das Bild zu schmal wird */
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-family: var(--kf-font-brand);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8); /* Macht Schrift auf dem Bild lesbar */
    top: -20px;
}

.hero-section p {
    font-size: 1.4rem;
    max-width: 650px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* 7. APP-BUTTONS */
.app-grid-quick {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-btn {
    display: inline-block;
    background: var(--kf-primary); /* Orange gefüllt, damit man sie auf dem Foto sieht */
    border: 2px solid var(--kf-primary);
    color: var(--kf-light) !important;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

/* MOBIL-ANPASSUNG */
@media screen and (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: 400px;
        text-align: center; /* Alles mittig auf dem Handy */
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .app-grid-quick {
        justify-content: center;
    }
}

/* 7. BUTTONS */

.app-grid-quick {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-btn {
    display: inline-block;
    background: var(--kf-primary); /* Orange gefüllt für bessere Sichtbarkeit auf Bild */
    border: 2px solid var(--kf-primary);
    color: var(--kf-light) !important;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.quick-btn:hover {
    background: transparent;
    color: var(--kf-light) !important;
    transform: translateY(-3px);
}


/* ==========================================================================
   8. FAQ BEREICH - TOTAL CLEANUP (KOMPAKT & DECKUNGSGLEICH)
   ========================================================================== */
.faq-main-title {
	font-family: var(--kf-font-brand);
    font-size: 2.2rem;
	color: var(--kf-brand-dark);
    font-weight: 700;
    font-style: italic;
    text-decoration: none;
    display: flex;
    align-items: center;
    line-height: 1;
}

/* Haupt-Container: Abstände zwischen den Fragen reduzieren */
.kitchenfox-chat-container {
    max-width: 800px;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduzierter Abstand zwischen den Fragen */
}

/* Statischer Header (Beitrag 0) */
.faq-header-static {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--kf-gray-medium);
}
.faq-header-static h1 {
	color: #795548;
	font-weight: bold;
	margin: 0;
}

/* Die Chat-Reihen */
.faq-chat-pair { display: flex; flex-direction: column; }
.chat-trigger { display: flex; justify-content: flex-end; cursor: pointer; }

.user-bubble {
    background-color: #795548;
    color: white;
    border-radius: 16px 16px 0 16px;
    padding: 10px 18px;
    max-width: 80%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* --- DIE ANTWORT-ENGINE (Nur noch ein Container animiert) --- */

.gusto-response-area {
    display: grid;
    grid-template-rows: 0fr; /* Startzustand: Absolut zu */
    opacity: 0;
    overflow: hidden;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin 0.3s ease;
}

/* Öffnen bei Tippen ODER Antwort */
.faq-chat-pair.is-typing .gusto-response-area,
.faq-chat-pair.is-active .gusto-response-area {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 10px; /* Einziger Abstand nach unten */
}

/* Deckungsgleichheit: Wrapper für den Inhalt */
.typing-wrapper, .answer-wrapper {
    min-height: 0; /* Wichtig für Grid-Animation */
    display: none;
}

/* Logik-Wechsel */
.faq-chat-pair.is-typing .typing-wrapper { display: block; }
.faq-chat-pair.is-active .typing-wrapper { display: none; }
.faq-chat-pair.is-active .answer-wrapper { display: block; }

/* Gusto Zeile: Absolut identisch für beide Zustände */
.gusto-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 2px 0 10px 0;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--kf-primary);
    background: white;
    flex-shrink: 0;
}

/* Bubbles */
.gusto-bubble, .typing-bubble {
    background: white;
    border: 1px solid #eee;
    border-radius: 0 16px 16px 16px;
    padding: 12px 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gusto-name {
    color: var(--kf-primary);
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.typing-bubble { background: #f0f0f0; width: fit-content; display: flex; gap: 4px; align-items: center; }
.typing-bubble span { width: 6px; height: 6px; background: #aaa; border-radius: 50%; animation: bounce 1.4s infinite ease-in-out; }
.typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }


/* ==========================================================================
   9. MOBILE ANPASSUNGEN
   ========================================================================== */

@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column !important;
        height: auto !important;
        padding: 110px 20px 30px 20px !important;
    }

    .logo-icon {
        position: absolute !important;
        top: -30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 150px !important;
        height: 150px !important;
    }

    .brand-lettering {
        font-size: 2.5rem !important;
        justify-content: center;
    }

    .hero-section {
        padding: 80px 0;
        text-align: center;
        background-position: center center !important; /* Fixiert Bildmitte */
    }

    .hero-section h1 { font-size: 2.8rem; }
    .app-grid-quick { justify-content: center; }
}

	/* Fix für Beitragsinhalte in der FAQ */


/* HORIZONTALES MENÜ (NAVBAR) */
.main-nav ul.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px; /* Abstand zwischen den Menüpunkten */
}

.main-nav ul.menu li a {
    text-decoration: none;
    color: var(--kf-brand-dark);
    font-family: var(--kf-font-brand);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.main-nav ul.menu li a:hover,
.main-nav ul.menu li.active a {
    color: var(--kf-primary);
}

/* Platzierung im Header-Content */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



	.fuchs-info h2{
	font-family: var(--kf-font-brand);
    font-size: 2.2rem;
	color: var(--kf-brand-dark);
    font-weight: 700;
    font-style: italic;
    text-decoration: none;
    display: flex;
    align-items: center;
    line-height: 1;
}
	
/* 10. menü */
.page-header-section {
    /* Pfad basierend auf deinem Modul-Code */


        background-color: var(--kf-brand-dark);
    padding: 30px 0;
    border-bottom: 6px solid var(--kf-primary);
    min-height: 100px;           /* Verhindert, dass das Bild zu schmal wird */
    display: flex;
    align-items: center;
}

.page-header-section h1 {
    font-family: var(--kf-font-brand);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8); /* Macht Schrift auf dem Bild lesbar */
    top: -20px;
}

.page-header-section p {
    font-size: 1.4rem;
    max-width: 650px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}
	
	/*sonstige*/
	.kitchenfox-chat-container {
	    background: url('https://www.kitchenfox.app/images/team/gusto_fuchs_bg.png') no-repeat center center;
    /*background-size: cover;      /* Bild füllt den Bereich aus */
    background-position: center; /* WICHTIG: Schneidet mobil links/rechts gleichmäßig ab */
    
    padding: 100px 0;
    border-bottom: 6px solid var(--kf-primary);
    min-height: 1600px;           /* Verhindert, dass das Bild zu schmal wird */
    display: flex;
    align-items: right;
}

	}

/* ==========================================================================
   NAVBAR - HORIZONTAL & BOTTOM ALIGNMENT
   ========================================================================== */

/* 1. Den gesamten Nav-Block im Header nach unten schieben */
.main-nav {
    align-self: flex-end !important; /* Richtet die Nav am unteren Rand des Headers aus */
    padding-bottom: 60px !important; /* Abstand zur unteren orangen Grenzlinie */
}

/* 2. Die Liste wieder nebeneinander (Horizontal) */
.main-nav ul, 
.main-nav ul.menu, 
.main-nav ul.nav,
.main-nav .mod-menu {
    display: flex !important;
    flex-direction: row !important; /* Erzwingt die Zeile */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 20px !important; /* Dein gewünschter Abstand zwischen den Links */
    align-items: flex-end !important;
}

/* 3. Sicherstellen, dass die List-Items keine Umbrüche erzwingen */
.main-nav ul li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. Link-Styling (Farblogik bleibt erhalten) */
.main-nav ul li a {
    text-decoration: none !important;
    font-family: var(--kf-font-brand);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    white-space: nowrap !important;
    display: block !important;
}

/* 5. Aktive Farblogik (wie besprochen) */
.main-nav ul li a {
    color: var(--kf-brand-dark) !important;
}

.main-nav ul li.current a, 
.main-nav ul li.active a {
    color: var(--kf-primary) !important;
}
.header-extra-nav {display: none}

/* Home-Fix: Falls Home fälschlich aktiv bleibt, wenn Manifest aktiv ist */
.main-nav ul:has(li.current:not(:first-child)) li:first-child a {
    color: var(--kf-brand-dark) !important;
}



/* ==========================================================================
   NAV-CONTAINER LOGIK (ZWEI MENÜS)
   ========================================================================== */

/* Mobil-Zustand (Hamburger offen) */
@media screen and (max-width: 991px) {
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--kf-light);
        padding: 80px 20px;
        display: flex;
        flex-direction: column !important;  /* Menüs untereinander */
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }
	
	.page-header{display: none}

    .nav-container.is-active { right: 0; }

    /* Beide Listen im Hamburger untereinander */
    .nav-container ul {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    /* Das Page-Menü im Hamburger optisch abtrennen */
    .extra-nav {
        border-top: 2px solid var(--kf-primary);
        padding-top: 20px;
    }
}

/* Desktop-Zustand (Nebeneinander am Boden) */
@media screen and (min-width: 992px) {
    .nav-container {
        display: flex;
        flex-direction: row !important; /* Auf Desktop wieder nebeneinander */
        align-items: flex-end;
        gap: 40px;
    }

    .menu-toggle { display: none; }
}

.nav-item {
    /* Pfad basierend auf deinem Modul-Code */


        background-color: var(--kf-brand-dark);
    padding: 30px 0;
    border-bottom: 6px solid var(--kf-primary);
    min-height: 100px;          
    display: flex;
    align-items: center;
}