:root {
    /* Helle, freundliche & vertrauenserweckende Farbpalette */
    --bg-page: #F7F9FC; /* Sehr weiches Off-White/Eisgrau für den Hintergrund */
    --bg-card: #FFFFFF; /* Reines Weiß für alle schwebenden Elemente */
    --bg-input: #F0F4F8; /* Leichte Abtönung für Inputs */
    --text-main: #2D3748;
    --text-muted: #718096;
    
    /* Elegantes Salbeigrün als primäre Akzentfarbe */
    --primary: #7C968B; 
    --primary-hover: #657A71;
    --accent: #E2E8F0;
    --border-light: #E2E8F0;
    
    /* Fehler & Erfolg */
    --error-bg: #FEF2F2;
    --error-text: #E53E3E;
    --success-bg: #F0FDF4;
    --success-text: #38A169;
    
    /* Sanfter Floating-Effekt (Outset) */
    --shadow-base: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
    --shadow-modal: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Gedrückte Effekte (Inset) für Eingabefelder */
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.04);
    
    /* Stark abgerundete Ecken für moderne, weiche Optik */
    --radius: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
}

/* ========================================= */
/* GLOBALE KLASSEN (Floating & Hover)        */
/* ========================================= */

.floating-element {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-base);
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.floating-element:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Typografie */
.subtle-lang-switch {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    z-index: 1000;
}
.subtle-lang-switch span { cursor: pointer; transition: color 0.3s; padding: 0 4px; }
.subtle-lang-switch span:hover { color: var(--text-main); }
.subtle-lang-switch span.active { color: var(--primary); font-weight: 700; }

.text-toggle { cursor: pointer; color: var(--text-muted); transition: color 0.3s; }
.text-toggle:hover { color: var(--text-main); }
.text-toggle.active { color: var(--primary); font-weight: 700; }

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: #FFF;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 14px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary:hover { background-color: var(--primary-hover); }

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    padding: 14px 28px;
}

.btn-icon {
    border: 1px solid var(--border-light);
    padding: 10px 16px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* ========================================= */
/* LANDING PAGE (Desktop Split / Mobile Stack)*/
/* ========================================= */

.landing-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.6s ease forwards;
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.landing-header h1 {
    font-size: 2.2rem;
    margin-bottom: 2px;
}
.landing-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Das geforderte Split-Layout für die Hero-Section */
.landing-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    /* 100vh minus Header und Padding, um Scrollen zu verhindern */
    min-height: calc(100vh - 160px); 
}

.hero-content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hero-content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.landing-text h2 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.landing-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 90%;
    line-height: 1.7;
}

.cta-large {
    font-size: 1.15rem;
    padding: 18px 45px;
    border-radius: 30px; /* Extra runde Pille für den Haupt-CTA */
}

/* Platzhalter Bilder */
.image-placeholder {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-align: center;
    border: 1px dashed var(--border-light);
    padding: 20px;
}

.image-placeholder svg {
    margin-bottom: 10px;
}

.hero-image { height: 40vh; }
.feature-image { height: 25vh; }

/* Mobile Optimierung Landing Page */
@media (max-width: 768px) {
    .landing-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto; /* Auf Mobile darf gescrollt werden */
        gap: 40px;
        padding-bottom: 40px;
        margin-top: 20px;
    }
    
    .hero-content-left {
        align-items: center;
    }
    
    .landing-text h2 {
        font-size: 2.2rem;
    }
    
    .landing-text p {
        max-width: 100%;
        font-size: 1rem;
    }
    
    .hero-image { height: 250px; }
    .feature-image { height: 200px; }
}


/* ========================================= */
/* APP VIEW (KONFIGURATOR)                   */
/* ========================================= */

.app-container {
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
}

.app-header {
    width: 100%;
    margin-bottom: 40px;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.header-actions { display: flex; gap: 15px; align-items: center; }
.brand h1 { font-size: 1.8rem; margin-bottom: 2px; }
.brand p { color: var(--text-muted); font-size: 0.85rem; }

/* Fortschrittsanzeige */
.configurator-container { width: 100%; }
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 12px;
    flex-wrap: wrap; 
    gap: 10px;
}
.step-indicator { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; transition: color 0.3s; }
.step-indicator.active { color: var(--primary); font-weight: 700; }

/* Formular & Schritte */
.config-step { display: none; animation: fadeIn 0.4s ease forwards; }
.config-step.active { display: block; }
.config-step h2 { font-size: 1.6rem; margin-bottom: 5px; }
.step-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; }
.sub-headline { font-size: 1.05rem; margin-bottom: 12px; color: var(--text-main); }

/* Grid & Kacheln */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.floating-card { cursor: pointer; user-select: none; display: block; }
.floating-card input { display: none; }
.card-content {
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 20px 15px; background-color: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); color: var(--text-main); font-weight: 500; font-size: 0.95rem;
    box-shadow: var(--shadow-base); transition: all 0.3s ease; height: 100%;
}
.floating-card:hover .card-content { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.floating-card input:checked + .card-content { border-color: var(--primary); background-color: var(--primary); color: #FFF; box-shadow: var(--shadow-hover); }

.action-row { display: flex; margin-top: 20px; gap: 15px; }
.action-row.right { justify-content: flex-end; }
.action-row.between { justify-content: space-between; }

/* Slider */
.slider-group { margin-bottom: 30px; padding: 30px 25px; }
.slider-group label { display: block; font-weight: 600; margin-bottom: 15px; }
input[type="range"] { width: 100%; accent-color: var(--primary); cursor: pointer; }
.slider-neumorphic {
    -webkit-appearance: none; width: 100%; height: 10px; border-radius: 5px;
    background: var(--bg-input); box-shadow: var(--shadow-inset); outline: none; margin-top: 5px;
}
.slider-neumorphic::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 24px; height: 24px;
    border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: var(--shadow-base); transition: transform 0.2s;
}
.slider-neumorphic::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider-labels { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; font-weight: 500;}


/* ========================================= */
/* MODAL (LOGIN / REGISTER / PROFILE)        */
/* ========================================= */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(247, 249, 252, 0.85); backdrop-filter: blur(8px);
    align-items: center; justify-content: center; padding: 15px;
}
.modal.active { display: flex; animation: fadeIn 0.3s ease forwards; }

.modal-content {
    background-color: var(--bg-card); padding: 40px; border-radius: var(--radius);
    box-shadow: var(--shadow-modal); width: 100%; max-width: 500px; position: relative;
    border: 1px solid var(--border-light); max-height: 90vh; overflow-y: auto;
}

.close-btn {
    position: absolute; top: 15px; right: 25px; font-size: 2rem; color: var(--text-muted);
    cursor: pointer; transition: color 0.3s ease; line-height: 1;
}
.close-btn:hover { color: var(--text-main); }

.modal-link { color: var(--primary); font-size: 0.9rem; text-decoration: underline; font-weight: 600; }

/* Alerts */
.alert-box { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; box-shadow: var(--shadow-base); animation: fadeIn 0.3s ease forwards; }
.alert-error { background-color: var(--error-bg); color: var(--error-text); border-left: 4px solid var(--error-text); }
.alert-success { background-color: var(--success-bg); color: var(--success-text); border-left: 4px solid var(--success-text); }
.success-icon { display: inline-flex; justify-content: center; align-items: center; width: 80px; height: 80px; border-radius: 50%; background-color: var(--success-bg); margin: 0 auto; box-shadow: var(--shadow-inset); }

/* Inputs */
.form-row { display: flex; gap: 15px; flex-direction: column; }
@media (min-width: 480px) { .form-row { flex-direction: row; } }
.form-row .input-group { flex: 1; }

.input-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.input-group label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }

.form-input {
    padding: 14px 16px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif; font-size: 0.95rem; background-color: var(--bg-input);
    color: var(--text-main); transition: all 0.3s ease; width: 100%; box-sizing: border-box;
}
.inset-shadow { box-shadow: var(--shadow-inset); }
.form-input:focus { outline: none; background-color: var(--bg-card); border: 1px solid var(--primary); box-shadow: var(--shadow-base); }
.form-input.input-error { border: 1px solid var(--error-text); background-color: #FFF5F5; }

.select-custom {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23718096" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer;
}

/* Radio/Check Chips in Forms */
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-group label { cursor: pointer; margin: 0; flex: 1; min-width: 30%; }
.radio-group input { display: none; }
.radio-group span {
    display: flex; justify-content: center; align-items: center; padding: 12px 0;
    background-color: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
    box-shadow: var(--shadow-base); transition: all 0.3s ease; text-align: center;
}
.radio-group input:checked + span { background-color: var(--primary); color: #FFF; border-color: var(--primary); box-shadow: var(--shadow-hover); }

.profile-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background-color: var(--bg-input); box-shadow: var(--shadow-inset); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; color: var(--text-muted); }


/* ========================================= */
/* RESULTS & PORTFOLIO                       */
/* ========================================= */
.result-card { 
    background-color: var(--bg-card); 
    padding: 30px; 
    border-radius: var(--radius); 
    border: 1px solid var(--border-light); 
    box-shadow: var(--shadow-base); 
    margin-bottom: 20px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.brand-name { font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; font-family: 'Playfair Display', serif;}
.category-badge { display: inline-block; padding: 6px 12px; background-color: var(--accent); color: var(--text-main); font-size: 0.75rem; font-weight: 600; border-radius: 12px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px;}

.context-tags { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-light); }
.context-pill { display: inline-block; padding: 4px 10px; border: 1px solid var(--border-light); background-color: var(--bg-page); color: var(--text-muted); font-size: 0.75rem; font-weight: 500; border-radius: 6px; margin-right: 6px; margin-bottom: 6px; }
.note-pill { display: inline-block; padding: 6px 14px; background-color: var(--bg-page); border: 1px solid var(--border-light); border-radius: 20px; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-right: 8px; margin-bottom: 8px; }
.signatures { margin-top: 20px; font-size: 0.95rem; color: var(--primary); padding-left: 15px; border-left: 4px solid var(--primary); line-height: 1.7;}

.accordion-btn { background-color: var(--bg-card); color: var(--text-main); border: 1px solid var(--border-light); padding: 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-base); transition: all 0.3s ease;}
.accordion-btn:hover { background-color: var(--bg-page); box-shadow: var(--shadow-hover); transform: translateY(-2px);}

.portfolio-dossier-content { margin-top: 20px; padding: 20px; background-color: var(--bg-input); border-radius: var(--radius-sm); font-size: 0.95rem; box-shadow: var(--shadow-inset); line-height: 1.6; }
.portfolio-dossier-content p { margin-bottom: 12px; }
.portfolio-dossier-content strong { color: var(--text-main); font-weight: 600;}

.dossier-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); font-size: 0.9rem;}
.dossier-lang-switch { font-size: 0.85rem; color: var(--text-muted); font-weight: 500;}
.dossier-lang-switch .lang-btn { cursor: pointer; transition: all 0.3s; margin: 0 4px; padding: 4px 8px; border-radius: 6px;}
.dossier-lang-switch .lang-btn:hover { color: var(--text-main); background: var(--bg-card); box-shadow: var(--shadow-base);}
.dossier-lang-switch .lang-btn.active { color: var(--primary); font-weight: 700; background: var(--bg-card); box-shadow: var(--shadow-base);}

.spinner { width: 36px; height: 36px; border: 4px solid var(--border-light); border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Anpassungen für App & Modal */
@media (max-width: 600px) {
    .app-header h1 { font-size: 1.8rem; }
    .brand p { display: none; } /* Hide subtitle on very small screens to save space */
    .selection-grid { grid-template-columns: 1fr; } /* Stack cards on mobile */
    .action-row { flex-direction: column; gap: 10px; }
    .action-row button { width: 100%; }
    .dossier-header { flex-direction: column; align-items: flex-start; gap: 10px; }


/* ... deine restlichen mobilen Regeln ... */
    .dossier-header { flex-direction: column; align-items: flex-start; gap: 10px; }
} /* HIER SCHLIESST DIE MOBILE ANSICHT */


/* ========================================= */
/* HEADER & PROFIL BUTTONS (Global)          */
/* ========================================= */

/* Zwingt den gesamten Header auf eine exakte Mittellinie */
.landing-header, .header-actions {
    align-items: center !important;
}

/* Schwebendes, zentriertes Pillen-Design für alle Profil-Buttons */
.auth-pill-btn {
    background-color: var(--bg-card) !important;
    border: none !important;
    border-radius: 30px !important; 
    padding: 10px 24px !important;
    color: var(--text-main) !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important; 
    justify-content: center !important;
    box-shadow: var(--shadow-base) !important; 
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    height: 44px !important; 
    align-self: center !important; 
}

.auth-pill-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-hover) !important; 
    color: var(--primary) !important; 
}

.auth-pill-btn svg {
    stroke: currentColor !important;
    margin-right: 8px !important;
    display: block !important;
    transition: stroke 0.3s ease !important;
}

.auth-pill-btn .nav-profile-name {
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important; 
    display: inline-block !important;
    transform: translateY(1px) !important; 
}

/* Runde Ecken und Hover-Effekt für die Bilder auf der Startseite */
.actual-image {
    width: 100%;
    object-fit: cover; /* Sorgt dafür, dass das Bild beim Skalieren nicht verzerrt wird */
    border-radius: var(--radius); /* Zieht sich deine globalen runden Ecken (16px) */
    box-shadow: var(--shadow-base); /* Fügt den Grundschatten hinzu */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.actual-image:hover {
    transform: translateY(-2px); /* Lässt das Bild beim Drüberfahren leicht nach oben schweben */
    box-shadow: var(--shadow-hover); /* Vergrößert den Schatten beim Hovern */
}

/* Zwingt ausnahmslos alle primären und sekundären Tasten (auch im Dossier) zu runden Ecken */
.btn-primary, .btn-secondary {
    border-radius: 30px !important; /* Die elegante Pillenform */
    box-shadow: var(--shadow-base) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px) !important; /* Sanftes Anheben beim Hovern */
    box-shadow: var(--shadow-hover) !important;
}

/* Delete Button für das Portfolio */
.btn-danger {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-text);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-danger:hover {
    background-color: var(--error-text);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}