:root {
    /* Premium Logo Palette */
    --primary-color: #3A3A3A;
    /* Darker Logo Gray */
    --primary-light: #5B5B5B;
    /* Logo Gray */
    --secondary-color: #888888;
    /* Lighter Gray */
    --accent-color: #0060A4;
    /* Logo Blue */
    --accent-hover: #004B80;
    /* Darker Logo Blue */
    --bg-color: #f8fafc;
    /* Slate 50 */
    --surface-color: #ffffff;
    --text-color: #3A3A3A;
    /* Match Primary */
    --text-light: #888888;
    /* Match Secondary */
    --border-color: #e2e8f0;
    /* Slate 200 */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Compatibility */
    --white: #ffffff;
    --shadow-card: var(--shadow-md);
    /* Glassmorphism 2.0 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: radial-gradient(at 0% 0%, rgba(15, 23, 42, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 96, 164, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-sm);
    background-color: rgba(255, 255, 255, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    color: var(--accent-color);
}

.header-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 6px;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.6)),
        url('fotos/startseite/hero_foto.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Simple Parallax fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--surface-color);
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--surface-color);
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn:not(.btn-secondary) {
    background-color: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 96, 164, 0.4);
}

.btn:not(.btn-secondary):hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 96, 164, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: var(--surface-color);
    color: var(--primary-color);
    border-color: var(--surface-color);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: var(--spacing-lg) 0;
}

/* Services / Cards */
.service-item,
.profile-image,
.profile-content,
.contact-info,
.contact-form,
.value-card {
    transition: var(--transition);
}

.service-item img,
.profile-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.5s ease;
}

.service-item:hover img,
.profile-image:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.value-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4B4B4B 50%, #3A3A3A 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    color: var(--surface-color);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 96, 164, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(100, 116, 139, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    z-index: 3;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--surface-color);
    margin: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-header p {
    color: #94a3b8;
    margin-top: 0.75rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #4B4B4B 0%, var(--primary-color) 100%);
    color: #e2e8f0;
    /* Brighter text color for footer */
    padding: var(--spacing-lg) 0 2rem;
    border-top: 4px solid var(--accent-color);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--surface-color);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    transition: width 0.3s ease;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(to right, var(--accent-color), #004B80);
    box-shadow: 0 0 10px rgba(0, 96, 164, 0.4);
}

.footer-section:hover h3::after {
    width: 60px;
}

.footer-section p {
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a::before {
    content: '›';
    color: var(--accent-color);
    font-size: 1.1rem;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #64748b;
}

/* Forms */
.contact-form {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

textarea {
    resize: none;
    height: 150px;
    /* Optional: setting a default fixed height ensures it's reasonably sized */
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--surface-color);
    box-shadow: 0 0 0 4px rgba(0, 96, 164, 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* --- ANIMATIONS --- */

/* Base Fade Class */
.animate {
    opacity: 0;
    pointer-events: none;
    /* prevent clicking while hidden */
}

.animate.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Slide Up Effect */
.slide-up {
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-up.visible {
    transform: translateY(0);
}

/* Slide Right Effect */
.slide-right {
    transform: translateX(-30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-right.visible {
    transform: translateX(0);
}

/* Zoom In Effect */
.zoom-in {
    transform: scale(0.95);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.zoom-in.visible {
    transform: scale(1);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75%;
        background-color: var(--surface-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    }

    .nav-active {
        transform: translateX(0%);
    }

    .logo {
        z-index: 1002;
    }

    .nav-active .burger div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-active .burger div:nth-child(2) {
        opacity: 0;
    }

    .nav-active .burger div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .burger {
        display: block;
    }

    /* Container adjustments for better text spacing */
    .container {
        padding: 0 2rem;
    }

    /* Contact Page Mobile Spacing */
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .info-item {
        padding: 1rem;
        gap: 0.75rem;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.max-w-700 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Reference Slider --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 80vh;
    /* Takes up substantial screen space */
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slider-bg.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reduced darkness to allow photos to be brighter */
    background: linear-gradient(to right, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.1) 100%);
    z-index: 2;
}

.slider-container .container {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slides-wrapper {
    position: relative;
    height: auto;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    transform: translateX(50px);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
    /* Make it flow in the container */
}

/* We need absolute positioning for transitions to work nicely without jumping, 
   but one needs to be relative to give height. 
   Actually, with the wrapper having min-height, absolute slides are fine. 
   Let's stick to absolute for all, and ensure wrapper height. 
*/
.slides-wrapper .slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(50px);
}

.slides-wrapper .slide.active {
    transform: translateY(-50%) translateX(0);
}

.slide-content h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #e2e8f0;
    max-width: 600px;
}

.project-details {
    list-style: none;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    max-width: 600px;
}

.project-details li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
}

.project-details li::before {
    content: '•';
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 0.5rem;
    line-height: 1;
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    right: 0;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--surface-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

/* =============================================
   GRID LAYOUTS
   ============================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.grid-2.reverse {
    direction: rtl;
}

.grid-2.reverse>* {
    direction: ltr;
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .grid-2.reverse {
        direction: ltr;
    }
}

/* =============================================
   SERVICE CARDS (index.html & leistungen.html)
   ============================================= */
.service-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-card h3 {
    margin-bottom: 0;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}

.icon-box {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(0, 96, 164, 0.12), rgba(0, 96, 164, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    margin: 0 auto 0.5rem;
    flex-shrink: 0;
}

/* =============================================
   ABOUT HERO (leistungen.html)
   ============================================= */
.about-hero {
    min-height: 55vh;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.65)),
        url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    padding: var(--spacing-lg) 0;
}

.service-hero-content h1 {
    color: white;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.service-hero-content p {
    color: #cbd5e1;
    font-size: 1.2rem;
}

/* =============================================
   DETAIL SECTIONS (leistungen.html)
   ============================================= */
.detail-section {
    padding: 80px 0;
}

.detail-section.bg-light {
    background-color: var(--bg-color);
}

.bg-light {
    background-color: var(--bg-color);
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-content h2 {
    margin-bottom: 0;
}

.detail-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.detail-image img:hover {
    transform: scale(1.02);
}

.section-tag {
    display: inline-block;
    background: rgba(0, 96, 164, 0.12);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 96, 164, 0.3);
}

.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 1.25rem;
    border-left: 3px solid var(--accent-color);
}

.feature-list li strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.feature-list li p {
    color: var(--text-color);
    margin: 0;
    font-size: 0.95rem;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.type-item {
    background: var(--bg-color);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.type-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.type-item p {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin: 0;
}

@media (max-width: 768px) {
    .type-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   ACCORDION (leistungen.html)
   ============================================= */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--accent-color);
}

.accordion-header.active {
    color: var(--accent-color);
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.35s ease;
    color: var(--accent-color);
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.5rem;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.7;
}

/* =============================================
   WHY US (index.html)
   ============================================= */
.why-us {
    background-color: var(--bg-color);
}

.usp-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.usp-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.check-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.usp-list h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.usp-list p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.why-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* =============================================
   PROCESS STEPS (index.html)
   ============================================= */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 96, 164, 0.4);
}

.step h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   ABOUT PAGE (ueber_mich.html)
   ============================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.img-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--accent-color);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.7;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.about-text .lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-img {
        height: 350px;
    }

    .img-accent {
        display: none;
    }
}

/* =============================================
   STATS SECTION (ueber_mich.html)
   ============================================= */
.stats-section {
    background: var(--primary-color);
    padding: 5rem 0;
    border-top: 4px solid var(--accent-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* =============================================
   TIMELINE (ueber_mich.html)
   ============================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color), rgba(0, 96, 164, 0.2));
    transform: translateX(-50%);
}

.timeline-item {
    width: 46%;
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item.right {
    margin-left: 54%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--accent-color);
}

.timeline-item.left::before {
    right: -8%;
}

.timeline-item.right::before {
    left: -8%;
}

.timeline-item .content {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.timeline-item .content h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.timeline-item .content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-item .content p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item.right {
        width: 100%;
        margin-left: 50px;
        padding-left: 1rem;
    }

    .timeline-item.left::before,
    .timeline-item.right::before {
        left: -40px;
        right: auto;
    }
}

/* =============================================
   VALUES SECTION – NEW DESIGN (ueber_mich.html)
   ============================================= */
.values-section {
    padding: 100px 0;
    background: var(--bg-color);
    position: relative;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), #3b82f6, #10b981);
}

.values-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.values-header .section-tag {
    margin-bottom: 1rem;
    display: inline-block;
}

.values-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.values-header p {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.7;
}

.values-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card-new {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.toast-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--accent-color, #0060A4);
    transform-origin: left;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.value-card-new:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.value-card-new:hover::after {
    transform: scaleX(1);
}

.value-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--icon-color, var(--accent-color)) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-color, var(--accent-color));
    flex-shrink: 0;
}

.value-card-body h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.value-card-body p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 900px) {
    .values-grid-new {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* =============================================
   HERO SLIDER (referenzen.html)
   ============================================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
    background: var(--primary-color);
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateX(60px);
}

.hero-slider .slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(15, 23, 42, 0.5) 0%,
            rgba(15, 23, 42, 0.2) 45%,
            rgba(15, 23, 42, 0.0) 100%);
}

.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    max-width: 650px;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.slide-tag {
    display: inline-block;
    background: rgba(0, 96, 164, 0.85);
    /* More opaque background for contrast */
    color: #ffffff;
    /* White text for better readability against dark images */
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 96, 164, 1);
    margin-bottom: 1.5rem;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-content h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.15;
}

.slide-content p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 550px;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.prev-btn,
.next-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.prev-btn:hover,
.toast-close:hover {
    background: var(--accent-hover, #004B80);
    color: var(--surface-color, #ffffff);
}

.next-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 96, 164, 0.5);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* About Hero (used on referenzen & leistungen) */
.about-hero-content h1 {
    color: white;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.about-hero-content p {
    color: #cbd5e1;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 75vh;
        min-height: 450px;
    }

    .slide-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .slider-controls {
        bottom: 20px;
        gap: 1rem;
    }

    .prev-btn,
    .next-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* =============================================
   CTA SECTIONS (global)
   ============================================= */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4B4B4B 100%);
    color: var(--surface-color);
    text-align: center;
    position: relative;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 96, 164, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* =============================================
   CONTACT PAGE (kontakt.html)
   ============================================= */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    padding: 80px 0;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    margin-bottom: 0.75rem;
}

.contact-info>p {
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.05rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.info-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 96, 164, 0.12), rgba(0, 96, 164, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.info-item p {
    color: var(--text-color);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-item a {
    color: var(--primary-color);
    font-weight: 500;
}

.info-item a:hover {
    color: var(--accent-color);
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), #004B80);
}

.stats-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--accent-color), #004B80);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-form-wrapper h2 {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .contact-grid {
        gap: 2.5rem;
    }
}

/* =============================================
   IMPRESSUM CONTENT
   ============================================= */
.legal-content {
    max-width: 800px;
    padding: 80px 0;
}

.legal-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-content h3 {
    font-size: 1.15rem;
    color: var(--accent-color);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.legal-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* =============================================
   LEISTUNGEN PAGE – REDESIGN
   ============================================= */

/* Services Hero */
.services-hero {
    padding: 10rem 0 5rem;
}

.services-hero .section-tag {
    margin-bottom: 1.5rem;
}

/* Services Overview */
.services-overview {
    padding: 100px 0;
    background: white;
}

/* Pro Service Cards */
.service-card-pro {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.service-card-pro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--accent-color));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.service-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card-pro:hover::after {
    transform: scaleX(1);
}

.service-card-number {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.04);
    line-height: 1;
    user-select: none;
}

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--card-accent, var(--accent-color)) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-accent, var(--accent-color));
    flex-shrink: 0;
    transition: var(--transition);
}

.service-card-pro:hover .service-card-icon {
    background: var(--card-accent, var(--accent-color));
    color: white;
    transform: scale(1.1);
}

.service-card-pro h3 {
    font-size: 1.15rem;
    margin-bottom: 0;
}

.service-card-pro p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.service-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
    transition: var(--transition);
}

.service-link:hover {
    gap: 0.5rem;
    color: var(--accent-hover);
}

/* Detail Section New */
.detail-section-new {
    padding: 100px 0;
}

.detail-section-new.alt-bg {
    background: var(--bg-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.detail-grid.reverse {
    direction: rtl;
}

.detail-grid.reverse>* {
    direction: ltr;
}

.detail-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.detail-text h2 {
    margin-bottom: 0;
    font-size: 2rem;
}

.detail-desc {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.8;
}

.detail-visual {
    position: relative;
}

.detail-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 450px;
}

.detail-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.detail-img-wrapper:hover img {
    transform: scale(1.05);
}

.detail-img-badge {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 56px;
    height: 56px;
    background: var(--accent-color);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 96, 164, 0.4);
}

/* Feature Highlights */
.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.feature-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.feature-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0, 96, 164, 0.15);
}

.feature-highlight-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.feature-highlight-item p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Type Cards (Treppen) */
.type-grid-new {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.type-card {
    padding: 1.25rem 1.5rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
    transition: var(--transition);
}

.type-card:hover {
    border-left-color: #3b82f6;
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.type-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.type-card p {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--bg-color);
}

/* Responsive */
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .detail-grid.reverse {
        direction: ltr;
    }

    .detail-img-wrapper {
        height: 300px;
    }

    .services-hero {
        padding: 7rem 0 3rem;
    }
}

/* =============================================
   SHADOW XL (used inline)
   ============================================= */
:root {
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* --- Gallery Slider for Leistungen --- */
.gallery-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-wrapper img.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.gallery-wrapper img.gallery-img.active {
    opacity: 1;
    z-index: 2;
}

.gallery-indicator {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(15, 23, 42, 0.75);
    color: var(--surface-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.05em;
}

/* --- Form Popup --- */
.form-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.form-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.form-popup-box {
    background: var(--surface-color, #ffffff);
    padding: 2.5rem;
    border-radius: var(--radius-lg, 12px);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.form-popup-overlay.active .form-popup-box {
    transform: translateY(0) scale(1);
}

.form-popup-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.form-popup-icon.success {
    background: #d1fae5;
    color: #059669;
}

.form-popup-icon.error {
    background: #fee2e2;
    color: #dc2626;
}

.form-popup-icon svg {
    width: 32px;
    height: 32px;
}

.form-popup-box h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-color, #0f172a);
}

.form-popup-box p {
    color: var(--text-color, #475569);
    margin-bottom: 1.5rem;
}

.form-popup-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    background: var(--accent-color, #f59e0b);
    color: white;
    border: none;
    border-radius: var(--radius-md, 6px);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.form-popup-btn:hover {
    background: var(--accent-hover, #d97706);
}