: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;
}

/* =========================
   HEADER / LOGO
   ========================= */

header {
    padding: 24px 20px 18px;
    background-color: var(--rein-weiss);
    text-align: center;
}

.logo {
    display: block;
    width: min(100%, 620px);
    height: auto;
    max-height: 360px;
    margin: 0 auto;
    object-fit: contain;
}

.main-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin: 18px auto 20px;
}

.main-navigation a {
    color: var(--text-braun);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--warm-rot-dunkel);
}

.website-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================
   HERO
   ========================= */

.hero {
    background:
        linear-gradient(
            rgba(244, 240, 234, 0.85),
            rgba(255, 255, 255, 0.95)
        ),
        url("../praxis-hintergrund.jpg") center / cover no-repeat;
    padding: 80px 20px 90px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    margin-bottom: 20px;
    color: var(--anthrazit);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
}

h2 {
    margin-bottom: 20px;
    color: var(--warm-rot-dunkel);
    font-size: clamp(1.7rem, 4vw, 2rem);
    line-height: 1.3;
}

.hero p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.hero-transition {
    padding: 30px 20px;
    background-color: var(--sanft-beige);
    text-align: center;
}

.hero-transition h1 {
    margin-bottom: 0;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

/* =========================
   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,
.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-color: var(--rein-weiss);
}

.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: 25px;
}

.person-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.person-qualifikationen {
    list-style: none;
    margin-bottom: 20px;
}

.person-qualifikationen li {
    padding-left: 18px;
    margin-bottom: 16px;
    border-left: 3px solid var(--warm-rot);
}

.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: center;
    }

    .person-qualifikationen li {
        border-left: none;
        border-top: 3px solid var(--warm-rot);
        padding-left: 0;
        padding-top: 8px;
    }
}

/* =========================
   ABOUT
   ========================= */

.about {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.about p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* =========================
   IMPULSE
   ========================= */

.impulse-section {
    padding: 80px 20px;
    background-color: var(--sanft-beige);
    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;
}

.kachel {
    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:hover {
    border-color: var(--warm-rot);
    box-shadow: 0 10px 20px rgba(192, 57, 43, 0.1);
    transform: translateY(-5px);
}

.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;
}

.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: 18px 15px 12px;
    }

    .logo {
        width: min(100%, 500px);
        max-height: 300px;
    }

    .main-navigation {
        gap: 8px 18px;
        margin-top: 14px;
    }

    .hero {
        padding: 60px 20px 70px;
    }

    .about,
    .impulse-section,
    .contact-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .kachel {
        padding: 30px 24px;
    }

    footer {
        margin-top: 40px;
        padding: 30px 20px;
    }

    footer a {
        margin: 5px 8px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 100%;
        max-height: 250px;
    }

    .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;
    }
}