/**
 * DI_CODER Landingpage - Custom Styles
 * Fensterbau Frontale 2026
 */

/* ===== CSS Custom Properties ===== */
:root {
    --color-primary: #29707A;
    --color-accent: #F5A623;
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --color-dark-overlay: rgba(41, 112, 122, 0.7);
    --color-footer: #29323E;
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Bootstrap 5 Overrides */
    --bs-body-color: #29323e;
    --bs-body-color-rgb: 41, 50, 62;
    --bs-heading-color: #29323e;
    --bs-link-color: #29707a;
    --bs-link-hover-color: #29707a;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: #29323E;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.navbar-toggler {
    background-color: var(--color-accent);
    border: none;
    border-radius: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px var(--color-accent);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background: linear-gradient(to bottom, rgba(41, 50, 62, 0.5) 0%, rgba(41, 50, 62, 0.4) 50%, rgba(41, 50, 62, 0.2) 75%, rgba(41, 50, 62, 0.05) 90%, rgba(41, 50, 62, 0) 100%);
    backdrop-filter: blur(5px);
    box-shadow: none;
}

.navbar-brand .logo {
    height: 32px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo {
    height: 24px;
}

.navbar-nav .nav-link {
    color: var(--color-white) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--color-white) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--color-accent) !important;
}

.navbar-nav .nav-cta {
    background-color: var(--color-accent);
    color: #ffffff !important;
    font-weight: 800;
    padding: 0.4rem 1.2rem !important;
    margin: 0;
}

.navbar-nav .nav-cta:hover {
    background-color: #e09a1a;
    color: #ffffff !important;
}

/* ===== Navbar Social Icons ===== */
.nav-social {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    margin-left: 2rem;
}

.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    padding: 0.6rem 0;
    background-color: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.nav-social a:hover {
    background-color: #e09a1a;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
}

.hero-content-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background-color: rgba(245, 166, 35, 0.9);
    padding: 4rem 4.5rem;
    max-width: 720px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* ===== Hero Typewriter ===== */
.hero-typewriter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 6rem;
}

.hero-typewriter-text {
    font-size: 3.1rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
}

.hero-typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 2.2rem;
    background-color: var(--color-primary);
    margin-left: 3px;
    vertical-align: middle;
    animation: tw-blink 0.7s step-end infinite;
}

@keyframes tw-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-content-reveal {
    animation: hero-fade-in 0.6s ease forwards;
}

@keyframes hero-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #29323E;
    line-height: 1.6;
}

.hero-claim {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.8rem;
    color: rgba(41, 50, 62, 0.75);
    line-height: 1.6;
    font-style: italic;
}

/* ===== Countdown Timer ===== */
.countdown-wrapper {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    min-width: 46px;
}

.countdown-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.countdown-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* ===== Pulse-Glow Animation ===== */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.45);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 22px 10px rgba(245, 166, 35, 0.18);
        transform: scale(1.025);
    }
}

.btn-booking-open,
.btn-primary.cta-button {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

.btn-booking-open:hover,
.btn-primary.cta-button:hover {
    animation: none;
}

/* ===== CTA Buttons ===== */
.cta-button {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    border: none;
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #1f5862;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 112, 122, 0.4);
}

/* ===== Scroll Down Indicator ===== */
.scroll-down {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 2.4rem;
    animation: bounce 2s infinite;
    transition: color 0.3s ease;
}

.scroll-down:hover {
    color: var(--color-accent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== Messe-Info Sektion ===== */
.messe-section {
    background-color: var(--color-primary);
    padding: 100px 0;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.messe-pixel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 33.333%;
    background-image: url('../img/pixel-blau.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.messe-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    padding: 0.35rem 1.2rem;
    margin-bottom: 1.8rem;
}

.messe-intro {
    font-size: 1.1rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 3.5rem;
}

.messe-problems {
    margin-bottom: 3.5rem;
}

.messe-problem-item {
    text-align: center;
    padding: 1rem 0.5rem;
}

.messe-problem-icon {
    font-size: 3.2rem;
    color: var(--color-accent);
    margin-bottom: 1.1rem;
    display: block;
}

.messe-problem-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.messe-teaser {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-white);
    border-top: 2px solid rgba(255, 255, 255, 0.18);
    padding-top: 2.5rem;
    margin: 0;
    line-height: 1.7;
}

/* ===== Messe Live Titel ===== */
.messe-live-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.15;
}

@media (max-width: 767px) {
    .messe-live-title {
        font-size: 2rem;
    }
}

/* ===== Vorteile Cards ===== */
.vorteil-item {
    padding: 1.5rem 1rem;
    text-align: center;
}

.vorteile-cta {
    background-color: var(--color-primary);
    padding: 0 0 4rem;
    text-align: center;
}

.vorteil-icon {
    font-size: 2.6rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.9rem;
}

.vorteil-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 0.6rem;
}

.vorteil-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

/* ===== Bild Sektionen ===== */
.spaet-section,
.bild-section {
    background-color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.spaet-image {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: cover;
    object-position: center;
}

/* ===== About Sektion ===== */
.about-section {
    padding: 0;
    background-color: var(--color-white);
    min-height: 800px;
}

.about-section .row {
    min-height: 800px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.3rem;
}

.section-subheadline {
    font-size: 1.5rem;
    font-weight: 600;
    color: #29323E;
    margin-bottom: 2rem;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #29323E;
}

/* ===== Proof Sektion ===== */
.proof-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.8rem;
}

.proof-image-wrapper {
    position: relative;
    min-height: 800px;
    height: 100%;
    overflow: hidden;
}

.proof-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.proof-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.proof-slide.active {
    opacity: 1;
}

/* About Image Backgrounds */
.problem-image-bg,
.loesung-image-bg,
.dicoder-image-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 800px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 3rem;
    padding-bottom: 9rem;
    text-align: left;
}

.problem-image-bg { background-image: url('../img/bild-problem.png'); }
.loesung-image-bg { background-image: url('../img/bild-loesung.png'); }
.dicoder-image-bg { background-image: url('../img/about-img.jpg'); }

.about-fertig {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-white);
    margin: 0 0 2rem 0;
    line-height: 1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    display: inline-block;
    border-bottom: 18px solid var(--color-accent);
    padding-bottom: 6px;
}

/* Textspalte in About-Sektionen */
.section-col-text {
    padding: 80px 100px;
}

/* DI:CODER Markenfarben */
.dicoder-accent {
    color: var(--color-accent);
    font-weight: inherit;
}

.dicoder-name {
    color: #29323E;
    font-weight: inherit;
}

/* Karte */
.map-iframe {
    border: 0;
}

/* About Section Variants */
.about-section--alt {
    background-color: #f5f5f0;
}

#loesung {
    background-color: var(--color-accent);
}

#loesung .section-title,
#loesung strong {
    color: var(--color-white);
}

/* ===== CTA Sektion ===== */
.cta-section {
    background: #ffffff;
    padding: 8rem 0;
    color: var(--color-primary);
    border: 18px solid var(--color-accent);
}

.cta-fensterbau-logo {
    width: 160px;
    height: auto;
    margin-bottom: 1.8rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.cta-fensterbau-logo g path {
    fill: #29323e;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 1.2rem;
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #29323E;
    margin-bottom: 2rem;
}

.btn-booking-open {
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    font-weight: 800;
    font-family: var(--font-family);
    font-size: 1.1rem;
    border: none;
    border-radius: 0;
    padding: 0.9rem 2.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 1.2rem;
}

.btn-booking-open:hover {
    background-color: #e09a1a;
    color: #ffffff;
}

.cta-sub {
    font-size: 0.9rem;
    color: var(--color-primary);
    opacity: 0.6;
    margin: 0;
}

/* ===== Buchungs-Modal ===== */
.booking-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.booking-modal.active {
    display: flex;
}

.booking-modal-inner {
    position: relative;
    background: #ffffff;
    max-width: 520px;
    width: 100%;
    padding: 2.5rem 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.booking-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    opacity: 0.5;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.booking-modal-close:hover {
    opacity: 1;
}

/* ===== Buchungsformular ===== */
.booking-form {
    padding-right: 0;
}

.booking-step-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.3rem;
}

.booking-step-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1.2rem;
}

.booking-options {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.booking-ticket {
    grid-template-columns: 1fr;
}

.booking-ticket .booking-option {
    padding: 1rem 0.75rem;
    text-align: center;
    line-height: 1.4;
}

.booking-days {
    grid-template-columns: repeat(4, 1fr);
}

.booking-slots {
    grid-template-columns: repeat(2, 1fr);
}

.booking-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.5rem;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
    border-radius: 0;
}

.booking-option:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.booking-option.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.booking-option-day {
    font-size: 1.1rem;
    font-weight: 800;
}

.booking-option-date {
    font-size: 0.72rem;
    font-weight: 500;
    margin-top: 0.1rem;
}

.booking-option-slot {
    font-size: 0.9rem;
    font-weight: 700;
}

.btn-booking-next {
    background-color: var(--color-accent);
    color: #ffffff;
    font-weight: 800;
    font-family: var(--font-family);
    border: none;
    border-radius: 0;
    padding: 0.6rem 2rem;
    transition: background-color 0.2s ease;
}

.btn-booking-next:hover:not(:disabled) {
    background-color: #e09a1a;
    color: #ffffff;
}

.btn-booking-next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.booking-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.booking-back {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
    opacity: 0.7;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.booking-back:hover {
    opacity: 1;
    color: var(--color-primary);
}

.booking-input {
    display: block;
    width: 100%;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.7rem;
    border: 1px solid var(--color-primary);
    border-radius: 0;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--color-primary);
    background: transparent;
    outline: none;
    transition: border-color 0.2s ease;
}

.booking-input:focus {
    border-color: var(--color-accent);
}

.booking-input::placeholder {
    color: var(--color-primary);
    opacity: 0.5;
}

.booking-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.booking-consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.booking-consent span {
    font-size: 0.8rem;
    color: var(--color-primary);
    line-height: 1.5;
    opacity: 0.8;
}

.booking-consent a {
    color: var(--color-accent);
    text-decoration: underline;
}

.booking-success {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-primary);
}

.booking-success i {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.booking-success p {
    font-size: 1rem;
    opacity: 0.8;
}

/* ===== FAQ Sektion ===== */
.faq-section {
    background-color: var(--color-light-gray);
    padding: 6rem 0;
}

.faq-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.faq-item {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(41, 50, 62, 0.12);
    border-radius: 0 !important;
}

.faq-item:first-of-type {
    border-top: 2px solid rgba(41, 50, 62, 0.12);
}

.faq-button {
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-family);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1.3rem 2.5rem 1.3rem 0;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.faq-button:not(.collapsed) {
    color: var(--color-accent);
    background: transparent;
}

.faq-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2329323E'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    flex-shrink: 0;
    margin-left: auto;
}

.faq-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F5A623'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.faq-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #29323E;
    padding: 0 0 1.5rem 0;
}

/* ===== Map Sektion ===== */
.map-section {
    padding: 0;
}

.map-section iframe {
    display: block;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-footer);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-logo {
    max-width: 220px;
    height: auto;
}

.footer-slogan {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-social {
    display: flex;
    gap: 0.4rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    text-decoration: none;
}

.footer-social a:hover {
    background-color: #e09a1a;
    color: var(--color-white);
    transform: scale(1.1);
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.6;
    margin: 1.2rem 0 0;
}

/* ===== Scroll Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 991px) {

    .countdown-wrapper {
        display: none !important;
    }

    .proof-image-wrapper {
        min-height: 300px;
        height: 300px;
    }

    .nav-social {
        display: none;
    }

    .hero-content-box {
        max-width: 90%;
        padding: 2.5rem 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    /* Icon-Blöcke zentrieren */
    .vorteil-item {
        text-align: center;
    }

    /* Navigation */
    .navbar-collapse {
        padding-top: 1.2rem;
    }

    .scroll-down {
        display: none;
    }

    .navbar-brand .logo {
        height: 26px;
    }

    /* Fließtext */
    body {
        line-height: 1.4;
    }

    .section-text {
        line-height: 1.5;
    }

    /* Hero Hintergrundbild: fixed attachment deaktivieren (iOS-Kompatibilität) */
    .hero-section {
        background-attachment: scroll;
        background-image: url('../img/header-mobil-neu.jpg');
        background-position: center center;
    }

    .hero-content-box {
        left: 1rem;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        max-width: none;
        width: auto;
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    /* Messe-Sektion */
    .messe-section {
        padding: 3.5rem 1rem;
    }

    .messe-pixel {
        display: none;
    }

    .messe-intro {
        font-size: 1rem;
    }

    .messe-teaser {
        font-size: 1.05rem;
    }

    /* About-Sektion */
    .section-title {
        font-size: 2rem;
    }

    .about-section {
        min-height: auto;
    }

    .about-section .row {
        min-height: auto;
    }

    .problem-image-bg,
    .loesung-image-bg,
    .dicoder-image-bg {
        min-height: 400px;
        padding: 2rem;
    }

    .about-fertig {
        font-size: 3.5rem;
        border-bottom-width: 12px;
    }

    .section-col-text {
        padding: 2.5rem 2rem;
    }

    /* CTA / Termin-Sektion */
    .cta-section {
        border-width: 12px;
        padding: 3rem 2rem;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .booking-form {
        padding-right: 0;
    }

    .booking-days {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-slots {
        grid-template-columns: repeat(3, 1fr);
    }

    .booking-input {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 2rem 1.5rem;
    }

    .footer-logo {
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .hero-content-box {
        left: 0.75rem;
        right: 0.75rem;
        padding: 1.75rem 1.25rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-fertig {
        font-size: 2.8rem;
        border-bottom-width: 12px;
    }

    .cta-title {
        font-size: 1.3rem;
    }

    .booking-days {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-slots {
        grid-template-columns: 1fr;
    }
}

/* ===== Exit Intent Modal ===== */
.exit-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.exit-modal.active {
    display: flex;
}

.exit-modal-inner {
    position: relative;
    background: #ffffff;
    max-width: 460px;
    width: 100%;
    padding: 3rem 2.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.exit-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.exit-modal-close:hover {
    opacity: 1;
}

.exit-modal-badge {
    margin-bottom: 2rem;
}

.exit-modal-logo {
    width: 160px;
    height: auto;
}

.exit-modal-logo g path {
    fill: #29323e;
}

.booking-unsure {
    font-size: 0.8rem;
    color: var(--color-primary);
    opacity: 0.7;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-family);
    transition: opacity 0.2s ease;
}

.booking-unsure:hover {
    opacity: 1;
}

.booking-textarea {
    resize: vertical;
    min-height: 70px;
}

.exit-modal-pre {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.exit-modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.exit-modal-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #29323E;
    margin-bottom: 1.8rem;
}

.exit-modal-cta {
    display: block;
    width: 100%;
    background-color: var(--color-accent);
    color: #ffffff;
    margin-bottom: 1rem;
    text-decoration: none;
}

.exit-modal-cta:hover {
    background-color: #e09a1a;
    color: #ffffff;
    animation: none;
}

.exit-modal-dismiss {
    display: block;
    font-size: 0.8rem;
    color: var(--color-primary);
    opacity: 0.45;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.exit-modal-dismiss:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* ===== Success Popup ===== */
.success-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.success-modal.active {
    display: flex;
}

.success-modal-inner {
    position: relative;
    max-width: 640px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal-img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.success-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    background: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
}

.success-modal-close:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

