﻿/* Globale Farben */
:root {
    --blue: #1E73BE; /* Hauptblau der Webseite */
    --accent: #fca311; /* Akzentfarbe fuer Buttons und Highlights */
    --bg: #fbfcfd; /* sehr helles Weiss fuer den Hintergrund */
    --nav: #111111; /* dunkle Farbe fuer die Navigation */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Grundeinstellungen fuer die ganze Seite */
body {
    margin: 0; /* kein automatischer Rand vom Browser */
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif; /* moderne, gut lesbare Schrift */
    background: var(--bg); /* Hintergrundfarbe aus der Variable --bg */
    color: #111111;
    overflow-x: hidden; /* verhindert horizontales Scrollen bei ueberstehenden Elementen */
}

/* Inhalt nur fuer Screenreader sichtbar machen */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Allgemeine Einstellung fuer alle Sections */
section {
    scroll-margin-top: 90px; /* Abstand bei Sprunglinks wegen festem Header */
}

/* Header */
.header {
    position: fixed; /* Header liegt fest ueber der Seite */
    top: 0; /* Header startet ganz oben */
    left: 0; /* Header startet ganz links */
    width: 100%; /* Header geht ueber die ganze Breite */
    z-index: 1000; /* Header liegt vor anderen Elementen */

    background: transparent; /* Hero-Bild geht oben in den Header ueber */
    backdrop-filter: none; /* kein Blur-Effekt ganz oben */

    border-bottom: 1px solid transparent; /* unsichtbare Linie unten am Header */
    transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease; /* weicher Wechsel beim Scrollen */
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 130px;
    background: linear-gradient(180deg, rgba(5,18,37,0.58) 0%, rgba(5,18,37,0.30) 58%, rgba(5,18,37,0) 100%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Header nachdem man etwas gescrollt hat */
.header.scrolled {
    background: rgba(255,255,255,0.8); /* halbtransparenter weisser Hintergrund */
    backdrop-filter: blur(12px); /* Glas-Effekt durch Unschaerfe */
    border-bottom-color: rgba(0,0,0,0.05); /* feine Linie unten am Header */
}

.header.scrolled::before {
    opacity: 0;
}

/* Innencontainer vom Header */
.header-inner {
    max-width: 1800px; /* maximale Breite des Header-Inhalts */
    margin: 0 auto; /* oben/unten kein Abstand, links/rechts automatisch zentriert */
    position: relative;
    z-index: 1;

    display: flex; /* Flexbox fuer Logo und Navigation */
    align-items: flex-end; /* Logo und Navigation an der unteren Kante ausrichten */
    justify-content: space-between; /* Logo links, Navigation rechts */

    padding: 12px 20px; /* Innenabstand: oben/unten 12px, links/rechts 20px */
}

/* Logo-Bild */
.logo img {
    width: auto;
    height: clamp(38px, 4.5vw, 58px); /* flexible Logo-Hoehe: min 38px, ideal 4.5vw, max 58px */
    max-width: min(72vw, 430px);
    display: block; /* entfernt den kleinen Standard-Abstand unter Bildern */
    transition: transform 0.2s ease, filter 0.3s ease; /* weiche Animation fuer Hover und Farbwechsel */
}

/* Logo ganz oben auf dem Hero-Bild */
.header:not(.scrolled) .logo img {
    filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(0,0,0,0.35)); /* macht das Logo weiss und besser lesbar */
}

/* Logo beim Darueberfahren mit der Maus */
.logo img:hover {
    transform: scale(1.03); /* Logo wird minimal groesser */
}

/* Navigation */
.nav {
    display: flex; /* Links nebeneinander anzeigen */
    gap: 50px; /* Abstand zwischen den Navigationslinks */
    padding-bottom: 6px; /* Abstand nach unten, damit Links optisch zur Logo-Unterkante passen */
}

/* Einzelne Links in der Navigation */
.nav a {
    position: relative; /* Bezugspunkt fuer die animierte Linie */
    text-decoration: none; /* normale Link-Unterstreichung entfernen */
    color: var(--nav); /* Standardfarbe der Links */
    font-weight: 600; /* ruhige, gut lesbare Navigation */
    font-size: 16px; /* Schriftgroesse der Navigationslinks */
    line-height: 1;
    transition: color 0.3s ease; /* weicher Farbwechsel beim Hover */
}

/* Navigationslink beim Hover */
.nav a:hover {
    color: var(--blue); /* Text wird blau beim Hover */
}

/* Navigationslinks ganz oben auf dem Hero-Bild */
.header:not(.scrolled) .nav a {
    color: white; /* weisse Links auf dem Hero-Bild */
    text-shadow: none; /* kein Schatten, damit die Schrift scharf bleibt */
}

/* Navigationslinks ganz oben beim Hover */
.header:not(.scrolled) .nav a:hover {
    color: var(--blue); /* Text wird blau beim Hover */
}

/* Animierte Linie unter den Navigationslinks */
.nav a::after {
    content: ""; /* notwendig, damit das Pseudo-Element sichtbar werden kann */
    position: absolute; /* Linie frei innerhalb des Links positionieren */
    left: 0; /* Linie startet links am Link */
    bottom: -6px; /* Linie sitzt 6px unter dem Text */
    width: 0%; /* Linie ist am Anfang unsichtbar */
    height: 2px; /* Hoehe der Linie */
    background: var(--blue); /* Farbe der Linie */
    transition: 0.3s ease; /* weiche Animation der Linie */
}

/* Animierte Linie beim Hover */
.nav a:hover::after {
    width: 100%; /* Linie waechst auf die volle Link-Breite */
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid currentColor;
    background: transparent;
    color: var(--nav);
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-6px);
}

.menu-toggle span:nth-child(3) {
    transform: translateY(6px);
}

.header:not(.scrolled) .menu-toggle {
    color: white;
}

.header.nav-open {
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(0,0,0,0.06);
}

.header.nav-open::before {
    opacity: 0;
}

.header.nav-open .logo img {
    filter: none;
}

.header.nav-open .menu-toggle {
    color: var(--nav);
}

.header.nav-open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
}

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

.header.nav-open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 760px) {
    section {
        scroll-margin-top: 125px;
    }

    .header-inner {
        align-items: center;
        gap: 12px;
    }

    .menu-toggle {
        position: relative;
        display: inline-flex;
        flex-shrink: 0;
        margin-left: auto;
        z-index: 2;
    }

    .nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        right: 20px;
        display: grid;
        gap: 0;
        padding: 8px 0;
        background: rgba(255,255,255,0.98);
        box-shadow: 0 18px 48px rgba(0,0,0,0.14);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .header.nav-open .nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav a {
        display: block;
        padding: 15px 18px;
        color: var(--nav);
        font-size: 16px;
        line-height: 1.2;
    }

    .header:not(.scrolled) .nav a,
    .header:not(.scrolled) .nav a:hover,
    .header.nav-open .nav a,
    .service-detail-page .header:not(.scrolled) .nav a {
        color: var(--nav);
    }

    .nav a::after {
        display: none;
    }

    .nav a:hover {
        color: var(--blue);
        background: #eef4fb;
    }
}

@media (max-width: 420px) {
    .nav {
        left: 16px;
        right: 16px;
    }

    .nav a {
        font-size: 15px;
    }
}

/* Hero-Bereich */
.hero {
    position: relative; /* Bezugspunkt fuer das dunkle Overlay */
    min-height: 100vh; /* Hero fuellt mindestens den gesamten Viewport */
    display: flex; /* Flexbox fuer den Inhalt im Hero */
    align-items: center; /* Inhalt vertikal mittig ausrichten */
    justify-content: flex-start; /* Inhalt links im Hero platzieren */
    overflow: hidden; /* Bild bleibt im Bereich */
    padding: 96px 0 150px;
}

@supports (min-height: 100svh) {
    .hero {
        min-height: 100svh;
    }
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    filter: brightness(0.9);
}

/* Dunkles Overlay ueber dem Hero-Bild */
.hero::before {
    content: ""; /* notwendig fuer das Pseudo-Element */
    position: absolute; /* Overlay liegt frei ueber dem Hero */
    inset: 0; /* Overlay fuellt den gesamten Hero-Bereich */
    background: linear-gradient(180deg, rgba(5,18,37,0.55) 0%, rgba(5,18,37,0.25) 30%, rgba(5,18,37,0.65) 100%);
    z-index: 1;
}

/* Textbox im Hero */
.hero-overlay {
    position: relative; /* Inhalt liegt ueber dem dunklen Overlay */
    color: white; /* Textfarbe im Hero */
    text-align: left; /* Text linksbuendig ausrichten */
    max-width: 750px; /* maximale Breite vom Hero-Text */
    z-index: 2;
    padding: 24px 20px;
    margin-left: 6vw;
}

.hero-copy {
    margin: 0;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 4vw, 4.8rem);
    line-height: 1.02;
    margin-bottom: 0.9rem;
}

.hero-copy p {
    font-size: 1.13rem;
    margin-bottom: 1.6rem;
    line-height: 1.7;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.9);
    color: white;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    margin-top: 4px;
    padding: 10px 16px;
    text-decoration: none;
    text-transform: uppercase;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hero-cta-button:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

.hero-features {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    width: auto;
    background: rgba(255,255,255,0.62);
    backdrop-filter: blur(10px);
    padding: 22px 26px;
    border-radius: 22px;
    box-shadow: 0 16px 56px rgba(0,0,0,0.12);
    z-index: 3;
}

.hero-features-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: center;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-radius: 0;
    background: transparent;
    border: none;
}

.hero-feature:not(:last-child) {
    border-right: 1px solid rgba(17,17,17,0.12);
    padding-right: 18px;
}

.hero-feature:last-child {
    padding-right: 0;
}

.hero-feature span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 1px solid #1E73BE;
    color: #1E73BE;
    font-weight: 700;
    flex-shrink: 0;
}

.hero-feature p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
    color: #111111;
}

@media (max-width: 1000px) {
    .hero {
        padding-bottom: 230px;
    }

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

    .hero-feature:not(:last-child) {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 650px) {
    .hero {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 118px 0 24px;
    }

    .hero-overlay {
        max-width: none;
        margin-left: 0;
        padding: 34px 20px 24px;
    }

    .hero-copy h1 {
        font-size: clamp(2.1rem, 10vw, 2.8rem);
        line-height: 1.08;
    }

    .hero-copy p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-features {
        position: relative;
        inset: auto;
        margin: 0 20px;
        padding: 18px;
    }

    .hero-features-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .hero-features-inner {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    position: relative;
    overflow: hidden;
    background: #155a96; /* etwas dunkler als das Logo-Blau */
    color: #cbd5e1; /* helle Textfarbe, aber nicht komplett weiss */
    padding: 60px 20px 28px; /* Innenabstand oben, seitlich und unten */
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/hero/hero.jpg') center/cover no-repeat;
    opacity: 0.08;
    filter: grayscale(100%) brightness(0.55);
    z-index: 0;
}

.site-footer > .footer-inner,
.site-footer > .footer-bottom {
    position: relative;
    z-index: 1;
}

/* Button im Kontaktformular */
.form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 7px 11px;
    border: 1px solid #333333;
    background: transparent;
    color: #333333;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.form-button:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

/* Allgemeine Inhaltsbereiche */
.section {
    max-width: 1100px; /* maximale Breite des Inhalts */
    margin: auto; /* Bereich horizontal zentrieren */
    padding: 60px 20px; /* Innenabstand: oben/unten 60px, links/rechts 20px */
}

/* Grid-Layout fuer Karten */
.grid {
    display: grid; /* CSS Grid aktivieren */
    gap: 25px; /* Abstand zwischen den Karten */
}

/* Grid ab Tablet-/Desktop-Breite */
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3,1fr); /* drei gleich breite Spalten */
    }
}

/* Einzelne Karte */
.card {
    background: white; /* weisser Kartenhintergrund */
    padding: 25px; /* Innenabstand der Karte */
    border-radius: 12px; /* abgerundete Kartenecken */
    box-shadow: 0 8px 25px rgba(0,0,0,0.05); /* dezenter Schatten */
}

.card h3 {
    margin: 0 0 10px;
    color: #0a2540;
}

.card p {
    margin: 0;
    line-height: 1.6;
}

.area-section {
    background: #f3f7fb;
    padding: 56px 20px;
}

.area-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.area-inner h2 {
    margin: 0 0 18px;
    color: #0a2540;
    font-size: clamp(1.8rem,3vw,2.7rem);
    line-height: 1.15;
}

.area-inner p {
    max-width: 860px;
    margin: 0;
    color: #333333;
    font-size: 1.05rem;
    line-height: 1.75;
}

.services-section {
    background: white;
    padding: 80px 0;
}

.services-inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 clamp(20px,2vw,36px);
}

.services-list {
    display: grid;
    gap: clamp(72px,8vw,120px);
}

.service-entry {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(420px,0.92fr);
    align-items: center;
    gap: clamp(52px,6vw,96px);
}

.service-entry-image {
    order: 1;
    min-width: 0;
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    overflow: hidden;
}

.service-entry:nth-child(even) .service-entry-image {
    order: 2;
}

.service-entry:nth-child(even) .service-entry-copy {
    order: 1;
}

.service-entry-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.96);
    transition: transform 0.35s ease;
}

.service-entry:hover .service-entry-image img {
    transform: scale(1.035);
}

.service-entry-copy {
    order: 2;
    min-width: 0;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-entry-copy h3 {
    margin: 0 0 26px;
    color: #0a2540;
    font-size: clamp(2.3rem,3.1vw,4rem);
    line-height: 1.12;
}

.service-entry-copy p {
    margin: 0;
    color: #333333;
    max-width: 840px;
    font-size: clamp(1rem,1.05vw,1.12rem);
    line-height: 1.72;
}

.service-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: auto;
    margin-top: 22px;
    padding: 7px 11px;
    border: 1px solid #333333;
    color: #333333;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.service-button:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

@media (max-width: 780px) {
    .services-section {
        padding: 48px 0;
    }

    .services-inner {
        padding: 0 18px;
    }

    .service-entry {
        grid-template-columns: 1fr;
        gap: 22px;
        min-height: 0;
    }

    .service-entry:nth-child(even) .service-entry-image {
        order: 0;
    }

    .service-entry-image {
        order: 0;
        aspect-ratio: 16 / 10;
    }

    .service-entry-copy {
        order: 0;
        max-width: none;
        display: block;
    }
}

.service-detail-page {
    background: white;
}

.service-detail-page .header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(0,0,0,0.06);
}

.service-detail-page .header::before {
    opacity: 0;
}

.service-detail-page .header:not(.scrolled) .logo img {
    filter: none;
}

.service-detail-page .header:not(.scrolled) .nav a {
    color: var(--nav);
}

.service-detail-page .header:not(.scrolled) .nav a:hover {
    color: var(--blue);
}

.service-detail-page .header:not(.scrolled) .menu-toggle {
    color: var(--nav);
}

.service-detail-main {
    padding-top: 88px;
}

.service-detail-hero {
    max-width: 1800px;
    margin: 0 auto;
    padding: 54px 14px 64px;
    display: grid;
    grid-template-columns: minmax(300px,0.9fr) minmax(0,1.1fr);
    align-items: center;
    gap: clamp(20px,3vw,48px);
}

.service-detail-copy {
    max-width: 640px;
}

.service-detail-copy span {
    display: block;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.service-detail-copy h1 {
    margin: 0 0 18px;
    color: #0a2540;
    font-size: clamp(2.4rem,5vw,5rem);
    line-height: 1.02;
}

.service-detail-copy p {
    margin: 0;
    color: #333333;
    font-size: 1.08rem;
    line-height: 1.75;
}

.service-detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.service-detail-actions .service-button {
    margin-top: 0;
}

.service-back-link {
    color: #333333;
    font-weight: 700;
    text-decoration: none;
}

.service-back-link:hover {
    color: var(--blue);
}

.service-detail-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.service-detail-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 72px;
}

.service-detail-content h2 {
    margin: 0 0 24px;
    color: #0a2540;
    font-size: clamp(1.8rem,3vw,2.6rem);
}

.service-detail-points {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
    align-items: stretch;
}

.service-detail-points article {
    border-top: 2px solid var(--blue);
    padding-top: 18px;
    min-height: 150px;
}

.service-detail-points h3 {
    margin: 0 0 10px;
    color: #0a2540;
}

.service-detail-points p {
    margin: 0;
    color: #333333;
    line-height: 1.65;
}

.faq-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 84px;
}

.faq-section h2 {
    margin: 0 0 24px;
    color: #0a2540;
    font-size: clamp(1.8rem,3vw,2.6rem);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border-top: 1px solid rgba(10,37,64,0.16);
    padding: 18px 0;
}

.faq-item:last-child {
    border-bottom: 1px solid rgba(10,37,64,0.16);
}

.faq-item summary {
    color: #0a2540;
    font-weight: 800;
    cursor: pointer;
    list-style-position: outside;
}

.faq-item p {
    max-width: 860px;
    margin: 14px 0 0;
    color: #333333;
    line-height: 1.7;
}

@media (max-width: 860px) {
    .service-detail-main {
        padding-top: 124px;
    }

    .service-detail-hero {
        grid-template-columns: 1fr;
        padding-top: 36px;
    }

    .service-detail-image {
        order: -1;
    }

    .service-detail-points {
        grid-template-columns: 1fr;
    }
}

.muster-section {
    background: white;
    padding: 80px 0;
    overflow: hidden;
}

.muster-layout {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 clamp(20px,2vw,36px);
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(420px,0.92fr);
    align-items: center;
    gap: clamp(52px,6vw,96px);
}

.muster-layout > * {
    min-width: 0;
}

.muster-text {
    order: 2;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.muster-title {
    margin: 0 0 26px;
    color: #0a2540;
    font-size: clamp(2.3rem,3.1vw,4rem);
    font-weight: 800;
    line-height: 1.12;
}

.muster-text p {
    max-width: 840px;
    margin: 0 0 18px;
    color: #333333;
    font-size: clamp(1rem,1.05vw,1.12rem);
    font-weight: 400;
    line-height: 1.72;
}

.muster-button {
    align-self: flex-start;
    margin-top: 22px;
    padding: 7px 11px;
    border: 1px solid #333333;
    color: #333333;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.muster-button:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

.muster-image {
    order: 1;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.muster-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.96);
}

@media (max-width: 850px) {
    .muster-section {
        padding: 48px 0;
    }

    .muster-layout {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0 18px;
    }

    .muster-image {
        aspect-ratio: 16 / 10;
        order: 0;
    }

    .muster-text {
        order: 0;
    }
}

/* Kontakt-Bereich */
.contact-box {
    display: grid; /* Kontaktdaten und Formular nebeneinander anzeigen */
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px; /* Abstand zwischen Kontaktdaten und Formular */
}

.contact-box > div {
    min-width: 0;
}

.contact-box > div:first-child p {
    margin: 0 0 8px;
}

.contact-box a,
.contact-box a:visited {
    color: inherit;
    text-decoration: none;
}

.contact-box a:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* Eingabefelder und Textfeld */
input,
textarea,
select {
    width: 100%; /* Felder nehmen die volle Breite ein */
    padding: 12px; /* Innenabstand in den Feldern */
    margin-bottom: 15px; /* Abstand zwischen den Feldern */
    border-radius: 6px; /* leicht abgerundete Ecken */
    border: 1px solid #ddd; /* dezenter grauer Rahmen */
    font: inherit;
    background: white;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

select {
    color: #333333;
    cursor: pointer;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 8px;
    color: #333333;
    font-size: 0.92rem;
    line-height: 1.45;
}

.privacy-check input {
    width: auto;
    margin: 3px 0 0;
    flex-shrink: 0;
}

.privacy-check a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-note,
.form-status {
    margin: 0;
    color: #555555;
    font-size: 0.9rem;
    line-height: 1.55;
}

.form-status {
    margin-top: 12px;
    padding: 12px 14px;
    border-left: 3px solid var(--blue);
    background: #eef4fb;
    color: #0a2540;
}

.form-status.is-error {
    border-left-color: #b42318;
    background: #fff1f0;
    color: #7a271a;
}

.form-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 700px) {
    .contact-box {
        grid-template-columns: 1fr;
    }
}

/* Footer */

/* Innerer Footer-Container */
.footer-inner {
    max-width: 1200px; /* maximale Breite vom Footer-Inhalt */
    margin: 0 auto; /* Footer-Inhalt mittig ausrichten */
    display: grid; /* Footer-Spalten mit CSS Grid */
    grid-template-columns: 1.5fr 1fr 1fr; /* drei Footer-Spalten */
    gap: 70px; /* Abstand zwischen den Spalten */
}

/* Logo- und Textbereich im Footer */
.footer-brand {
    max-width: 320px; /* Textbreite begrenzen */
}

/* Logozeile im Footer */
.footer-brand h3 {
    color: white; /* Ueberschrift weiss */
    font-size: 16px; /* Groesse der Footer-Ueberschrift */
    margin: 0 0 18px; /* Abstand unter der Ueberschrift */
}

/* Text im Markenbereich */
.footer-brand p {
    line-height: 1.6; /* bessere Lesbarkeit */
    margin: 0; /* Standardabstand entfernen */
}

/* Logo im Footer */
.footer-logo {
    width: auto;
    height: 46px; /* Hoehe vom echten Logo */
    max-width: 100%;
    display: block; /* Logo als eigener Block */
    margin-bottom: 16px; /* Abstand zum Firmennamen */
    filter: brightness(0) invert(1); /* Logo im dunklen Footer weiss anzeigen */
}

/* Footer-Spalten */
.footer-column h3 {
    color: white; /* Spaltenueberschriften weiss */
    font-size: 16px; /* Groesse der Spaltenueberschrift */
    margin: 0 0 18px; /* Abstand unter der Ueberschrift */
}

/* Listen im Footer */
.footer-column ul {
    list-style: none; /* Listenpunkte entfernen */
    margin: 0; /* Standardabstand entfernen */
    padding: 0; /* Standard-Innenabstand entfernen */
}

/* Einzelne Listeneintraege */
.footer-column li {
    margin-bottom: 12px; /* Abstand zwischen den Eintraegen */
}

/* Links im Footer */
.site-footer a {
    color: #cbd5e1; /* Linkfarbe im Footer */
    text-decoration: none; /* Unterstreichung entfernen */
    transition: color 0.3s ease; /* weicher Farbwechsel beim Hover */
}

/* Links im Footer beim Hover */
.site-footer a:hover {
    color: #60a5fa; /* Links werden hellblau beim Hover */
}

/* Kontaktliste mit Icons */
.footer-contact li {
    display: flex; /* Icon und Text nebeneinander */
    gap: 10px; /* Abstand zwischen Icon und Text */
    align-items: flex-start; /* oben ausrichten, wichtig bei Adresse mit zwei Zeilen */
}

/* Kontakt-Icons */
.footer-contact li > span:first-child {
    color: #94a3b8; /* dezente Icon-Farbe */
    width: 18px; /* feste Icon-Breite */
    flex-shrink: 0; /* Icon wird nicht kleiner gedrueckt */
}

/* Untere Footer-Zeile */
.footer-bottom {
    max-width: 1200px; /* gleiche Breite wie der Footer-Inhalt */
    margin: 34px auto 0; /* Abstand nach oben und zentrieren */
    padding-top: 26px; /* Innenabstand oberhalb der unteren Zeile */
    border-top: 1px solid rgba(255,255,255,0.08); /* feine Trennlinie */
    display: flex; /* Copyright links, Links rechts */
    justify-content: space-between; /* Abstand zwischen Copyright und Links */
    gap: 20px; /* Abstand, falls es enger wird */
}

/* Copyright-Text */
.footer-bottom p {
    margin: 0; /* Standardabstand entfernen */
}

/* Rechtlinks unten */
.footer-links {
    display: flex; /* Links nebeneinander anzeigen */
    gap: 28px; /* Abstand zwischen den Links */
}

/* Footer auf kleineren Bildschirmen */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: repeat(2,1fr); /* zwei Spalten auf Tablets */
        gap: 36px; /* kleinerer Spaltenabstand */
    }
}

/* Footer auf Handys */
@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr; /* eine Spalte auf Handys */
    }

    .footer-bottom {
        flex-direction: column; /* Copyright und Links untereinander */
    }
}

/* Impressum und Datenschutz */
.legal-page {
    background: #eef4fb;
}

.legal-section {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
}

.legal-section h1,
.legal-section h2 {
    color: #0a2540;
}

.legal-section a {
    color: var(--blue);
}

@media (max-width: 640px) {
    .legal-section {
        margin: 20px;
        padding: 24px 20px;
    }
}


