/* ---------------------------------------------------
   Farben & Schriften
--------------------------------------------------- */
:root {
    --accent: #0b2345;
    --accent-soft: #e6ecf5;
    --text-main: #1b1b1b;
    --text-muted: #666;
    --border: #e2e2e2;
    --bg-alt: #f7f7f7;

    /* FIX: fehlende Variable */
    --shadow-medium: 0 4px 14px rgba(0, 0, 0, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ---------------------------------------------------
   Grundlayout
--------------------------------------------------- */
html,
body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    color: var(--text-main);
    background: #ffffff;
}

body {
    padding-top: 80px;
}

/* ---------------------------------------------------
   Navigation
--------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 28px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-link:hover .nav-logo {
    opacity: 0.7;
    transform: translateY(-1px);
    transition: 0.2s ease;
}

.nav-logo {
    width: 38px;
    height: 38px;
}

.nav-title {
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}

.nav-right {
    display: flex;
    gap: 20px;
}

.nav-right a {
    text-decoration: none;
    color: var(--accent);
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.nav-right a:hover {
    opacity: 0.6;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* ---------------------------------------------------
   Sektionen
--------------------------------------------------- */
.section {
    padding: 60px 20px;
}

.section-alt {
    background: var(--bg-alt);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-inner.narrow {
    max-width: 800px;
}

.section h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.9rem;
    margin-bottom: 18px;
    color: var(--accent);
}

.section-intro {
    max-width: 650px;
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* ---------------------------------------------------
   HERO – SLIDER
--------------------------------------------------- */

.hero {
    position: relative;
}

.hero-slider {
    position: relative;
    height: 540px;
    overflow: hidden;
}

.hero-slider .slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* FIX: doppelte Regeln zusammengeführt */
.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.2s ease;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 18px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 20;
}

.slider-dots .dot {
    width: 11px;
    height: 11px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.slider-dots .dot.active {
    background: #ffffff;
    transform: scale(1.25);
}

/* Text weiß bei Slide 2 */
.slides.slide-2-active ~ .hero-inner .hero-text h1,
.slides.slide-2-active ~ .hero-inner .hero-text p {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------
   HERO INNER
--------------------------------------------------- */
.hero-inner {
    position: absolute;
    inset: 0;
    z-index: 5;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 10px;
}

.hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.hero-box {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.hero-box h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--accent);
}

.hero-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-box li {
    margin-bottom: 5px;
    color: var(--text-muted);
}

.hero-cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
    background: #003f9e;
    transform: translateY(-2px);
}

/* ---------------------------------------------------
   LEISTUNGEN
--------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.card h3 {
    font-family: "Playfair Display", serif;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--accent);
}

.card p {
    margin: 0;
    color: var(--text-muted);
}

/* ---------------------------------------------------
   ÜBER MICH
--------------------------------------------------- */
.portrait-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.portrait-wrapper {
    flex: 0 0 340px;
}

.portrait-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.portrait-text {
    flex: 1;
}

.portrait-text h2 {
    margin-top: 0;
}

/* ---------------------------------------------------
   KONTAKT
--------------------------------------------------- */
.contact-box {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.contact-separator {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

/* FIX: Kontakt-Icons */
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.contact-icon svg {
    width: 14px;
    height: 14px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
}

/* Kontaktformular */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 80, 200, 0.15);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #003f9e;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */
.footer {
    padding: 18px;
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------
   ANIMATIONEN
--------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------
   RESPONSIVE
--------------------------------------------------- */
@media (max-width: 900px) {

    /* Navigation */
    .nav-right {
        position: absolute;
        top: 65px;
        right: 20px;
        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;

        width: max-content;
        max-width: 80vw;
    }

    .nav-right.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .hamburger {
        display: flex;
    }

    /* HERO – Slider */
    .hero-slider {
        height: 480px;
        overflow: hidden;
        position: relative;
    }

    .hero-slider .slide {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.15);
    }

    /* HERO – Inhalt */
    .hero-inner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;

        padding: 20px;
        gap: 22px;
    }

    .hero-text {
        width: 100%;
        max-width: 500px;
        color: #0b2345;
    }

    /* Schwerpunkte-Box auf Mobile ausblenden */
    .hero-box {
        display: none;
    }

    .hero-side {
        width: 100%;
        max-width: 320px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .hero-cta {
        width: 100%;
        max-width: 320px;
        text-align: center;
        display: block;
    }

    /* Slider Dots */
    .slider-dots .dot {
        width: 8px;
        height: 8px;
    }

    /* ÜBER MICH */
    .portrait-layout {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .portrait-wrapper {
        max-width: 320px;
        width: 100%;
    }

    /* LEISTUNGEN */
    .cards {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------
   Floating Buttons
--------------------------------------------------- */
.call-btn,
.scroll-top {
    position: fixed;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 999;
}

.call-btn:hover,
.scroll-top:hover {
    transform: scale(1.1);
}

.call-btn {
    bottom: 24px;
    right: 24px;
}

.scroll-top {
    bottom: 92px;
    right: 24px;
    opacity: 0;
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.call-btn svg {
    width: 26px;
    height: 26px;
    stroke: #ffffff;
    animation: blink 1.2s infinite ease-in-out;
}

@keyframes blink {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.4; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}