/* ============================================================
   ANTRAGSGLUECK - VOLLSTÄNDIG RESPONSIVE CSS
   Optimiert für: Handy, Tablet, Desktop
   Stand: Januar 2026
   ============================================================ */

/* RESET - Gleiche Basis auf allen Geräten */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ============================================================
   LAYOUT - Container
   ============================================================ */

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ============================================================
   HEADER - Mobile First
   ============================================================ */

.header {
    background: #fff;
    color: #333;
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #ddd;
}

.header-inhalt {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.logo {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    white-space: nowrap;
}

.logo-schwarz {
    color: #333;
}

.logo-orange {
    color: #FF6B35;
}

/* Navigation - Handy */
.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 8px 6px;
    font-size: 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
}

/* Sprachauswahl kompakt */
.sprachauswahl {
    margin-right: 0;
}

.sprachauswahl select {
    padding: 6px 8px;
    font-size: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
}

/* ============================================================
   KARTEN - Touch-optimiert
   ============================================================ */

.karte {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.karte-klickbar {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.karte-klickbar:hover,
.karte-klickbar:focus {
    border-color: #1565C0;
}

.karte-klickbar:active {
    transform: scale(0.98);
}

.karte-klickbar.ausgewaehlt {
    border-color: #FF6B35;
    background: #FFF8F5;
}

.karte-titel {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

/* ============================================================
   BUTTONS - Große Touch-Targets (min 44px)
   ============================================================ */

.btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    min-height: 48px;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:focus {
    outline: 3px solid #FF6B35;
    outline-offset: 2px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-orange {
    background: #FF6B35;
    color: white;
}

.btn-orange:hover,
.btn-orange:focus {
    background: #E55A2B;
}

.btn-primaer {
    background: #1565C0;
    color: white;
}

.btn-primaer:hover,
.btn-primaer:focus {
    background: #0D47A1;
}

.btn-grau {
    background: #E0E0E0;
    color: #333;
}

.btn-grau:hover,
.btn-grau:focus {
    background: #BDBDBD;
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-klein {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-height: 36px;
}

/* Button-Gruppe für nebeneinander */
.btn-gruppe {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================================
   FORMULARE - Touch-optimiert
   ============================================================ */

.formular-gruppe {
    margin-bottom: 15px;
}

.formular-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #333;
}

.formular-input,
.formular-select,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 16px; /* Verhindert Zoom auf iOS */
    line-height: 1.5;
    border: 2px solid #DDD;
    border-radius: 8px;
    background: white;
    color: #333;
    -webkit-appearance: none;
    appearance: none;
}

.formular-input:focus,
.formular-select:focus,
select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: #1565C0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.2);
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Formular-Reihen - auf Handy untereinander */
.formular-reihe {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Pflichtfeld-Stern */
.pflicht {
    color: #f44336;
}

/* Hilfetext */
.formular-hilfe {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

/* ============================================================
   CHECKBOXEN - Große Touch-Targets
   ============================================================ */

.checkbox-gruppe {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #F8F9FA;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.checkbox-item:hover,
.checkbox-item:focus-within {
    border-color: #1565C0;
}

.checkbox-item.ausgewaehlt {
    background: #E3F2FD;
    border-color: #1565C0;
}

.checkbox-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin: 0;
    cursor: pointer;
    accent-color: #1565C0;
}

.checkbox-item label {
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
    padding-top: 1px;
}

/* ============================================================
   TABELLEN - Responsive
   ============================================================ */

.tabelle-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

th, td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
    font-size: 0.85rem;
}

th {
    background: #F5F5F5;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive Tabelle - Karten auf Handy */
.tabelle-responsive {
    display: block;
}

.tabelle-responsive thead {
    display: none;
}

.tabelle-responsive tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tabelle-responsive tr {
    display: block;
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: none;
}

.tabelle-responsive td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #EEE;
}

.tabelle-responsive td:last-child {
    border-bottom: none;
}

.tabelle-responsive td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
    margin-right: 10px;
}

/* ============================================================
   MELDUNGEN
   ============================================================ */

.meldung {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.meldung-erfolg {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.meldung-fehler {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.meldung-warnung {
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFCC80;
}

.meldung-info {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
}

/* ============================================================
   FORTSCHRITT - Kompakt auf Handy
   ============================================================ */

.fortschritt {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    overflow-x: auto;
}

.fortschritt-schritt {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    min-width: 60px;
}

.fortschritt-kreis {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E0E0E0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.fortschritt-text {
    font-size: 0.65rem;
    color: #666;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fortschritt-schritt.aktiv .fortschritt-kreis {
    background: #1565C0;
    color: white;
}

.fortschritt-schritt.aktiv .fortschritt-text {
    color: #1565C0;
    font-weight: 600;
}

.fortschritt-schritt.fertig .fortschritt-kreis {
    background: #4CAF50;
    color: white;
}

/* ============================================================
   BRIEF-ANSICHT
   ============================================================ */

.brief-ansicht {
    background: white;
    border: 1px solid #DDD;
    padding: 15px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: auto;
}

.brief-blur {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.brief-blur::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.wasserzeichen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 1.5rem;
    color: rgba(255, 0, 0, 0.2);
    font-weight: bold;
    pointer-events: none;
    white-space: nowrap;
    font-family: Arial, sans-serif;
}

/* ============================================================
   BEHÖRDE-DATEN FORMULAR
   ============================================================ */

.behoerde-daten {
    background: #F8F9FA;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #E0E0E0;
}

.behoerde-daten h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1565C0;
    font-size: 1rem;
}

/* Behörde-Buttons */
.behoerde-btn {
    display: block;
    width: 100%;
    padding: 20px 15px;
    margin-bottom: 10px;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s;
}

.behoerde-btn:hover,
.behoerde-btn:focus {
    border-color: #1565C0;
    outline: none;
}

.behoerde-btn h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
}

.behoerde-btn p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

/* ============================================================
   ÜBERWEISUNG BOX
   ============================================================ */

.ueberweisung-box {
    background: #F8F9FA;
    border: 2px solid #1565C0;
    border-radius: 8px;
    padding: 15px;
}

.ueberweisung-zeile {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid #E0E0E0;
    gap: 4px;
}

.ueberweisung-zeile:last-child {
    border-bottom: none;
}

.ueberweisung-label {
    color: #666;
    font-size: 0.8rem;
}

.ueberweisung-wert {
    font-weight: bold;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

/* ============================================================
   PREIS
   ============================================================ */

.preis-gross {
    font-size: 2rem;
    color: #1565C0;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

/* ============================================================
   FEATURE LISTE
   ============================================================ */

.feature-liste {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.feature-liste li {
    padding: 8px 0;
    border-bottom: 1px solid #EEE;
    font-size: 0.9rem;
}

.feature-liste li:last-child {
    border-bottom: none;
}

/* ============================================================
   BRIEF-LISTE (Dashboard)
   ============================================================ */

.brief-liste {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brief-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.brief-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.brief-item-titel {
    font-weight: 600;
    font-size: 0.95rem;
}

.brief-item-datum {
    font-size: 0.8rem;
    color: #666;
}

.brief-item-aktionen {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    margin-top: auto;
    padding: 15px 12px;
    background: #333;
    color: white;
    text-align: center;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 5px;
}

.footer-links a:hover,
.footer-links a:focus {
    text-decoration: underline;
}

/* ============================================================
   HILFSKLASSEN
   ============================================================ */

.versteckt {
    display: none !important;
}

.nur-handy {
    display: block;
}

.nur-desktop {
    display: none;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-grau {
    color: #666;
}

.text-klein {
    font-size: 0.8rem;
}

.text-gross {
    font-size: 1.1rem;
}

.font-bold {
    font-weight: 600;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 25px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 25px; }

.p-0 { padding: 0; }
.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }

.trennlinie {
    border: none;
    border-top: 1px solid #E0E0E0;
    margin: 20px 0;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-between {
    justify-content: space-between;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.gap-1 { gap: 5px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 15px; }

/* ============================================================
   LADEN ANIMATION
   ============================================================ */

.laden-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.laden {
    width: 36px;
    height: 36px;
    border: 4px solid #E0E0E0;
    border-top-color: #1565C0;
    border-radius: 50%;
    animation: drehen 1s linear infinite;
}

@keyframes drehen {
    to { transform: rotate(360deg); }
}

/* ============================================================
   STATUS BADGES
   ============================================================ */

.status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-bereit,
.status-success {
    background: #4CAF50;
    color: white;
}

.status-gespeichert,
.status-warning {
    background: #FF9800;
    color: white;
}

.status-entwurf {
    background: #9E9E9E;
    color: white;
}

.status-danger {
    background: #f44336;
    color: white;
}

/* ============================================================
   GUTHABEN ANZEIGE
   ============================================================ */

.guthaben-anzeige {
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.guthaben-betrag {
    font-size: 1.8rem;
    font-weight: bold;
}

/* ============================================================
   ACCORDION / AUFKLAPPBAR
   ============================================================ */

.accordion-header {
    background: #F5F5F5;
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-content {
    padding: 15px;
    display: none;
}

.accordion-content.aktiv {
    display: block;
}

/* ============================================================
   MODAL / POPUP
   ============================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 15px;
}

.modal {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #E0E0E0;
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-body {
    padding: 15px;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #E0E0E0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ============================================================
   TABLET (ab 480px)
   ============================================================ */

@media screen and (min-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 12px 20px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    
    .karte {
        padding: 20px;
    }
    
    .btn-gruppe {
        flex-direction: row;
    }
    
    .btn-gruppe .btn {
        flex: 1;
    }
    
    .fortschritt-kreis {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .fortschritt-text {
        font-size: 0.7rem;
    }
    
    .brief-ansicht {
        padding: 20px;
        font-size: 0.9rem;
    }
    
    .wasserzeichen {
        font-size: 2rem;
    }
    
    .preis-gross {
        font-size: 2.5rem;
    }
    
    /* Tabelle normal ab Tablet */
    .tabelle-responsive {
        display: table;
    }
    
    .tabelle-responsive thead {
        display: table-header-group;
    }
    
    .tabelle-responsive tbody {
        display: table-row-group;
    }
    
    .tabelle-responsive tr {
        display: table-row;
        background: transparent;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
    
    .tabelle-responsive td {
        display: table-cell;
        border-bottom: 1px solid #E0E0E0;
    }
    
    .tabelle-responsive td::before {
        display: none;
    }
}

/* ============================================================
   TABLET GROSS (ab 600px)
   ============================================================ */

@media screen and (min-width: 600px) {
    .container {
        padding: 0 25px;
    }
    
    .karte {
        padding: 25px;
    }
    
    .formular-reihe {
        flex-direction: row;
        gap: 15px;
    }
    
    .formular-reihe .formular-gruppe {
        margin-bottom: 0;
        flex: 1;
    }
    
    .checkbox-gruppe {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ueberweisung-zeile {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .brief-ansicht {
        padding: 30px;
        font-size: 0.95rem;
    }
    
    .wasserzeichen {
        font-size: 2.5rem;
    }
    
    .preis-gross {
        font-size: 3rem;
    }
    
    .fortschritt-kreis {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .fortschritt-text {
        font-size: 0.75rem;
        max-width: 100px;
    }
    
    .brief-blur {
        max-height: 250px;
    }
}

/* ============================================================
   DESKTOP (ab 768px)
   ============================================================ */

@media screen and (min-width: 768px) {
    .header {
        padding: 15px 25px;
    }
    
    .logo {
        font-size: 1.35rem;
    }
    
    .nav-links {
        gap: 5px;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .nur-handy {
        display: none;
    }
    
    .nur-desktop {
        display: block;
    }
    
    .btn {
        display: inline-block;
        width: auto;
        min-width: 180px;
    }
    
    .btn-block {
        display: block;
        width: 100%;
    }
    
    .karte {
        padding: 30px;
    }
    
    th, td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
}

/* ============================================================
   DESKTOP GROSS (ab 900px)
   ============================================================ */

@media screen and (min-width: 900px) {
    .header {
        padding: 20px;
    }
    
    .header-inhalt {
        max-width: 900px;
    }
    
    .container {
        max-width: 900px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .karte {
        padding: 35px;
    }
    
    .btn {
        min-width: 200px;
        padding: 15px 25px;
    }
    
    .brief-ansicht {
        padding: 40px;
        font-size: 1rem;
    }
    
    .wasserzeichen {
        font-size: 3rem;
    }
    
    .checkbox-gruppe {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   SEHR GROSSE BILDSCHIRME (ab 1200px)
   ============================================================ */

@media screen and (min-width: 1200px) {
    .header-inhalt {
        max-width: 1100px;
    }
    
    .container {
        max-width: 1100px;
    }
}

/* ============================================================
   DRUCK
   ============================================================ */

@media print {
    .header,
    .footer,
    .no-print,
    .btn,
    .nav-links {
        display: none !important;
    }
    
    body {
        background: white;
        font-size: 12pt;
    }
    
    .karte {
        box-shadow: none;
        padding: 0;
        border: none;
    }
    
    .brief-ansicht {
        border: none;
        padding: 0;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ============================================================
   REDUZIERTE BEWEGUNG (Barrierefreiheit)
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================================
   ALTE BROWSER SUPPORT
   ============================================================ */

/* Flexbox Fallback */
.header-inhalt {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.nav-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

/* Border-radius für alte Browser */
.karte,
.btn,
.formular-input {
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
}

/* Box-shadow für alte Browser */
.karte {
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ============================================================
   SPEZIELLE SEITEN-STYLES
   ============================================================ */

/* FAQ Seite */
.faq-item {
    margin-bottom: 10px;
}

.faq-frage {
    background: #F5F5F5;
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-antwort {
    padding: 15px;
    display: none;
    background: white;
    border: 1px solid #E0E0E0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.faq-antwort.aktiv {
    display: block;
}

/* Kategorie-Auswahl */
.kategorie-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media screen and (min-width: 480px) {
    .kategorie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 768px) {
    .kategorie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Profil-Auswahl */
.profil-liste {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profil-item {
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.profil-item:hover,
.profil-item.aktiv {
    border-color: #1565C0;
}

.profil-item.aktiv {
    background: #E3F2FD;
}

/* Rechnung */
.rechnung-container {
    background: white;
    padding: 20px;
    border: 1px solid #DDD;
}

@media screen and (min-width: 600px) {
    .rechnung-container {
        padding: 40px;
    }
}
