/* -----------------------------------------------------------
   GRUNDLAYOUT
----------------------------------------------------------- */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #222;
    line-height: 1.6;
    padding-top: 170px;
}

h2 {
    color: #2d2767;
    margin-top: 0;
}

/* -----------------------------------------------------------
   HEADER + NAVIGATION
----------------------------------------------------------- */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #f38801;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo */
.center-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-text {
    font-size: 50px;
    font-weight: 800;
    color: #2d2767;
    text-shadow: 0 0 8px rgba(243,136,1,0.4);
    opacity: 0;
    animation: fadeInLogo 1.2s ease-out forwards;
}

@keyframes fadeInLogo {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Navigation */
.nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeInNav 0.8s ease-out forwards;
}

.nav ul li:nth-child(1) a { animation-delay: 0.2s; }
.nav ul li:nth-child(2) a { animation-delay: 0.35s; }
.nav ul li:nth-child(3) a { animation-delay: 0.5s; }
.nav ul li:nth-child(4) a { animation-delay: 0.65s; }

@keyframes fadeInNav {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.nav a:hover {
    color: #2d2767;
    text-shadow: 0 0 6px rgba(255,255,255,0.4);
}

/* -----------------------------------------------------------
   HEADER BUTTONS (TERMIN + WHATSAPP)
----------------------------------------------------------- */

.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.termin-btn,
.whatsapp-header-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.termin-btn {
    background: #2d2767;
    color: white;
    animation: pulseBtn 1.4s ease-in-out infinite;
}

.termin-btn:hover {
    background: #3a3380;
    transform: translateY(-2px);
}

@keyframes pulseBtn {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.whatsapp-header-btn {
    background: #25D366;
    color: white;
}

.whatsapp-header-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

/* -----------------------------------------------------------
   BURGER MENU
----------------------------------------------------------- */

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

/* -----------------------------------------------------------
   DESKTOP FIX – Header wieder korrekt ausrichten
----------------------------------------------------------- */

@media (min-width: 901px) {

    /* Header-Container wieder in einer Reihe */
    .nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
    }

    /* Logo wieder absolut zentriert */
    .center-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    /* Buttons rechts korrekt ausgerichtet */
    .header-buttons {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0;
    }

    /* Logo wieder groß */
    .logo-text {
        font-size: 50px;
    }

    /* Inhalt korrekt unter dem Header starten */
    body {
        padding-top: 210px;
    }
}
/* -----------------------------------------------------------
   MOBILE VERSION
----------------------------------------------------------- */

@media (max-width: 900px) {

    /* Header-Container neu anordnen */
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
    }

    /* Logo normal fließen lassen */
    .center-logo {
        position: static;
        transform: none;
        margin-bottom: 6px;
    }

    /* Logo kleiner */
    .logo-text {
        font-size: 34px;
    }

    /* Buttons direkt unter dem Logo */
    .header-buttons {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 4px;
    }

    /* Burger oben rechts */
    .burger {
        display: flex;
        position: absolute;
        right: 20px;
        top: 18px;
    }

    /* Mobile Navigation */
    .nav {
        position: absolute;
        top: 80px;
        right: 20px;
        background: #2d2767;
        padding: 20px;
        border-radius: 12px;
        display: none;
        box-shadow: 0 4px 18px rgba(0,0,0,0.25);
        z-index: 999;
    }

    .nav.open {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 20px;
    }

    /* Header kompakter */
    .header {
        padding-bottom: 6px;
    }
}

/* -----------------------------------------------------------
   HERO
----------------------------------------------------------- */

.hero {
    height: 360px;
    display: flex;
    flex-direction: column;
}

.hero-top {
    background: #f38801;
    height: 33.33%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.hero-top h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.hero-mid {
    background: white;
    height: 33.33%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mid-text {
    color: #2d2767;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.hero-bottom {
    background: #2d2767;
    height: 33.33%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.hero-bottom-text {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.7;
    text-align: center;
}

/* -----------------------------------------------------------
   BUTTONS GLOBAL
----------------------------------------------------------- */

.btn {
    padding: 14px 28px;
    background: #f38801;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: 0.25s ease;
}

.btn:hover {
    background: #ff9f32;
    transform: translateY(-3px);
}

/* -----------------------------------------------------------
   MAIN + SECTION
----------------------------------------------------------- */

main {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* -----------------------------------------------------------
   GRID / KARTEN
----------------------------------------------------------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.card {
    background: #eef3ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #2d2767;
}

/* -----------------------------------------------------------
   ABLAUF
----------------------------------------------------------- */

.ablauf-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.ablauf-section h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 40px;
    color: #003366;
}

.ablauf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.ablauf-step {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    transition: 0.25s ease;
}

.ablauf-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 18px rgba(243,136,1,0.45);
}

.step-number {
    width: 48px;
    height: 48px;
    background: #f38801;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.ablauf-step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #003366;
}

.ablauf-step p {
    color: #444;
    line-height: 1.5;
}

/* -----------------------------------------------------------
   VIDEO POPUP
----------------------------------------------------------- */

.video-thumbnail {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 20px auto;
    cursor: pointer;
}

.thumb-img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
}

.play-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    border-left: 22px solid #2d2767;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}

.video-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.video-popup-inner {
    position: relative;
    max-width: 800px;
    width: 90%;
}

.video-popup video {
    width: 100%;
    border-radius: 12px;
}

.close-popup {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* -----------------------------------------------------------
   LEISTUNGEN
----------------------------------------------------------- */

.leistungen-section {
    padding: 60px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.leistungs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.leistung {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    transition: 0.25s ease;
}

.leistung:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 18px rgba(243,136,1,0.45);
}

.leistungs-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: brightness(1.05) contrast(1.05);
    transition: 0.25s ease;
}

.leistung:hover .leistungs-img {
    filter: brightness(1.18) contrast(1.15);
}

.leistung h3 {
    font-size: 1.4rem;
    margin: 18px 20px 10px;
    color: #2d2767;
    font-weight: 700;
}

.leistung p {
    margin: 0 20px 20px;
    color: #444;
    line-height: 1.5;
}

/* -----------------------------------------------------------
   PREISE
----------------------------------------------------------- */

#preise {
    background: linear-gradient(to bottom, #ffffff 0%, #f7f7fb 100%);
    padding: 60px 20px;
    border-radius: 14px;
}

/* Überschrift */
.preis-ueberschrift {
    font-size: 64px;
    font-weight: 900;
    color: #2d2767;
    text-align: center;
    margin: 10px 0 10px;
    text-shadow: 0 0 10px rgba(0,0,0,0.15);
    animation: fadeDown 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(-10px);
}

/* Erstkunde-Banner */
.erstkunde-banner-gross {
    background: #f38801;
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    margin: 20px auto 30px;
    max-width: 600px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    animation: fadeDown 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(-10px);
}

@keyframes fadeDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Layout */
.preis-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.preis-spalte.links {
    display: flex;
    justify-content: flex-start;
}

.preis-spalte.rechts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Preisbox */
.preisbox {
    transition: 0.35s ease;
}

.preisbox:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.preis-betrag {
    font-size: 64px;
    font-weight: 900;
    color: #2d2767;
    text-shadow: 0 0 10px rgba(0,0,0,0.15);
    display: block;
    margin-bottom: 5px;
}

.preis-details li {
    margin-bottom: 6px;
    color: #444;
}

/* Rechnerbox */
.rechner-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    border-left: 6px solid #2d2767;
}

.rechner-box input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #dcdcdc;
    margin: 10px 0 15px;
    font-size: 1rem;
}

.rechner-box input:focus {
    border-color: #f38801;
    outline: none;
}

#berechnen-btn {
    width: 100%;
    padding: 12px;
    background: #2d2767;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

#berechnen-btn:hover {
    background: #3a3380;
}

/* Mobile */
@media (max-width: 900px) {
    .preis-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .preis-spalte.links,
    .preis-spalte.rechts {
        justify-content: center;
    }
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */

footer {
    text-align: center;
    padding: 20px;
    background: #2d2767;
    color: white;
    margin-top: 40px;
}

/* -----------------------------------------------------------
   ÜBER MICH – MIT FOTO
----------------------------------------------------------- */

.ueber-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.ueber-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: center;
}

.ueber-foto img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    object-fit: cover;
}

.ueber-text p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Mobile */
@media (max-width: 900px) {
    .ueber-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ueber-foto img {
        max-width: 260px;
        margin: 0 auto;
    }
}

/* -----------------------------------------------------------
   KONTAKT
----------------------------------------------------------- */

.kontakt-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.kontakt-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: center;
}

.kontakt-info p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
}

.kontakt-daten p a {
    color: #2d2767;
    font-weight: 600;
    text-decoration: none;
}

.kontakt-daten p a:hover {
    text-decoration: underline;
}

.kontakt-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.kontakt-bild img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* Mobile */
@media (max-width: 900px) {
    .kontakt-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .kontakt-buttons {
        justify-content: center;
    }

    .kontakt-bild img {
        max-width: 260px;
        margin: 0 auto;
    }
}

/* -----------------------------------------------------------
   KONTAKT – FORMULAR
----------------------------------------------------------- */

.kontakt-formular-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
    max-width: 1100px;
    margin: 40px auto;
}

.kontakt-form label {
    font-weight: 600;
    margin-top: 10px;
    display: block;
    color: #2d2767;
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #dcdcdc;
    margin-bottom: 15px;
    font-size: 1rem;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
    border-color: #f38801;
    outline: none;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.checkbox-container label a {
    color: #2d2767;
    font-weight: 600;
}

.form-status {
    margin-top: 15px;
    font-weight: 700;
    color: #2d2767;
}

.kontakt-bild img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

/* Mobile */
@media (max-width: 900px) {
    .kontakt-formular-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .kontakt-bild img {
        max-width: 260px;
        margin: 0 auto;
    }
}

.datenschutz-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.datenschutz-section h1,
.datenschutz-section h2,
.datenschutz-section h3 {
    color: #2d2767;
}

.datenschutz-section ul {
    margin-left: 20px;
    color: #444;
}

.btn-datenschutz {
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #2d2767;
    color: #2d2767;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.25s ease;
}

.btn-datenschutz:hover {
    background: #2d2767;
    color: #ffffff;
}

.impressum-section,
.agb-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.impressum-section h1,
.agb-section h1,
.impressum-section h2,
.agb-section h2 {
    color: #2d2767;
}

.impressum-section ul,
.agb-section ul {
    margin-left: 20px;
    color: #444;
}