@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%;
}

.weisseKarte {
    min-width: 300px;
    max-width: 700px;
    width: 100%;
    /* background-color: var(--weiss); */
    border-radius: 8px;
    border: none;
    padding: 15px;
    /* margin: 5px 0; */
    box-sizing: border-box;
}

.weisseKarte.no-top-padding {
    padding-top: 0;
}

h1 {
    font-family: 'Sora', sans-serif;
    color: var(--hauptfarbe);
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.v2-badge {
    position: absolute;
    top: -4px;
    right: -28px;
    background-color: #ff9800;
    color: white;
    font-size: 0.45rem;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transform: translate(-7px, 2px);
}

#eingabeBereich {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: var(--grau4);
    border-radius: 5px;
    padding: 5px;
}

#sucheContainer {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: stretch;
}

#sendenBtn {
    background-color: var(--hauptfarbe);
    color: white;
    border: none;
    border-radius: 5px;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

#sendenBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#inputFeldSuchanfrage {
    flex: 1;
    width: 100%;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    resize: none;
    outline: none;
    padding: 5px;
    max-height: 80px;
}

.hidden { display: none !important; }

#startScreenContent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

#startScreenIcon {
    width: 120px;
    height: 120px;
    filter: grayscale(1) blur(10px);
    transform: scale(0.8);
    transition: filter 2s ease-out, transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#startScreenIcon.focus-effect {
    filter: grayscale(0) blur(0);
    transform: scale(1);
}

#startScreenSlogan {
    text-align: left;
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    color: var(--hauptfarbe);
    line-height: 1.2;
    filter: grayscale(1);
    transition: filter 2s ease-out;
}

#startScreenSlogan.focus-effect {
    filter: grayscale(0);
}

.slogan-word {
    display: block;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slogan-word.visible {
    opacity: 1;
    transform: translateX(0);
}

.hauptAktionBtn {
    background: var(--hauptfarbe);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 7px 18px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Einheitliches Styling für alle Schließen-Buttons */
.schliessenBtn {
    background: var(--grau3) !important;
    color: #444 !important;
    font-weight: normal !important;
    margin-top: 10px;
}

.gesetzHighlight {
    font-weight: 700;
    color: inherit;
}

.fusszeile-link {
    cursor: pointer;
    color: #888;
    text-decoration: none;
    margin: 0 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0; /* vertikales Spacing oben/unten */
}

.fusszeile-link.hervorgehoben {
    color: #888;
    font-weight: bold;
    background: none;
    background-clip: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    text-decoration: none;
    text-decoration-color: unset;
}

.fusszeile-icon {
    font-size: 16px !important;
    vertical-align: middle;
}

#kontaktFormular input, #kontaktFormular textarea {
    width: 100%;
    margin-bottom: 10px;
    border: none;
    padding: 8px;
    border-radius: 4px;
}

#iconSuchleiste {
    color: var(--grau5);
    font-size: 1.3rem;
    margin-right: 10px;
    user-select: none;
}

#headlineFragezeichen {
    font-size: 1.3rem;
    opacity: 1;
    display: inline-block;
}

#kontaktFormular label { color: #444; font-family: 'Inter', sans-serif; }
#kontaktFormular input, #kontaktFormular textarea { font-size: 0.8rem; box-sizing: border-box; font-family: 'Inter', sans-serif; border: none; background-color: var(--grau3); }

#fusszeile {
    /* margin-top: auto; */
    padding-bottom: 6px;
    padding-top: 20px;
}

#fusszeileLogo {
    padding-top: 0px;
    margin-bottom: 15px;
}

#urlStreifenWrapper > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    align-items: flex-start;
}

/* url-streifen-statusanzeige nebeneinander, Breite nach Inhalt */
.url-streifen-statusanzeige {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 4px 13px;
    color: rgb(0 0 0);
    text-decoration: none;
    font-size: 0.7rem;
    margin: 0;
    /* white-space: nowrap; */
    /* text-overflow: ellipsis;  */
    transition: background-color 0.15s, opacity 0.5s ease-out, transform 0.5s ease-out;
    max-width: 100%;
    opacity: 0;
    transform: translateY(5px);
}

.url-streifen-sichtbar {
    opacity: 1;
    transform: translateY(0);
    font-size: 0.75rem;
}

/* Abstand zwischen den Streifen */
.url-streifen-statusanzeige:not(:last-child) {
    margin-right: 7px;
}

/* Hover bleibt */
.url-streifen-statusanzeige:hover {
    background-color: var(--grau3);
}

@keyframes glanz {
    0%   { background-position: -200% center; }
    100% { background-position: 300% center; }
}

.hidden-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: 6px;
    padding: 2px;
    transition: color 0.4s ease, text-decoration-color 0.4s ease;
    text-decoration: underline dotted transparent;
    background-size: 200% auto;
}

.hidden-link.hidden-link-aktiv {
    color: rgb(255, 152, 0);
    text-decoration: underline dotted rgb(255, 152, 0);
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.75) 50%,
        transparent 65%,
        transparent 100%
    );
    background-size: 200% auto;
    animation: flashOrangeToHauptfarbe 0.8s ease-out forwards, glanz 0.7s ease-out forwards;
}

@keyframes flashOrangeToHauptfarbe {
    0% {
        color: rgb(255, 152, 0);
        text-decoration-color: rgb(255, 152, 0);
    }
    12.5% { /* ca. 100ms bei 0.8s Gesamtdauer */
        color: rgb(255, 152, 0);
        text-decoration-color: rgb(255, 152, 0);
    }
    100% {
        color: var(--hauptfarbe);
        text-decoration-color: var(--hauptfarbe);
    }
}

.hidden-link.link-fertig {
    background-image: none !important;
    color: var(--hauptfarbe);
    text-decoration: underline dotted var(--hauptfarbe);
}

.bl-btn {
    background-color: var(--grau3); /* wie das Eingabefeld */
    border: 1px solid var(--grau4);
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.7rem;
    color: #444; /* gut lesbar auf grau3 */
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.bl-btn:hover {
    background-color: #e4e4e4;
}

.bl-btn.aktiv {
    background-color: var(--hauptfarbe);
    color: white;
    border-color: var(--hauptfarbe);
}

.testfrage-btn {
    width: 100%;
    text-align: left;
    white-space: normal;
    line-height: 1.4;
    padding: 8px 12px;
    transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
    opacity: 1;
    transform: translateY(0);
}

.ki-antwort-inhalt {
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: #fcfcfc;
}



@keyframes antwortHighlightFade {
    0% {
        background-color: #fcfcfcb0;
    }
    100% {
        background-color: transparent;
    }
}

