/* =========================================
   KI in der Altenpflege – Stylesheet
   ========================================= */

/* ----- Fonts ----- */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ----- Global Styles ----- */
:root {
    --dark: #28282A;
    --dark-grey: #505050;
    --light-grey: #D3D3D3;
    --light: #FCFCFC;
    --light-beige: #F9F6F2;
    --deep-turquiose: #0D8282;
    --light-turquiose: #52cdcd;

        /* ----- Buttons ----- */
    --fab-size:   50px;
    --fab-gap:    12px;
    --fab-offset: 20px;  
}

/* ----- Base ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

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

a {
    color: var(--dark);
    text-decoration: underline;
    text-decoration-color: var(--light-gray);
    text-underline-offset: 0.25rem;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
    color: var(--deep-turquiose);
    text-decoration-color: var(--deep-turquiose);
}

a:focus-visible {
    outline: 0.125rem solid var(--deep-turquiose);
    outline-offset: 0.25rem;
    border-radius: 0.25rem;
    color: var(--deep-turquiose);
}

/* ----- Layout ----- */
.site-main {
    min-height: 60vh;
}

/* ----- Fonts/Desktop ----- */

/* ----- Typografie (mobile first) ----- */

body {
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

h1 {
    font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.125rem, 1.1rem + 0.4vw, 1.5rem);
    color: var(--deep-turquiose);
    font-weight: 700;
}

h4 {
    font-size: 1em;
    font-weight: 700;
}

.roadmap-number {
    font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
    font-weight: 700;
}

.heading {
    font-size: 1.25rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 500;
}

.quote {
    font-size: 1.25rem;
    font-style: italic;
    text-align: center;
    color: var(--dark-grey);
}

.menu,
.button {
    font-size: 1.125rem;
    font-weight: 500;
}

.textlink,
.archiv-textblock {
    font-size: 1.125rem;
    font-weight: 400;
}

.detail {
    font-size: 1rem;
    font-weight: 400;
}

.tbd_textlink {
    font-size: 0.75rem;
    font-weight: 400;
}

.roadmap-number {
    font-size: 2.5rem;
    font-style: bold;
    font-weight: 700;
}

.archiv-textblock {
    font-size: 1.5rem;
    font-style: medium;
    font-weight: 400;
}

.textlink {
    font-size: 1.25rem;
    font-weight: 400;
} 

.site-header {
    position: fixed;
    top: 5px;
    left: 0;
    right: 0;
    z-index: 100;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--deep-turquiose);
    border: 1px solid var(--light);
    border-radius: 32px;
    box-shadow: 0 0 4px var(--deep-turquiose);
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 70px;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    text-decoration: none;
}

.site-header__logo img {
    max-height: 60px;
    width: auto;
}

.site-header__title {
    margin: 0;
    color: var(--light);
}

hamburger-menu {
    display: contents;
}

/* ----- Burger (mobil sichtbar) ----- */
.site-header__burger-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--light);
}

.site-header__burger-menu svg rect {
    fill: currentColor;
}

.site-header__extra-content {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px 0 14px;
    font-size: small;
}


hamburger-menu.is-hidden .site-header__extra-content {
    display: none;
}

.site-header__links {
    display: flex;
    flex-direction: column;
}

/* Navigation vertikal */
.site-header__nav .nav-menu,
.site-header__nav .nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__nav .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.site-header__nav .nav-menu li {
    position: relative;
}

.site-header__nav .nav-menu a {
    display: block;
    padding: 10px 12px;
    color: var(--light);
    text-decoration: none;
}

/* Untermenüs mobil: ausgeklappt und eingerückt */
.nav-menu .sub-menu {
    list-style: none;
    padding-left: 16px;
}

.nav-menu .sub-menu li a {
    padding: 8px 12px;
}

.nav-menu .sub-menu li a:hover {
    background-color: var(--light-turquiose);
    border-radius: 8px;
}

/* Sprachauswahl */
.site-header__sprachauswahl {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: fit-content;
    gap: 8px;
    color: var(--light);
}

/* ----- Desktop (ab 1100px): horizontal ----- */
@media (min-width: 54em) {
    .site-header {
        height: 80px;
        padding: 0 24px;
    }

    .site-header__inner {
        flex-wrap: nowrap;
        min-height: 0;
        height: 100%;
        gap: 40px;
    }

    .site-header__burger-menu {
        display: none;
    }

    .site-header__extra-content,
    hamburger-menu.is-hidden .site-header__extra-content {
        display: flex;
        flex-basis: auto;
        flex-direction: row;
        align-items: center;
        gap: 40px;
        padding: 0;
    }

    .site-header__links {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .site-header__nav .nav-menu {
        flex-direction: row;
        align-items: center;
        gap: clamp(1rem, 0.8vw, 1.5rem);
    }

    .site-header__nav .nav-menu a {
        padding: 0;
        white-space: nowrap;
        font-size: clamp(0.95rem, 1vw + 0.2rem, 1.15rem);
    }

    .site-header__links .menu-item-has-children > a::after {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        margin-left: 6px;
        margin-bottom: 2px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        transition: transform 0.2s ease;
    }

    .site-header__links .menu-item-has-children:hover > a::after,
    .site-header__links .menu-item-has-children:focus-within > a::after {
        transform: rotate(-135deg) translateY(-2px);
    }

    /* Untermenüs als Hover-Dropdown */
    .nav-menu .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 8px 0;
        background-color: var(--deep-turquiose);
        border: 1px solid var(--light);
        border-radius: 8px;
    }

    .nav-menu .sub-menu li a {
        display: block;
        padding: 8px 16px;
        white-space: nowrap;
    }

    .nav-menu .menu-item-has-children:hover .sub-menu,
    .nav-menu .menu-item-has-children:focus-within .sub-menu {
        display: block;
    }
}



/* ----- Footer ----- */
.site-footer {
    padding: 2rem;
    border-top: 1px solid var(--light);
    margin-top: 4rem;
    background-color: var(--deep-turquiose);
    border-radius: 32px 32px 0 0;
}

.site-footer__inner {
    max-width: 80rem;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--light);
}

.site-footer .footer-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.site-footer .footer-menu a {
    text-decoration: none;
    color: var(--light);
}

.site-footer__social {
    display: flex;
    flex-direction: column;
}


.site-footer__social a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--light);
}

.site-footer__social a:hover {
    color: var(--light-turquiose);
}


.site-footer__copyright {
    font-size: 0.875rem;
}

.site-footer__care-ai-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    height: auto;
}

.site-footer img {
    width: auto;
    height: auto;
}

.site-container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0;
    gap: 40px;
}

.step-nav[data-step="1"] .step-nav__button { background:#ffffff; border-color:#0c8383; }
.step-nav[data-step="2"] .step-nav__button { background:#ffffff; border-color:#e08123; }
.step-nav[data-step="3"] .step-nav__button { background:#ffffff; border-color:#f3ae1b; }
.step-nav[data-step="4"] .step-nav__button { background:#ffffff; border-color:#8f1414; }
.step-nav[data-step="5"] .step-nav__button { background:#ffffff;    border-color:#039; }
.step-nav[data-step="6"] .step-nav__button { background:#ffffff;    border-color:#9747ff; }
.step-nav[data-step="7"] .step-nav__button { background:#ffffff; border-color:#ff53e0; }

.step-nav__button        { color:#fff; }

.step-nav__button {
    border-width: 10px;
}

.step-nav__button:hover  { filter: brightness(0.9); }


html { scroll-behavior: smooth; }
.site-container h2 { scroll-margin-top: 6rem; }