/* --- Grundlagen & Variablen --- */
:root {
    --primary-color: #a1055a;    /* Signalrot für CTAs (ähnlich MOJO) */
    --secondary-color: #222222;  /* Dunkles Grau/Schwarz für Texte */

    --pink: #cf0071;
    --white: #ffffff;
    --lgray: #c5c5c5;
    --black: #000000;

    --transition: all 0.7s ease;

    --menu-gradient: linear-gradient(135deg, #be76c7 0%, #738add 100%);
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --section-gradient: linear-gradient(135deg, #b42465 0%, #26030f 100%);

    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-light: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Aktiviert den sanften Browser-Scroll für die komplette Website */
html {
    scroll-behavior: smooth;
}

/* Sorgt dafür, dass JEDES Element mit einer ID automatisch 70px Platz nach oben lässt */
[id] {
    scroll-margin-top: 70px;
}
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: left;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

h4 {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
    margin-bottom: 2rem;
}

.center {
    text-align: center !important;
}

.mb-0 {margin-bottom: 0 !important; }
.mb-1 {margin-bottom: 1rem;}
.mb-2 {margin-bottom: 2rem;}
.mb-3 {margin-bottom: 3rem;}
.mb-4 {margin-bottom: 4rem;}



.divider {
    border-top: 1px solid var(--primary-color);
    padding-top: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-large {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section.white {
    background: #ffffff;
    color: #2f2f2f;
}

.section.light {
    background: #e9e9e9;
    color: #615660;
}

.section.dark {
    background: #1d232d;
    color: #b7a385;
}

.section.darkgradient {
    background: linear-gradient(to right bottom, #750b49 0%, #582b80 50%, #010414 100%);
    /*color: #b7a385;*/
    color: #ffffffeb;
}

.section.dark.bgimg{
    height: 100vh;
    background: url('/images/network2.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

/* --- Dunkles Overlay für Text-Lesbarkeit --- */
.section.dark.bgimg.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 10, 19, 0.73) 40%, rgba(0, 0, 0, 0.01) 100%);
    z-index: 1; /* Legt sich über das Bild */
}

.section.dark.bgimg.overlay .container,
.section.dark.bgimg.overlay .container-large {
    position: relative;         /* WICHTIG: Damit der Text ÜBER dem Overlay liegt */
    z-index: 2;
}

.section-title-left{
    font-size: 2.5rem;
    font-weight: bold;
    text-align: left;
    margin-bottom: 5rem;
    text-transform: uppercase;
}


.img-center{
    text-align: center;
    width: 100%;            /* Sicherstellen, dass der Container die volle Breite nutzt */
    margin-bottom: 20px;    /* Abstand zur Überschrift */
}
.img-center img {
    display: inline-block;  /* Sorgt dafür, dass text-align greift */
    height: auto;
    max-width: 350px;       /* Damit das Logo nicht zu riesig wird */
}

/* Container für die Titelgruppe, um die Ausrichtung zu kontrollieren */
.modern-title-group {
    text-align: left; /* Oder center, falls gewünscht */
    margin-bottom: 2.5rem;
}


.modern-pre-title {         /* Der kleine Vor-Titel */
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pink);
    margin-bottom: 0.5rem;
    opacity: 0.9;
    text-shadow: 2px 2px 5px rgb(0 0 0 / 72%);
}


.modern-main-title {        /* Der Haupt-Titel */
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.84);
}

.modern-main-title .dark {
    color: var(--black);
}

.modern-text-block {
    text-align: left;
    font-size: 20px;
    letter-spacing: 1.3px;
    margin-bottom: 5rem;
    line-height: 1.8;
}

/* --- Navigation --- */

#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 50px;
    color: var(--white);
    z-index: 1000;
    transition: var(--transition);
}

#main-nav.is-sticky {
    padding: 10px 50px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

#main-nav.is-sticky a,
#main-nav.is-sticky .logo-text {
    color: var(--text-dark, #000);
}

#main-nav .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}

#nav-logo {
    height: 60px; /* Startgröße Desktop */
    width: auto;
    margin-right: 15px; /* Abstand zwischen Bild und Text */
    transition: var(--transition);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: var(--transition);
}

#main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

#main-nav ul li {
    margin-left: 30px;
}

#main-nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 100;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: var(--transition);
}

#main-nav ul li a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 3px;
}

.menu-toggle {
    display: none; /* Standardmäßig auf Desktop versteckt */
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* ---Scrolling Pfeil Back to Top ------ */
#back-to-top {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #6f0580;
    color: #ffffff;
    text-align: center;
    border-radius: 50%;
    z-index: 99999 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: none;
    border: none !important;
    text-decoration: none !important;
    line-height: 50px;         /* Muss exakt der Höhe (height) des Buttons entsprechen */
    padding-left: 3px;         /* Schiebt den Pfeil leicht nach rechts, um den Links-Drall auszugleichen */
    transform: rotate(-90deg); /* Dreht den perfekt ausgerichteten Kreis */
}

#back-to-top::after,
#back-to-top::before {
    display: none !important;
    content: none !important;
}

#back-to-top:hover {
    background-color: #333333;
    transform: rotate(-90deg) scale(1.1);
    padding-left: 3px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* --- Hero Section --- */

.hero {
    height: 100vh;
    background: url('/images/EWS Arena2.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    text-align: center;
}

.hero .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Abdunkelung für bessere Lesbarkeit */
}

.hero .content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* --- Buttons --- */

.cta-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 18px 35px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    transition: transform 0.3s ease, background 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background: #d50677;
    transform: translateY(-3px);
}

.btn-info {
    display: inline-block;
    margin: 20px;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
    transition: transform 0.3s ease, background 0.6s ease;
    color: #595959;
    border: 1px #595959 solid;
    cursor: pointer;
}

.btn-info:hover {
    color: #ffffff;
    background: #696969;
}

/* ----- Mission ------- */
#mission.bgimg {
    height: auto; /* Auf Mobile darf das Bild nicht 100vh erzwingen */
    min-height: 100vh;
    padding: 80px 0;
}

#mission .modern-main-title {
    font-size: clamp(2.5rem, 8vw, 4rem); /* Skaliert flüssig zwischen Handy und Desktop */
}

/* --- Cards Service + Text --- */
.card-icon {
    width: 75px;
    height: 75px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}

.card-icon svg {
    width: 36px;            /* Hier deine Wunschgröße einstellen */
    height: 36px;           /* Gleicher Wert wie Breite */
    stroke-width: 2.5px;    /* Optional: Macht die Linien dicker oder dünner (Standard ist 2) */
}

/* ----- Service Cards ------------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.service-card {
    background: #ffffff;
    padding: 30px;
    border-top: 8px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    text-align: left;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--black);
    text-align: left;
}

.service-card.dark {
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%; /* gleich hohe Karten im Grid */
}

.service-card.dark h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.service-card.dark p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Einheitliche Logogröße */
.service-card img {
    height: 120px;      /* Hier die gewünschte Höhe festlegen */
    width: auto;       /* Breite passt sich automatisch an */
    max-width: 100%;   /* Verhindert, dass Logos das Grid sprengen */
    object-fit: contain;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Hover-Effekt: Logos werden farbig, wenn man die Karte berührt */
.service-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* --------- Text-Cards ---------- */
.text-card {
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    padding: 3rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.text-card.dark {
    background: #00000073;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid #c7c7c7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.text-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.text-card:hover .card-icon {
    background: var(--accent-gradient);
    color: #fff;
}

/* Typography */
.text-card h3 {
    font-size: 1.5rem;
    color: var(--pink);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.text-card-content p {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.dark .text-card-content p {
    font-size: 1rem;
    /*color: #b7a385;*/
    color: #c7c7c7;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ----- Zitate ----*/

.zitat {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem;
    position: relative;
    text-align: center;
}

.zitat p {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-color, #333);
    line-height: 1.6;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.zitat::before {
    content: "„";       /* Die großen Anführungszeichen im Hintergrund */
    position: absolute;
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12rem;
    color: var(--primary-color);
    opacity: 0.15;
    font-family: serif;
    z-index: 0;
    font-weight: 800;
}

.zitat::after {
    content: "";        /* Optionaler kleiner Balken darunter */
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-gradient, var(--primary-color));
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

/* --- Logos Partner -----*/

.logos {
    display: grid;
    /* auto-fit sorgt dafür, dass sich die Logos schön verteilen */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-top: 50px;
}

.reveal-img {
    max-width: 150px;
    height: auto;
    opacity: 0; /* Startet unsichtbar für das jQuery-Skript */
    transform: translateY(40px); /* Startet tiefer */
    filter: grayscale(100%);
    /* Wir nutzen deine Variable für das Hover, aber eine eigene für den Einblend-Effekt */
    transition: transform 0.4s ease, opacity 0.6s ease-out, filter 0.4s ease;
}

/* Zustand nach dem Trigger durch jQuery */
.reveal-img.visible {
    opacity: 0.7; /* Grundzustand im Netzwerk-Look */
    transform: translateY(0);
}

/* Interaktion bei Maus-Hover - nur wenn bereits sichtbar */
.reveal-img.visible:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.5);
    cursor: pointer;
}
#team {
    position: relative; /* Container für das Hintergrund-Layer */
    z-index: 1;
    overflow: hidden;   /* Damit das Bild nicht übersteht */
    background-color: #f8f9fa; /* Dein ursprüngliches bg-light */
}


.explain-text-block {
    display: block;
    color: var(--white);
    text-align: left; /* Sorgt für sauberen Start links */
}

#explain {
    position: relative; /* Container für das Hintergrund-Layer */
    z-index: 1;
    overflow: hidden;   /* Damit das Bild nicht übersteht */
    background-color: #f8f9fa; /* Dein ursprüngliches bg-light */
}

#explain::before {
    content: "";
    position: absolute;
    top: -100px;        /* Deine Positionierung */
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/MSg4D.jpg') no-repeat center/cover;
    opacity: 0.11;       /* 0.1 ist sehr dezent, 0.2 etwas stärker */
    z-index: -1;        /* Legt das Bild HINTER den Inhalt */
}

/* Wir bauen eine Zeile, die nicht umbricht */
.brand-row {
    display: flex;
    align-items: center; /* Vertikale Zentrierung */
    flex-wrap: nowrap;   /* Verhindert das Rausspringen der Box */
    margin-bottom: 20px;
}

.brand-name {
    font-size: 80px;
    font-weight: 800;
    line-height: 0.8;    /* Drückt die Buchstaben enger zusammen für den Block-Look */
    margin-right: 20px;
    letter-spacing: -2px; /* Wirkt bei 100px oft moderner */
}

.sub-text-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 70px;        /* Optisch angepasst an die 100px Versalien */
    min-width: 300px;    /* Gibt dem Text Platz */
}

.line-1, .line-2 {
    font-size: 24px;
    white-space: nowrap;
}

.description {
    display: block;
    margin-top: 40px;
    max-width: 700px;
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* ---- references -------- */

#references {
    padding: 80px 0;
    background-color: #2f2a4df0;
    overflow: hidden; /* Verhindert horizontales Scrollen der ganzen Seite */
}

.section-title {
    color: #cfd2df;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 600;
}

.testimonial-grid {
    display: flex;            /* Nebeneinander statt untereinander */
    gap: 30px;
    overflow-x: auto;         /* Erlaubt das Scrollen/Ziehen */
    padding: 20px 10px 40px;
    cursor: grab;             /* Zeigt an, dass man ziehen kann */
    scrollbar-width: none;    /* Versteckt Scrollbalken (Firefox) */
    -ms-overflow-style: none; /* Versteckt Scrollbalken (IE) */
}

.testimonial-grid:active {
    cursor: grabbing;         /* Faust-Icon beim Ziehen */
}

.testimonial-card {
    flex: 0 0 350px;          /* Jede Karte ist genau 350px breit */
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgb(255 255 255 / 84%) 50%, rgb(85 68 159 / 5%) 150%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
    position: relative;
    transition: transform 0.3s ease;
    user-select: none;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.quote-icon {
    font-size: 50px;
    color: #800253;
    opacity: 0.8;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 5px;
    color: #800253;
    flex-grow: 1;
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
    margin-top: auto;
    text-align: left;
}

.user-name {
    display: block;
    font-weight: bold;
    font-size: 1rem;
    color: #333333;
}

.user-info {
    margin-bottom: 20px;
}

.partner-logo {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
    border-top: 1px solid rgba(128, 2, 83, 0.2);
    padding-top: 15px;
    width: 100%;
}

.partner-logo img {
    height: 25px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease; /* Sanfter Übergang zur Farbe */
    display: block;
}

.partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1); /* Optional: Minimales Vergrößern für mehr "Feedback" */
}

.user-role {
    font-size: 0.85rem;
    color: #333333;
}


/* Zentrierung des Logos in der Leistungssektion */
#leistungen .container,
#leistungen .container-large {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#leistungen .center {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

#leistungen .center img {
    max-width: 200px;
    height: auto;
    transition: var(--transition);
}


/* --- Footer --- */

footer {
    padding: 50px 0;
    background: var(--secondary-color);
    color: #888;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: #888888;
    text-decoration: none;
}

footer a:hover {
    color: #d0d0d0;
}

.only-mobile {      /* Desktops anzeigen, alles kleiner bei Media ausblenden */
    display: contents;
}

.legal-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 0 10px 0;
}

/* --- Kontaktformular --- */

.form-step {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: radial-gradient(circle, #aaa5a854, #c00ab240);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.form-step.active {
    display: block;
}

#stepIndicator {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.7;
}

.form-step h4 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--white);
}

input,
select,
textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #585888;
    background: #423873;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: 0.2s;
}

.form-step input,
.form-step textarea {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    color: #000000;
    background: #ebd2d2;
    border: 1px solid #2a2a33;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}

/* Hover Effekt */
.form-step input:hover,
.form-step textarea:hover {
    color: #212121;
    border-color: #6b6464;
    background: #faf0f0;
}



input:focus,
select:focus,
textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

/* Buttons */
button {
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.next {
    position: relative;
    overflow: hidden;
    color: #fff;
    width: 100%;
    margin-top: 10px;

    background: linear-gradient(135deg, #a2075b, #7a4eff);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Overlay */
.next::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7a4eff, #a2075b);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

/* Content über Overlay */
.next span {
    position: relative;
    z-index: 1;
}

.next:hover::before {
    opacity: 1;
}

.next:hover {
    box-shadow: 0 10px 25px rgba(162, 7, 91, 0.25);
}

.prev {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    width: 100%;
    margin-top: 10px;
}

.prev:hover {
    border-color: #666;
    color: #fff;
}

.submit-btn {
    position: relative;
    width: 100%;
    margin: 10px 0 10px 0;
    padding: 18px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
    background: linear-gradient(135deg, #7c5cff, #bd22b1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* Overlay Gradient für smooth Farbwechsel */
.submit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a2075b,#612bb6);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

/* Text über Overlay */
.submit-btn span {
    position: relative;
    z-index: 1;
}

/* Hover */
.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:hover {
    box-shadow: 0 12px 30px rgba(124, 92, 255, 0.35);
}

/* Klick Effekt */
.submit-btn:active {
    transform: scale(0.98);
}

/* Disabled State */
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}


select {
    appearance: none;
}

.form-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Textarea größer */
textarea {
    min-height: 120px;
    resize: vertical;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    color: #000000;
    background: #ebd2d2;
    border: 1px solid #2a2a33;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}

/* Hover Effekt */
.check-item:hover {
    color: #6b6464;
    border-color: #6b6464;
    background: #faf0f0;
}

/* Verstecke Standard Checkbox */
.check-item input {
    display: none;
}

/* Custom Checkbox */
.checkmark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #555;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

/* Haken */
.check-item input:checked + .checkmark {
    background: #a2075b;
    border-color: #990253;
}

.check-item input:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Text */
.label-text {
    font-size: 16px;
}

#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #bb0962;
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #6e063b;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.3s ease;
    z-index: 9999;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hintergrund Anfrageformular */
#event-form {
    position: relative; /* Container für das Hintergrund-Layer */
    z-index: 1;
    overflow: hidden;   /* Damit das Bild nicht übersteht */
    background-color: #f8f9fa; /* Dein ursprüngliches bg-light */
}

#event-form::before {
    content: "";
    position: absolute;
    top: -50px;        /* Deine Positionierung */
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/bg-contact.png') no-repeat center/cover;
    opacity: 0.11;       /* 0.1 ist sehr dezent, 0.2 etwas stärker */
    z-index: -1;        /* Legt das Bild HINTER den Inhalt */
}

/* ================= MEDIAS ================== */

/* --- Tablet (z.B. iPad) --- */
@media (max-width: 1024px) {
    #nav-logo {
        height: 50px;
    }
    .logo-text {
        font-size: 1.2rem;
    }

    .testimonial-grid {
        flex-wrap: nowrap; /* Kein Umbruch auf Tablets/Handys */
        overflow-x: auto; /* Horizontales Wischen ermöglichen */
        justify-content: flex-start;
        padding: 20px;
        scroll-snap-type: x mandatory; /* Karten rasten beim Wischen ein */
        -webkit-overflow-scrolling: touch;
    }

    .testimonial-card {
        flex: 0 0 85%; /* Karte nimmt 85% der Breite ein */
        scroll-snap-align: center;
    }
}


/* --- TABLET SMALL NAVIGATION --- */
@media (max-width: 992px) {
    #main-nav {
        padding: 10px 20px; /* Weniger Padding auf Mobile */
    }

    #main-nav ul {
        display: none; /* Versteckt das Menü standardmäßig auf Mobile */
        /* Hier müsste später dein JS den 'open' State triggern */
    }

    .menu-toggle {
        display: flex; /* Zeigt den Hamburger-Button */
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- MOBILE NAVIGATION --- */
@media (max-width: 768px) {
    /* Hero Text Anpassung */
    h1, .hero h1 {
        font-size: 2.2rem !important; /* Hero-Text verkleinern */
    }

    h2, .section-title-left {
        font-size: 1.8rem !important;
        margin-bottom: 2rem !important; /* Lücke verkleinern */
    }
    h2.portfol{
        font-size: 1.4rem !important;
    }
    .section {
        padding: 60px 0; /* Weniger vertikaler Abstand auf Mobile */
    }

    #nav-logo {
        height: 45px !important;
        max-height: 45px;
        width: auto;
        margin-top: 5px;
    }

    /* Navigations-Leiste schmaler auf Mobile */
    #main-nav {
        padding: 15px 20px;
    }

    /* Der Hamburger-Button wird sichtbar */
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Die eigentliche Liste (Menü) */
    .nav-list {
        display: none; /* Wichtig: jQuery steuert das Zeigen/Verstecken */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        list-style: none;
        flex-direction: column; /* Elemente untereinander */
    }

    /* Styling der Listenpunkte im Mobile-Modus */
    .nav-list li {
        width: 100%;
        text-align: center;
        margin: 15px 0 0 0 !important;
    }

    .nav-list li a {
        color: var(--secondary-color, #222) !important;
        display: block;
        width: 100%;
        font-size: 1.1rem; /* Etwas größer für Finger-Bedienung */
        padding: 15px 0;
        text-align: center;
    }

    .nav-list li a.btn-nav {
        color: #fff !important; /* Button-Text bleibt weiß */
        background: var(--primary-color);
        margin: 0 20px;
    }

    .menu-toggle .bar {
        background-color: #ffffff; /* Weiß */
        transition: background-color 0.3s ease;
    }
    #main-nav.is-sticky .menu-toggle .bar {
        background-color: var(--secondary-color, #222); /* Dunkelgrau */
    }

    /* Animation des Hamburger-Icons zum 'X' */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    /* Logos auf Mobile besser verteilen (2er Gitter statt 3er) */
    .logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .brand-name { font-size: 40px; display: block; margin-bottom: 10px; }
    .sub-text-box { height: auto; display: block; }
    .services-grid {grid-template-columns: 1fr; }

    .service-card.dark {
        padding: 25px 20px;
        margin-bottom: 20px; /* Abstand, wenn sie gestapelt sind */
    }
    #mission .modern-title-group {
        text-align: center;
    }

    #mission .modern-text-block {
        text-align: center;
        font-size: 1.1rem;
        br { display: none; } /* Zeilenumbrüche auf Mobile entfernen für besseren Fluss */
    }

    .brand-row {
        flex-direction: column; /* Stapelt Text unter Logo */
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .brand-name {
        font-size: 40px;
        text-align: center; /* Logo zentrieren */
        margin-right: 0;
    }
    .sub-text-box {
        height: auto;
        display: block;
        text-align: center; /* Text unter Logo zentrieren */
    }
    .line-1, .line-2 {
        white-space: normal; /* Umbruch erlauben */
        display: block;
        margin-bottom: 5px;
    }

    /* 2. Service Cards & Grids */
    .services-grid {
        grid-template-columns: 1fr !important; /* Nur noch eine Spalte */
        gap: 20px;
    }

    .service-card img {
        height: 80px; /* Kleinere Logos auf Mobile sparen Platz */
    }

    /* 3. Sektionen & Texte */
    .section {
        padding: 50px 0; /* Weniger Riesen-Abstände auf dem Handy */
    }
    .section.dark.bgimg.overlay::before {
        /* Ein linearer Gradient von oben nach unten ist auf dem Handy viel sicherer */
        background: linear-gradient(
                to bottom,
                rgba(6, 10, 19, 0.9) 0%,
                rgba(6, 10, 19, 0.8) 50%,
                rgba(6, 10, 19, 0.9) 100%
        ) !important;

        /* Sicherstellen, dass das Overlay die komplette (oft lange) Sektion füllt */
        height: 100%;
        width: 100%;
        display: block;
    }

    .section.dark.bgimg {
        /* Wichtig: Auf Mobile muss die Sektion mit dem Text wachsen können */
        height: auto !important;
        min-height: 100vh;
    }

    .modern-text-block {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    .modern-pre-title{
        text-align: left;
    }

    .description {
        font-size: 1rem;
        margin-top: 20px;
    }

    /* 4. Partner Logos (unten) */
    .logos {
        grid-template-columns: repeat(2, 1fr); /* 2 statt 4 Logos nebeneinander */
        gap: 20px;
    }

    .reveal-img {
        max-width: 100px; /* Logos im Footer kleiner */
        opacity: 1 !important; /* Auf Mobile direkt zeigen (kein Hover) */
        transform: translateY(0) !important;
    }

    /* 5. Zitate */
    .zitat p {
        font-size: 1.2rem;
    }

    .zitat::before {
        font-size: 8rem;
        top: -150px;
    }

    .center-mobil{
        text-align: center !important;
    }
    .only-mobile {
        display: inline;
    }

    /* contact Form */
    .form-step {
        padding: 20px;
        border-radius: 12px;
    }

    input,
    select,
    textarea {
        font-size: 15px;
        padding: 14px;
    }

    button {
        font-size: 15px;
    }

}

/* ===== Smartphone: 1 Spalte (untereinander) */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .center-mobil{
        text-align: center !important;
    }
    .only-mobile {
        display: inline;
    }

}

/* --- Sehr kleine Handys (optional) --- */
@media (max-width: 480px) {
    .logo-text {
        font-size: 0.9rem;
    }
    #nav-logo {
        height: 35px;
    }
    .brand-name {
        font-size: 35px !important;
    }
    .center-mobil{
        text-align: center !important;
    }
    .only-mobile {
        display: inline;
    }

}