/* =========================================================
   GLOBAL RESET & BASE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Farben (Avantex – Logo passend)
   Primär: dunkles Weinrot
   Hover: etwas heller
*/
:root {
    --orange: #8B2C2C;          /* Avantex Rot (Primary) */
    --orange-hover: #A63A3A;    /* Avantex Rot (Hover) */
    --darkblue: #1e2935;
    --lightgray: #f5f5f7;

    /* optional für feine Highlights / Borders */
    --accent-soft: rgba(139, 44, 44, 0.14);
    --accent-glow: rgba(139, 44, 44, 0.30);
}

/* =========================================================
   HEADER & NAVIGATION
========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 40px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

header img.logo {
    height: 55px;
    cursor: pointer;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #1e2935;
    transition: 0.2s;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
}

/* =========================================================
   HAMBURGER MENU (mobile)
========================================================= */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger div {
    width: 28px;
    height: 3px;
    background: #1e2935;
    border-radius: 5px;
    transition: 0.3s ease;
}

.hamburger.active div:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation Panel */
/* MOBILE NAV OVERLAY */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(30, 41, 53, 0.97); /* sanft transparent */
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    gap: 30px;
    transition: 0.35s ease;
    z-index: 9999;
}

.mobile-nav a {
    color: white;
    font-size: 24px;
    font-weight: 400;
    text-decoration: none;
}

.mobile-nav.active {
    right: 0;
}

@media (max-width: 900px) {
    .hamburger {
        padding: 10px;
        z-index: 10000;
    }
}

/* =========================================================
   HERO SECTION MIT VIDEO
========================================================= */

.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 80px; /* wegen fixed Header */
}

.hero video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 850px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 26px;
}

.btn-primary {
    background: var(--orange);
    padding: 14px 26px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
    box-shadow: 0 6px 15px var(--accent-glow);
    border: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-3px);
}

/* =========================================================
   SECTIONS GENERELL
========================================================= */

section {
    padding: 90px 8%;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--darkblue);
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    margin-bottom: 50px;
    color: #666;
}

/* =========================================================
   UNTERNEHMEN + OVERLAY-TASCHE2
========================================================= */

#unternehmen {
    background: #ffffff;
}

.unternehmen-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
    gap: 60px;
    align-items: center;
    margin-top: 10px;
}

.unternehmen-visual {
    position: relative;
    min-height: 260px;
}

.unternehmen-overlay {
    position: auto;
    left: 0;
    bottom: 0;
    width: 300px;
    transform: rotate(-7deg);
    filter: drop-shadow(0 28px 55px rgba(15,23,42,0.35));
    opacity: 0.95;
    transition: 0.35s ease;
}

.unternehmen-overlay:hover {
    transform: rotate(-3deg) scale(1.05);
    filter: drop-shadow(0 35px 70px rgba(15,23,42,0.45));
}

.unternehmen-text p {
    font-size: 16px;
    color: #444;
    margin-bottom: 16px;
}

.unternehmen-text h3 {
    margin: 24px 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--darkblue);
}

.unternehmen-text ul {
    list-style: disc;
    padding-left: 20px;
    color: #444;
    font-size: 15px;
}

/* =========================================================
   LEISTUNGEN – GRID + OVERLAY-TASCHE
========================================================= */

#leistungen {
    background: linear-gradient(to bottom, #ffffff, #f5f7fb);
}

.leistungen-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    justify-items: center;
}

.leistung-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 460px;
}

.leistung-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.leistung-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.leistung-card h3 {
    padding: 18px 20px 8px;
    color: var(--darkblue);
    font-size: 18px;
    font-weight: 700;
}

.leistung-card p {
    padding: 0 20px 22px;
    font-size: 15px;
    color: #555;
}

/* Hover-Effekt + "Mehr erfahren"-Badge */
.leistung-card::after {
    content: "Mehr erfahren ↗";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -46px;
    height: 38px;
    border-radius: 999px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--darkblue);
    box-shadow: 0 12px 30px rgba(15,23,42,0.18);
    opacity: 0;
    transition: 0.28s ease;
}

.leistung-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 38px rgba(0,0,0,0.13);
}

.leistung-card:hover::after {
    bottom: 14px;
    opacity: 1;
}

/* 3D-Overlay-Tasche im Übergang zum CTA */
.leistungen-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: visible;
}

.leistungen-overlay {
    position: absolute;
    right: 0;
    bottom: -115px;
    width: 300px;
    max-width: 42vw;
    transform: rotate(-8deg);
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.22));
    z-index: 3;
    pointer-events: none;
}

.leistungen-overlay:hover {
    transform: rotate(-6deg) scale(1.03);
    filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.24));
}

/* CTA etwas Luft geben, damit die Tasche nicht auf dem Text sitzt */
.cta-section {
    position: relative;
    margin-top: 140px;
}

/* Mobile sauber */
@media (max-width: 900px) {
    #leistungen {
        overflow: hidden;
    }

    .leistungen-wrapper {
        overflow: visible;
    }

    .leistungen-overlay {
        right: 50%;
        bottom: -70px;
        width: 210px;
        max-width: none;
        transform: translateX(50%) rotate(-6deg);
        filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.18));
    }

    .cta-section {
        margin-top: 110px;
    }
}

@media (max-width: 600px) {
    .leistungen-overlay {
        width: 180px;
        bottom: -55px;
        transform: translateX(50%) rotate(-5deg);
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.16));
    }

    .cta-section {
        margin-top: 90px;
    }
}

/* =========================================================
   CTA & FOOTER
========================================================= */

.cta-section {
    background: var(--darkblue);
    color: white;
    text-align: center;
    padding: 70px 10%;
    margin-top: 120px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 25px auto;
    font-size: 15px;
    color: #d1d9e1;
}

footer {
    background: var(--darkblue);
    color: white;
    padding: 40px 10%;
}

footer p, footer a {
    color: #c7d0d9;
    font-size: 14px;
    text-decoration: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .unternehmen-layout {
        grid-template-columns: minmax(0,1fr);
        gap: 30px;
    }

    .unternehmen-visual {
        min-height: 220px;
    }

    .unternehmen-overlay {
        left: 50%;
        transform: translateX(-50%) rotate(-7deg);
    }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .hero-content h1 {
        font-size: 32px;
    }

    section {
        padding: 70px 7%;
    }

    .leistungen-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .leistungen-overlay {
        right: 20px;
        bottom: -70px;
        width: 190px;
    }

    .cta-section {
        margin-top: 90px;
        padding-inline: 7%;
    }
}

@media (max-width: 600px) {
    header {
        padding-inline: 20px;
    }

    .hero {
        height: 80vh;
    }

    .unternehmen-overlay {
        width: 220px;
    }

    .leistung-card img {
        height: 170px;
    }
}

/* =========================================
   LEISTUNGEN – SEITENNAVIGATION
========================================= */

.service-nav {
    max-width: 900px;
    margin: 35px auto 10px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.service-nav a {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    text-decoration: none;
    color: #1e2935;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15,23,42,0.05);
    transition: 0.2s ease;
}

.service-nav a:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #ffffff;
    transform: translateY(-1px);
}

/* =========================================
   LEISTUNGEN – DETAILSEKTIONEN
========================================= */

.service-section {
    padding: 80px 10%;
    background: #ffffff;
}

.service-section-alt {
    background: #f5f5f7;
}

.service-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.service-text {
    flex: 1.1;
    font-size: 16px;
    color: #444;
}

.section-title-left {
    font-size: 28px;
    font-weight: 700;
    color: var(--darkblue);
    margin-bottom: 10px;
}

.section-subtitle-left {
    font-size: 17px;
    color: #6b7280;
    margin-bottom: 25px;
}

.service-media {
    flex: 1;
}

.service-main-image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(15,23,42,0.18);
    display: block;
}

.service-thumbs {
    margin-top: 14px;
    display: flex;
    gap: 12px;
}

.service-thumbs img {
    flex: 1;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(15,23,42,0.12);
}

/* =========================================
   RESPONSIVE – LEISTUNGEN
========================================= */

@media (max-width: 900px) {
    .service-section {
        padding: 60px 7%;
    }

    .service-inner {
        flex-direction: column;
        gap: 30px;
    }

    .service-thumbs img {
        height: 90px;
    }

    .section-title-left {
        font-size: 24px;
    }
}

/* =========================================
   SUB-HERO (Unterseiten-Header)
========================================= */

.sub-hero {
    position: relative;
    padding: 120px 10% 70px;
    background: #f9fafb;
    overflow: hidden;
}

.sub-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(139, 44, 44, 0.40), transparent 60%);
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

.sub-hero-bg-about {
    background: radial-gradient(circle at top right, rgba(139, 44, 44, 0.45), transparent 60%);
    opacity: 0.26;
}

.sub-hero h1,
.sub-hero p {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.sub-hero h1 {
    font-size: 40px;
    font-weight: 700;
    color: var(--darkblue);
    margin-bottom: 6px;
}

.sub-hero p {
    font-size: 18px;
    color: #6b7280;
}

@media (max-width: 900px) {
    .sub-hero {
        padding: 100px 7% 50px;
    }

    .sub-hero h1 {
        font-size: 30px;
    }

    .sub-hero p {
        font-size: 16px;
    }
}

/* =========================================
   ABOUT – HAUPTABSCHNITT
========================================= */

.about-section {
    padding: 80px 10%;
    background: #ffffff;
}

.about-section-alt {
    background: #f5f5f7;
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-inner-stack {
    display: block;
}

.about-text {
    flex: 1.4;
    font-size: 16px;
    color: #444;
}

.about-text p {
    margin-bottom: 14px;
}

.about-text h3 {
    margin: 28px 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--darkblue);
}

.about-list {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
}

.about-aside {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-card {
    border-radius: 18px;
    background: radial-gradient(circle at top left, #ffffff, #f3f4f6);
    box-shadow: 0 20px 50px rgba(15,23,42,0.20);
    overflow: hidden;
}

.about-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.about-card-body {
    padding: 14px 18px 18px;
}

.about-card-title {
    font-weight: 600;
    color: var(--darkblue);
    font-size: 15px;
    margin-bottom: 4px;
}

.about-card-text {
    font-size: 14px;
    color: #555;
}

.about-facts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-fact {
    padding: 10px 14px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.about-fact-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 2px;
}

.about-fact-value {
    font-size: 14px;
    color: var(--darkblue);
    font-weight: 500;
}

.about-text-wide {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    color: #444;
}

.about-text-wide h3 {
    margin: 24px 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: var(--darkblue);
}

/* =========================================
   GALLERY
========================================= */

.gallery {
    padding: 80px 10%;
    background: #ffffff;
}

.gallery-grid {
    max-width: 1100px;
    margin: 40px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 18px;
}

.gallery-grid img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(15,23,42,0.16);
}

/* =========================================
   RESPONSIVE – ÜBER UNS
========================================= */

@media (max-width: 900px) {
    .about-section {
        padding: 60px 7%;
    }

    .about-inner {
        flex-direction: column;
        gap: 30px;
    }

    .about-card img {
        height: 180px;
    }

    .gallery {
        padding: 60px 7%;
    }

    .gallery-grid img {
        height: 180px;
    }
}

.input-field {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    resize: vertical;
}

/* =========================================
   KONTAKTSEITE – GRID & FORMULAR
========================================= */

.contact-section .section-subtitle {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.contact-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: flex-start;
}

.contact-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.contact-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #111827;
}

.contact-text {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 18px;
}

.contact-text a {
    color: var(--orange);
    text-decoration: none;
}

.contact-text a:hover {
    text-decoration: underline;
}

/* Formular */

.contact-form-card {
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.1);
}

.contact-form-intro {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 18px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.contact-form-group input,
.contact-form-group textarea {
    font-family: inherit;
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px rgba(139, 44, 44, 0.35);
}

.contact-form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form-actions {
    margin-top: 6px;
}

/* =========================================
   GOOGLE MAP – VOLLE BREITE
========================================= */

.map-section {
    padding: 0;
}

.map-inner {
    width: 100%;
    height: 420px;
}

.map-embed {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(5%) contrast(104%) saturate(103%);
}

/* =========================================
   RESPONSIVE KONTAKT
========================================= */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .contact-card {
        border-radius: 18px;
        padding: 22px 20px;
        box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    }

    .map-inner {
        height: 340px;
    }
}

/* =========================================
   MOBILE-TUNING FÜR LEISTUNGS-GALLERIEN
========================================= */
@media (max-width: 768px) {

    .content-section {
        padding: 50px 6%;
    }

    .content-section .content-container {
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .gallery-grid img {
        width: 100%;
        max-width: 360px;
        display: block;
    }
}

/*IMPRESSUM UND DATENSCHUTZ*/


/* =========================================================
   DANKE / LOADING PAGE
========================================================= */

.thankyou-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 16px 60px;
    background: #f3f4f6;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.thankyou-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 32px 40px;
    max-width: 620px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
    position: relative;
    overflow: hidden;
}

.thankyou-loader {
    margin-bottom: 28px;
}

.loader-track {
    position: relative;
    height: 80px;
    margin-bottom: 10px;
}

.loader-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 280px;
    height: 4px;
    transform: translate(-50%, -50%);
    background: rgba(249, 250, 251, 0.8);
    border-radius: 999px;
    overflow: hidden;
}

.loader-line::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(166, 58, 58, 0.20),
        var(--orange),
        rgba(166, 58, 58, 0.35));
    transform-origin: left center;
    transform: scaleX(0);
    animation: loader-line-fill 5.5s ease-out forwards;
}

.loader-plane {
    position: absolute;
    top: 50%;
    left: calc(50% - 140px);
    transform: translate(0, -50%) rotate(-12deg);
    width: 64px;
    height: auto;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,0.25));
    animation: loader-plane-fly 5.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.loader-percent {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
}

.thankyou-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0f172a;
}

.thankyou-message {
    font-size: 16px;
    color: #4b5563;
    max-width: 420px;
    margin: 0 auto 24px auto;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.thankyou-message.show {
    opacity: 1;
    transform: translateY(0);
}

.thankyou-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 14px;
    font-weight: 500;
    color: var(--orange);
    text-decoration: none;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
                transform 0.15s ease;
}

.thankyou-back-link:hover {
    background: var(--orange);
    color: #ffffff;
    box-shadow: 0 16px 35px rgba(139, 44, 44, 0.35);
    transform: translateY(-1px);
}

@keyframes loader-line-fill {
    0% { transform: scaleX(0); }
    40% { transform: scaleX(0.45); }
    70% { transform: scaleX(0.8); }
    100% { transform: scaleX(1); }
}

@keyframes loader-plane-fly {
    0% { transform: translate(0, -50%) rotate(-12deg); }
    25% { transform: translate(90px, -70%) rotate(-4deg); }
    50% { transform: translate(170px, -30%) rotate(4deg); }
    75% { transform: translate(230px, -60%) rotate(10deg); }
    100% { transform: translate(280px, -40%) rotate(14deg); }
}

@media (max-width: 640px) {
    .thankyou-card {
        padding: 36px 22px 30px;
        border-radius: 18px;
    }

    .loader-line {
        width: 220px;
    }

    .loader-plane {
        left: calc(50% - 110px);
        width: 52px;
    }

    .thankyou-title {
        font-size: 20px;
    }

    .thankyou-message {
        font-size: 15px;
    }
}

/* --------------------------------------------- */

/* =========================================
   IMPRESSUM – SPACING FIX (KOMPAKT)
========================================= */

/* Gesamte Seite enger */
.legal-page {
    padding: 20px 32px 60px !important;
}

/* Section Abstand reduzieren */
.legal-section {
    margin-bottom: 22px !important;
}

/* Abstand Titel zu Content */
.legal-section-head {
    margin-bottom: 10px !important;
}

/* Linie näher ran */
.legal-section-head::after {
    margin-left: 8px !important;
}

/* Karten enger */
.legal-card {
    padding: 18px 18px 16px !important;
}

/* Titel in Karten */
.legal-card h3 {
    margin-bottom: 8px !important;
}

/* Text kompakter */
.legal-card p {
    line-height: 1.6 !important;
}

/* TEXTBOXEN (Haftung etc.) */
.legal-content {
    padding: 18px 20px !important;
}

/* Titel in Textbox */
.legal-content h3 {
    margin-bottom: 6px !important;
    margin-top: 14px !important;
}

.legal-content h3:first-child {
    margin-top: 0 !important;
}

/* TEXTABSTÄNDE */
.legal-content p {
    margin-bottom: 8px !important;
    line-height: 1.65 !important;
}

/* letzter Absatz */
.legal-content p:last-child {
    margin-bottom: 0 !important;
}

/* Subhero kompakter */
.sub-hero {
    padding: 95px 7% 36px !important;
}

.sub-hero h1 {
    margin-bottom: 6px !important;
}

.sub-hero p {
    margin-bottom: 0 !important;
}

/* Mobile nochmal enger */
@media (max-width: 900px) {
    .legal-page {
        padding: 16px 16px 40px !important;
    }

    .legal-section {
        margin-bottom: 18px !important;
    }

    .legal-content,
    .legal-card {
        padding: 16px !important;
    }

    .legal-content p {
        margin-bottom: 6px !important;
    }
}






/* =========================================================
   IMPRESSUM / LEGAL PAGE
========================================================= */

.legal-hero {
    padding: 118px 0 56px;
    background: linear-gradient(90deg, #f6f4f5 0%, #f7f3f4 100%);
    position: relative;
    overflow: hidden;
}

.legal-hero .sub-hero-bg {
    background: radial-gradient(circle at top right, rgba(139, 44, 44, 0.12), transparent 58%);
    opacity: 1;
}

.legal-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

.sub-hero-kicker {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 10px;
}

.legal-hero h1 {
    font-size: 58px;
    line-height: 1.05;
    font-weight: 800;
    color: #162233;
    margin: 0 0 14px;
    letter-spacing: -0.03em;
}

.legal-hero p {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

.legal-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 32px 72px;
}

.legal-section {
    margin-bottom: 10px;
}

.legal-section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d9dee5;
}

.legal-number {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: var(--orange);
    min-width: 38px;
}

.legal-section-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1b2430;
    margin: 0;
}

.legal-grid {
    display: grid;
    gap: 10px;
}

.legal-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-card {
    background: #f7f7f9;
    border: 1px solid #eceef2;
    border-radius: 8px;
    padding: 22px 22px 20px;
    min-height: 100%;
}

.legal-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: #1b2430;
    margin: 0 0 12px;
}

.legal-card p {
    font-size: 15px;
    line-height: 1.85;
    color: #5f6773;
    margin: 0;
}

.legal-card a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

.legal-card a:hover {
    text-decoration: underline;
}

.legal-content {
    padding: 0 6px 0 38px;
}

.legal-text-block h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
}

.legal-text-block h3:not(:first-child) {
    margin-top: 26px;
}

.legal-text-block p {
    font-size: 15px;
    line-height: 1.85;
    color: #5f6773;
    margin: 0 0 16px;
}

.legal-text-block p:last-child {
    margin-bottom: 0;
}

.legal-text-block a {
    color: var(--orange);
    text-decoration: none;
    word-break: break-word;
}

.legal-text-block a:hover {
    text-decoration: underline;
}

/* Footer sauber wie im Zielbild */
footer {
    background: #132238;
    color: #d8dee7;
    padding: 22px 32px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.footer-left p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #d8dee7;
}

.footer-right {
    text-align: right;
    white-space: nowrap;
}

.footer-right a,
.footer-left a {
    color: #d8dee7;
    text-decoration: none;
}

.footer-right a:hover,
.footer-left a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1100px) {
    .legal-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .legal-hero {
        padding: 102px 0 42px;
    }

    .legal-hero-inner,
    .legal-page,
    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .legal-hero h1 {
        font-size: 40px;
    }

    .legal-hero p {
        font-size: 16px;
    }

    .legal-number {
        font-size: 20px;
        min-width: 30px;
    }

    .legal-section-head h2 {
        font-size: 20px;
    }

    .legal-content {
        padding: 0;
    }

    .legal-card {
        padding: 18px 18px 16px;
    }

    .legal-card p,
    .legal-text-block p {
        font-size: 14px;
        line-height: 1.75;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        text-align: left;
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .legal-hero h1 {
        font-size: 34px;
    }

    .sub-hero-kicker {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .legal-page {
        padding-top: 26px;
        padding-bottom: 50px;
    }

    .legal-section {
        margin-bottom: 28px;
    }

    .legal-section-head {
        gap: 12px;
        margin-bottom: 14px;
    }
}





/* =========================================
   TASCHEN & KOLLEKTIONEN – BUTTONS / CARDS
========================================= */

.taschen-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 18px;
}

.taschen-action-btn {
    appearance: none;
    border: 1px solid rgba(139, 44, 44, 0.18);
    background: #ffffff;
    color: var(--darkblue);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.taschen-action-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.taschen-action-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(139, 44, 44, 0.14),
        0 10px 24px rgba(15, 23, 42, 0.10);
}

/* Optional: aktiver Button */
.taschen-action-btn.is-active {
    background: var(--orange);
    color: #ffffff;
    border-color: var(--orange);
    box-shadow: 0 10px 24px rgba(139, 44, 44, 0.22);
}

/* Cards darunter */
.taschen-depts {
    margin-top: 10px;
}

.taschen-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px 22px 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
    max-width: 620px;
}

.taschen-card + .taschen-card {
    margin-top: 14px;
}

.taschen-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.taschen-card-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--darkblue);
}

.taschen-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(139, 44, 44, 0.10);
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.taschen-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}

.taschen-card p {
    font-size: 15px;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 10px;
}

.taschen-card p:last-of-type {
    margin-bottom: 0;
}

.taschen-link {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
}

.taschen-link:hover {
    color: var(--orange-hover);
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 700px) {
    .taschen-actions {
        gap: 10px;
        margin: 18px 0 16px;
    }

    .taschen-action-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 13px 16px;
    }

    .taschen-card {
        padding: 18px 16px;
        border-radius: 14px;
    }
}







/* =========================================
   CTA MOBILE / DESKTOP SWITCH
========================================= */

/* Standard: Desktop sichtbar */
.cta-mobile {
    display: none;
}

.cta-desktop {
    display: inline-block;
}

/* Mobile */
@media (max-width: 768px) {
    .cta-mobile {
        display: inline-block;
    }

    .cta-desktop {
        display: none;
    }
}

/* CTA TEXT SWITCH */
.cta-text-mobile {
    display: none;
}

.cta-text-desktop {
    display: block;
}

@media (max-width: 768px) {
    .cta-text-mobile {
        display: block;
    }

    .cta-text-desktop {
        display: none;
    }
}


/* =========================================
   MAP → DIREKT AM FOOTER (NO GAP)
========================================= */

/* Entfernt Abstand unter der Map */
.map-section {
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* Map selbst ohne Abstand */
.map-inner {
    margin: 0;
    padding: 0;
}

/* verhindert extra Abstand durch iframe */
.map-embed {
    display: block;
}

/* Falls CTA darüber ist und Abstand macht */
.cta-section {
    margin-top: 0 !important;
}

/* =========================================
   FOOTER CENTER FIX
========================================= */

footer {
    text-align: center; /* ALLES mittig */
}

footer p {
    text-align: center;
    margin: 0 auto;
}

footer a {
    text-align: center;
}







/* =========================================
   LEISTUNGEN – INTRO OBEN SCHÖNER
========================================= */

.services-intro-section {
    padding: 70px 8% 40px;
    background: #ffffff;
}

.services-intro-box {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #fafafb 100%);
    border: 1px solid #eceef2;
    border-radius: 26px;
    padding: 42px 42px 34px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.services-intro-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
}

.services-intro-title {
    font-size: 46px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--darkblue);
    margin: 0 0 16px;
}

.services-intro-lead {
    max-width: 760px;
    margin: 0 auto 18px;
    font-size: 18px;
    line-height: 1.75;
    color: #5f6773;
}

.services-intro-text {
    max-width: 860px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.85;
    color: #3f4752;
}

.services-intro-box .service-nav {
    margin: 28px auto 0;
}

/* Bestehende Service-Navigation leicht schöner */
.service-nav {
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.service-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid #dde3ea;
    background: #ffffff;
    color: #223046;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transition: all 0.22s ease;
}

.service-nav a:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    color: white;
}

/* Mobile */
@media (max-width: 900px) {
    .services-intro-section {
        padding: 50px 7% 26px;
    }

    .services-intro-box {
        padding: 28px 20px 24px;
        border-radius: 18px;
    }

    .services-intro-title {
        font-size: 32px;
    }

    .services-intro-lead {
        font-size: 16px;
        line-height: 1.7;
    }

    .services-intro-text {
        font-size: 15px;
        line-height: 1.5;
        color: rgb(31, 31, 31);
    }

    .service-nav {
        gap: 10px;
    }

    .service-nav a {
        font-size: 13px;
        padding: 10px 14px;
    }
}


html, body {
    max-width: 100%;
    overflow-x: hidden;
}