@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #C60000;
    --primary-hover: #A50000;
    --bg: #FFFFFF;
    --card: #F4F4F4;
    --dark: #111111;
    --muted: #777777;
    --border: rgba(0,0,0,0.08);
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --max: 1160px;
    --font: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }
::selection { background: var(--primary); color: #fff; }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Header ─────────────────────────────────────── */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    padding: 14px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

nav { display: flex; gap: 2.5rem; align-items: center; }

nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
nav a:hover,
nav a.active { 
    color: #fff; 
}

/* ── Menu Toggle ── */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 10px 24px;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: #CC0000;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 1px solid #E5E5E5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--card);
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--card);
    color: var(--dark);
}
.btn-outline:hover { background: #eee; }

/* ── Hero ───────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    background: url('hero-bg.png') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Very subtle to preserve image brightness */
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1.huge-type {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-wrap: balance;
}

.hero-desc {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-desc strong {
    color: #ffffff;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    position: relative;
    z-index: 10;
}

.hero-actions .btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(198, 0, 0, 0.4);
    padding: 12px 32px;
}

.hero-actions .btn-secondary {
    background: #ffffff;
    color: var(--dark);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 12px 32px;
}

.hero-actions .btn-secondary:hover {
    background: #f4f4f4;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.hero-image {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.visual-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 340px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.visual-card h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0 1rem;
    letter-spacing: -0.02em;
}

.visual-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}


/* ── Section Shared ─────────────────────────────── */
.section-tag {
    display: inline-flex;
    align-items: center;
    background: var(--card);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

#leistungen .section-tag, #bewertungen .section-tag { background: #FFFFFF; }

.section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.section-sub {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 800px;
}

.section-center { text-align: center; }
.section-center .section-sub { margin: 0 auto; }

.pad { padding: 100px 0; }

/* ── Bento Grid ─────────────────────────────────── */
#warum { background: var(--bg); }

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.bento-card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    padding: 2rem;
    position: relative;
}

.bento-card.wide { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.bento-icon {
    width: 38px;
    height: 38px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

/* Layout overrides */
.bento-card.tall { grid-row: span 2; display: flex; flex-direction: column; }
.bento-card.wide { grid-column: span 2; }
.bento-card.dark {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.bento-card .card-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}
.bento-card.dark .card-label { color: rgba(255,255,255,0.4); }

.bento-card h3 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.bento-card h3 i {
    margin-top: 2px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bento-card p {
    font-size: 0.925rem;
    color: var(--muted);
    line-height: 1.7;
    word-wrap: break-word;
}
.bento-card.dark p { color: rgba(255,255,255,0.55); }

.bento-stat {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.bento-card.dark .bento-stat { color: #fff; }

.bento-photo {
    flex: 1;
    min-height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: #e0e0e0;
    margin-top: 1.5rem;
}
.bento-photo img { width: 100%; height: 100%; object-fit: cover; }

.bento-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

/* ── Leistungen ─────────────────────────────────── */
#leistungen { background: var(--card); }

.leistungen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.leistung-card {
    background: var(--bg);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.leistung-card.featured {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

.leistung-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.1);
}

.leistung-card .card-num {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.leistung-card.featured .card-num { color: rgba(255,255,255,0.4); }

.leistung-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.leistung-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.leistung-card.featured p { color: rgba(255,255,255,0.55); }

.leistung-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.leistung-features li {
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--dark);
}

.leistung-card.featured .leistung-features li { color: rgba(255,255,255,0.8); }

.leistung-features li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.leistung-card.featured .leistung-features li::before { background: #fff; }

/* ── Über Mich ──────────────────────────────────── */
#ueber { background: var(--bg); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.about-img {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #ddd;
}

.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }

.about-text .section-sub { margin-bottom: 2.5rem; max-width: 100%; }

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
}

.about-stat strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.about-stat span {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Testimonials ───────────────────────────────── */
#bewertungen { background: var(--card); }


/* ── Kontakt ────────────────────────────────────── */
#kontakt { background: var(--bg); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: center;
}

.contact-left .section-sub { margin-bottom: 2.5rem; }

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.contact-item a,
.contact-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    transition: color 0.2s;
}

.contact-item a:hover,
nav a.active {
    color: var(--primary);
}

.form-box {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    padding: 2rem 0;
}

.form-box .field {
    padding: 0.85rem 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.form-row .field {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.form-box input,
.form-box textarea {
    width: 100%;
    background: #FFFFFF;
    border: none;
    padding: 1.1rem 1.25rem;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 0.925rem;
    color: var(--dark);
    outline: none;
    resize: none;
}

.form-box input::placeholder,
.form-box textarea::placeholder { color: var(--muted); }

.form-footer {
    padding: 0.75rem 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 14px;
}

/* ── Footer ─────────────────────────────────────── */
footer {
    background: var(--dark);
    padding: 60px 0 40px;
    color: #fff;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 18px;
}

.footer-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    justify-self: start;
    letter-spacing: -0.01em;
}

.footer-center-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-self: center;
}

.footer-center {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}
.footer-center:hover { color: #fff; }

.footer-links {
    display: flex;
    gap: 2rem;
    justify-self: end;
}

.footer-links a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-copy {
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--dark);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-card.wide { grid-column: span 2; }
}

@media (max-width: 768px) {
    :root {
        --pad: 3rem;
    }

    .menu-toggle {
        display: flex;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    header nav.active {
        right: 0;
    }

    header nav a {
        font-size: 1.5rem;
        color: #fff;
    }

    header .container {
        flex-direction: row;
        justify-content: space-between;
        padding-top: 0;
        padding-bottom: 0;
    }

    header .nav-cta {
        display: none;
    }

    .hero h1.huge-type {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.2;
    }

    .hero-inner,
    .about-grid,
    .contact-grid,
    .leistungen-grid { 
        grid-template-columns: 1fr; 
        gap: 2.5rem; 
    }

    .bento { 
        grid-template-columns: 1fr; 
    }

    .bento-card.wide { 
        grid-column: span 1; 
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
        border-radius: 12px !important; /* Remove bubble look */
        padding: 14px 20px !important;
        font-size: 0.95rem !important;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    .pad {
        padding: 4rem 0;
    }

    .hero h1.huge-type {
        font-size: 1.75rem;
        text-wrap: balance;
        max-width: 15ch; /* Limits characters per line to force better breaks if needed */
        margin-left: auto;
        margin-right: auto;
    }

    .hero-desc {
        font-size: 1rem;
        text-wrap: balance;
    }
}

/* ── Legal Content ──────────────────────────────── */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 3rem 0 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.legal-content h3 {
    font-size: 1.15rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 1.25rem;
    color: var(--muted);
    line-height: 1.8;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.legal-content a:hover {
    color: var(--primary-hover);
}

@media (max-width: 768px) {
    .legal-content h1 { font-size: 2rem; }
    .legal-content h2 { font-size: 1.3rem; }
}
