﻿
:root {
    --brand: #0b6b4a; /* AOK-Grün (als Beispiel) */
    --text: #5a6872; /* neutrales Grau für Texte/Icons */
    --line: #d9e1e5; /* Trennlinie */
    --bg: #ffffff;
    --maxw: 1200px;
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: #222;
    font: 16px/1.4 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif
}

/* ====== Header ====== */
.header {
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.header__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 120px;
    text-decoration: none !important;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__sub {
    font-size: 0.7rem; /* kleiner */
    color: var(--text);
    font-weight: normal;
}

.brand__main {
    font-size: 1rem;
    font-weight: bold; /* fett */
    color: var(--text);
    
}

/* Unterstreichung vermeiden */
.brand__text span {
    text-decoration: none !important;
}


.brand__logo {
    display: inline-flex;
    align-items: center;
    height: 40px;
}

.brand__logo img {
    height: 40px;
    width: auto;
    display: block;
}

.top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--text);
    flex-wrap: wrap;
}

.act {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 4px;
    border-radius: 6px;
}

    .act:hover {
        background: #f5f7f8
    }

/* einfache Icon-Platzhalter (kannst du durch SVG/Images ersetzen) */
.ico {
    width: 20px;
    height: 20px;
    display: inline-block;
    opacity: .9
}


.act__icon {
    font-size: 1.4rem;
    color: var(--text);
}


.ico--login {
    background: linear-gradient(135deg,var(--text),#9aa7b2);
    -webkit-mask: url('/content/icons/user.svg') no-repeat center / contain;
    mask: url('/content/icons/user.svg') no-repeat center / contain;
}

.ico--kontakt {
    background: linear-gradient(135deg,var(--text),#9aa7b2);
    -webkit-mask: url('/content/icons/phone.svg') no-repeat center / contain;
    mask: url('/content/icons/phone.svg') no-repeat center / contain;
}

.ico--suche {
    background: linear-gradient(135deg,var(--text),#9aa7b2);
    -webkit-mask: url('/content/icons/search.svg') no-repeat center / contain;
    mask: url('/content/icons/search.svg') no-repeat center / contain;
}

/* Optionale schmale Trennlinie wie im Screenshot */
.divider {
    height: 3px;
    background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent)
}

/* ====== Main ====== */
.main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 24px 16px;
}

/* ====== Footer ====== */
.footer {
    border-top: 1px solid var(--line);
    margin-top: 24px;
    background: #fafcfc;
}

.footer__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px;
    color: #56616a;
    font-size: .95rem;
}

/* ====== Responsiv ====== */
@media (max-width:720px) {
    .header__inner {
        padding: 10px 12px
    }

    .top-actions {
        gap: 14px
    }
}

@media (max-width:480px) {
    .act__label {
        display: none
    }
    /* auf sehr schmalen Screens nur Icons zeigen */
}


.page-nav {
    text-align: center;
    padding: 20px 0;
    font-family: Arial, sans-serif;
}

    .page-nav .nav-active {
        font-size: 26px;
        font-weight: bold;
        color: #0b6b4a; /* Grün – aktives Element */
        margin: 0 10px;
    }

    .page-nav .nav-passive {
        font-size: 18px;
        color: #9aa7b2; /* Grau – nicht aktiv */
        margin: 0 10px;
        opacity: 0.7;
    }


/* Container zentriert & max Breite */
.container {
    max-width: 720px; /* je nach Geschmack: 640/720/840px */
    margin: 0 auto; /* zentrieren */
    padding: 24px 16px;
    background: #fff; /* wichtig für Schattenwirkung */
    border-radius: 12px; /* optional: leicht abgerundet */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Standard Texte */
.text-normal {
    font-size: 16px;
    line-height: 1.5;
    color: #222;
}

/* Abschnitt-Abstände */
.section {
    margin-bottom: 24px;
}

/* Validierungsbox */
.validation-summary {
    border: 1px solid #B5DAC7;
    color: Maroon;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #f8fffb;
}

/* Formular-Grid */
.form-grid {
    display: grid;
    grid-template-columns: auto 1fr; /* Label | Feld */
    gap: 10px 14px;
    align-items: center;
}

/* Labels rechtsbündig (Desktop) */
.form-label {
    text-align: right;
    padding-right: 10px;
    color: #222;
}

/* Eingabefeld-Wrapper */
.form-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Inputs */
.input {
    border: 1px solid #008934;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 14px;
    width: 140px; /* fixe Breite für die kurzen Felder */
    line-height: 20px;
}

/* Buttons-Zeile */
.actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

/* Responsiveness: auf kleinen Screens einspaltig */
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr; /* Label über dem Feld */
    }

    .form-label {
        text-align: left;
        padding-right: 0;
    }

    .input {
        width: 100%; /* auf Mobil breite Inputs */
        max-width: 320px;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #26a269 0%, #1f8f5c 100%);
    box-shadow: 0 6px 14px rgba(31, 143, 92, .25);
}

    .btn-primary:hover {
        filter: brightness(1.03);
        transform: translateY(-1px);
    }

    .btn-primary:active {
        transform: translateY(0);
        filter: brightness(.98);
    }

    .btn-primary:focus-visible {
        outline: 3px solid #a8e5cc;
        outline-offset: 2px;
    }

/* Optional: Icon-Span (siehe Variante C) */
.btn .icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}


.hidden-file {
    display: none;
}

.custom-file-upload #file-name {
    margin-left: 10px;
    font-style: italic;
}

.upload-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.file-name {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
    /*min-width: 150px;*/
}

.img_1 {
    /*left: 0;
    position: relative;
    top: 0;*/

    max-width: 450px;
    width: 100%;
    height: auto;

    display: block;
    margin: 0 auto;
}
.fixed-img {
    max-width: 300px; /* maximale Breite */
    max-height: 300px; /* maximale Höhe */
    min-width:250px;
    width: auto;
    height: auto;
    object-fit: contain; /* skaliert sauber */
    border: 1px solid #ccc;
}

.fixed-img_2 {
    max-width: 300px; /* maximale Breite */
    max-height: 250px; /* maximale Höhe */
    min-width:300px;
    width: auto;
    height: auto;
    object-fit: contain; /* skaliert sauber */
    border: 1px solid #ccc;
}

.layout-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.left-column {
    display: flex;
    flex-direction: column;
    align-items: center; /* Button zentrieren */
    gap: 10px;
}

.right-img {
    margin-left: auto; /* Rechts ausrichten */
}

.checkbox-label {
    cursor: pointer;
}


/* Smartphone */
@media (max-width: 600px) {
    .top-actions .act-login {
        display: none;
    }

    .mobile_ds {
        display: none;
    }

    .image-compare {
        flex-direction: column;
        gap: 1.5rem;
    }

    .image-block img {
        width: 100%;
    }

    .img_1 {
        max-width: 100%;
    }


    .upload-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .upload-container .left-side,
    .upload-container .right-side {
        width: 100%;
        justify-content: center;
    }

    .upload-container .file-name {
        order: 3;
        text-align: center;
        font-size: 0.9rem;
    }

    .upload-container .right-side {
        order: 2;
    }

    .upload-container .left-side {
        order: 1;
    }

    .upload-container .btn {
        width: 100%;
    }

}

.image-compare {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.image-block {
    text-align: center;
}

.image-block img {
    max-width: 100%;
    height: auto;
}
