/* -------------------------------------------------- */
/* Grundlayout */
/* -------------------------------------------------- */

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    line-height: 1.7;
    background: #faf7f2;
    color: #4a3b2a;
}

/* -------------------------------------------------- */
/* Header */
/* -------------------------------------------------- */

.header {
    background-image: url("blume_hell.jpg");
    background-size: cover;
    background-position: center;
    padding: 3rem 1.5rem; /* Desktop */
    text-align: center;
    border-bottom: 1px solid #e6dcd2;
    position: relative;
    color: #2a1c12;
}

.header-inner {
    padding-right: 3.5rem; /* Desktop-Luft rechts */
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 400;
    color: #2a1c12;
}

.subtitle {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: #2a1c12;
}

.header a {
    color: #2a1c12;
    text-decoration: underline;
}

/* Burger-Menü – Desktop */
.menu-toggle {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 1.8rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #2a1c12;
}

/* -------------------------------------------------- */
/* Navigation */
/* -------------------------------------------------- */

.nav {
    display: none;
    background: #faf7f2;
    border-bottom: 1px solid #e6dcd2;
}

.nav.open {
    display: block;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 1rem;
}

.nav li {
    margin: 0.8rem 0;
}

.nav a {
    text-decoration: none;
    color: #7a5f43;
    font-weight: 500;
}

.nav a:hover,
.nav a.active {
    color: #4a3b2a;
}

/* -------------------------------------------------- */
/* Inhalt */
/* -------------------------------------------------- */

.content {
    max-width: 900px;
    margin: auto;
    padding: 2rem 1.5rem;
}

h2 {
    font-weight: 500;
    margin-top: 2rem;
    color: #4a3b2a;
}

/* -------------------------------------------------- */
/* Hinweisbox */
/* -------------------------------------------------- */

.notice {
    background: #fff9e5;
    border-left: 4px solid #d8b25a;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    color: #4a3b2a;
}

/* -------------------------------------------------- */
/* Fotos */
/* -------------------------------------------------- */

.intro-photo {
    text-align: center;
    margin-top: 1.5rem;
}

.portrait {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
}

/* Desktop-Foto rechts */
.praxis-flex {
    display: block;
}

.praxis-photo-desktop {
    display: none;
}

/* -------------------------------------------------- */
/* Desktop Layout */
/* -------------------------------------------------- */

@media (min-width: 800px) {

    .menu-toggle {
        display: none;
    }

    .nav {
        display: block;
    }

    .nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1.2rem;
        padding: 1rem 2rem;
    }

    .nav li {
        margin: 0;
    }

    .header h1 {
        font-size: 2.4rem;
    }

    .intro-photo {
        display: none;
    }

    .praxis-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }

    .praxis-photo-desktop {
        display: block;
        flex: 0 0 200px;
        text-align: right;
    }

    .praxis-photo-desktop .portrait {
        width: 180px;
        height: 180px;
        object-fit: cover;
        border-radius: 50%;
    }
}

/* -------------------------------------------------- */
/* Footer */
/* -------------------------------------------------- */

.footer {
    background-image: url("blume_hell.jpg");
    background-size: cover;
    background-position: center;
    color: #2a1c12;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

.footer a {
    color: #2a1c12;
    text-decoration: underline;
}

/* -------------------------------------------------- */
/* Klickbare Überschriften */
/* -------------------------------------------------- */

.content h3 a {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.content h3 a::after {
    content: " →";
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

@media (hover: hover) {
    .content h3 a:hover {
        color: #7a5f43;
        transform: scale(1.03);
    }

    .content h3 a:hover::after {
        opacity: 0.8;
    }
}

@media (hover: none) {
    .content h3 a:active {
        color: #7a5f43;
        transform: scale(1.03);
    }

    .content h3 a:active::after {
        opacity: 0.8;
    }
}

/* -------------------------------------------------- */
/* Backlink */
/* -------------------------------------------------- */

.backlink {
    text-decoration: underline;
    color: #7a5f43;
    font-weight: 500;
    transition: color 0.2s ease;
}

.backlink:hover {
    color: #4a3b2a;
}

/* -------------------------------------------------- */
/* Listen */
/* -------------------------------------------------- */

.content ul {
    margin-left: 1.2rem;
    padding-left: 0;
}

.content li {
    margin-bottom: 0.4rem;
}

/* -------------------------------------------------- */
/* Scrollbar immer reservieren */
/* -------------------------------------------------- */

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

/* -------------------------------------------------- */
/* Mobile: kompakter Header + Menü oben zentriert */
/* -------------------------------------------------- */

@media (max-width: 799px) {

    /* Header oben & unten kompakter */
    .header {
        padding: 1.35rem 1.2rem; /* vorher 2rem → jetzt ~1/3 weniger */
    }

    .header-inner {
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Menü kompakt + oben + iPhone-optimiert */
    .menu-toggle {
        position: relative;
        right: auto;
        top: auto;
        order: -1;              /* Menü über dem Titel */
        margin-top: 0.15rem;    /* sehr wenig Abstand nach oben */
        margin-bottom: 0.25rem; /* wenig Abstand zum Titel */
        font-size: 2.0rem;      /* iPhone-optimiert */
        line-height: 1;
        padding: 0.2rem 0.4rem; /* größere Touchfläche */
    }

    /* Titel näher ans Menü */
    .header h1 {
        margin-top: 0.15rem;
    }

    /* Subtitle ebenfalls kompakter */
    .subtitle {
        margin-top: 0.25rem;
    }
}
