/* CSS für rendite-radar.ch */

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

/* Weiterführende Analysen Box */
.weiterfuehrende-analysen {
    margin-top: 50px;
    padding: 25px 30px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid var(--gold-bg);
}

.weiterfuehrende-analysen h2 {
    color: var(--violet-primary);
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.weiterfuehrende-analysen ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.weiterfuehrende-analysen li {
    margin-bottom: 10px;
}

.weiterfuehrende-analysen a {
    color: var(--violet-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.weiterfuehrende-analysen a:hover {
    color: var(--senf-accent);
    text-decoration: underline;
}

:root {
    /* knbs Strittmatter CI-Farben */
    --gold-bg: #CEAF94;           /* Hintergrundfarbe (Gold) - RGB: 206, 175, 148 */
    --violet-primary: #681088;    /* Hauptschriftfarbe (Violett) - RGB: 104, 16, 136 */
    --senf-accent: #E1A100;       /* Akzentfarbe (Senf) - RGB: 225, 161, 0 */
    
    --primary-color: var(--violet-primary);
    --secondary-color: var(--senf-accent);
    --accent-color: var(--senf-accent);
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --border-color: #b89968;
    --text-color: #2c2c2c;
    --gray-text: #5a5a5a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gold-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 20px;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 20px;
}

.header-text {
    flex: 1;
    text-align: center;
    min-width: 0;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-logo {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

.subtitle {
    color: var(--gray-text);
    font-size: 1.1rem;
}

/* Header Actions: Login-Button & User-Dropdown */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.login-button {
    background: var(--senf-accent);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--senf-accent);
}

.login-button:hover {
    background: var(--violet-primary);
    border-color: var(--violet-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(104, 16, 136, 0.3);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    background: white;
    color: var(--violet-primary);
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid var(--violet-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.user-dropdown-toggle:hover {
    background: var(--violet-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(104, 16, 136, 0.3);
}

.user-icon {
    font-size: 1.2rem;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.user-dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 2px solid var(--violet-primary);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 280px;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.user-dropdown-menu.active {
    display: block;
}

.user-dropdown-header {
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-dropdown-header strong {
    color: var(--violet-primary);
    font-size: 1.05rem;
}

.user-dropdown-header small {
    color: var(--gray-text);
    font-size: 0.85rem;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

.user-dropdown-modules {
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-dropdown-modules strong {
    color: var(--violet-primary);
    font-size: 0.9rem;
}

.module-badge {
    display: inline-block;
    background: var(--senf-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 6px;
    margin-top: 4px;
}

.user-dropdown-logout {
    display: block;
    padding: 12px 18px;
    color: var(--danger-color);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 0 0 10px 10px;
}

.user-dropdown-logout:hover {
    background: var(--danger-color);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background-color: var(--secondary-color);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hauptnavigation (horizontal, Desktop) */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    row-gap: 0;
    margin-top: 20px;
    padding: 12px 0;
    border-top: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.main-nav .nav-link {
    color: var(--violet-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid transparent;
}

.main-nav .nav-link:hover {
    background: var(--senf-accent);
    color: white;
    border-color: var(--senf-accent);
    transform: translateY(-2px);
}

.main-nav .nav-link.active {
    background: var(--violet-primary);
    color: white;
    border-color: var(--violet-primary);
}

/* Zeilenumbruch in der Navigation erzwingen */
.main-nav .nav-break {
    flex-basis: 100%;
    height: 0;
}

/* Mobile: Hauptnavigation ausblenden */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    padding: 15px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 25px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Header Layout */
@media (max-width: 768px) {
    .header-content {
        gap: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .header-logo {
        height: 40px;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .login-button {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .user-dropdown-toggle {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .user-name {
        max-width: 80px;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-text {
        order: 1;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .header-actions {
        order: 2;
        margin-left: auto;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        gap: 10px;
    }
    
    .header-logo {
        height: 35px;
    }
    
    .user-name {
        display: none;
    }
    
    .login-button {
        padding: 8px 12px;
    }
}

.form-section {
    background: var(--light-bg);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.form-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 20px 0 15px 0;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.form-section h3:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
}

input, select {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(104, 16, 136, 0.1);
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.readonly-field {
    background: #e9ecef;
    cursor: not-allowed;
    font-weight: 600;
    color: var(--secondary-color);
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--gray-text);
    font-style: italic;
}

.financing-summary {
    background: white;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    border: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: bold;
}

.summary-row span:first-child {
    font-weight: 600;
}

.summary-row span:last-child {
    font-weight: bold;
    color: var(--primary-color);
}

.button-container {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    background: var(--senf-accent);
    color: white;
}

.btn-primary:hover {
    background: #c88900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 161, 0, 0.4);
}

.btn-secondary {
    background: var(--senf-accent);
    color: white;
}

.btn-secondary:hover {
    background: #c88900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 161, 0, 0.4);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.error-box, .warning-box {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
}

.error-box {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    color: #856404;
}

.error-box ul, .warning-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

/* Rekap-Sektion - 5-Spalten-Layout */
.rekap-section {
    background: var(--senf-accent);
    padding: 30px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.rekap-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.rekap-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-collapse: collapse;
    border: 3px solid var(--senf-accent);
}

.rekap-table thead {
    background: var(--violet-primary);
    color: white;
}

.rekap-table thead th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #500a68;
    font-size: 0.9rem;
}

.rekap-table thead th:nth-child(1) {
    width: 35%;
}

.rekap-table thead th:nth-child(2) {
    width: 12%;
    text-align: center;
}

.rekap-table thead th:nth-child(3) {
    width: 20%;
    text-align: right;
}

.rekap-table thead th:nth-child(4) {
    width: 13%;
    text-align: center;
}

.rekap-table thead th:nth-child(5) {
    width: 20%;
    text-align: right;
}

.rekap-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.rekap-table tbody tr:last-child {
    border-bottom: none;
}

.rekap-table tbody tr:hover {
    background: #f8f9fa;
}

.rekap-table td {
    padding: 10px 12px;
    vertical-align: middle;
    font-size: 0.95rem;
}

.rekap-label {
    font-weight: 500;
    color: var(--violet-primary);
}

.rekap-anteil {
    text-align: center;
    color: var(--violet-primary);
}

.rekap-kapital {
    text-align: right;
    color: var(--violet-primary);
    font-weight: 500;
}

.rekap-ansatz {
    text-align: center;
    color: var(--violet-primary);
}

.rekap-betrag {
    text-align: right;
    color: var(--violet-primary);
    font-weight: 500;
}

/* Header-Zeile für Objekt-Info */
.rekap-objekt-header td {
    background: #f9f4ff;
    color: var(--violet-primary);
    font-weight: 600;
    text-align: center;
    padding: 14px 12px;
    border-top: 2px solid var(--violet-primary);
    border-bottom: 2px solid var(--violet-primary);
}

/* Zwischentotale fett darstellen */
.rekap-total-row {
    background: #f8f9fa !important;
    font-weight: 600;
}

.rekap-total-row td {
    font-weight: 600;
}

/* Trennstrich zwischen Total Kosten und Mietzinsen IST */
.rekap-separator-top td {
    border-top: 3px solid var(--violet-primary) !important;
    padding-top: 14px !important;
}

/* IST-Zeilen fett für bessere Sichtbarkeit */
.rekap-ist-row {
    font-weight: 700 !important;
}

.rekap-ist-row td {
    font-weight: 700 !important;
}

.rekap-ist-row .rekap-label,
.rekap-ist-row .rekap-anteil,
.rekap-ist-row .rekap-kapital,
.rekap-ist-row .rekap-ansatz,
.rekap-ist-row .rekap-betrag {
    font-weight: 700 !important;
}

/* Negative Werte in Rot */
.negative-value {
    color: var(--danger-color) !important;
    font-weight: 600;
}

/* Mobile Responsive für 5 Spalten */
@media (max-width: 992px) {
    .rekap-table thead th {
        font-size: 0.8rem;
        padding: 12px 8px;
    }
    
    .rekap-table td {
        font-size: 0.85rem;
        padding: 8px 6px;
    }
}

@media (max-width: 768px) {
    .rekap-table, 
    .rekap-table thead, 
    .rekap-table tbody, 
    .rekap-table thead th, 
    .rekap-table tbody td, 
    .rekap-table tbody tr {
        display: block;
    }
    
    .rekap-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .rekap-table tbody tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .rekap-table tbody td {
        border-bottom: 1px solid var(--border-color);
        position: relative;
        padding-left: 50%;
        text-align: left !important;
    }
    
    .rekap-table tbody td:before {
        position: absolute;
        top: 8px;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: var(--gray-text);
        font-size: 0.8rem;
    }
    
    .rekap-label:before {
        content: "Position: ";
    }
    
    .rekap-anteil:before {
        content: "Anteil/Jahre: ";
    }
    
    .rekap-kapital:before {
        content: "Kapital: ";
    }
    
    .rekap-ansatz:before {
        content: "Ansatz: ";
    }
    
    .rekap-betrag:before {
        content: "Betrag p.a.: ";
    }
    
    .rekap-objekt-header td {
        padding-left: 12px;
    }
    
    .rekap-objekt-header td:before {
        content: "";
    }
}

.results-section {
    background: var(--light-bg);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    border-left: 4px solid var(--violet-primary);
}

.results-section h2 {
    color: var(--violet-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.result-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.result-item.large {
    grid-column: span 2;
    padding: 20px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .result-item.large {
        grid-column: span 1;
    }
}

.result-item.highlight {
    background: white;
    border: 2px solid var(--senf-accent);
    font-weight: 600;
}

.result-item.cashflow-final {
    background: white;
    border: 2px solid var(--senf-accent);
}

.result-item.negative {
    background: #ffebee;
    border: 2px solid var(--danger-color);
}

.result-label {
    font-weight: 600;
    color: var(--primary-color);
}

.result-value {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.05rem;
    text-align: right;
}

.result-value.negative-value {
    color: var(--danger-color);
}

.result-value.positive-value {
    color: var(--violet-primary);
}

.kennzahlen-section {
    border-left-color: var(--primary-color);
}

.kennzahlen-section .result-item {
    background: white;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px 20px;
    border-top: 2px solid var(--border-color);
    color: var(--gray-text);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-content p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    height: 24px;
    width: auto;
    vertical-align: middle;
}

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--senf-accent);
    text-decoration: underline;
}

.footer-links .separator {
    color: var(--border-color);
    font-weight: bold;
}

.content-page {
    padding: 20px 0;
}

.content-page h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.content-page h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.info-section {
    margin-bottom: 25px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-section h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.info-section p {
    margin: 5px 0;
    line-height: 1.8;
}

.info-section ul {
    margin: 10px 0;
    padding-left: 25px;
}

.info-section li {
    margin: 8px 0;
    line-height: 1.8;
}

.info-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.info-section a:hover {
    text-decoration: underline;
}

.date-stamp {
    text-align: center;
    color: var(--gray-text);
    font-size: 0.9rem;
    margin: 30px 0;
    font-style: italic;
}

.back-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .button-container {
        flex-direction: column;
    }
}

#results {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PREMIUM SEKTION ===== */
.premium-section {
    background: white;
    padding: 30px;
    margin: 40px 0 30px 0;
    border-radius: 8px;
    border: 3px solid var(--senf-accent);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

/* Sticky Header für Premium-Module */
.premium-sticky-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--violet-primary) 0%, #8B1AAE 100%);
    margin: -30px -30px 20px -30px;
    padding: 20px 30px;
    border-radius: 8px 8px 0 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.premium-sticky-header h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    padding: 0;
    border: none;
}

.premium-section h3 {
    color: var(--violet-primary);
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
}

.premium-section h4 {
    color: var(--violet-primary);
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
}

.premium-intro {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid var(--senf-accent);
}

.premium-intro p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.premium-form {
    margin-top: 20px;
}

/* DCF-Gruppierung */
.dcf-group {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--violet-primary);
}

.dcf-group h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--violet-primary);
}

.required {
    color: #d8000c;
    font-weight: bold;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
}

.premium-results {
    margin-top: 30px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 6px;
}

.prognose-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border: 2px solid var(--violet-primary);
    overflow-x: auto;
    display: block;
}

.prognose-table table {
    width: 100%;
    min-width: 800px;
}

.prognose-table th {
    background: var(--violet-primary);
    color: white;
    padding: 12px 8px;
    text-align: right;
    font-weight: 600;
    border: 1px solid var(--violet-primary);
    font-size: 0.9rem;
}

.prognose-table th:first-child {
    text-align: center;
}

.prognose-table td {
    padding: 10px 8px;
    text-align: right;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.prognose-table td:first-child {
    text-align: center;
    font-weight: 600;
    background: var(--light-bg);
}

.prognose-table tbody tr:hover {
    background: var(--light-bg);
}

.szenario-container {
    margin-bottom: 30px;
}

.szenario-header {
    background: var(--senf-accent);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
    font-size: 1.1rem;
}

#multiSzenarienHinweis ul {
    margin: 10px 0;
    padding-left: 25px;
}

#multiSzenarienHinweis li {
    margin: 8px 0;
    line-height: 1.6;
}

/* ============================================================================
   DCF FÜR PRAKTIKER - STYLING
   ============================================================================ */

.dcf-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 20px 0;
}

.dcf-header {
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.dcf-unterbewertet .dcf-header {
    background: #d4edda;
    color: #155724;
}

.dcf-ueberbewertet .dcf-header {
    background: #f8d7da;
    color: #721c24;
}

.dcf-fair .dcf-header {
    background: #fff3cd;
    color: #856404;
}

.dcf-body {
    padding: 20px;
}

.dcf-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.dcf-row:last-child {
    border-bottom: none;
}

.dcf-label {
    font-weight: 500;
    color: var(--text-color);
}

.dcf-value {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

.dcf-highlight {
    background: var(--light-bg);
    padding: 15px 10px !important;
    margin: 10px 0;
    border-radius: 6px;
    border: 2px solid var(--senf-accent);
}

.dcf-highlight .dcf-label {
    font-size: 1.1rem;
}

.dcf-highlight .dcf-value {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.dcf-delta {
    font-size: 1.05rem;
}

.dcf-unterbewertet .dcf-delta .dcf-value {
    color: #28a745;
}

.dcf-ueberbewertet .dcf-delta .dcf-value {
    color: #dc3545;
}

.dcf-interpretation {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    line-height: 1.6;
    border-left: 4px solid var(--senf-accent);
}

.dcf-details {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.dcf-details h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.dcf-details .dcf-row {
    padding: 8px 0;
    font-size: 0.95rem;
}

.dcf-details .dcf-label {
    color: #6c757d;
}

.dcf-details .dcf-value {
    color: #495057;
    font-weight: 500;
}

/* ============================================================================ 
   TRIAL-LOGIK: Hinweisboxen für kostenlosen Test
   ============================================================================ */

#trialInfoBox {
    margin-bottom: 25px;
}

.trial-notice {
    padding: 20px;
    border-radius: 8px;
    line-height: 1.6;
    font-size: 1rem;
}

.trial-available {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border: 2px solid var(--senf-accent);
    border-left: 6px solid var(--senf-accent);
    color: #333;
}

.trial-available strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.trial-expired {
    background: linear-gradient(135deg, #f8f4ff 0%, #fdfbff 100%);
    border: 2px solid var(--primary-color);
    border-left: 6px solid var(--primary-color);
    color: #333;
}

.trial-expired strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ============================================================================ 
   DEV_MODE: Entwicklermodus-Badge
   ============================================================================ */

.dev-badge {
    position: fixed;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    cursor: help;
    animation: pulse-dev 2s infinite;
}

@keyframes pulse-dev {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 71, 87, 0.6);
    }
}

/* ============================================================================ 
   LANDINGPAGE STYLES (/home)
   ============================================================================ */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f4ff 0%, #fdfbff 100%);
    border-radius: 12px;
    margin-bottom: 50px;
    border: 2px solid var(--primary-color);
}

.hero-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-top: 40px;
}

.hero-hint {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--gray-text);
    font-style: italic;
}

.btn-primary-large {
    background: linear-gradient(135deg, var(--senf-accent) 0%, #d19000 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(225, 161, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 161, 0, 0.4);
}

.login-hint {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--gray-text);
    font-style: italic;
}

/* Modules Section */
.modules-section {
    padding: 40px 0;
    margin-bottom: 50px;
}

.modules-section h2,
.usage-section h2,
.pricing-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.module-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.module-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    overflow: visible;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 80px;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.module-card-highlight {
    border: 3px solid var(--senf-accent);
    box-shadow: 0 4px 20px rgba(225, 161, 0, 0.15);
}

.module-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7a1fa0 100%);
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.module-number {
    background: var(--senf-accent);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.module-header h3 {
    color: white;
    font-size: 1.4rem;
    margin: 0;
}

.module-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.module-intro {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

.module-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 12px;
}

.module-list {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.module-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.module-list li:last-child {
    border-bottom: none;
}

.module-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--senf-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.btn-module-details {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    padding: 12px 30px;
    background: #d4d4d4;
    color: #666;
    border: 2px solid #b8b8b8;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    max-width: calc(100% - 50px);
}

/* Usage Section */
.usage-section {
    padding: 40px 0;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 50px 30px;
}

.usage-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.usage-step {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.usage-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(104, 16, 136, 0.15);
}

.usage-step-number {
    position: absolute;
    top: -20px;
    left: 30px;
    background: var(--senf-accent);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(225, 161, 0, 0.3);
}

.usage-step h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 15px;
}

.usage-step p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Pricing Section */
.pricing-section {
    padding: 40px 0;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #f8f4ff 0%, #fdfbff 100%);
    border-radius: 12px;
    padding: 50px 30px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pricing-card-featured {
    border: 3px solid var(--senf-accent);
    box-shadow: 0 8px 25px rgba(225, 161, 0, 0.2);
}

.pricing-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--senf-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--senf-accent);
    margin-bottom: 10px;
}

.price-unit {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--gray-text);
    display: block;
    margin-top: 5px;
}

.package-description {
    color: var(--gray-text);
    margin-bottom: 25px;
    font-size: 1.05rem;
    height: 70px;
}

.package-features {
    list-style: none;
    text-align: left;
    margin: 25px 0;
    flex-grow: 1;
}

.package-features li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-color);
    border-bottom: 1px solid #f0f0f0;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--senf-accent);
    font-weight: bold;
}

.btn-disabled {
    background: #ccc;
    color: #666;
    border: none;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-disabled:hover {
    background: #bbb;
}

.pricing-disclaimer {
    text-align: center;
    max-width: 800px;
    margin: 30px auto 0;
    font-size: 0.95rem;
    color: var(--gray-text);
    font-style: italic;
    line-height: 1.6;
}

/* Upgrade-Hints unterhalb Pricing Cards */
.upgrade-hint {
    background: linear-gradient(135deg, #fff9e6, #ffe5b3);
    border: 2px solid var(--senf-accent);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--violet-primary);
    text-align: center;
    box-shadow: 0 3px 10px rgba(225, 161, 0, 0.15);
}

/* Beta Notice */
.beta-notice {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid var(--senf-accent);
}

.beta-notice p {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    margin: 30px 0;
}

.faq-item {
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border-left: 4px solid var(--senf-accent);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

.faq-item a {
    color: var(--senf-accent);
    text-decoration: underline;
    font-weight: 600;
}

.faq-item a:hover {
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-primary-large {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .module-cards {
        grid-template-columns: 1fr;
    }
    
    .module-header {
        padding: 20px;
    }
    
    .module-header h3 {
        font-size: 1.2rem;
    }
    
    .usage-steps {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .price {
        font-size: 2rem;
    }
}

/* Upgrade-Buttons in Premium-Bereichen */
.upgrade-box {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    border: 3px solid var(--senf-accent);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.upgrade-message {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.6;
}

.upgrade-info {
    color: var(--gray-text);
    margin-top: 10px;
    margin-bottom: 15px;
}

.upgrade-button {
    display: inline-block;
    background: var(--senf-accent);
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.upgrade-button:hover {
    background: #c88f00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.upgrade-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .upgrade-box {
        padding: 20px;
    }
    
    .upgrade-message {
        font-size: 1rem;
    }
    
    .upgrade-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ============================================================================ */
