/* === Base === */
body {
    scroll-behavior: auto;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    background: #fff;
}

/* === Header / Nav === */
header {
    position: sticky;
    top: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.5) 80%,
            rgba(0, 0, 0, 0.0) 100%);
    padding: 1rem;
    z-index: 1000;
    transition: background 0.3s ease-in-out;
}

nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

nav a {
    color: white;
    margin-right: 1rem;
    text-decoration: none;
    font-weight: 500;
}

/* === Sections (Default) === */
section {
    min-height: 100vh;
    padding: 4rem 2rem;
    scroll-margin-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* === HERO / Welcome (#start) — HELLER LOOK === */
#start {
    position: relative;
    min-height: 88vh;
    /* genug Höhe für Hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* Heller Hintergrund: Bild + leichte weiße Overlay-Schicht */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
        url("public/hero-tools.png");
    /* <- dein Bild */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Parallax-Feeling auf Desktop */
    background-attachment: fixed;

    color: #111;
}

.parallax-content {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: saturate(150%) blur(2px);
    backdrop-filter: saturate(150%) blur(2px);
    color: #111;
    padding: 2rem 2.5rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 90vw;
    margin: 0 auto;
    text-align: center;
}

#start h1 {
    margin: 0 0 0.4rem 0;
}

#start p {
    margin: 0;
    font-weight: 500;
}

/* === Leistungen === */
#leistungen {
    background: #512da8;
    color: #f7f9fc;
    text-align: center;
    padding: clamp(3rem, 5vw, 5rem) 1rem;
}

#leistungen h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin: 0 0 1.25rem;
}

#leistungen h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: .8rem auto 0;
    background: #34d399;
    border-radius: 2px;
}

/* Grid */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: clamp(1rem, 2.2vw, 2rem) clamp(1rem, 3vw, 3.5rem);
    max-width: 1100px;
    margin: 2rem auto 0;
}

/* Items */
.leistung {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    text-align: center;
}

.leistung .badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(120% 120% at 30% 30%, #44e0b8 0 40%, #26c39a 40% 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18), inset 0 0 0 3px rgba(255, 255, 255, .18);
    translate: 0 0;
}

.leistung .badge span {
    font-size: 1.35rem;
}

.leistung p {
    margin: 0;
    max-width: 36ch;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.55;
    color: #eef3fb;
}

.leistung:hover .badge {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22), inset 0 0 0 3px rgba(255, 255, 255, .22);
    transition: transform .15s ease, box-shadow .15s ease;
}

/* === Über uns === */
#ueber-uns {
    background: #f0f0f0;
    color: #333;
    padding: 3rem;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
}

.about-image {
    width: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.about-text {
    max-width: 600px;
}

/* === Kontakt === */
#kontakt {
    background: #f9f9f9;
    color: #111;
    padding: clamp(3rem, 6vw, 5rem) 1rem;
    text-align: center;
}

#kontakt h1 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    margin-bottom: 2rem;
    position: relative;
}

#kontakt h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #34d399;
    /* Akzentgrün */
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.kontakt-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.kontakt-info p {
    margin: 0.3rem 0;
    line-height: 1.6;
}

.kontakt-info a {
    color: #34d399;
    text-decoration: none;
}

.kontakt-info a:hover {
    text-decoration: underline;
}

.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kontakt-form input,
.kontakt-form textarea {
    padding: 0.85rem 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    width: 100%;
}

.kontakt-form button {
    background: #512da8;
    /* dein Violett */
    color: #fff;
    border: none;
    padding: 0.9rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.kontakt-form button:hover {
    background: #341d74;
}

/* === Impressum / Datenschutz === */
/* Impressum: nicht vertikal mittig, linksbündig und normale Sektion-Höhe */
/* Impressum & Datenschutz: nicht vertikal mittig, linksbündig, normale Höhe */
/* Sprungziel-Korrektur für die beiden "Textseiten" */
#impressum,
#datenschutz {
    scroll-margin-top: 120px;
    /* Header + Gradient-Reserve */
}

/* Datenschutz: linksbündig, mehr Höhe & Luft */
#datenschutz {
    background: #F3FBF7;
    /* sanftes Mint, gut zu deinem Grün */
    color: #333;
    display: block;
    /* hebt section{display:flex} auf */
    text-align: left;
    padding: 4rem 2rem 6rem;
    /* oben+unten mehr Abstand */
    min-height: calc(80vh + 100px);
    /* spürbar länger */
}

/* Lesbarkeit: Breite begrenzen und zentrieren */
#datenschutz>* {
    max-width: 720px;
    margin-inline: auto;
}

/* Wenn du die Überschrift zentriert willst: */
#datenschutz h1 {
    text-align: center;
}

/* Impressum gleiches Layout, nur andere Farbe (optional) */
#impressum {
    background: #F5F3FF;
    /* sanftes Lavendel */
    display: block;
    text-align: left;
    padding: 4rem 2rem 6rem;
    min-height: auto;
    /* hier normale Höhe belassen */
}

#impressum>* {
    max-width: 720px;
    margin-inline: auto;
}

#impressum h1 {
    text-align: center;
}

/* === Footer === */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 1rem;
}

footer a {
    color: #ccc;
    text-decoration: underline;
    margin: 0 0.5rem;
}

/* === Responsive Breakpoints === */

@media (max-width: 768px) {

    /* Vollflächiges Dropdown */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        flex-direction: column;
        padding-top: 5rem;
        /* Platz für den Toggle */
        z-index: 1001;
        background: transparent;
        /* Basis: kein BG */
    }

    .nav-links.open {
        display: flex;
        padding-left: 1.5rem;
        /* derselbe Gradient wie dein Header */
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.9) 0%,
                rgba(0, 0, 0, 0.5) 80%,
                rgba(0, 0, 0, 0.0) 100%);
    }

    /* Header-Gradient aus, wenn Menü offen */
    header.no-gradient {
        background: none !important;
    }

    /* Toggle sichtbar und über dem Menü */
    .nav-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }
}




/* Leistungen Grid */
@media (max-width: 980px) {
    .leistungen-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 560px) {
    .leistungen-grid {
        grid-template-columns: 1fr;
    }
}

/* Kontakt Grid */
@media (max-width: 768px) {
    .kontakt-container {
        grid-template-columns: 1fr;
    }
}

/* Hero: Mobile-Override (GANZ am Ende lassen) */
@media (max-width: 768px) {
    #start {
        background-attachment: scroll;
        /* bessere Performance mobil */
        min-height: 70vh;
    }
}

/* === Schriftgrößen-Anpassung === */
:root {
    --fs-base: 18px;
    /* Basis-Schriftgröße */
    --fs-h1: clamp(2.2rem, 4vw, 3.2rem);
    --fs-h2: clamp(1.6rem, 3vw, 2rem);
    --fs-p: clamp(1.05rem, 1.4vw, 1.25rem);
}

body {
    font-size: var(--fs-base);
    line-height: 1.7;
}

h1,
h2,
h3 {
    line-height: 1.3;
    letter-spacing: -0.02em;
}

section h1 {
    font-size: var(--fs-h1);
}

section p,
.about-text p,
.kontakt-info p,
.kontakt-form input,
.kontakt-form textarea,
.kontakt-form button {
    font-size: var(--fs-p);
}

/* Navigation etwas größer */
nav a {
    font-size: 1.05rem;
    font-weight: 600;
}

/* Hero-Text (Startbereich) größer und stärker */
#start h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
}

#start p {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 500;
}

/* Leistungen-Text */
.leistung p {
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    line-height: 1.6;
}

/* Footer besser lesbar */
footer {
    font-size: 1.05rem;
}