:root {
    --warm-rot: #c0392b;
    --warm-rot-dunkel: #8f2b20;
    --sanft-beige: #f4e6d1;
    --sanft-beige-dunkel: #e8d2b5;
    --rein-weiss: #ffffff;
    --anthrazit: #2c3e50;
    --text-dunkel: #4a372b;
    --text-braun: #5a4030;
    --border-beige: #d8bea0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--anthrazit);
    background-color: var(--rein-weiss);
    line-height: 1.6;
}

body.navigation-open {
    overflow: hidden;
}

/* =========================
   HEADER / LOGO
   ========================= */

header {
    padding: 24px 20px 18px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(244, 230, 209, 0.94) 100%
        );
    text-align: center;
}

header p {
    margin-bottom: 8px;
    color: #6b2f0b;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
}

header p:last-of-type {
    margin-bottom: 0;
    color: #6b2f0b;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 1rem;
}

.logo {
    display: block;
    width: min(100%, 620px);
    height: auto;
    max-height: 360px;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(80, 52, 35, 0.10));
}

.main-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    width: min(100%, 900px);
    margin: 22px auto 24px;
    padding: 12px 20px;
    border: 1px solid rgba(143, 43, 32, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 5px 14px rgba(80, 52, 35, 0.1);
}

.menu-toggle {
    display: none;
}

.navigation-overlay {
    display: none;
}

.main-navigation a {
    display: inline-block;
    padding: 5px 8px;
    color: var(--text-braun);
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.main-navigation a:hover {
    border-radius: 4px;
    background-color: rgba(192, 57, 43, 0.1);
    color: var(--warm-rot-dunkel);
}

.website-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================
   HERO
   ========================= */

.hero {
    background:
        linear-gradient(
            rgba(240, 232, 220, 0.86),
            rgba(255, 255, 255, 0.97)
        ),
        url("../praxis-hintergrund.jpg") center / cover no-repeat;
    padding: 80px 20px 90px;
    text-align: center;
    border-bottom: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    max-width: 700px;
    margin: 0 auto 14px;
    font-size: clamp(1.3rem, 2.8vw, 1.8rem);
    font-weight: 500;
    line-height: 1.35;
}

.hero-image {
    display: block;
    width: min(100%, 760px);
    height: auto;
    margin: 24px auto 28px;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(80, 52, 35, 0.16);
}

.hero h1:last-child {
    max-width: 900px;
    margin-bottom: 0;
    font-size: clamp(1.5rem, 3.8vw, 2.3rem);
    font-weight: 600;
}

h1 {
    margin-bottom: 20px;
    color: #243548;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
}

h2 {
    margin-bottom: 20px;
    color: #7b473d;
    font-size: clamp(1.7rem, 4vw, 2rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.hero p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.hero-transition {
    padding: 30px 20px;
    background: linear-gradient(
        180deg,
        rgba(244, 230, 209, 0.96) 0%,
        rgba(244, 230, 209, 0.88) 35%,
        rgba(255, 255, 255, 1) 100%
    );
    text-align: center;
    border-top: none;
    border-bottom: none;
    box-shadow: inset 0 20px 30px rgba(255, 255, 255, 0.1);
}

.hero-transition h1 {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.35;
    margin-bottom: 0;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
    color: #233548;
    font-weight: 600;
}

/* =========================
   BUTTONS
   ========================= */

.btn {
    display: inline-block;
    padding: 15px 30px;
    border: 0;
    border-radius: 5px;
    color: var(--rein-weiss);
    background-color: var(--warm-rot);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.btn:hover {
    background-color: var(--warm-rot-dunkel);
    transform: translateY(-2px);
}

.btn:focus-visible,
.menu-toggle:focus-visible,
.submit-btn:focus-visible,
.form-control:focus-visible,
a:focus-visible,
input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(192, 57, 43, 0.35);
    outline-offset: 3px;
}

/* =========================
   WER BIN ICH?
   ========================= */

.person-section {
    padding: 80px 20px;
    background: linear-gradient(
        180deg,
        rgba(244, 230, 209, 0.25) 0%,
        rgba(255, 255, 255, 1) 32%,
        rgba(255, 255, 255, 1) 100%
    );
}

.person-container {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.person-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.person-text {
    text-align: left;
}

.person-text h2 {
    margin-bottom: 18px;
}

.person-name-block {
    margin: 0 0 14px;
}

.person-name-block p {
    margin: 0 0 6px;
    line-height: 1.2;
    font-size: 1.05rem;
}

.person-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--anthrazit);
}

.person-identity-list {
    margin: 0;
    padding-left: 0;
}

.person-identity-list li {
    margin-bottom: 6px;
    padding-left: 18px;
}

.person-identity-list li strong {
    display: inline;
    font-size: 1rem;
}

.person-text p {
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.person-qualifikationen {
    list-style: none;
    margin-bottom: 20px;
}

.person-qualifikationen li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 16px;
}

.person-qualifikationen li::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 0;
    background: #7b473d;
    box-shadow: 0 0 0 3px rgba(123, 71, 61, 0.12);
}

.person-qualifikationen li strong {
    display: block;
    font-size: 1.1rem;
    color: var(--anthrazit);
}

.person-qualifikationen li span {
    display: block;
    font-size: 1rem;
    color: var(--text-braun);
}

.person-note {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-braun);
}

@media (max-width: 768px) {
    .person-section {
        padding: 60px 20px;
    }

    .person-container {
        grid-template-columns: 1fr;
        gap: 35px;
        max-width: 650px;
    }

    .person-photo {
        max-width: 420px;
        margin: 0 auto;
    }

    .person-text {
        text-align: left;
    }

    .person-qualifikationen li {
        padding-left: 18px;
        padding-top: 0;
    }

    .person-qualifikationen li::before {
        top: 0.72em;
    }
}

/* =========================
   ABOUT
   ========================= */

.about {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    text-align: center;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 100%
    );
}

.about h2 {
    max-width: 760px;
    margin: 0 auto 24px;
    color: #734436;
    font-weight: 700;
}

.about p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-braun);
}

/* =========================
   IMPULSE
   ========================= */

.impulse-section {
    padding: 80px 20px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(244, 230, 209, 0.86) 18%,
        rgba(244, 230, 209, 1) 100%
    );
    text-align: center;
}

.impulse-intro {
    max-width: 800px;
    margin: 0 auto 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.rechtlicher-hinweis {
    max-width: 1100px;
    margin: 34px auto 0;
    font-size: 0.9rem;
}

.kachel {
    position: relative;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background-color: transparent;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
    text-align: left;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
    cursor: pointer;
    perspective: 1000px;
    min-height: 320px;
}

.kachel::after {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 2;
    color: var(--warm-rot-dunkel);
    content: "↻";
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.kachel:hover {
    border-color: var(--warm-rot);
    box-shadow: 0 10px 20px rgba(192, 57, 43, 0.1);
    transform: translateY(-5px);
}

.kachel:hover::after,
.kachel:focus-visible::after {
    opacity: 1;
    transform: rotate(45deg);
}

.kachel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 230px;
    transform-style: preserve-3d;
    transition: transform 0.7s ease;
}

.kachel.gedreht .kachel-inner {
    transform: rotateY(180deg);
}

.kachel-vorderseite,
.kachel-rueckseite {
    position: absolute;
    inset: 0;
    padding: 40px 30px;
    border-radius: 8px;
    background-color: var(--rein-weiss);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.kachel-vorderseite {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

/* Logo oberhalb des Textes auf der Vorderseite */
.impuls-logo {
    display: block;
    width: 110px;
    height: 110px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
}

.kachel-vorderseite h3 {
    margin: 0;
    text-align: center;
    line-height: 1.35;
}

.impuls-nummer {
    display: block;
    margin-bottom: 6px;
    color: var(--warm-rot-dunkel);
    font-weight: 700;
}

.impuls-name {
    display: block;
    color: var(--anthrazit);
    font-weight: 500;
}

.kachel-rueckseite {
    transform: rotateY(180deg);
    overflow-y: auto;
}

.kachel h3 {
    margin-bottom: 15px;
    color: var(--warm-rot-dunkel);
    font-size: 1.3rem;
    line-height: 1.35;
}

/* =========================
   KONTAKT
   ========================= */

.contact-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.contact-intro {
    margin-bottom: 30px;
}

.phone-contact {
    margin: -10px 0 30px;
    color: var(--text-braun);
    font-weight: 600;
}

.phone-contact a {
    display: inline-block;
    margin-left: 6px;
    color: var(--warm-rot-dunkel);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--anthrazit);
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #767676;
    border-radius: 4px;
    background-color: var(--rein-weiss);
    color: var(--anthrazit);
    font: inherit;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus {
    border-color: var(--warm-rot);
}

.checkbox-container {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
}

.checkbox-container input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--warm-rot);
    cursor: pointer;
}

.checkbox-container a {
    color: var(--warm-rot-dunkel);
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    padding: 15px 30px;
    border: 0;
    border-radius: 5px;
    color: var(--rein-weiss);
    background-color: var(--warm-rot);
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--warm-rot-dunkel);
}

.success-message {
    padding: 40px;
    border: 2px solid var(--warm-rot);
    border-radius: 8px;
    background-color: var(--sanft-beige);
    text-align: center;
}

.success-message h2 {
    margin-bottom: 20px;
}

.success-message p:first-of-type {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* =========================
   FOOTER
   ========================= */

footer {
    margin-top: 60px;
    padding: 35px 20px;
    background-color: var(--sanft-beige);
    color: var(--text-dunkel);
    border-top: 1px solid var(--border-beige);
    font-size: 0.9rem;
    text-align: center;
}

footer p {
    color: var(--text-dunkel);
}

.footer-links {
    margin-top: 15px;
}

footer a {
    display: inline-block;
    margin: 0 10px;
    color: var(--text-braun);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--warm-rot-dunkel);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
    header {
        padding: 16px 15px 10px;
    }

    .logo {
        width: min(100%, 500px);
        max-height: 260px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 1002;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(143, 43, 32, 0.28);
        border-radius: 8px;
        color: var(--text-braun);
        background-color: rgba(255, 255, 255, 0.82);
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .menu-toggle-icon {
        font-size: 1.25rem;
        line-height: 1;
    }

    .menu-toggle > span:not(.menu-toggle-icon) {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .main-navigation {
        position: fixed;
        z-index: 1000;
        top: 0;
        bottom: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: min(82vw, 320px);
        height: 100vh;
        margin: 0;
        padding: 92px 22px 28px;
        border: 0;
        border-radius: 0 12px 12px 0;
        background: var(--rein-weiss);
        box-shadow: 8px 0 28px rgba(80, 52, 35, 0.18);
        transform: translateX(-105%);
        transition: transform 0.3s ease;
    }

    .main-navigation.is-open {
        transform: translateX(0);
    }

    .navigation-overlay {
        position: fixed;
        z-index: 999;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(44, 62, 80, 0.34);
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .navigation-overlay.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .main-navigation a {
        display: block;
        border-radius: 6px;
        font-size: 0.95rem;
        padding: 13px 12px;
    }

    .hero {
        padding: 48px 18px 58px;
        background:
            linear-gradient(
                rgba(250, 243, 235, 0.92),
                rgba(255, 255, 255, 0.98)
            ),
            url("../praxis-hintergrund.jpg") center / cover no-repeat;
    }

    .hero-transition {
        padding: 22px 18px;
    }

    h2 {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .about,
    .impulse-section,
    .contact-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .kachel {
        padding: 0;
        min-height: 260px;
    }

    .kachel-vorderseite,
    .kachel-rueckseite {
        padding: 24px 18px;
    }

    .impuls-logo {
        width: 86px;
        height: 86px;
    }

    .person-qualifikationen li {
        margin-bottom: 14px;
    }

    .person-qualifikationen li strong,
    .person-qualifikationen li span {
        line-height: 1.45;
    }

    footer {
        margin-top: 40px;
        padding: 30px 20px;
    }

    footer a {
        margin: 5px 8px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 100%;
        max-height: 220px;
    }

    .main-navigation {
        gap: 6px 12px;
    }

    .main-navigation a {
        font-size: 0.9rem;
    }

    .hero {
        padding: 42px 16px 52px;
    }

    h1 {
        font-size: clamp(1.7rem, 8vw, 2.1rem);
    }

    .hero p {
        font-size: 1.05rem;
    }

    .btn {
        width: 100%;
        max-width: 340px;
    }
}

/* =========================
   REDUZIERTE BEWEGUNG
   ========================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}