/* Font-Definitionen und Material Icons bleiben erhalten */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/Inter_18pt-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/Inter_18pt-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/Sora-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Material Icons Outlined';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('./fonts/MaterialIconsOutlined-Regular.woff2') format('woff2');
}

.material-icons-outlined {
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

:root {
    font-size: 19px;
    --gray2: rgb(248, 249, 250);
    --hauptfarbe: rgb(0, 120, 174);
    --grau3: rgb(242, 242, 242);
    --grau4: rgb(231, 231, 231);
    --grau5: rgb(127 127 127);
    --weiss: #FFFFFF;
    --border-color: transparent;
}

body {
    background: linear-gradient(135deg, rgb(248 249 250 / 0%) 0%, #f1f1f1 60%, #e9ecef 100%);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding-top: 30px;
    padding-bottom: 20px;
    min-height: 100vh;
    box-sizing: border-box;
    font-size: 0.8rem;
}

body, html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Karten-Styling wie style_v2.css */
.weisseKarte {
    min-width: 300px;
    max-width: 700px;
    width: 100%;
    border-radius: 8px;
    border: none;
    padding: 15px;
    box-sizing: border-box;
    background-color: var(--weiss);
    margin: 5px 0;
}
.weisseKarte.no-top-padding {
    padding-top: 0;
}

/* Überschriften */
h1, h2 {
    font-family: 'Sora', sans-serif;
    color: var(--hauptfarbe);
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

/* Material Icons */
.material-icons-outlined {
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

/* Vorschau-Container */
.fragenVorschau {
    margin-left: 0;
    display: block;
    transition: max-height 0.5s ease-in-out;
    overflow: hidden;
    max-height: 2000px;
    cursor: pointer;
    user-select: none;
    font-size: 0.8rem;
    color: #555;
    background: none;
    padding: 0;
}

.vorschauToggle:not(:checked) + .fragenVorschau {
    max-height: 200px;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.vorschauToggle:checked + .fragenVorschau {
    max-height: 2000px;
    mask-image: none;
    -webkit-mask-image: none;
}

/* Buttons */
.primaryActionBtn, .normButton, .umformulierungsBtn {
    background: var(--hauptfarbe);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 7px 18px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s, color 0.2s;
    min-width: 120px;
    max-height: 50px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.primaryActionBtn:disabled,
.normButton:disabled,
.umformulierungsBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.normButton {
    background: var(--grau3);
    color: var(--hauptfarbe);
    padding: 5px 16px;
    font-size: 0.9rem;
}
.normButton:hover,
.normButton:focus,
.normButton.focused {
    background: var(--hauptfarbe);
    color: #fff;
}
.umformulierungsBtn {
    background: var(--grau3) !important;
    color: #444 !important;
    font-weight: normal !important;
    margin-top: 10px;
}

/* Listen */
ul {
    padding-left: 18px;
    margin: 8px 0;
    font-size: 0.8rem;
}
li {
    margin-bottom: 0.5em;
}

/* Sonstige Texte */
p, .hinweistext, .hinweistext_klein {
    color: #555;
    font-size: 0.8rem;
    margin: 0 0 8px 0;
}
.hinweistext_klein {
    font-size: 0.75rem;
    margin-bottom: 5px;
}

/* Bild-Wrapper */
img {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Footer/Links */
a {
    color: var(--hauptfarbe);
    font-family: 'Sora', 'Inter', Arial, sans-serif;
    font-size: 0.75rem;
    text-decoration: underline;
    transition: color 0.2s;
}
a:hover {
    color: #005b8a;
}

/* Kartenabstand */
.weisseKarte + .weisseKarte {
    margin-top: 18px;
}

/* Statistik-Balken (aus stats.css importieren, falls benötigt) */
/* ...Stats-Balken werden in stats.css gestylt... */

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .weisseKarte {
        min-width: unset;
        max-width: 98vw;
        padding: 10px;
    }
    h1, h2 {
        font-size: 1.05rem;
    }
    img {
        max-width: 98vw;
    }
}

/* Sonstiges */
.hidden { display: none !important; }