/* =============================================================================
   Peregud Website - site.css (FINAL v1.1 + About Spacing Patch)
   ============================================================================= */

/* =============================================================================
   1) Design Tokens / Theme Variablen
   ============================================================================= */
:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #4b5563;
    --line: #e5e7eb;
    --brand: #1f9d55;
    --brand-dark: #148243;
    --brand-soft: rgba(31, 157, 85, 0.12);
    --header-bg: rgba(255, 255, 255, 0.92);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1100px;
}

/* =============================================================================
   2) Minimal Reset & Base Styles
   ============================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
    line-height: 1.55;
}

/* =============================================================================
   3) Helpers
   ============================================================================= */
.container {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

.muted {
    color: var(--muted);
}

/* =============================================================================
   4) Header
   ============================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

    .brand img {
        height: 88px;
        width: auto;
        display: block;
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .main-nav a {
        font-size: 14px;
        color: var(--muted);
        padding: 8px 10px;
        border-radius: 10px;
        font-weight: 500;
        transition: background 0.15s ease, color 0.15s ease;
    }

        .main-nav a:hover {
            background: var(--brand-soft);
            color: var(--text);
        }

        .main-nav a.active {
            background: var(--brand-soft);
            color: var(--text);
            font-weight: 700;
        }

/* =============================================================================
   5) Main Layout
   ============================================================================= */
.site-main {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
    padding: 34px 0 60px 0;
}

/* =============================================================================
   6) Hero
   ============================================================================= */
.hero {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
    padding: 44px 0 28px 0;
}

.hero-content {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 42px 38px;
    box-shadow: var(--shadow);
    background: radial-gradient(600px 220px at 12% 20%, var(--brand-soft), transparent 60%), radial-gradient(480px 220px at 88% 10%, rgba(0, 0, 0, 0.06), transparent 55%), #ffffff;
}

.hero h1 {
    margin: 0 0 14px 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero .accent {
    color: var(--brand-dark);
}

.hero-subtitle {
    margin: 0 0 22px 0;
    color: var(--muted);
    font-size: 16px;
    max-width: 70ch;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* =============================================================================
   Hero Note (CTA Hint – Startseite)
   -----------------------------------------------------------------------------
   Ziel:
   - Dezente, hochwertige Hinweisbox unter Hero-CTA
   - Unterstützt Conversion ohne aufdringlich zu sein
   ============================================================================= */

.hero-note {
    margin-top: 18px;
    padding: 12px 16px;
    border: 1px dashed rgba(31, 157, 85, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(31, 157, 85, 0.06);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

    .hero-note strong {
        color: var(--text);
    }

/* =============================================================================
   7) Buttons
   ============================================================================= */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

    .btn-primary:hover {
        background: var(--brand-dark);
        border-color: var(--brand-dark);
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(31, 157, 85, 0.18);
    }

.btn-secondary {
    background: #ffffff;
    color: var(--text);
    border-color: var(--line);
}

    .btn-secondary:hover {
        border-color: rgba(31, 157, 85, 0.35);
        background: rgba(31, 157, 85, 0.06);
        transform: translateY(-1px);
    }

/* =============================================================================
   8) Intro Section
   ============================================================================= */
.intro {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
    padding: 18px 0 0 0;
}

.intro-content {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 30px;
    background: #ffffff;
}

.intro h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
    letter-spacing: -0.01em;
}

.intro p {
    margin: 0 0 18px 0;
    color: var(--muted);
    max-width: 80ch;
}

.intro-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

    .intro-list li {
        padding: 12px 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: rgba(0, 0, 0, 0.02);
    }

/* =============================================================================
   9) Footer
   ============================================================================= */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 18px 0;
    color: var(--muted);
    font-size: 13px;
}

.footer-inner {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* =============================================================================
   10) Responsive (Header/Hero/Intro)
   ============================================================================= */
@media (max-width: 760px) {
    .brand img {
        height: 56px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }

    .main-nav {
        gap: 10px;
        flex-wrap: wrap;
    }

    .hero-content {
        padding: 30px 22px;
    }

    .intro-content {
        padding: 22px 18px;
    }
}

/* =============================================================================
   11) Leistungen – Services Grid (WICHTIG: bleibt vollständig!)
   ============================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.service-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 18px 18px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
        border-color: rgba(31, 157, 85, 0.30);
    }

    .service-card h3 {
        margin: 0 0 8px 0;
        font-size: 16px;
        letter-spacing: -0.01em;
    }

.service-list {
    margin: 12px 0 0 0;
    padding-left: 18px;
    color: var(--muted);
}

    .service-list li {
        margin: 6px 0;
    }

.service-meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.02);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.services-process,
.services-cta {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.process-steps {
    margin: 12px 0 0 0;
    padding-left: 18px;
}

    .process-steps li {
        margin: 10px 0;
        color: var(--muted);
    }

@media (max-width: 980px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   12) Contact Page Additions
   ============================================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.02);
    padding: 14px 14px;
}

.contact-label {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.contact-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

    .contact-value a {
        color: inherit;
        text-decoration: none;
    }

        .contact-value a:hover {
            text-decoration: underline;
        }

.contact-hint {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}

.contact-note {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px dashed rgba(31, 157, 85, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(31, 157, 85, 0.06);
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   13) ÜBER MICH – Mehr Abstand (nur wenn .about gesetzt ist)
   ============================================================================= */
.intro.about .intro-content h2 {
    margin-bottom: 14px;
}

.intro.about .intro-content h3 {
    margin: 26px 0 12px;
}

.intro.about .intro-content p {
    margin: 0 0 16px 0;
}

    .intro.about .intro-content p + p {
        margin-top: 10px;
    }

/* Etwas mehr Luft zwischen Listen-Kacheln (deine „Karten“ in Über mich) */
.intro.about .intro-list {
    gap: 12px;
}

    .intro.about .intro-list li {
        padding: 14px 16px;
    }

/* Optional: mehr Abstand vor „Was mir wichtig ist“ etc. ohne neue Klassen */
.intro.about .intro-content h2 + p {
    margin-top: 0;
}

/* =============================================================================
   Über mich – Abschluss CTA
   ============================================================================= */
.about-cta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.about-cta-hint {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

/* =============================================================================
   Footer – Feinschliff (SAFE / minimal)
   ============================================================================= */

.site-footer {
    margin-top: 28px; /* mehr Luft zum Content */
    padding: 22px 0; /* Footer wirkt “fertig” */
    border-top: 1px solid var(--line);
    background: rgba(0,0,0,0.01); /* ganz leichte Fläche */
}

.footer-inner {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-brand {
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 2px;
}

.footer-meta {
    font-size: 13px;
    color: var(--muted);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 13px;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

    .footer-link:hover {
        background: var(--brand-soft);
        color: var(--text);
        border-color: rgba(31, 157, 85, 0.18);
    }

@media (max-width: 760px) {
    .footer-inner {
        align-items: flex-start;
    }
}

/* =============================================================================
   Footer – Kontaktinfos
   ============================================================================= */

.footer-contact {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

    .footer-contact a {
        color: inherit;
        text-decoration: none;
    }

        .footer-contact a:hover {
            text-decoration: underline;
        }

.footer-separator {
    opacity: 0.5;
}

/* =============================================================================
   Praxis & Meilensteine – Layout
   ============================================================================= */

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.milestone-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 18px 18px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

    .milestone-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
        border-color: rgba(31, 157, 85, 0.30);
    }

    .milestone-card h3 {
        margin: 0 0 8px 0;
        font-size: 16px;
        letter-spacing: -0.01em;
    }

.milestone-list {
    margin: 12px 0 0 0;
    padding-left: 18px;
    color: var(--muted);
}

    .milestone-list li {
        margin: 6px 0;
    }

.milestones-cta {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
    .milestones-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .milestones-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   About Page – Hero Photo Layout
   ============================================================================= */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 26px;
    align-items: center;
}

.about-hero-text {
    min-width: 0;
}

.about-hero-photo {
    display: flex;
    justify-content: flex-end;
}

    .about-hero-photo img {
        width: min(320px, 100%);
        aspect-ratio: 3 / 4;
        object-fit: cover;
        border-radius: 18px;
        border: 1px solid var(--line);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
    }

/* Responsive */
@media (max-width: 900px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-photo {
        justify-content: flex-start;
    }

        .about-hero-photo img {
            width: min(360px, 100%);
        }
}