@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Montserrat:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.02) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
}

.background-structure {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.01) 25%, transparent 50%, rgba(255,255,255,0.01) 75%, transparent 100%),
        linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.005) 50%, transparent 100%);
    background-size: 200px 200px, 100px 100px;
    z-index: -1;
    opacity: 0.3;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navigation.scrolled {
    /* subtle stronger background when page is scrolled; keeps exact visual as before */
    background: rgba(26, 26, 26, 0.98);
}

/* Reusable animation helper used by JS observer to avoid inline styles */
.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

/* Optional: Nur Logo ohne Text anzeigen
.logo-img + span {
    display: none;
}
*/

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item a:hover, .nav-item a.active {
    background: rgba(255,255,255,0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 40px;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    margin-bottom: 60px;
}

.hero-logo {
    border: 3px solid #ffffff;
    padding: 30px;
    margin-bottom: 40px;
    display: inline-block;
    background: rgba(255,255,255,0.05);
    max-width: 300px;
}

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

/* Optional: Fallback ausblenden, wenn echtes Bild vorhanden ist
.hero-logo-img:not([src*="placeholder"]) + .hero-logo-fallback {
    display: none;
}
*/

/* Wenn das Bild fehlt, zeige Fallback */
.hero-logo-img[src=""], .hero-logo-img:not([src]) {
    display: none;
}

.hero-logo h1 {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-logo .vision {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 1px;
    transform: rotate(90deg);
    transform-origin: center;
    margin-top: 20px;
}

.company-name {
    font-family: 'Abril Fatface', serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #cccccc;
    margin-bottom: 20px;
}

.tagline {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 800px;
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background: rgba(0,0,0,0.3);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #ffffff;
}

.section-subtitle {
    font-size: 18px;
    color: #cccccc;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.service-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.service-icon {
    font-size: 32px;
    color: #ffffff;
    margin: 0 auto 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Fallback Logik */
.icon-img[src$=".svg"] + .icon-fallback {
    display: none;
}

.service-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #ffffff;
}

.service-description {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
}

/* Projects Preview */
.projects-preview {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 150px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.asset-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Fallback Logik */
.asset-img[src] + .img-fallback {
    display: none;
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #ffffff;
}

.project-description {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: rgba(0,0,0,0.5);
    text-align: center;
}

.cta-wrap {
    text-align: center;
}

/* Styles for the contact-cta section on faq.html */
.contact-cta {
    text-align: center;
    padding: 40px 0; /* Add some padding for better visual separation */
}

.cta-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta-text {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 400;
    border: 1px solid rgba(255,255,255,0.2);
    margin-top: 30px; /* Abstand nach oben zur Kachel */
}

.cta-button:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: rgba(0,0,0,0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-quickbar {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.contact-quickbar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.contact-quickbar-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 20px;
    color: #ffffff;
    width: 40px;
    text-align: center;
}

.contact-text {
    font-size: 16px;
    font-weight: 300;
}

.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #b9c0c7;
    font-weight: 500;
}

.contact-value {
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
    font-weight: 400;
}

.contact-grid--details {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.contact-item--clean {
    min-height: 96px;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
}

.contact-item--clean:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.28);
}

.contact-item-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-item-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8f9aa7;
    transition: color 0.25s ease, transform 0.25s ease;
}

.contact-item-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.contact-item--clean:hover .contact-item-icon,
.contact-item--clean:focus-visible .contact-item-icon,
.contact-item--clean:active .contact-item-icon {
    color: #4dc7a4;
    transform: scale(1.06);
}

.contact-form-map-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-form-card,
.map-card {
    padding: 28px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
}

.contact-form-map-grid > .contact-form-card,
.contact-form-map-grid > .map-card {
    width: 100%;
}

.contact-form-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-form-subtitle {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 20px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label {
    font-size: 14px;
    color: #e0e0e0;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 15px;
    font-family: inherit;
}

.form-row select {
    background: rgba(17, 22, 28, 0.95);
    color: #ffffff;
    color-scheme: dark;
}

.form-row select option {
    background-color: #11161c;
    color: #ffffff;
}

.form-row select option:disabled {
    color: #a9b3bc;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #b9c0c7;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}

.form-checkbox-row {
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.form-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #25D366;
}

.form-checkbox-row label {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.contact-form .cta-button {
    margin-top: 4px;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.map-embed-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    min-height: 360px;
}

.map-embed-wrap iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

.map-embed-wrap--dark {
    position: relative;
    background: #0f1217;
}

.map-embed-wrap--dark iframe {
    filter: grayscale(1) invert(0.92) hue-rotate(180deg) saturate(0.75) contrast(0.95) brightness(0.9);
}

.map-embed-wrap--dark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 18, 0.28);
    pointer-events: none;
}

.container-contact-page {
    padding-top: 8px;
}

.container-contact-page--compact {
    padding-top: 8px !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-logo h1 {
        font-size: 36px;
    }

    .company-name {
        font-size: 24px;
    }

    .tagline {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

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

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

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

    .contact-quickbar {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 0 20px;
    }

    .section-container {
        padding: 0 20px;
    }

    .hero-container {
        padding: 0 20px;
    }

    .container {
        padding: 100px 20px 40px; /* Anpassung für alle Container auf Unterseiten */
    }
}

/* ===== FINAL OVERRIDE: Horizontaler Verlauf auf allen Seiten und Boxen ===== */
body.site-theme,
body.site-theme .hero,
body.site-theme .services-preview,
body.site-theme .projects-preview,
body.site-theme .partners-section,
body.site-theme .contact-section,
body.site-theme .legal-page {
    background: linear-gradient(90deg, #161a1f 0%, #1f242c 50%, #15191e 100%) !important;
}

/* Gesamter Seitenhintergrund durchgehend mit Verlauf */
html,
body.site-theme {
    background: linear-gradient(90deg, #161a1f 0%, #1f242c 50%, #15191e 100%) !important;
}

/* Sektionen transparent, damit der Seitenverlauf überall sichtbar bleibt */
body.site-theme .hero,
body.site-theme .services-preview,
body.site-theme .projects-preview,
body.site-theme .partners-section,
body.site-theme .contact-section,
body.site-theme .legal-page,
body.site-theme .cta-section {
    background: transparent !important;
}

body.site-theme .service-card,
body.site-theme .project-card,
body.site-theme .partner-card,
body.site-theme .contact-item,
body.site-theme .contact-quickbar-item,
body.site-theme .contact-form-card,
body.site-theme .map-card,
body.site-theme .content-section,
body.site-theme .team-section,
body.site-theme .faq-item,
body.site-theme .legal-page-card,
body.site-theme .wil-contact-band {
    background: linear-gradient(90deg, #161a1f 0%, #1f242c 50%, #15191e 100%) !important;
}

/* Unterer Bereich mit Logo + Kontaktdaten bleibt schwarz */
body.site-theme .wil-contact-band,
body.site-theme .legal-footer {
    background: #000000 !important;
}

/* ===== Site Theme: anthrazit, freundlich-frisch und elegant ===== */
body.site-theme {
    background: linear-gradient(150deg, #d8c7ae 0%, #c8b297 45%, #bfa488 100%);
    color: #2f241a;
}

body.site-theme .background-texture {
    background-image:
        radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        radial-gradient(circle at 78% 72%, rgba(110, 78, 48, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.38;
}

body.site-theme .background-structure {
    background-image:
        linear-gradient(140deg, transparent 0%, rgba(255, 255, 255, 0.14) 35%, transparent 65%),
        linear-gradient(40deg, transparent 0%, rgba(130, 98, 67, 0.12) 48%, transparent 100%);
    opacity: 0.32;
}

body.site-theme .navigation,
body.site-theme .navigation.scrolled {
    background: rgba(75, 56, 38, 0.82);
    border-bottom: 1px solid rgba(255, 239, 219, 0.35);
}

body.site-theme .nav-logo,
body.site-theme .nav-item a,
body.site-theme .company-name,
body.site-theme .section-title,
body.site-theme .service-title,
body.site-theme .project-title,
body.site-theme .contact-value,
body.site-theme .cta-title,
body.site-theme .page-title,
body.site-theme .contact-form-title {
    color: #fff9f1;
}

body.site-theme .tagline,
body.site-theme .section-subtitle,
body.site-theme .service-description,
body.site-theme .project-description,
body.site-theme .contact-form-subtitle,
body.site-theme .contact-label,
body.site-theme .cta-text,
body.site-theme .section-text,
body.site-theme .page-subtitle,
body.site-theme .contact-text,
body.site-theme .form-row label {
    color: #f4e5d3;
}

body.site-theme .nav-item a {
    border-radius: 999px;
    border: 1px solid rgba(255, 232, 202, 0.45);
    background: rgba(255, 247, 236, 0.08);
    box-shadow: none;
}

body.site-theme .nav-item a:hover,
body.site-theme .nav-item a.active {
    background: rgba(255, 232, 202, 0.24);
    color: #fffdf8;
    border-color: rgba(255, 242, 224, 0.7);
}

body.site-theme .nav-toggle span {
    background: #d8e6f4;
}

body.site-theme .hero-logo {
    border: 1px solid rgba(158, 186, 216, 0.34);
    background: rgba(234, 243, 251, 0.06);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(7, 12, 18, 0.38);
}

body.site-theme .services-preview,
body.site-theme .projects-preview,
body.site-theme .contact-section,
body.site-theme .cta-section {
    background: transparent;
}

body.site-theme .service-card,
body.site-theme .project-card,
body.site-theme .partner-card,
body.site-theme .contact-quickbar-item,
body.site-theme .contact-item,
body.site-theme .contact-form-card,
body.site-theme .map-card {
    background: rgba(255, 249, 240, 0.12);
    border: 1px solid rgba(255, 235, 210, 0.4);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(74, 53, 34, 0.18);
}

body.site-theme .service-card:hover,
body.site-theme .project-card:hover,
body.site-theme .partner-card:hover,
body.site-theme .contact-quickbar-item:hover,
body.site-theme .contact-item:hover {
    background: rgba(255, 250, 244, 0.2);
    border-color: rgba(255, 241, 223, 0.75);
    box-shadow: 0 16px 28px rgba(74, 53, 34, 0.24);
    transform: translateY(-4px);
}

.partners-section {
    padding: 80px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 140px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.partner-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.partner-name {
    color: #fff8ef;
    font-weight: 600;
    text-align: center;
}

body.site-theme .projects-preview .project-image {
    background: rgba(102, 138, 177, 0.22);
}

body.site-theme .form-row input,
body.site-theme .form-row select,
body.site-theme .form-row textarea {
    border: 1px solid rgba(176, 197, 219, 0.28);
    background: rgba(238, 246, 255, 0.06);
    color: #f2f6fa;
}

body.site-theme .form-row input::placeholder,
body.site-theme .form-row textarea::placeholder {
    color: #aebdcc;
}

body.site-theme .form-row input:focus,
body.site-theme .form-row select:focus,
body.site-theme .form-row textarea:focus {
    border-color: rgba(135, 188, 238, 0.72);
    box-shadow: 0 0 0 3px rgba(88, 150, 210, 0.25);
}

/* CTA als eleganter Akzent-Button im dunklen Layout */
body.site-theme .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin-top: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #b7d9ff;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    box-shadow: none;
    text-decoration: none;
}

body.site-theme .cta-button::before {
    content: "";
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6ea7de 0%, #4dc7a4 100%);
    box-shadow: 0 10px 18px rgba(33, 89, 141, 0.42);
    flex-shrink: 0;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

body.site-theme .cta-button::after {
    content: "→";
    margin-left: -34px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.28s ease;
}

body.site-theme .cta-button:hover {
    color: #d7ebff;
    transform: none;
    background: transparent;
}

body.site-theme .cta-button:hover::before {
    transform: translateX(2px) scale(1.03);
    box-shadow: 0 12px 22px rgba(29, 79, 126, 0.5);
}

body.site-theme .cta-button:hover::after {
    transform: translateX(2px);
}

/* ===== page-specific styles added to preserve original looks of subpages ===== */

/* dienstleistungen.html (original inline CSS moved here to keep exact visuals) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 40px;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-subtitle {
    font-size: 18px;
    color: #cccccc;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Reduziert auf 300px */
    gap: 40px;
    margin-bottom: 60px;
}

.service-card {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 40px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.service-icon {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #ffffff;
    text-align: center;
}

.service-description {
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 5px 0;
    color: #e0e0e0;
    list-style: none;
    /* bullet shown inline via ::before so text starts immediately */
}

.service-features li::before {
    content: "▸";
    display: inline-block;
    width: 18px;
    margin-right: 8px;
    color: #888;
    /* aligns the marker directly before the text */
}

/* projekte.html (original inline CSS moved here) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Reduziert auf 300px */
    gap: 40px;
}

.project-card {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.project-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ffffff;
    padding: 10px;
    overflow: hidden;
}

.project-card--after-new-list {
    margin-top: 18px;
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #ffffff;
}

.project-category {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.project-description {
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 20px;
}

.project-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-details li {
    padding: 3px 0;
    color: #e0e0e0;
    font-size: 14px;
    list-style: none;
}
 
.project-details li::before {
    content: "•";
    display: inline-block;
    width: 18px;
    margin-right: 8px;
    color: #888;
}

.project-details strong {
    color: #ffffff;
}

/* ueber-uns.html (original inline CSS moved here) */
.container--narrow {
    max-width: 1000px;
}

/* Keep .container as used on other pages; override max-width for this page via a modifier class usage if needed.
   To avoid changing markup, also provide the exact rules used on the page. */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 40px 40px;
}

.content-section {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.content-section:hover {
    border-color: rgba(255,255,255,0.1);
}

.section-title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ffffff;
}

.section-text {
    font-size: 16px;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-item {
    text-align: center;
    padding: 20px;
}

.value-icon {
    font-size: 32px;
    color: #ffffff;
    margin: 0 auto 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #ffffff;
}

.value-description {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
}

.team-section {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.team-section:hover {
    border-color: rgba(255,255,255,0.1);
}

.team-member {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Sicherstellen, dass es auf sehr kleinen Bildschirmen eine Spalte ist */
    }

    .team-member {
        flex-direction: column; /* Stapelt Bild und Text vertikal */
        text-align: center;
        padding: 15px; /* Reduziertes Padding für Team-Mitglieder auf kleinen Bildschirmen */
    }

    .member-photo {
        margin-bottom: 15px; /* Abstand zwischen Bild und Text */
    }

    .container {
        padding: 100px 15px 40px; /* Noch weniger Padding für extrem schmale Bildschirme */
    }
}

.member-photo {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.member-img[src] + .member-fallback {
    display: none;
}

.member-info h3 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 5px;
    color: #ffffff;
}

.member-role {
    font-size: 16px;
    color: #888;
    margin-bottom: 10px;
}

.member-description {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
}

/* faq.html (original inline CSS moved here) */
.faq-section {
    margin-bottom: 40px;
}

.section-title--center {
    text-align: center;
}

.faq-item {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.faq-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    color: #e0e0e0;
}

.faq-toggle {
    font-size: 20px;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.faq-answer {
    padding: 0 30px 25px;
    color: #cccccc;
    line-height: 1.6;
    font-size: 16px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* ===== end appended page-specific styles ===== */

/* ===== Einheitliches Site-Theme (frisch, elegant, anthrazit) ===== */
.site-theme {
    font-family: 'Montserrat', 'Segoe UI Variable Text', 'Inter', 'Segoe UI', Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 10%, #2a2f36 0%, transparent 40%),
        radial-gradient(circle at 80% 0%, #242a31 0%, transparent 35%),
        linear-gradient(145deg, #161a1f 0%, #1f242c 45%, #15191e 100%);
    color: #f1f3f5;
    letter-spacing: 0.01em;
}

.site-theme h1,
.site-theme h2,
.site-theme h3,
.site-theme .page-title,
.site-theme .section-title,
.site-theme .cta-title {
    font-family: 'Montserrat', 'Segoe UI Variable Text', 'Inter', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0.02em;
}

.site-theme .background-texture {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.75;
}

.site-theme .background-structure {
    opacity: 0.5;
    background-image:
        linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.03) 25%, transparent 50%, rgba(255,255,255,0.02) 75%, transparent 100%),
        linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.015) 50%, transparent 100%);
}

.site-theme .navigation {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: none;
}

.site-theme .nav-logo {
    gap: 10px;
    font-weight: bold;
    letter-spacing: normal;
}

.site-theme .nav-menu {
    gap: 12px;
}

.site-theme .nav-item a {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.site-theme .nav-item a:hover,
.site-theme .nav-item a.active {
    background: linear-gradient(160deg, rgba(255,255,255,0.3), rgba(255,255,255,0.12));
    border-color: rgba(255, 255, 255, 0.48);
    transform: translateY(-2px);
}

.site-theme .logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: none;
}

.site-theme .hero {
    padding-top: 120px;
}

.site-theme .hero-content {
    max-width: 920px;
    margin-bottom: 72px;
}

.site-theme .hero-logo {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    padding: 24px 28px;
    background: linear-gradient(165deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
    max-width: 360px;
}

.site-theme .hero-logo-img {
    width: 100%;
    max-height: 170px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.site-theme .hero-logo-fallback {
    display: none;
}

.site-theme .hero-logo-img[src=""],
.site-theme .hero-logo-img:not([src]) {
    display: none;
}

.site-theme .hero-logo-img[src=""] + .hero-logo-fallback,
.site-theme .hero-logo-img:not([src]) + .hero-logo-fallback {
    display: block;
}

.site-theme .company-name {
    font-family: 'Montserrat', 'Segoe UI Variable Text', 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.site-theme .company-name .rk-brand {
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.site-theme .company-name .vision-brand {
    font-family: 'Montserrat', 'Segoe UI Variable Text', 'Inter', 'Segoe UI', Arial, sans-serif;
}

.site-theme .tagline {
    font-size: clamp(1.05rem, 1.75vw, 1.35rem);
    line-height: 1.65;
    color: #d5d9de;
    max-width: 900px;
}

.site-theme .services-preview,
.site-theme .contact-section,
.site-theme .cta-section {
    background: rgba(10, 12, 16, 0.34);
}

.site-theme .service-card,
.site-theme .project-card,
.site-theme .contact-item,
.site-theme .contact-form-card,
.site-theme .map-card,
.site-theme .content-section,
.site-theme .team-section,
.site-theme .faq-item {
    background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

/* Home: Bildhintergründe für Dienstleistungen mit transparenter Wirkung */
.site-theme .services-preview .service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
}

.site-theme .services-preview .service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7aa7d4 0%, #57c4b0 100%);
    opacity: 0.95;
}

.site-theme .services-preview .service-image {
    width: 100%;
    height: 170px;
    position: relative;
    overflow: hidden;
    background: rgba(37, 40, 45, 0.35);
}

.site-theme .services-preview .service-image .asset-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.site-theme .services-preview .service-content {
    padding: 24px 24px 26px;
    text-align: center;
}

.site-theme .services-preview .service-card:hover .service-image .asset-img {
    transform: scale(1.06);
}

.site-theme .services-preview .service-title {
    color: #f8f5ef;
}

.site-theme .services-preview .service-description {
    color: rgba(248, 245, 239, 0.9);
}

/* Home: Dienstleistungsboxen wie "Über uns" (links dunkel, mitte hell, rechts dunkel) */
.site-theme .services-preview .service-card--automation {
    background: linear-gradient(90deg, #161a1f 0%, #1b2027 100%) !important;
}

.site-theme .services-preview .service-card--planung {
    background: linear-gradient(90deg, #2a3038 0%, #343b45 100%) !important;
}

.site-theme .services-preview .service-card--engineering {
    background: linear-gradient(90deg, #161a1f 0%, #1b2027 100%) !important;
}

.site-theme .services-preview .service-card--automation:hover,
.site-theme .services-preview .service-card--planung:hover,
.site-theme .services-preview .service-card--engineering:hover {
    filter: brightness(1.06);
}

.site-theme .service-card:hover,
.site-theme .project-card:hover,
.site-theme .contact-item:hover,
.site-theme .contact-form-card:hover,
.site-theme .map-card:hover,
.site-theme .faq-item:hover,
.site-theme .content-section:hover,
.site-theme .team-section:hover {
    background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-6px);
}

.site-theme .project-title,
.site-theme .service-title,
.site-theme .cta-title {
    color: #f8f9fa;
}

/* Projekte-Seite: Einheitliche Bildgrössen ohne Verzerrung */
.page-projekte .project-image {
    height: clamp(220px, 30vw, 320px);
    padding: 0;
}

.page-projekte .project-image .asset-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Elegantere Gestaltung der Obertitel */
.site-theme .page-title,
.site-theme .section-title {
    color: #f8f9fa;
    font-weight: 500;
    letter-spacing: 1.2px;
    line-height: 1.2;
}

.site-theme .page-header .page-title,
.site-theme .section-header .section-title {
    display: inline-block;
    position: relative;
    padding-bottom: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #dbe2ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.site-theme .page-header .page-title::after,
.site-theme .section-header .section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(130px, 60%);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.9), rgba(255,255,255,0));
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
}

/* ===== Dienstleistungen: frischerer Look ohne Inhaltsänderung ===== */
body.services-page .container {
    max-width: 1240px;
}

body.services-page .page-header {
    margin-bottom: 54px;
}

body.services-page .page-header .page-title {
    margin-bottom: 12px;
}

body.services-page .services-grid {
    gap: 28px;
}

body.services-page .service-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(168, 194, 222, 0.24);
    background: linear-gradient(160deg, rgba(233, 243, 255, 0.07), rgba(214, 235, 255, 0.03));
    box-shadow: 0 14px 28px rgba(8, 14, 22, 0.28);
    overflow: hidden;
}

body.services-page .service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #7aa7d4 0%, #57c4b0 100%);
    opacity: 0.85;
}

body.services-page .service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(137, 190, 242, 0.5);
    box-shadow: 0 24px 36px rgba(8, 14, 22, 0.4);
}

body.services-page .service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(122, 167, 212, 0.3), rgba(87, 196, 176, 0.16));
    border: 1px solid rgba(163, 196, 227, 0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}

body.services-page .icon-img {
    max-height: 62%;
    max-width: 62%;
}

body.services-page .service-title {
    font-size: 22px;
    line-height: 1.3;
}

body.services-page .service-features li {
    padding: 7px 0;
    border-bottom: 1px dashed rgba(171, 196, 222, 0.22);
}

body.services-page .service-features li:last-child {
    border-bottom: 0;
}

body.services-page .service-features li::before {
    color: #74a3d4;
}

@media (max-width: 768px) {
    body.services-page .page-header {
        margin-bottom: 38px;
    }

    body.services-page .service-card {
        padding: 30px 24px;
    }
}

.site-theme .content-section .section-title,
.site-theme .team-section .section-title,
.site-theme .faq-section .section-title {
    position: relative;
    padding-left: 18px;
}

.site-theme .content-section .section-title::before,
.site-theme .team-section .section-title::before,
.site-theme .faq-section .section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    height: 1.05em;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.3));
}

.site-theme .section-subtitle,
.site-theme .page-subtitle,
.site-theme .project-description,
.site-theme .service-description,
.site-theme .section-text,
.site-theme .value-description,
.site-theme .member-description,
.site-theme .contact-text,
.site-theme .contact-form-subtitle,
.site-theme .faq-answer,
.site-theme .cta-text {
    color: #d2d7dd;
}

.site-theme .form-row input,
.site-theme .form-row select,
.site-theme .form-row textarea {
    background: linear-gradient(160deg, rgba(255,255,255,0.13), rgba(255,255,255,0.05));
    border-color: rgba(255,255,255,0.22);
}

.site-theme .form-row input:focus,
.site-theme .form-row select:focus,
.site-theme .form-row textarea:focus {
    border-color: rgba(255,255,255,0.55);
}

.site-theme .cta-button {
    background: linear-gradient(160deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    border: 1px solid rgba(255,255,255,0.34);
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 14px 28px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.site-theme .cta-button:hover {
    background: linear-gradient(160deg, rgba(255,255,255,0.34), rgba(255,255,255,0.14));
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .site-theme .hero {
        padding-top: 102px;
    }

    .site-theme .hero-logo {
        padding: 18px 20px;
        max-width: 280px;
    }

    .site-theme .logo-img {
        height: 32px;
    }

    .site-theme .page-header .page-title,
    .site-theme .section-header .section-title {
        padding-bottom: 10px;
    }

    .site-theme .page-header .page-title::after,
    .site-theme .section-header .section-title::after {
        width: min(105px, 58%);
    }

    .contact-form-card,
    .map-card {
        padding: 20px;
    }

    .map-embed-wrap,
    .map-embed-wrap iframe {
        min-height: 300px;
        height: 300px;
    }
}

/* ===== 2026 Refresh: Home + Kontakt (modern, frisch, dark) ===== */
.site-theme .hero--fresh {
    position: relative;
    min-height: calc(100vh - 30px);
}

.site-theme .hero--fresh::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(64% 56% at 50% 16%, rgba(107, 170, 232, 0.2) 0%, rgba(107, 170, 232, 0) 74%),
        radial-gradient(50% 42% at 72% 84%, rgba(87, 196, 176, 0.14) 0%, rgba(87, 196, 176, 0) 74%);
    pointer-events: none;
}

.site-theme .hero-container--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.site-theme .hero-container--split .hero-content {
    margin-bottom: 0;
    text-align: left;
}

.site-theme .hero-media {
    width: 100%;
}

.site-theme .hero-media-img {
    width: 100%;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(148, 188, 226, 0.35);
    box-shadow: 0 24px 44px rgba(7, 14, 22, 0.45);
}

.site-theme .hero-eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    padding: 8px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d7e8fb;
    border: 1px solid rgba(165, 204, 240, 0.4);
    background: rgba(169, 209, 246, 0.1);
    border-radius: 999px;
}

.site-theme .hero--fresh .hero-logo {
    border-radius: 22px;
    border-color: rgba(170, 210, 246, 0.35);
    box-shadow: 0 24px 46px rgba(4, 12, 20, 0.46);
}

.site-theme .hero--fresh .company-name {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.site-theme .service-typer {
    min-height: 1.8em;
    margin: 0 auto 16px;
    font-size: clamp(1rem, 2.1vw, 1.35rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #d7e8fb;
}

.site-theme #serviceTyperText {
    display: inline-block;
}

.site-theme .type-caret {
    display: inline-block;
    width: 1px;
    height: 1.1em;
    margin-left: 0.18em;
    vertical-align: -0.1em;
    background: rgba(215, 232, 251, 0.9);
    animation: typeCaretBlink 0.9s steps(1, end) infinite;
}

@keyframes typeCaretBlink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.site-theme .brand-lockup {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.site-theme .brand-note {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c7d8ea;
    font-weight: 500;
}

/* ===== Home Varianten (A/B/C) =====
   Wechsel in index.html über body-Klasse:
   home-variant-a | home-variant-b | home-variant-c */

/* Basis: Keine Box um Firmennamen */
.site-theme .brand-lockup,
.site-theme .company-name,
.site-theme .brand-note,
.site-theme .hero-logo {
    transition: all 0.3s ease;
}

/* Variante A: Klassisch zentriert, Logo oben, Name darunter mit feiner Linie */
.home-variant-a.site-theme .hero--fresh .hero-content {
    text-align: center;
}

.home-variant-a.site-theme .hero--fresh .hero-logo {
    margin: 0 auto 24px;
    max-width: 320px;
}

.home-variant-a.site-theme .brand-lockup {
    position: relative;
    padding-top: 14px;
}

.home-variant-a.site-theme .brand-lockup::before {
    content: "";
    width: 84px;
    height: 1px;
    background: linear-gradient(90deg, rgba(173, 207, 238, 0), rgba(173, 207, 238, 0.9), rgba(173, 207, 238, 0));
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Variante B: Name linksbündig unter Logo (editorial / modern) */
.home-variant-b.site-theme .hero--fresh .hero-content {
    text-align: left;
    max-width: 820px;
    margin-inline: auto;
}

.home-variant-b.site-theme .hero--fresh .hero-logo {
    margin: 0 0 22px;
    max-width: 290px;
}

.home-variant-b.site-theme .brand-lockup {
    align-items: flex-start;
    margin-bottom: 16px;
}

.home-variant-b.site-theme .company-name {
    letter-spacing: 1px;
}

.home-variant-b.site-theme .brand-note {
    letter-spacing: 0.08em;
}

.home-variant-b.site-theme .hero--fresh .tagline,
.home-variant-b.site-theme .hero-actions {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
}

/* Variante C: Kompakt nebeneinander (Logo + Name als Lockup-Row) */
.home-variant-c.site-theme .hero--fresh .hero-content {
    text-align: center;
}

.home-variant-c.site-theme .hero--fresh .hero-logo {
    display: inline-block;
    vertical-align: middle;
    margin: 0 18px 18px 0;
    max-width: 220px;
    padding: 16px 18px;
}

.home-variant-c.site-theme .brand-lockup {
    display: inline-flex;
    vertical-align: middle;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 20px;
}

.home-variant-c.site-theme .company-name {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.1;
}

@media (max-width: 900px) {
    .home-variant-b.site-theme .hero--fresh .hero-content {
        text-align: center;
    }

    .home-variant-b.site-theme .hero--fresh .hero-logo {
        margin: 0 auto 22px;
    }

    .home-variant-b.site-theme .brand-lockup {
        align-items: center;
    }

    .home-variant-b.site-theme .hero--fresh .tagline,
    .home-variant-b.site-theme .hero-actions {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .home-variant-c.site-theme .hero--fresh .hero-logo {
        display: block;
        margin: 0 auto 16px;
        max-width: 250px;
    }

    .home-variant-c.site-theme .brand-lockup {
        display: flex;
        align-items: center;
        text-align: center;
        margin-bottom: 18px;
    }
}

/* ===== FINAL FIX (User Request): zurück zu Anthrazit + CTA Beige ===== */
/* Gesamt-Design wieder anthrazit */
body.site-theme {
    background: linear-gradient(145deg, #161a1f 0%, #1f242c 45%, #15191e 100%);
    color: #f1f3f5;
}

body.site-theme .navigation,
body.site-theme .navigation.scrolled {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Dienstleistungs-Boxen: keine beige Umfärbung, keine blau/grüne Top-Leiste */
body.site-theme .services-preview .service-card,
body.site-theme .services-page .service-card,
body.site-theme body.services-page .service-card,
body.services-page.site-theme .service-card,
body.services-page .service-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 14px 28px rgba(8, 14, 22, 0.28);
}

body.site-theme .services-preview .service-card:hover,
body.services-page .service-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.28);
}

body.site-theme .services-preview .service-card::before,
body.services-page .service-card::before {
    content: none;
    background: none;
}

body.services-page .service-icon {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Buttons Projektanfragen + Kontaktformular wieder mit Beige-Farbverlauf */
body.site-theme .cta-button,
body .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(160deg, #d8c7ae 0%, #c8b297 50%, #bfa488 100%);
    color: #2f241a;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 1px solid rgba(255, 239, 219, 0.55);
    box-shadow: 0 10px 22px rgba(74, 53, 34, 0.26);
}

body.site-theme .cta-button:hover,
body .cta-button:hover {
    background: linear-gradient(160deg, #e1d2bc 0%, #cfbca4 50%, #c5ad93 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(74, 53, 34, 0.32);
}

/* Vorheriger Site-Theme Arrow/Button-Look deaktivieren */
body.site-theme .cta-button::before,
body.site-theme .cta-button::after,
body .cta-button::before,
body .cta-button::after {
    content: none;
}

/* ===== FINAL OVERRIDE: Beige Theme + Partners (Home) ===== */
body.site-theme {
    background: linear-gradient(150deg, #d8c7ae 0%, #c8b297 45%, #bfa488 100%);
    color: #2f241a;
}

body.site-theme .navigation,
body.site-theme .navigation.scrolled {
    background: rgba(75, 56, 38, 0.82);
    border-bottom: 1px solid rgba(255, 239, 219, 0.35);
}

body.site-theme .partners-section {
    padding: 80px 0;
}

body.site-theme .partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
}

body.site-theme .partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 140px;
    text-decoration: none;
    background: rgba(255, 249, 240, 0.2);
    border: 1px solid rgba(255, 235, 210, 0.55);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(74, 53, 34, 0.18);
    transition: all 0.25s ease;
}

body.site-theme .partner-card:hover {
    background: rgba(255, 250, 244, 0.28);
    border-color: rgba(255, 241, 223, 0.85);
    box-shadow: 0 16px 28px rgba(74, 53, 34, 0.24);
    transform: translateY(-4px);
}

body.site-theme .partner-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

body.site-theme .partner-name {
    color: #fff8ef;
    font-weight: 600;
    text-align: center;
}

/* ===== Neue Home Varianten D/E/F ===== */
/* D: Logo als Top-Marke klein, Firmenname dominant darunter */
.home-variant-d.site-theme .hero--fresh .hero-content {
    text-align: center;
}

.home-variant-d.site-theme .hero--fresh .hero-logo {
    max-width: 170px;
    padding: 12px 14px;
    margin: 0 auto 14px;
    border-radius: 14px;
}

.home-variant-d.site-theme .company-name {
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

/* E: Logo links als Badge, Name rechts gross in einer Reihe */
.home-variant-e.site-theme .hero--fresh .hero-content {
    text-align: left;
}

.home-variant-e.site-theme .hero--fresh .hero-logo {
    display: inline-flex;
    vertical-align: middle;
    width: 140px;
    max-width: 140px;
    margin: 0 16px 14px 0;
    padding: 10px 12px;
    border-radius: 12px;
}

.home-variant-e.site-theme .brand-lockup {
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    margin-bottom: 14px;
}

.home-variant-e.site-theme .company-name {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    margin-bottom: 0;
}

.home-variant-e.site-theme .hero--fresh .tagline,
.home-variant-e.site-theme .hero-actions {
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
}

/* F: Logo unter dem Namen als Signet-Abschluss */
.home-variant-f.site-theme .hero--fresh .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-variant-f.site-theme .brand-lockup {
    order: 1;
    margin-bottom: 8px;
}

.home-variant-f.site-theme .company-name {
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    margin-bottom: 0;
}

.home-variant-f.site-theme .hero--fresh .hero-logo {
    order: 2;
    max-width: 190px;
    padding: 12px 14px;
    margin: 0 auto 20px;
    border-radius: 14px;
}

.home-variant-f.site-theme .hero--fresh .tagline {
    order: 3;
}

.home-variant-f.site-theme .hero-actions {
    order: 4;
}

@media (max-width: 900px) {
    .home-variant-e.site-theme .hero--fresh .hero-content {
        text-align: center;
    }

    .home-variant-e.site-theme .hero--fresh .hero-logo {
        display: block;
        margin: 0 auto 14px;
    }

    .home-variant-e.site-theme .brand-lockup {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 14px;
    }

    .home-variant-e.site-theme .hero--fresh .tagline,
    .home-variant-e.site-theme .hero-actions {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
}

.site-theme .hero--fresh .tagline {
    max-width: 780px;
    margin-left: 0;
    margin-right: 0;
}

.site-theme .variant-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
}

.site-theme .variant-switch label {
    font-size: 0.85rem;
    color: #d9c8b3;
    font-weight: 500;
}

.site-theme .variant-switch-select {
    border: 1px solid rgba(255,255,255,0.24);
    background: rgba(26, 30, 36, 0.92);
    color: #ffffff;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.9rem;
}

.site-theme .variant-switch-select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.55);
}

.site-theme .hero-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 18px;
}

.site-theme .cta-button.cta-button--primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-height: 50px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid rgba(145, 190, 232, 0.5);
    background: linear-gradient(135deg, #2f3338 0%, #77a8d8 55%, #56c5b0 100%);
    color: #f4f9ff;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.98rem;
    font-weight: 600;
    box-shadow: 0 16px 28px rgba(12, 14, 17, 0.36);
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.site-theme .cta-button.cta-button--primary::before,
.site-theme .cta-button.cta-button--primary::after {
    display: none;
}

.site-theme .cta-button.cta-button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 34px rgba(12, 14, 17, 0.42);
    filter: brightness(1.05);
}

.site-theme .cta-wrap--wide {
    margin-top: 28px;
}

.site-theme .cta-button.cta-button--primary.cta-button--block {
    width: 100%;
    min-height: 58px;
    margin-top: 0;
}

.site-theme .contact-grid--pro {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.site-theme .contact-grid--pro .contact-item--clean {
    min-height: 110px;
    padding: 18px 18px;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(166, 195, 224, 0.34);
    background: linear-gradient(160deg, rgba(238, 246, 255, 0.1), rgba(238, 246, 255, 0.04));
}

.site-theme .contact-grid--pro .contact-item--clean:nth-child(1),
.site-theme .contact-grid--pro .contact-item--clean:nth-child(2) {
    grid-column: span 6;
}

.site-theme .contact-grid--pro .contact-item--clean:nth-child(n+3) {
    grid-column: span 4;
}

.site-theme .contact-grid--pro .contact-item--clean:hover {
    border-color: rgba(143, 198, 246, 0.56);
    box-shadow: 0 14px 26px rgba(6, 16, 28, 0.38);
}

.site-theme .contact-grid--pro .contact-value {
    font-size: 0.95rem;
}

.site-theme .contact-form-card .cta-button.cta-button--primary {
    width: 100%;
    margin-top: 8px;
}

.site-theme .services-preview,
.site-theme .projects-preview,
.site-theme .contact-section {
    position: relative;
    padding-top: 95px;
    padding-bottom: 95px;
}

.site-theme .services-preview::before,
.site-theme .projects-preview::before,
.site-theme .contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1080px, calc(100% - 42px));
    height: 1px;
    background: linear-gradient(90deg, rgba(125, 157, 190, 0), rgba(154, 191, 228, 0.58), rgba(125, 157, 190, 0));
}

@media (max-width: 900px) {
    .site-theme .contact-grid--pro .contact-item--clean:nth-child(1),
    .site-theme .contact-grid--pro .contact-item--clean:nth-child(2),
    .site-theme .contact-grid--pro .contact-item--clean:nth-child(n+3) {
        grid-column: span 6;
    }
}

@media (max-width: 680px) {
    .site-theme .variant-switch {
        display: flex;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .site-theme .hero-eyebrow {
        margin-bottom: 18px;
        font-size: 0.69rem;
    }

    .site-theme .hero--fresh .company-name {
        font-size: clamp(1.75rem, 8vw, 2.3rem);
    }

    .site-theme .hero-container--split {
        grid-template-columns: 1fr;
    }

    .site-theme .hero-container--split .hero-content {
        text-align: center;
    }

    .site-theme .hero--fresh .tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .site-theme .hero-actions {
        justify-content: center;
    }

    .site-theme .hero-media {
        max-width: 560px;
        margin: 0 auto;
    }

    .site-theme .contact-grid--pro {
        grid-template-columns: 1fr;
    }

    .site-theme .contact-grid--pro .contact-item--clean:nth-child(1),
    .site-theme .contact-grid--pro .contact-item--clean:nth-child(2),
    .site-theme .contact-grid--pro .contact-item--clean:nth-child(n+3) {
        grid-column: auto;
    }
}

/* ===== ABSCHLIESSENDER OVERRIDE (Kundenwunsch) ===== */
/* 1) Gesamtbild zurück auf anthrazit */
body.site-theme {
    background: linear-gradient(145deg, #161a1f 0%, #1f242c 45%, #15191e 100%) !important;
    color: #f1f3f5 !important;
}

body.site-theme .background-texture,
body.site-theme .background-structure {
    display: none !important;
    background: none !important;
    background-image: none !important;
}

body.site-theme .navigation,
body.site-theme .navigation.scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* 2) Dienstleistungs-Boxen: kein Beige, kein blau/grüner Balken */
body.site-theme .services-preview .service-card,
body.services-page .service-card {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: 0 14px 28px rgba(8, 14, 22, 0.28) !important;
}

body.site-theme .services-preview .service-card {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
}

body.site-theme .services-preview .service-card:hover,
body.services-page .service-card:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.28) !important;
}

body.site-theme .services-preview .service-card::before,
body.services-page .service-card::before {
    content: none !important;
    background: none !important;
}

body.services-page .service-icon {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

/* 3) Buttons "Projektanfragen" + Kontaktformular wieder mit Beige-Verlauf */
body .cta-button,
body.site-theme .cta-button,
body .cta-button.cta-button--primary,
body.site-theme .cta-button.cta-button--primary {
    display: inline-block !important;
    padding: 15px 30px !important;
    min-height: unset !important;
    background: linear-gradient(160deg, #d8c7ae 0%, #c8b297 50%, #bfa488 100%) !important;
    color: #2f241a !important;
    border: 1px solid rgba(255, 239, 219, 0.55) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 600 !important;
    box-shadow: 0 10px 22px rgba(74, 53, 34, 0.26) !important;
}

body .cta-button:hover,
body.site-theme .cta-button:hover,
body .cta-button.cta-button--primary:hover,
body.site-theme .cta-button.cta-button--primary:hover {
    background: linear-gradient(160deg, #e1d2bc 0%, #cfbca4 50%, #c5ad93 100%) !important;
    color: #2a2017 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 26px rgba(74, 53, 34, 0.32) !important;
    filter: none !important;
}

body .cta-button::before,
body .cta-button::after,
body.site-theme .cta-button::before,
body.site-theme .cta-button::after,
body .cta-button.cta-button--primary::before,
body .cta-button.cta-button--primary::after,
body.site-theme .cta-button.cta-button--primary::before,
body.site-theme .cta-button.cta-button--primary::after {
    content: none !important;
    display: none !important;
}

/* 4) Einheitliche Typografie: Texte beige, Übertitel weiss */
body.site-theme,
body.site-theme p,
body.site-theme li,
body.site-theme .tagline,
body.site-theme .section-subtitle,
body.site-theme .service-description,
body.site-theme .project-description,
body.site-theme .project-category,
body.site-theme .section-text,
body.site-theme .value-description,
body.site-theme .member-description,
body.site-theme .contact-text,
body.site-theme .contact-form-subtitle,
body.site-theme .faq-answer,
body.site-theme .cta-text,
body.site-theme .contact-label,
body.site-theme .form-row label,
body.site-theme .contact-value,
body.site-theme .service-features li,
body.site-theme .project-details li {
    color: #e6d6c2 !important;
}

body.site-theme h1,
body.site-theme h2,
body.site-theme h3,
body.site-theme .page-title,
body.site-theme .section-title,
body.site-theme .service-title,
body.site-theme .project-title,
body.site-theme .cta-title,
body.site-theme .contact-form-title {
    color: #ffffff !important;
}

/* 5) Startseite: störenden dunkel->beige Verlauf neutralisieren */
body.site-theme .hero--fresh::before {
    background:
        radial-gradient(60% 50% at 50% 14%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 72%),
        radial-gradient(48% 40% at 72% 84%, rgba(170,180,195,0.08) 0%, rgba(170,180,195,0) 72%) !important;
}

/* 6) Header-Logo ohne Box darstellen */
body.site-theme .nav-logo {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.site-theme .logo-img {
    height: 36px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
    transform-origin: center;
    animation: none !important;
    transform: none !important;
}

body.site-theme .nav-logo:hover {
    background: transparent;
    border-color: transparent;
}

@keyframes logoSpinEvery6s {
    0%, 88% {
        transform: rotate(0deg);
    }
    96% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Startseite: Obertitel grösser */
body.site-theme .services-preview .section-title,
body.site-theme .projects-preview .section-title,
body.site-theme .partners-section .section-title,
body.site-theme .contact-section .section-title {
    font-size: clamp(1.9rem, 3.8vw, 2.7rem) !important;
}

/* Dienstleistungen-Seite: Bilder statt Quadrat-Optik, in Home-ähnlicher Grösse */
body.services-page .service-card .service-image {
    height: 170px;
    margin: -40px -40px 22px;
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: rgba(37, 40, 45, 0.35);
}

body.services-page .service-card .service-image .asset-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    body.services-page .service-card .service-image {
        margin: -30px -24px 18px;
    }
}

/* ===== Fixes: Partner-Titel, Zentrierung Box 1, Mobile Dienstleistungen ===== */
/* 1) Strich unter "Partnerschaften" sicher anzeigen */
body.site-theme .partners-section .section-header .section-title::after {
    content: "" !important;
    display: block;
}


/* 3) Mobile: "Unsere Dienstleistungen" skalieren, damit kein erzwungenes Scrollen entsteht */
@media (max-width: 768px) {
    body.site-theme .services-preview .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        line-height: 1.2;
        letter-spacing: 0.5px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

/* ===== Nachkorrektur gemäss Feedback ===== */
/* A) Dienstleistungen-Seite: Titel mobil so skalieren, dass kein horizontaler Scroll nötig ist */
@media (max-width: 768px) {
    body.services-page .page-header .page-title {
        font-size: clamp(1.55rem, 8vw, 2.05rem) !important;
        line-height: 1.18;
        letter-spacing: 0.25px !important;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* Rechtliches Footer + Seiten */
.legal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.legal-footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-footer-copy {
    color: #d9c4ab;
    font-size: 0.9rem;
}

.legal-footer-links {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-footer-links a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.legal-footer-links a:hover {
    opacity: 0.8;
    border-color: rgba(255, 255, 255, 0.7);
}

.legal-page {
    padding: 120px 0 80px;
}

.legal-page-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(8, 14, 22, 0.28);
    padding: 30px;
}

.legal-page-card h2 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-page-card h2:first-of-type {
    margin-top: 8px;
}

.legal-page-card p,
.legal-page-card li {
    color: #e6d6c2;
    line-height: 1.7;
}

.legal-page-card ul {
    padding-left: 20px;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 105px 0 60px;
    }

    .legal-page-card {
        padding: 22px;
    }
}

/* ===== Partner-Logos: frischer Look mit sauberem Kontrast für helle/weisse Logos ===== */
body.site-theme .partners-section .partner-card {
    position: relative;
    padding: 6px;
    background: linear-gradient(160deg, rgba(255, 249, 240, 0.16), rgba(255, 249, 240, 0.08)) !important;
    border: 1px solid rgba(255, 235, 210, 0.5) !important;
    box-shadow: 0 12px 26px rgba(40, 26, 14, 0.2) !important;
}

body.site-theme .partners-section .partner-card:hover {
    background: linear-gradient(160deg, rgba(255, 252, 247, 0.24), rgba(255, 250, 244, 0.14)) !important;
    border-color: rgba(255, 241, 223, 0.9) !important;
    box-shadow: 0 18px 30px rgba(40, 26, 14, 0.28) !important;
}

body.site-theme .partners-section .partner-logo {
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 300px;
    padding: 2px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 241, 234, 0.95));
    border: 1px solid rgba(200, 171, 139, 0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 8px 18px rgba(55, 37, 22, 0.2);
    object-fit: contain;
}

@media (max-width: 768px) {
    body.site-theme .partners-section .partner-logo {
        width: 100%;
        height: 100%;
        max-width: 240px;
        max-height: 240px;
        padding: 2px;
    }
}

/* ===== Dienstleistungen-Layout: wie Projekte (Bild oben, Text unten) ===== */
body.services-page .services-preview--page {
    padding: 100px 0 80px;
}

body.services-page .services-preview--page .section-header {
    margin-bottom: 60px;
}

body.services-page .services-preview--page .section-title {
    margin-bottom: 0;
}

body.services-page .services-grid--detail {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

body.services-page .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 34px;
}

body.services-page .service-card {
    display: block;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: 0 14px 28px rgba(8, 14, 22, 0.28) !important;
}

body.services-page .service-card .service-image {
    width: 100%;
    height: 220px;
    min-height: 220px;
    margin: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    background: rgba(20, 24, 30, 0.28);
}

body.services-page .service-card .service-image .asset-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

body.services-page .service-card:hover .service-image .asset-img {
    transform: scale(1.04);
}

body.services-page .service-card .service-content {
    padding: 26px 26px 24px;
}

body.services-page .service-card .service-content::before {
    content: none;
}

body.services-page .service-card .service-title {
    margin: 0 0 12px;
    text-align: left;
}

body.services-page .service-card .service-description {
    margin-bottom: 14px;
    max-width: none;
}

body.services-page .service-card .service-features {
    margin-top: 0;
}

body.services-page .service-card .service-features li {
    border-bottom: 0;
    padding: 5px 0;
}

@media (max-width: 768px) {
    body.services-page .services-preview--page {
        padding: 105px 0 60px;
    }

    body.services-page .services-preview--page .section-header {
        margin-bottom: 38px;
    }

    body.services-page .services-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    body.services-page .service-card .service-image {
        height: 190px;
        min-height: 190px;
    }

    body.services-page .service-card .service-content {
        padding: 22px 20px 20px;
    }
}

/* ===== Dienstleistungen: Split-Layout wie gewünscht (Titel wie Home, links/rechts abwechselnd) ===== */
body.services-page .services-preview--page .section-container {
    display: grid;
    gap: 0;
}

body.services-page .service-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: clamp(22px, 4vw, 56px);
    align-items: center;
    padding: clamp(28px, 4vw, 44px) 0;
    border-top: 0;
}

body.services-page .service-split-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.services-page .service-accordion {
    width: 100%;
}

body.services-page .service-accordion summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 10px;
    color: #e6d6c2;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.services-page .service-accordion summary::-webkit-details-marker {
    display: none;
}

body.services-page .service-accordion summary::before {
    content: "☰";
    font-size: 15px;
    line-height: 1;
    color: #e6d6c2;
    transition: transform 0.25s ease;
}

body.services-page .service-accordion:not([open]) summary::before {
    transform: rotate(-90deg);
}

body.services-page .service-accordion .service-split-title.section-title {
    margin: 0;
    text-align: left;
}

body.services-page .service-split:last-child {
    border-bottom: 0;
}

body.services-page .service-split--reverse {
    grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
}

body.services-page .service-split--reverse .service-split-text {
    order: 2;
}

body.services-page .service-split--reverse .service-split-media {
    order: 1;
}

body.services-page .service-split-title.section-title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.2;
    margin: 0 0 18px;
    text-align: left;
}

body.services-page .service-split-text .service-description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 72ch;
}

body.services-page .service-split-text .service-features {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

body.services-page .service-split-text .service-features li {
    color: #e6d6c2;
}

body.services-page .service-split-text .service-features li::before {
    content: none !important;
}

body.services-page .service-split-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 14px 28px rgba(8, 14, 22, 0.28);
}

body.services-page .service-split-media .asset-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    body.services-page .service-split,
    body.services-page .service-split--reverse {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 0;
    }

    body.services-page .service-split--reverse .service-split-text,
    body.services-page .service-split--reverse .service-split-media {
        order: unset;
    }

    body.services-page .service-split-title.section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        letter-spacing: 0.5px;
        margin-bottom: 12px;
    }
}

/* ===== Home: Wil Contact Band (Skyline + Kontaktdaten) ===== */
body.site-theme .contact-section--wil {
    padding: 0 !important;
}

body.site-theme .wil-contact-band {
    margin-top: 0;
    background: #000000;
    border-top: 1px solid rgba(221, 236, 255, 0.18);
    box-shadow: 0 -10px 30px rgba(10, 16, 24, 0.25);
}

body.site-theme .services-preview .service-card .service-title {
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

body.site-theme .services-preview .service-card--automation .service-title {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Einheitlicher Hintergrundverlauf für alle Haupt-Sektionen */
body.site-theme .hero,
body.site-theme .services-preview,
body.site-theme .projects-preview,
body.site-theme .partners-section,
body.site-theme .contact-section {
    background: linear-gradient(145deg, #161a1f 0%, #1f242c 45%, #15191e 100%) !important;
}

body.site-theme .wil-skyline {
    line-height: 0;
    width: 100%;
    background: transparent;
}

body.site-theme .wil-skyline-image {
    display: block;
    width: 100%;
    height: auto;
}

body.site-theme .wil-skyline-caption {
    margin: 10px 0 0;
    text-align: center;
    padding: 0 clamp(20px, 4vw, 40px);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 238, 247, 0.88);
}

body.site-theme .wil-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: clamp(22px, 3vw, 48px);
    padding-top: 30px;
    padding-bottom: 34px;
}

body.site-theme .wil-col {
    min-width: 0;
    text-align: center;
}

body.site-theme .wil-heading {
    margin: 0 0 16px;
    color: #ff4f8b;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.site-theme .wil-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.site-theme .wil-brand-logo {
    width: min(120px, 56%);
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.28));
}

body.site-theme .wil-brand-name {
    margin-top: 10px;
    color: #e8eef7;
    font-size: 14px;
    font-weight: 600;
}

body.site-theme .wil-socials {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

body.site-theme .wil-socials a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    color: #f6fbff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(222, 236, 255, 0.28);
    transition: all 0.25s ease;
}

body.site-theme .wil-socials a svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

body.site-theme .wil-socials a:hover {
    transform: translateY(-2px);
    background: rgba(255, 79, 139, 0.24);
    border-color: rgba(255, 143, 182, 0.55);
}

body.site-theme .wil-line {
    margin: 0 0 10px;
    color: #e8eef7;
    line-height: 1.5;
    font-size: 14px;
}

body.site-theme .wil-line--strong {
    font-weight: 700;
}

body.site-theme .wil-line a {
    color: #e8eef7;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

body.site-theme .wil-line a:hover {
    border-color: rgba(232, 238, 247, 0.65);
}

body.site-theme .wil-services-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

body.site-theme .wil-services-list li {
    color: #f1f6fc;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    position: relative;
    padding-left: 20px;
}

body.site-theme .wil-services-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #ff4f8b;
    transform: translateY(-50%);
}

body.site-theme .wil-cta-wrap {
    margin-top: 14px;
    text-align: center;
}

body.site-theme .wil-cta-wrap .cta-button {
    display: inline-block !important;
}

@media (max-width: 1024px) {
    body.site-theme .wil-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.site-theme .contact-section--wil {
        padding-top: 0 !important;
    }

    body.site-theme .wil-contact-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 24px;
        padding-bottom: 26px;
    }

    body.site-theme .wil-heading {
        font-size: 18px;
    }

    body.site-theme .wil-line,
    body.site-theme .wil-services-list li,
    body.site-theme .wil-brand-name {
        font-size: 13px;
    }

    body.site-theme .wil-brand-logo {
        width: 104px;
    }

    body.site-theme .wil-cta-wrap {
        margin-top: 18px;
    }
}

/* Mobile-Feinschliff für den unteren 3er-Block */
@media (max-width: 768px) {
    body.site-theme .wil-contact-grid {
        gap: 22px;
        padding-top: 30px;
        padding-bottom: 32px;
    }

    body.site-theme .wil-col {
        text-align: center;
    }
}

/* Cookie-Banner (Homepage) */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2500;
    background: rgba(18, 22, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.cookie-banner__content {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
}

.cookie-banner__text {
    margin: 0;
    color: #e6d6c2;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-banner__btn--accept {
    background: #d8c7ae;
    color: #2f241a;
    border-color: rgba(255, 239, 219, 0.55);
}

.cookie-banner__btn--accept:hover {
    background: #e1d2bc;
}

.cookie-banner__btn--decline {
    background: transparent;
    color: #e6d6c2;
}

.cookie-banner__btn--decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-banner__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__btn {
        flex: 1;
    }
}

/* ===== FINAL FIX: Home-Dienstleistungen einheitlich ===== */
body.site-theme .services-preview .service-card {
    background: linear-gradient(90deg, #161a1f 0%, #1f242c 50%, #15191e 100%) !important;
    border: 1px solid rgba(255, 235, 210, 0.4) !important;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(74, 53, 34, 0.18);
}

body.site-theme .services-preview .service-card:hover {
    background: linear-gradient(90deg, #1a1f25 0%, #252b33 50%, #191e24 100%) !important;
    border-color: rgba(255, 241, 223, 0.75) !important;
    box-shadow: 0 16px 28px rgba(74, 53, 34, 0.24);
}

@media (max-width: 768px) {
    /* Mobile-Fix: alle Home-Dienstleistungsboxen exakt gleich */
    body.site-theme .services-preview .service-card {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        padding: 30px !important;
    }

    body.site-theme .services-preview .service-card .service-content {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        text-align: center !important;
    }
}
