/* ============================================
   GLOBAL & THEMES
   ============================================ */
:root {
    --accent: #ef4444;
    /* Rot (Signal-Akzente) */
    --accent-rgb: 239, 68, 68;
    --primary: #1e293b;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.12);
    --transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --card: #1e293b;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* FARBPALETTEN (Neue Farben unter alten Keys um HTML unberührt zu lassen) */
[data-palette="blue"] {
    --accent: #ef4444;
    --accent-rgb: 239, 68, 68;
}

/* Rot */
[data-palette="green"] {
    --accent: #10b981;
    --accent-rgb: 16, 185, 129;
}

/* Grün */
[data-palette="gold"] {
    --accent: #d4af37;
    --accent-rgb: 212, 175, 55;
}

/* Gelb/Gold */
[data-palette="slate"] {
    --accent: #8b5cf6;
    --accent-rgb: 139, 92, 246;
}

/* Lila */

/* Überschreibe inline Styles der Farb-Auswahl Buttons */
.palette-btn[data-palette="blue"] {
    background-color: #ef4444 !important;
}

.palette-btn[data-palette="green"] {
    background-color: #10b981 !important;
}

.palette-btn[data-palette="gold"] {
    background-color: #d4af37 !important;
}

.palette-btn[data-palette="slate"] {
    background-color: #8b5cf6 !important;
}

/* ============================================
   BASE STYLES (Responsive Fixes)
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
    cursor: none;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    padding: 120px 0;
    position: relative;
    width: 100%;
}

.bg-soft {
    background: var(--bg-soft);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

[data-theme="dark"] nav {
    background: rgba(15, 23, 42, 0.85);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    z-index: 1002;
}

.nav-logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    margin-left: 14px;
}

.logo-text {
    font-weight: 800;
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-subtext {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
    transition: var(--transition);
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-switch {
    background: var(--border);
    width: 54px;
    height: 28px;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.theme-ball {
    position: absolute;
    left: 4px;
    top: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-ball {
    transform: translateX(24px);
    background: var(--accent);
    color: white;
}

/* Palette Sidebar (Desktop) */
.palette-panel {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1100;
    background: var(--card);
    padding: 12px;
    border-radius: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.palette-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.palette-btn.active {
    border-color: var(--text);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 10px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION - VERBESSERT MIT LOGO
   ============================================ */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 90px;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    position: relative;
}

/* NEU: Style für das Hintergrund-Logo (#hero-bg-logo)
   Hier wird sichergestellt, dass das Bild die volle Breite einnimmt
   und gut als subtiler Hintergrund lesbar ist.
*/
#hero-bg-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Stellt sicher, dass das Bild den Container füllt */
    object-position: center;
    opacity: 0.5;
    /* Sehr subtil, damit Text lesbar bleibt (8%) */
    /* Optional: Schwarz/Weiß für weniger Ablenkung */
    transition: opacity 0.5s ease;
}

/* Dark Mode Logo Opacity anpassen */
[data-theme="dark"] #hero-bg-logo {
    opacity: 0.5;
    /* Im Dark Mode noch subtiler (5%) */
    filter: invert(1) opacity(0.5);
    /* Invertiert für dunklen Hintergrund */
}

/* Light Mode Overlay - Gradient von links */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.85) 35%,
            rgba(255, 255, 255, 0.4) 65%,
            rgba(255, 255, 255, 0.15) 100%);
    z-index: -1;
}

/* Dark Mode Overlay - Stärkerer Gradient für bessere Lesbarkeit */
[data-theme="dark"] .hero-overlay {
    background: linear-gradient(90deg,
            rgba(15, 23, 42, 0.98) 0%,
            rgba(15, 23, 42, 0.92) 35%,
            rgba(15, 23, 42, 0.7) 65%,
            rgba(15, 23, 42, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .hero-content h1 {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.typing-container {
    color: var(--accent);
    min-height: 1.1em;
    display: inline-block;
}

.hero-desc {
    max-width: 650px;
    color: var(--text-muted);
    font-size: 1.3rem;
    margin-bottom: 3rem;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .hero-desc {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-main {
    padding: 1.2rem 2.8rem;
    border-radius: 50px;
    font-weight: 800;
    border: none;
    background: var(--accent);
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.25);
    cursor: pointer;
}

.btn-outline {
    padding: 1.2rem 2.8rem;
    border-radius: 50px;
    font-weight: 800;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .btn-outline {
    background: rgba(15, 23, 42, 0.7);
}

.btn-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(var(--accent-rgb), 0.4);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-5px);
}

/* ============================================
   DROPDOWN STYLES
   ============================================ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 100;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 14px;
    transition: 0.3s;
    text-transform: none;
    letter-spacing: 0;
}

.dropdown-menu a i {
    color: var(--accent);
    font-size: 1.1rem;
}

.dropdown-menu a:hover {
    background: var(--bg-soft);
    color: var(--accent);
}

.dropdown-toggle i {
    margin-left: 10px;
    font-size: 0.85rem;
    transition: 0.3s;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* ============================================
   FLIP CARDS (UX/UI Optimized)
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 5.5rem;
}

.section-header h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -1.5px;
}

.underline {
    width: 80px;
    height: 6px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.flip-card {
    height: 420px;
    perspective: 1500px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow);
}

.flip-card-back {
    background: var(--accent);
    color: white;
    transform: rotateY(180deg);
    border: none;
    box-shadow: 0 15px 40px rgba(var(--accent-rgb), 0.4);
}

.flip-card-front i {
    font-size: 4.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    transition: transform 0.4s;
}

.flip-card:hover .flip-card-front i {
    transform: scale(1.1);
}

.flip-card-front h3 {
    font-size: 1.6rem;
    font-weight: 800;
}

.flip-hint {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.flip-hint i {
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

/* ============================================
   SKILL BARS
   ============================================ */
.competence-full-layout {
    max-width: 950px;
    margin: 0 auto;
    width: 100%;
}

.skill-item {
    margin-bottom: 2.8rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.skill-bar-outer {
    height: 14px;
    background: var(--border);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

.skill-bar-inner {
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 20px;
}

/* ============================================
   ABOUT GRID
   ============================================ */
.about-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
    width: 100%;
}

.about-card {
    background: var(--card);
    padding: 3rem;
    border-radius: 35px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.about-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.main-info {
    grid-column: 1 / 3;
}

.ceo-card {
    grid-column: 3 / 4;
    align-items: center;
    text-align: center;
}

.stats-grid {
    grid-column: 1 / 2;
    display: grid;
    gap: 1.5rem;
    padding: 2.5rem;
    background: var(--bg-soft);
}

.purpose-card {
    grid-column: 2 / 4;
}

.location-card {
    grid-column: 1 / 2;
}

.vision-card {
    grid-column: 2 / 4;
}

.card-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.ceo-image-placeholder {
    width: 110px;
    height: 110px;
    background: var(--bg-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1.8rem;
    border: 4px solid var(--border);
}

.ceo-content h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.ceo-content span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-box {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-box:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.stat-box:hover .stat-val,
.stat-box:hover .stat-label {
    color: white;
}

.stat-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    transition: 0.3s;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    transition: 0.3s;
}

.purpose-list {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.purpose-list li {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.purpose-list i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* ============================================
   CONTACT FORM & DIRECT CALL
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3.5rem;
    width: 100%;
}

.contact-form {
    background: var(--card);
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.6rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--bg);
    outline: none;
    box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0.1);
}

.submit-full {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 18px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 800;
    transition: var(--transition);
}

.submit-full:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
}

.contact-direct-call {
    margin-top: 3.5rem;
    text-align: center;
}

.contact-direct-call p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.phone-link {
    font-size: 1.3rem;
    font-weight: 800;
    color: white !important;
    background: #d4af37;
    /* Gold/Gelb Akzent */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.phone-link i {
    font-size: 1.3rem;
    margin-bottom: 0;
}

.phone-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.6);
    background: #e5c355;
    /* Hover Aufhellung */
}

.map-container {
    border-radius: 40px;
    overflow: hidden;
    height: 100%;
    min-height: 450px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 100px 0 50px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.2fr;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-brand .nav-logo-placeholder {
    margin-bottom: 2rem;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.footer-brand p {
    max-width: 350px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text);
}

.footer-nav a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent);
    transform: translateX(8px);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.footer-phone {
    margin-top: 18px;
}

.footer-phone a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.footer-phone a:hover {
    color: var(--text);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    width: 100%;
}

.legal-links a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 25px;
    transition: 0.3s;
    font-weight: 600;
}

.legal-links a:hover {
    color: var(--accent);
}

/* ============================================
   ANIMATIONS & RESPONSIVE
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Classes */
.mobile-only-controls {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 1100px) {
    .about-grid-modern {
        grid-template-columns: 1fr 1fr;
    }

    .main-info {
        grid-column: 1 / 3;
    }

    .ceo-card {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    .stats-grid {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    .purpose-card {
        grid-column: 1 / 3;
    }

    .location-card {
        grid-column: 1 / 2;
    }

    .vision-card {
        grid-column: 2 / 3;
    }

    .footer-grid {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    html {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-outline,
    .desktop-only {
        display: none !important;
    }

    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 450px;
        height: 100vh;
        background: var(--card);
        flex-direction: column;
        justify-content: flex-start;
        padding: 130px 50px 50px;
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 1.3rem;
        display: block;
        padding: 18px 0;
        border-bottom: 1px solid var(--border);
    }

    .mobile-only-controls {
        display: block;
        margin-top: 40px;
    }

    .mobile-divider {
        height: 1px;
        background: var(--border);
        margin: 30px 0;
    }

    .mobile-palette-title {
        font-weight: 800;
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-bottom: 20px;
        text-transform: uppercase;
    }

    .palette-grid {
        display: flex;
        gap: 15px;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }

    .mobile-theme-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--bg-soft);
        padding: 20px;
        border-radius: 20px;
        width: 100%;
    }

    .mobile-theme-toggle span {
        font-weight: 700;
    }

    .burger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .dropdown-menu {
        min-width: 100%;
        position: relative;
        top: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        box-shadow: none;
        padding: 0;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* Über Uns Layout Fix für Tablet */
    .about-grid-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-info,
    .ceo-card,
    .stats-grid,
    .purpose-card,
    .location-card,
    .vision-card {
        grid-column: 1 / 2;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
        margin-top: 2rem;
    }

    .hero-desc {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .flip-card {
        height: 380px;
    }

    /* Hero Section Mobile Anpassungen für das neue Logo */
    #hero-bg-logo {
        object-fit: contain;
        /* Auf Handy lieber ganz sichtbar */
        object-position: top center;
        /* Logo etwas nach oben schieben */
        opacity: 0.1;
        /* Etwas sichtbarer auf kleinen Screens */
        margin-top: 20%;
        /* Abstand von oben */
    }

    [data-theme="dark"] #hero-bg-logo {
        opacity: 0.08;
    }

    .hero-bg-img {
        align-items: flex-start;
        /* Logo nicht zentrieren, sondern oben starten */
    }

    .hero-overlay {
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.95) 0%,
                rgba(255, 255, 255, 0.88) 40%,
                rgba(255, 255, 255, 0.6) 70%,
                rgba(255, 255, 255, 0.3) 100%);
    }

    [data-theme="dark"] .hero-overlay {
        background: linear-gradient(180deg,
                rgba(15, 23, 42, 0.97) 0%,
                rgba(15, 23, 42, 0.93) 40%,
                rgba(15, 23, 42, 0.75) 70%,
                rgba(15, 23, 42, 0.4) 100%);
    }

    /* Grid-Fix */
    .about-grid-modern {
        gap: 1.5rem;
    }

    .about-card {
        padding: 2.2rem 1.5rem;
    }

    .stats-grid {
        gap: 1rem;
        padding: 1.5rem;
    }

    .stat-box {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .legal-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .legal-links a {
        margin: 0;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        gap: 1rem;
    }

    .dropdown {
        width: 100%;
    }

    .btn-main {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .btn-outline {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .phone-link {
        font-size: 1.15rem;
        padding: 15px 30px;
        width: 100%;
    }
}

/* ============================================
   EXTRA MOBILE FIX (z.B. iPhone 14)
   ============================================ */
@media (max-width: 480px) {

    /* Erzwinge einspaltiges Layout für die Häkchen-Liste (Zweck) */
    .purpose-list {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* Stelle sicher, dass die Info-Boxen sauber untereinander stehen mit gutem Abstand */
    .about-grid-modern {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .about-card {
        margin-bottom: 20px !important;
    }

    .stats-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
}