/* =========================================
   1. HEADER (Fixierter Bereich)
   ========================================= */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    background: linear-gradient(to bottom,
                rgba(166, 141, 118, 1) 0%,
                rgba(166, 141, 118, 1) 70%,
                rgba(166, 141, 118, 0) 100%);
    color: white;
}

/* =========================================
   2. HERO BEREICH (Startseite)
   ========================================= */
@media (min-width: 768px) { .hero-wrapper { height: 400px; } }
@media (min-width: 1200px) { .hero-wrapper { height: 500px; } }

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Wichtig: Bild bleibt mittig zentriert */
    display: block;
    min-width: 180px; 
}

.hero-wrapper {
    /* ... deine bisherigen Styles ... */
    position: relative;
    width: 100%;
    overflow: hidden; /* Schneidet das überstehende Bild sauber ab */
    display: flex;
    justify-content: center; /* Zentriert das min-width Bild im Wrapper */
}

/* --- DER INFO-CIRCLE (Der "Punkt") --- */
.info-circle {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Nutze vw statt px, damit der Kreis mit dem Bildschirm skaliert */
    width: 25vw; 
    height: 25vw;
    
    /* Sicherheitshalber Grenzen setzen */
    min-width: 140px; 
    min-height: 140px;
    max-width: 220px;
    max-height: 220px;

    background-color: rgba(166, 141, 118, 0.6);
    border: none;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 10;

    opacity: 0;
    animation: fadeInScale 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.circle-icon {
    /* Prozentuale Breite bleibt stabil */
    width: 35% !important;
    height: auto !important;
    display: block;

    /* Responsive Margins: Verwende % oder em statt px */
    /* Ein negativer Wert in % schiebt das Bild relativ zur Kreisgröße hoch */
    margin: -8% auto 3% auto; 

    padding: 0;
    /* Verhindert, dass das Icon auf Min-Screens verschwindet */
    min-width: 25px; 
}

/* Der Text unter dem Bild */
.info-circle span {
    /* clamp() sorgt für eine ideale Größe: min 10px, dynamisch 1.2vw, max 14px */
    font-size: clamp(10px, 1.2vw, 14px);
    
    line-height: 1.3;
    display: block;
    width: 100%;
    text-align: center;

    /* Responsive Padding: 10% vom Kreis-Durchmesser halten den Text vom Rand fern */
    padding: 0 10%; 

    box-sizing: border-box; 
}

@media (max-width: 480px) {
    .info-circle span {
        font-size: 8px; /* Fester Wert für kleinste Geräte */
        line-height: 1.2;
    }
    .circle-icon {
        margin-top: -5%; /* Etwas weniger hochschieben auf kleinen Screens */
    }
}

@media (min-width: 1025px) {
    .info-circle {
        width: 40vh; /* 40% der Bildhöhe */
        height: 40vh;
        max-width: 350px;
        max-height: 350px;
        font-size: 1.5rem;
    }
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* =========================================
   3. CONTENT AREA (Text-Fix & Zentrierung)
   ========================================= */
.content-area {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 100px auto 40px auto; /* Margin-Top sorgt für Abstand zum Header auf Textseiten */
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    clear: both;
    background-color: #fdfaf7;
    text-align: left;
}

.hero-wrapper + .content-area {
    margin-top: 0; /* Kein Abstand, wenn das Bild direkt davor ist */
}

.content-area h2, .content-area h3, .content-area p, .content-area ul {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: #4e3e31;
}

.content-area ul {
    padding-left: 40px;
    list-style: disc;
}

.content-area li {
    margin-bottom: 10px;
    display: list-item;
}

/* =========================================
   4. SPEZIAL-ELEMENTE (Eingabe & Result)
   ========================================= */

/* Breite für genau 4 Ziffern */
.input-digit-4 {
    width: 7ch !important;
    max-width: 7ch;
    text-align: center;
    padding: 2px;
    box-sizing: border-box;
}

/* Result Container Zentrierung */
#resultContainer {
    position: relative;
    display: inline-block; /* Container schmiegt sich ans Bild an */
    margin: 20px auto;
    left: 50%;
    transform: translateX(-50%); /* Zentriert den Block horizontal */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

#outputImage {
    display: block;
    max-width: 100%;
    height: auto;
}


/* Versteckt die Standard-Checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #a68d76; /* Rahmen in deiner Button-Farbe */
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: all 0.2s ease;
}

/* Hintergrund füllen, wenn ausgewählt */
input[type="checkbox"]:checked {
    background-color: #a68d76;
}

/* Der Haken (Checkmark) selbst */
input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white; /* Weißer Haken auf braunem Grund */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}