/* Allgemeine Stile für den gesamten Körper der Seite (aus styleo.optik.css) */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #c68905; /* Haupt-Hintergrundfarbe von Optik */
    color: #ffffff; /* Haupt-Textfarbe von Optik */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box; /* Hinzugefügt für bessere Box-Modell-Konsistenz */
}

/* Stile für Header und Footer (aus styleo.optik.css) */
header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 5px 15px;
    background-color: #333;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}
.header-left { grid-column: 1 / 2; justify-self: start; }
.header-nav-links { display: flex; gap: 15px; }
.header-nav-links .header-link { color: white; text-decoration: underline; font-size: 0.85em; white-space: nowrap; padding: 5px 0; }
.header-nav-links .header-link:hover { color: #007bff; }
.header-title { grid-column: 2 / 3; font-size: 1.1em; margin: 0; line-height: 1.2; text-align: center; white-space: nowrap; }
.header-right { grid-column: 3 / 4; justify-self: end; }
.hamburger-menu { cursor: pointer; display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 22px; padding: 2px; box-sizing: border-box; }
.hamburger-menu span { display: block; width: 100%; height: 3px; background-color: white; border-radius: 1px; transition: all 0.3s ease-in-out; }
.hamburger-menu.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-menu.open span:nth-child(2) { opacity: 0; }
.hamburger-menu.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.side-panel { height: 100%; width: 250px; position: fixed; z-index: 1002; top: 0; right: -280px; background-color: #222; overflow-x: hidden; padding-top: 60px; transition: right 0.4s ease-in-out; box-shadow: -2px 0 5px rgba(0,0,0,0.5); }
.side-panel.open { right: 0; }
.side-panel a { padding: 10px 15px; text-decoration: none; font-size: 1.1em; color: #f1f1f1; display: block; transition: 0.2s; }
.side-panel a:hover, .side-panel a:focus { color: #007bff; background-color: #333; }
.side-panel .close-btn { position: absolute; top: 10px; right: 20px; font-size: 30px; padding: 0; }
.side-panel .close-btn:hover, .side-panel .close-btn:focus { background-color: transparent; color: #ccc; }

footer {
    text-align: center;
    padding: 5px 0;
    background-color: #333;
    color: white;
    flex-shrink: 0;
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding-top: 0;
    padding-bottom: 20px;
    padding-left: 0;
    padding-right: 0;
    gap: 1cm;
}

#hauptinhalt-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; 
    overflow-y: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.zitat-box {
    background-color: black;
    color: white;
    padding: 20px;
    width: 324px;
    flex-shrink: 0;
    box-sizing: border-box;
    text-align: left;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.quote-item { margin-bottom: 20px; }
.quote-item:last-of-type { margin-bottom: 20px; }
#zitat-box-links .quote-item:last-child:not(:has(~ #bitcoin-chart-container)),
#zitat-box-rechts .quote-item:last-child:not(:has(~ #satoshi-price-container)) {
    margin-bottom: 0;
}
.quote-item blockquote { font-size: 0.9em; line-height: 1.5; margin: 0 0 8px 0; padding: 0; font-style: italic; color: #f0f0f0; hyphens: auto; text-align: left; }
.quote-item cite { display: block; font-size: 0.8em; color: #ababab; text-align: right; font-style: normal; margin-top: 5px; }
.quote-item cite::before { content: "– "; }

#bitcoin-chart-container { margin-top: 25px; width: 100%; height: 350px; min-height: 250px; background-color: #131722; border-radius: 4px; overflow: hidden; flex-grow: 1; flex-shrink: 0; }
.tradingview-widget-container, #tradingview_btc_chart { height: 100% !important; }

#satoshi-price-container { margin-top: auto; padding-top: 10px; font-size: 1.35em; color: #f0f0f0; text-align: center; border-top: 1px solid #444; padding-bottom: 5px; }
#satoshi-price-container #eur-to-sats-value { font-weight: bold; color: #00E676; }

section { /* Gilt jetzt nur noch für #eingabe-ergebnis-bereich */
    background-color: rgb(0, 0, 0); 
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px; /* Maximale Breite für den Rechner-Block */
    box-sizing: border-box;
    margin-bottom: 20px; 
}
section:last-child {
    margin-bottom: 0;
}


#eingabe-ergebnis-bereich { text-align: center; }
#eingabe-ergebnis-bereich h2 {
    position: relative;
    display: inline-block;
    margin-top: 0; 
    margin-bottom: 20px; 
    color: #ffffff; 
    font-size: 1.5em; 
}
.info-icon { display: inline-flex; justify-content: center; align-items: center; width: 20px; height: 20px; border-radius: 50%; background-color: #007bff; color: white; font-size: 0.8em; font-weight: bold; cursor: help; margin-left: 8px; vertical-align: middle; transition: background-color 0.3s ease; }
.info-icon:hover { background-color: #0056b3; }
.info-box { display: none; position: absolute; width: 250px; background-color: #333; color: white; padding: 10px; border-radius: 5px; font-size: 0.9em; text-align: left; z-index: 100; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); margin-top: 5px; white-space: normal; left: 50%; transform: translateX(-50%); }
#eingabe-ergebnis-bereich h2:hover .info-box { display: block; }


.input-box, .result-box {
    background-color: #1a1a1a; 
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); 
    width: 100%;
    margin-bottom: 25px;
    box-sizing: border-box;
    color: #f0f2f5; 
}
.input-box:last-child, .result-box:last-child {
    margin-bottom: 0;
}

.result-box h2 { /* Gilt für "Kaufkraft-Analyse" */
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff; 
    font-size: 1.4em; 
}

.input-grid { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.input-field {
    display: flex;
    flex-direction: column;
}

.input-field.input-field-full {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.input-field label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #cccccc; 
    font-size: 0.95em;
}

.input-field input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #555; 
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: #333; 
    color: #f0f2f5; 
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.input-field input[type="number"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
    background-color: #444; 
}

button#calculate-btn { /* Versteckt, aber Stile bleiben falls doch genutzt */
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 10px; 
    margin-bottom: 20px;
}

button#calculate-btn:hover {
    background-color: #0056b3;
}
button#calculate-btn:active {
    transform: scale(0.98);
}

.result-box p {
    font-size: 1.0em; /* Etwas angepasst für Lesbarkeit */
    color: #e0e0e0; 
    margin: 8px 0; /* Etwas kompakter */
    line-height: 1.6; /* Etwas mehr Zeilenabstand */
    text-align: left;
}
.result-box p:first-child { margin-top: 0; }
/* .result-box p:last-child { margin-bottom: 0; } */ /* Entfernt, da #detail-rows-container folgt */

#detail-rows-container p {
    font-size: 0.95em;
    margin: 6px 0;
}

.positive-value { color: #28a745 !important; /* Wichtig für Überschreibung */ }
.positive-value-underline { text-decoration: underline; text-decoration-thickness: 1.5px; }
.negative-value { color: #dc3545 !important; /* Wichtig für Überschreibung */ }
.negative-value-underline { text-decoration: underline; text-decoration-thickness: 1.5px; }


.control-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444; 
}
.control-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    color: #ffffff;
    font-size: 1.1em;
}
.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #bbbbbb; 
    margin: 0 5px 5px 5px;
    padding: 0 5px;
}
.slider-labels span { width: 33.33%; text-align: center; }
.slider-labels span:first-child { text-align: left; }
.slider-labels span:last-child { text-align: right; }

input[type="range"].slider {
    width: calc(100% - 20px);
    margin: 5px 10px;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    background: #555; 
    outline: none;
    opacity: 0.9;
    transition: opacity .15s ease-in-out;
    border-radius: 5px;
}
input[type="range"].slider:hover { opacity: 1; }

#inflation-type-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 22px; height: 22px; background: #007bff; cursor: pointer; border-radius: 50%; border: 3px solid #333; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
#inflation-type-slider::-moz-range-thumb {
    width: 20px; height: 20px; background: #007bff; cursor: pointer; border-radius: 50%; border: 3px solid #333; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
#btc-allocation-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 22px; height: 22px; background: #28a745; cursor: pointer; border-radius: 50%; border: 3px solid #333; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
#btc-allocation-slider::-moz-range-thumb {
    width: 20px; height: 20px; background: #28a745; cursor: pointer; border-radius: 50%; border: 3px solid #333; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.slider-value-display {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.95em;
}
#current-inflation-type-display { color: #00AFFF; }
#current-btc-allocation-display { color: #30C050; }

.validation-message {
    text-align: center;
    margin-top: 15px; 
    font-size: 0.85em; 
    color: #aaa; 
    min-height: 2.4em;
    line-height: 1.4;
}

/* Responsive Anpassungen */
@media (max-width: 1623px) {
    main { flex-direction: column; align-items: center; padding: 10px; gap: 15px; } 
    .zitat-box { display: none; }
    #hauptinhalt-wrapper { width: 100%; min-width: 0; padding: 0 5px; gap: 15px; } 
    section { /* Gilt für #eingabe-ergebnis-bereich */
        max-width: 95%; /* Breiter auf Tablets */
    }
}

@media (max-width: 767px) {
    .header-left { display: none; }
    header { grid-template-columns: 1fr auto; padding: 5px 5px 5px 10px; }
    .header-title { grid-column: 1; text-align: left; font-size: 1em; padding: 0 5px; white-space: normal; }
    .header-right { grid-column: 2; }

    section { /* Gilt für #eingabe-ergebnis-bereich */
        padding: 15px;
    }
    .input-grid {
        grid-template-columns: 1fr; 
    }
    .result-box h2 { font-size: 1.2em; }
    .result-box p { font-size: 0.9em; }
    #detail-rows-container p { font-size: 0.85em; }

    .slider-labels span { font-size: 0.75em; }
    
    .input-field label,
    .input-field input[type="number"] { font-size: 0.9em; }

    #satoshi-price-container { font-size: 1.1em; }
}