:root {
    --color-primary: #1e3a5f;
    --color-primary-dark: #162d48;
    --color-secondary: #c29d20;
    --color-secondary-soft: #e7d7a6;
    --color-surface: #ffffff;
    --color-bg: #f5f7fa;
    --color-bg-strong: #eef3f8;
    --color-text: #000000;
    --color-text-soft: #425466;
    --color-border: rgba(30, 58, 95, 0.12);
    --color-note-bg: #fff7f7;
    --color-note-border: #c44444;
    --color-note-text: #8b1e1e;
    --shadow-soft: 0 18px 40px rgba(22, 45, 72, 0.10);
    --shadow-light: 0 10px 24px rgba(22, 45, 72, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

/* =========================================================
   1. Schriftarten und Basis
   ========================================================= */

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/inter-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--color-text);
    background: var(--color-surface);
    text-align: justify;
    hyphens: auto;
    line-height: 1.7;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover,
a:focus-visible {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    display: block;
}

p,
ul {
    margin-top: 0;
}

strong {
    color: var(--color-primary);
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

/* =========================================================
   2. Typografie und wiederkehrende Elemente
   ========================================================= */

h1,
h2,
h3,
h4 {
    margin-top: 0;
    line-height: 1.2;
    text-align: left;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    color: #b79c56;
    margin-bottom: 0.8rem;
}

.eyebrow,
.section-kicker,
.hero-kicker {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.36rem 0.8rem;
    border-radius: 999px;
    background: rgba(194, 157, 32, 0.14);
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: left;
}

.section {
    padding: 5rem 0;
}

.section--light {
    background: var(--color-bg);
}

.section--accent {
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.04), rgba(194, 157, 32, 0.10));
}

.section-intro {
    max-width: 860px;
    margin-bottom: 1.75rem;
}

.section-intro--wide,
.leistungen-intro {
    max-width: none;
    width: 100%;
}

/* =========================================================
   3. Buttons und Listen
   ========================================================= */

.button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 52px;
    padding: 0.95rem 1.45rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button,
.btn-primary {
    background: var(--color-secondary);
    color: #13273d !important;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 10px 24px rgba(22, 45, 72, 0.18);
}

.button:hover,
.button:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible {
    background: #d1ad33;
    border-color: #d1ad33;
    color: #13273d !important;
    transform: translateY(-1px);
}

.button--secondary,
.btn-secondary {
    background: transparent;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary);
    box-shadow: none;
}

.button--secondary:hover,
.button--secondary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible {
    color: #ffffff !important;
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.hero-list,
.check-list,
.footer-links {
    padding-left: 1.2rem;
}

.hero-list li,
.check-list li,
.legal-content li,
.footer-links li {
    margin-bottom: 0.45rem;
}

/* =========================================================
   4. Hinweisleiste, Header und Navigation
   ========================================================= */

.top-note {
    background: var(--color-note-bg);
    border-bottom: 2px solid var(--color-note-border);
}

.top-note__inner {
    padding: 0.85rem 0;
}

.top-note p {
    margin: 0;
    color: var(--color-note-text);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 92px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-primary);
}

.brand:hover,
.brand:focus-visible {
    color: var(--color-primary);
    text-decoration: none;
}

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

.logo-image {
    max-height: 68px;
    max-width: 220px;
    width: auto;
    height: auto;
    background: transparent;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    color: var(--color-primary);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
}

.logo-subline {
    font-size: 0.92rem;
    color: var(--color-text-soft);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-weight: 700;
}

.nav-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: 14px;
    padding: 0.7rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    background: var(--color-primary);
    border-radius: 999px;
}

.nav-toggle span + span {
    margin-top: 6px;
}

/* =========================================================
   5. Einheitliche Hero-Section
   ---------------------------------------------------------
   Alle Seiten nutzen dieselbe Struktur:
   .hero > .hero-overlay > .hero-split
   links:  .hero-logo-box
   rechts: .hero-cta-box
   Nur das Hintergrundbild wird pro Seite per Modifier geändert.
   ========================================================= */

.hero {
    position: relative;
    isolation: isolate;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5.75rem 0 4.5rem;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(22, 45, 72, 0.82), rgba(30, 58, 95, 0.66)),
        radial-gradient(circle at top right, rgba(194, 157, 32, 0.28), transparent 34%),
        url('/assets/images/hero-tiptop.jpg') center/cover no-repeat;
}

.hero--leistungen {
    background:
        linear-gradient(120deg, rgba(22, 45, 72, 0.82), rgba(30, 58, 95, 0.66)),
        radial-gradient(circle at top right, rgba(194, 157, 32, 0.28), transparent 34%),
        url('/assets/images/hero-leistungen.png') center/cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(30, 58, 95, 0.34);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.hero-overlay,
.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--container), calc(100% - 2rem));
    max-width: none;
    margin: 0 auto;
    padding: 0;
    text-align: left;
    color: #ffffff;
}

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

.hero-logo-box {
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-box img {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.hero-cta-box {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-cta-box h1,
.hero-cta-box h2 {
    color: var(--color-primary);
    text-align: left;
    text-shadow: none;
}

.hero-cta-box p,
.hero-cta-box li,
.hero-cta-box .hero-subline {
    color: var(--color-text);
    text-align: left;
    text-shadow: none;
}

.hero-cta-box .hero-subline {
    max-width: none;
    margin: 0 0 1.35rem;
    font-size: 1.2rem;
    line-height: 1.7;
}

.hero-cta,
.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: flex-start;
    align-items: center;
    margin: 1.5rem 0 1.35rem;
}

/* =========================================================
   6. Raster, Karten und Inhaltsbereiche
   ========================================================= */

.two-column,
.area-grid,
.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
}

.card-grid,
.benefits-grid,
.services-grid {
    display: grid;
    gap: 1.35rem;
}

.card-grid,
.benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.contact-card,
.service-card,
.benefit-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.contact-card--accent {
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.04), rgba(255, 255, 255, 1));
}

.service-card a {
    display: inline-flex;
    align-items: center;
    margin-top: 0.75rem;
    font-weight: 800;
    color: var(--color-primary);
}

.service-card a:hover,
.service-card a:focus-visible {
    color: var(--color-secondary);
}

/* =========================================================
   7. Kontaktbereiche und CTA-Blöcke
   ========================================================= */

.leistungen-contact-box,
.cta-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-light);
    padding: 2rem;
}

.leistungen-contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.leistungen-contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.9rem;
}

.leistungen-contact-actions .btn,
.leistungen-contact-actions .button {
    min-width: 200px;
}

/* Kartenvariante für direkte Kontaktwege */
.direct-contact-grid,
.contact-path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
    margin-top: 1.5rem;
}

.direct-contact-card,
.contact-path-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    color: var(--color-text);
    text-decoration: none;
}

.direct-contact-card:hover,
.direct-contact-card:focus-visible,
.contact-path-card:hover,
.contact-path-card:focus-visible {
    color: var(--color-text);
    transform: translateY(-2px);
}

.direct-contact-card h3,
.contact-path-card h3,
.direct-contact-card strong,
.contact-path-card strong {
    color: #b79c56;
}

/* =========================================================
   8. Rechtliches, Footer und Back-to-top
   ========================================================= */

.legal-section {
    padding-top: 3rem;
}

.legal-content {
    max-width: 920px;
}

.legal-content h2 {
    margin-top: 2rem;
}

.legal-content h3,
.legal-content h4 {
    color: var(--color-primary);
}

.site-footer {
    background: var(--color-primary-dark);
    color: #dce8f5;
    padding-top: 3.5rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: #dce8f5;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--color-secondary-soft);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2rem;
}

.back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: var(--color-secondary);
    color: #10253b;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* =========================================================
   9. Projektvorgaben aus früheren Arbeiten
   ========================================================= */

.sppb-addon-accordion .sppb-panel .sppb-panel-body .sppb-addon-content {
    font-weight: 600;
    color: #ffffff;
}

.sppb-addon-video-local-source {
    height: auto;
}

/* =========================================================
   10. Responsive Anpassungen
   ========================================================= */

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

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    /* Mobile Header: nur Logo-Bild anzeigen */
    .brand .logo-text-wrap {
        display: none;
    }

    .brand .logo-mark {
        display: block;
    }

    .brand .logo-image {
        max-height: 50px;
        width: auto;
    }
}

@media (max-width: 820px) {
    .container {
        width: min(var(--container), calc(100% - 1.25rem));
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1rem;
        right: 1rem;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        padding: 1rem;
        box-shadow: var(--shadow-soft);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .main-nav a {
        display: block;
        padding: 0.25rem 0;
    }

    .hero {
        min-height: auto;
        padding: 3.75rem 0;
    }

    .hero-overlay,
    .hero-content {
        width: min(var(--container), calc(100% - 1.25rem));
    }

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

    .hero-logo-box {
        min-height: auto;
        margin-bottom: 1rem;
    }

    .hero-logo-box img {
        max-width: 150px;
    }

    .hero-cta-box {
        padding: 1.4rem;
        background: rgba(255, 255, 255, 0.82);
    }

    .hero-cta,
    .hero-actions,
    .contact-actions,
    .leistungen-contact-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .hero-cta .btn,
    .hero-actions .btn,
    .contact-actions .btn,
    .leistungen-contact-actions .btn,
    .hero-cta .button,
    .hero-actions .button,
    .contact-actions .button,
    .leistungen-contact-actions .button {
        width: 100%;
        min-width: 0;
    }

    .two-column,
    .area-grid,
    .footer-grid,
    .card-grid,
    .benefits-grid,
    .services-grid,
    .leistungen-contact-grid,
    .direct-contact-grid,
    .contact-path-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .header-inner {
        min-height: 82px;
    }

    .top-note p {
        font-size: 1rem;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .logo-subline {
        font-size: 0.84rem;
    }

    .hero-logo-box,
    .hero-cta-box,
    .hero-card,
    .info-card,
    .contact-card,
    .service-card,
    .benefit-card,
    .leistungen-contact-box,
    .cta-box {
        padding: 1.2rem;
        border-radius: 18px;
    }

    .section {
        padding: 3.75rem 0;
    }
}

/* =========================================================
   11. Leistungs-Unterseiten
   ---------------------------------------------------------
   Einheitliches Layout für alle Leistungsdetails:
   links Inhalt als Karte, rechts Themenbild.
   ========================================================= */

.service-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 2rem;
    align-items: stretch;
}

.service-detail-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.service-detail-card h3 {
    margin-top: 1.5rem;
}

.service-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.service-detail-media {
    min-height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
}

.service-detail-media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

@media (max-width: 920px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-media img {
        min-height: 280px;
    }
}

@media (max-width: 620px) {
    .service-detail-card {
        padding: 1.2rem;
        border-radius: 18px;
    }

    .service-detail-actions {
        flex-direction: column;
    }

    .service-detail-actions .btn,
    .service-detail-actions .button {
        width: 100%;
        min-width: 0;
    }

    .service-detail-media {
        border-radius: 18px;
    }
}
