/* CSS Design Tokens & Reset */
:root {
    --bg-primary: #FAF9F5;
    --text-dark: #0A1C3A;
    --text-secondary: #526075;
    --accent: #0A1C3A;
    --accent-gold: #B58E3D;
    --accent-light: #F7F4EB;
    --card-bg: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(10, 28, 58, 0.04);
    --shadow-md: 0 4px 20px -2px rgba(10, 28, 58, 0.05), 0 2px 10px -1px rgba(10, 28, 58, 0.02);
    --shadow-lg: 0 20px 40px -15px rgba(10, 28, 58, 0.1);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    line-height: 1.65;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    padding: 1rem 2.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--accent-gold);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
    border-color: var(--text-dark);
}

.btn-outline {
    border: 1.5px solid var(--accent);
    color: var(--accent);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* Classic Sticky Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 1px 10px rgba(10, 28, 58, 0.01);
    background: #FFFFFF;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    transition: var(--transition-smooth);
}

header.scrolled .header-container {
    padding: 0.6rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

header.scrolled .logo img {
    height: 44px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 22px;
    height: 1.5px;
    background-color: var(--text-dark);
    margin: 6px;
    transition: var(--transition-smooth);
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        max-width: 320px;
        background-color: var(--card-bg);
        box-shadow: -15px 0 40px rgba(0,0,0,0.03);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: block;
    }

    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 5px);
    }
    .burger.toggle .line2 {
        opacity: 0;
    }
    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -5px);
    }
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    position: relative;
    overflow: hidden;
}

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

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pre-headline {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 4.2rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.hero-text h1 span {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-gold);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.badges-list {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.badge-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.badge-inline svg {
    color: var(--accent-gold);
}

/* Hero Image styling */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    display: block;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    border: 6px solid #FFFFFF;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
    .hero {
        padding: 8rem 0 5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-text {
        text-align: center;
        align-items: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .badges-list {
        justify-content: center;
        width: 100%;
    }

    .hero-image-wrapper {
        margin: 0 auto;
    }

    .hero-image {
        height: auto;
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-header .tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
}

.section-header h2 {
    font-size: 3rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 300;
}

/* Über mich Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image-container {
    position: relative;
}

.about-portrait {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    border: 6px solid #FFFFFF;
    box-shadow: var(--shadow-lg);
}

.about-signature {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    margin-top: 1rem;
    color: var(--accent-gold);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.about-content h3 {
    font-size: 2.4rem;
    color: var(--text-dark);
    font-weight: 700;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.about-qualifications {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.qual-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.qual-bullet {
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

.qual-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-portrait {
        height: 400px;
    }
}

/* Services Grid Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0px;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::after {
    height: 4px;
}

.service-card-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
}

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

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

/* Vorteile Section */
.vorteile {
    background-color: #0A1C3A;
    color: #FFFFFF;
}

.vorteile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.vorteile-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vorteile-left h2 {
    font-size: 3rem;
    letter-spacing: -0.01em;
}

.vorteile-left p {
    color: #94A3B8;
    font-size: 1.15rem;
    font-weight: 300;
}

.vorteile-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vorteil-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.vorteil-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.vorteil-check {
    width: 28px;
    height: 28px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vorteil-info h4 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
}

.vorteil-info p {
    font-size: 0.95rem;
    color: #94A3B8;
    font-weight: 300;
}

@media (max-width: 992px) {
    .vorteile-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* Ablauf Column Section */
.timeline-vertical {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.timeline-v-line {
    position: absolute;
    top: 0;
    left: 1rem;
    width: 1.5px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-v-line-active {
    position: absolute;
    top: 0;
    left: 1rem;
    width: 1.5px;
    height: 0%;
    background-color: var(--accent-gold);
    transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-v-steps {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.timeline-v-step {
    position: relative;
    display: flex;
    gap: 2rem;
}

.step-v-dot {
    position: absolute;
    left: calc(-2rem - 8px);
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    transition: var(--transition-smooth);
    z-index: 2;
}

.timeline-v-step.active .step-v-dot {
    border-color: var(--accent-gold);
    background-color: var(--accent-gold);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.step-v-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
    min-width: 50px;
}

.timeline-v-step.active .step-v-number {
    color: var(--accent-gold);
}

.step-v-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-v-content h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.step-v-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

/* Kontakt Section */
.kontakt-layout {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5rem;
    box-shadow: var(--shadow-md);
}

.kontakt-header-inline {
    margin-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.kontakt-header-left {
    display: flex;
    flex-direction: column;
}

.kontakt-header-left h3 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

.kontakt-header-left p {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.kontakt-header-phone {
    text-align: right;
}

.kontakt-header-phone p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.kontakt-header-phone a {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.kontakt-form-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
    font-family: var(--font-sans);
    padding: 0.95rem 1rem;
    border: 1.5px solid var(--border-color);
    background-color: transparent;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(181, 142, 61, 0.08);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.form-checkbox input {
    margin-top: 4px;
    accent-color: var(--accent);
}

.form-checkbox span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-checkbox a {
    color: var(--accent-gold);
    font-weight: 600;
}

.form-footer-span {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.netlify-hidden {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

#kontaktForm.is-submitting {
    opacity: 0.55;
    pointer-events: none;
}

.kontakt-form-body button {
    grid-column: span 2;
    width: 100%;
    margin-top: 1rem;
    padding: 1.15rem;
    border-radius: 4px;
}

.kontakt-form-body button:disabled {
    cursor: progress;
    opacity: 0.75;
}

.form-success-alert {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
    gap: 1.5rem;
    animation: fade-in 0.5s ease;
}

.success-seal {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 2rem;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .kontakt-layout {
        padding: 3rem;
    }

    .kontakt-header-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .kontakt-header-phone {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .kontakt-layout {
        padding: 2rem;
    }

    .kontakt-form-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .kontakt-form-body button {
        grid-column: span 1;
    }

    .form-footer-span {
        grid-column: span 1;
    }
}

/* Footer */
footer {
    background-color: #FFFFFF;
    color: var(--text-dark);
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border-color);
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 320px;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-bottom-links {
    display: flex;
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

/* Reveal class */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Legal Page specific styles */
.legal-page {
    padding: 10rem 0 6rem;
}

.legal-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 4rem;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.legal-card h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.legal-card h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-card p, .legal-card ul {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

.legal-card ul {
    padding-left: 1.5rem;
}

.legal-card li {
    margin-bottom: 0.5rem;
}
