/* Xentum AG - Corporate Website Styles */
/* Based on Corporate Identity Guidelines */

/* Raleway Font - for Headlines (replaces Red Thinker - full Umlaut support) */
/* Loaded via Google Fonts in HTML head */

:root {
    /* Primary Colors */
    --xentum-orange: #ED7D31;
    --xentum-orange-hover: #d66a24;
    --xentum-dark: #44546A;
    --xentum-teal: #3D5A5A;
    --xentum-grey: #5A6A72;

    /* Background Colors */
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-dark: #2C3E4A;

    /* Text Colors */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #FFFFFF;
    --text-muted: #888888;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;

    /* Dark Mode Colors (default: light) */
    --dm-bg: #FFFFFF;
    --dm-bg-alt: #F8F9FA;
    --dm-text: #333333;
    --dm-text-secondary: #666666;
    --dm-header-bg: #FFFFFF;
    --dm-card-bg: #FFFFFF;
    --dm-border: rgba(0, 0, 0, 0.08);
}

/* Dark Mode Theme */
[data-theme="dark"] {
    --dm-bg: #1a1a2e;
    --dm-bg-alt: #16213e;
    --dm-text: #EAEAEA;
    --dm-text-secondary: #B0B0B0;
    --dm-header-bg: #1a1a2e;
    --dm-card-bg: #16213e;
    --dm-border: rgba(255, 255, 255, 0.08);
    --bg-light: #16213e;
    --bg-white: #1a1a2e;
    --text-primary: #EAEAEA;
    --text-secondary: #B0B0B0;
}

/* ========================================
   SMOOTH PAGE LOAD
   ======================================== */
body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--xentum-orange);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    /* System-Font-Stack (DSGVO-konform, keine externen Requests) */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--xentum-dark);
}

/* System-Font für Headlines (DSGVO-konform) */
h1, h2 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    letter-spacing: 0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--xentum-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--xentum-orange-hover);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255,255,255,0.98);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--xentum-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--xentum-orange);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-dropdown .dropdown-toggle svg {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--dm-card-bg);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dm-text);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(237, 125, 49, 0.1);
    color: var(--xentum-orange);
}

.dropdown-menu a::after {
    display: none;
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        padding-left: 20px;
    }

    .dropdown-menu a {
        padding: 8px 0;
    }
}

.lang-switch {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-switch a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Combined DE/CH flag group */
.lang-switch .flag-group {
    display: flex;
    gap: 3px;
    align-items: center;
}

.lang-switch .lang-combined {
    padding: 5px 8px;
    font-size: 0.85rem;
    color: var(--xentum-dark);
}

.lang-switch a:hover,
.lang-switch a.active {
    background: var(--bg-light);
}

.lang-switch img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--xentum-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--xentum-teal) 0%, var(--bg-dark) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.svg') no-repeat center;
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--xentum-orange);
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--xentum-orange);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--xentum-orange-hover);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(237, 125, 49, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: var(--text-light);
    color: var(--text-light);
    background: rgba(255,255,255,0.1);
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features Section */
.features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: var(--xentum-orange);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(237,125,49,0.1) 0%, rgba(237,125,49,0.05) 100%);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--xentum-orange);
    stroke-width: 1.5;
    fill: none;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* About Section */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--xentum-orange);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Swiss Cross in About Section */
.stat-item.swiss-based .stat-number {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiss-cross {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: var(--transition);
}

.stat-item.swiss-based:hover .swiss-cross {
    transform: scale(1.1);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

/* Regulation Badge */
.regulation-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    margin-top: 30px;
}

.regulation-badge img {
    height: 50px;
    width: auto;
}

.regulation-badge p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--xentum-teal) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
}

.contact .section-header h2 {
    color: var(--text-light);
}

.contact .section-header p {
    color: rgba(255,255,255,0.8);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.contact-item {
    padding: 30px;
}

.contact-item svg {
    width: 50px;
    height: 50px;
    stroke: var(--xentum-orange);
    stroke-width: 1.5;
    fill: none;
    margin-bottom: 20px;
}

.contact-item h4 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.contact-item p,
.contact-item a {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--xentum-orange);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 35px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--xentum-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: var(--xentum-orange);
}

/* ========================================
   RESPONSIVE DESIGN - Mobile First Approach
   ======================================== */

/* Default Logo State (must be before media queries!) */
.logo img.logo-full {
    display: block;
}

.logo img.logo-x {
    display: none;
    height: 35px;
}

/* Fluid Typography with clamp() */
h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.hero h1 {
    font-size: clamp(1.75rem, 6vw, 3.5rem);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* ========================================
   TABLET LANDSCAPE (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   TABLET PORTRAIT (max-width: 768px)
   - Hamburger Menu aktiviert
   - X-Logo aktiviert
   - Sprachtext ausgeblendet
   ======================================== */
@media (max-width: 768px) {
    /* X-Logo ab 768px */
    .logo img.logo-full {
        display: none !important;
    }

    .logo img.logo-x {
        display: block !important;
        height: 35px;
    }

    /* Hamburger Menu */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid var(--bg-light);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 12px 20px;
        font-size: 1.1rem;
    }

    /* Mobile Toggle visible + Animation */
    .mobile-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 101;
    }

    .mobile-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--xentum-dark);
        position: absolute;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-toggle span:nth-child(1) {
        transform: translateY(-8px);
    }

    .mobile-toggle span:nth-child(2) {
        transform: translateY(0);
    }

    .mobile-toggle span:nth-child(3) {
        transform: translateY(8px);
    }

    /* Hamburger -> X Animation */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Sprachauswahl: Nur Flaggen */
    .lang-switch a span.lang-text {
        display: none;
    }

    .lang-switch {
        gap: 8px;
    }

    .lang-switch a {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    /* Contact */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* ========================================
   MOBILE SMALL (max-width: 540px)
   ======================================== */
@media (max-width: 540px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    /* Header kompakter */
    .nav {
        padding: 10px 0;
    }

    .logo img.logo-x {
        height: 30px;
    }

    /* Sprachauswahl noch kompakter */
    .lang-switch {
        gap: 4px;
    }

    .lang-switch a {
        padding: 6px;
        min-width: 40px;
        min-height: 40px;
    }

    .lang-switch svg {
        width: 18px;
        height: 12px;
    }

    /* Hero */
    .hero {
        padding: 90px 0 50px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    /* About */
    .about-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-item {
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .regulation-badge {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
    }

    /* Section Padding reduzieren */
    section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

/* ========================================
   MOBILE EXTRA SMALL (max-width: 375px)
   iPhone SE, kleine Android
   ======================================== */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-item {
        padding: 12px;
    }

    .footer-bottom-links {
        gap: 10px;
    }

    .footer-bottom-links a {
        font-size: 0.75rem;
    }
}

/* ========================================
   TOUCH-FRIENDLY TARGETS
   Minimum 44x44px für alle interaktiven Elemente
   ======================================== */
@media (pointer: coarse) {
    .nav-links a,
    .lang-switch a,
    .btn,
    .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .mobile-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ========================================
   SAFE AREA SUPPORT (iPhone Notch/Dynamic Island)
   ======================================== */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }
}

/* ========================================
   REDUCED MOTION (Accessibility)
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-orange { color: var(--xentum-orange); }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* ========================================
   DARK MODE STYLES
   ======================================== */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--xentum-dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--xentum-orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(237, 125, 49, 0.4);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

/* Dark Mode Toggle Button (in Navigation) */
.dark-mode-toggle.nav-dark-toggle {
    position: relative;
    bottom: auto;
    right: auto;
    z-index: auto;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--dm-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
}

.dark-mode-toggle.nav-dark-toggle:hover {
    background: var(--bg-light);
    border-color: var(--xentum-orange);
    transform: none;
    box-shadow: none;
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.dark-mode-toggle .icon-moon {
    fill: var(--xentum-dark);
    stroke: none;
    display: block;
}

.dark-mode-toggle .icon-sun {
    fill: none;
    stroke: var(--xentum-orange);
    stroke-width: 2;
    display: none;
}

[data-theme="dark"] .dark-mode-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle.nav-dark-toggle {
    background: var(--dm-bg-alt);
    border-color: var(--dm-border);
}

[data-theme="dark"] .dark-mode-toggle.nav-dark-toggle:hover {
    background: var(--xentum-orange);
    border-color: var(--xentum-orange);
}

[data-theme="dark"] .dark-mode-toggle.nav-dark-toggle:hover .icon-sun {
    stroke: white;
}

/* Mobile: Dark mode toggle smaller */
@media (max-width: 768px) {
    .dark-mode-toggle.nav-dark-toggle {
        width: 36px;
        height: 36px;
        margin-right: 5px;
    }

    .dark-mode-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* Dark Mode Element Adjustments */
[data-theme="dark"] body {
    background-color: var(--dm-bg);
    color: var(--dm-text);
}

[data-theme="dark"] .header {
    background: var(--dm-header-bg);
    box-shadow: 0 2px 20px var(--dm-border);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(26, 26, 46, 0.98);
}

[data-theme="dark"] .nav-links a {
    color: var(--dm-text);
}

[data-theme="dark"] .mobile-toggle span {
    background: var(--dm-text);
}

[data-theme="dark"] .nav-links {
    background: var(--dm-header-bg);
}

[data-theme="dark"] .nav-links li {
    border-color: var(--dm-border);
}

[data-theme="dark"] .lang-switch a {
    color: var(--dm-text);
}

[data-theme="dark"] .lang-switch a:hover,
[data-theme="dark"] .lang-switch a.active {
    background: var(--dm-bg-alt);
}

[data-theme="dark"] .features {
    background: var(--dm-bg-alt);
}

[data-theme="dark"] .feature-card {
    background: var(--dm-card-bg);
    border-color: var(--dm-border);
}

[data-theme="dark"] .feature-card:hover {
    border-color: var(--xentum-orange);
}

[data-theme="dark"] .feature-card h3 {
    color: var(--dm-text);
}

[data-theme="dark"] .feature-card p {
    color: var(--dm-text-secondary);
}

[data-theme="dark"] .about {
    background: var(--dm-bg);
}

[data-theme="dark"] .about-text h2 {
    color: var(--dm-text);
}

[data-theme="dark"] .about-text p {
    color: var(--dm-text-secondary);
}

[data-theme="dark"] .stat-item {
    background: var(--dm-bg-alt);
}

[data-theme="dark"] .stat-label {
    color: var(--dm-text-secondary);
}

[data-theme="dark"] .regulation-badge {
    background: var(--dm-bg-alt);
}

[data-theme="dark"] .regulation-badge p {
    color: var(--dm-text-secondary);
}

[data-theme="dark"] .section-header p {
    color: var(--dm-text-secondary);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: var(--dm-text);
}

/* Dark Mode - Scroll to Top Button */
[data-theme="dark"] .scroll-to-top {
    background: var(--dm-bg-alt);
    border: 1px solid var(--dm-border);
}

[data-theme="dark"] .scroll-to-top:hover {
    background: var(--xentum-orange);
    border-color: var(--xentum-orange);
}

/* ========================================
   DEZENTE ANIMATIONEN (Professionell)
   ======================================== */

/* Text Reveal Animation - einmalig beim Scrollen */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--xentum-orange);
    transform: translateX(-101%);
}

.text-reveal.text-revealed::after {
    animation: textReveal 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes textReveal {
    0% { transform: translateX(-101%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(101%); }
}

/* Navigation Link Underline - von Mitte aus */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--xentum-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Button Shine Effect - dezenter Glanz bei Hover */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Contact Items - dezentes Wachsen bei Hover */
.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: scale(1.03);
}

.contact-item:hover svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Reduce animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .text-reveal::after {
        display: none;
    }

    .btn-primary::before {
        display: none;
    }

    .contact-item:hover,
    .contact-item:hover svg {
        transform: none;
    }
}

/* ========================================
   COOKIE CONSENT BANNER
   DSGVO-konform
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--xentum-dark);
    color: var(--text-light);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner-text a {
    color: var(--xentum-orange);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #fff;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--xentum-orange);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--xentum-orange-hover);
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 16px;
    font-size: 0.85rem;
}

.cookie-btn-settings:hover {
    color: white;
}

/* Mobile Anpassungen */
@media (max-width: 600px) {
    .cookie-banner {
        padding: 16px;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
}

/* Dark Mode Anpassung */
[data-theme="dark"] .cookie-banner {
    background: #0f0f1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   PHONE NUMBER PROTECTION (Anti-Bot/Google)
   ======================================== */
.phone-protect {
    min-height: 1.5em;
}

.phone-protect .phone-number {
    display: inline-block;
}

.phone-protect a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.phone-protect a:hover {
    color: var(--xentum-orange);
}

/* Fallback for no-JS: show hint */
.phone-protect .phone-number:empty::after {
    content: "JavaScript required";
    color: var(--text-muted);
    font-size: 0.85em;
    font-style: italic;
}

/* ========================================
   EMAIL PROTECTION (Anti-Bot)
   ======================================== */
.email-protect {
    display: inline;
}

.email-protect a {
    color: var(--xentum-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

.email-protect a:hover {
    color: var(--xentum-orange-hover);
    text-decoration: underline;
}

/* In legal pages, inherit color */
.legal-section .email-protect a {
    color: inherit;
}

.legal-section .email-protect a:hover {
    color: var(--xentum-orange);
}

/* ============================================
   PRINT STYLESHEET
   ============================================ */

/* Print Button - dezent, nur Icon, rechtsbündig */
.print-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--dm-border);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    margin-left: auto;
}

.print-button:hover {
    color: var(--xentum-orange);
    border-color: var(--xentum-orange);
    background: rgba(237, 125, 49, 0.05);
}

.print-button svg {
    width: 18px;
    height: 18px;
}

/* Container für Datum + Print Button */
.legal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.legal-meta .legal-date {
    margin-bottom: 0;
}

/* Wenn kein Datum vorhanden, Button rechtsbündig */
.legal-meta:not(:has(.legal-date)) {
    justify-content: flex-end;
}

/* Fallback für Browser ohne :has() Support */
@supports not (selector(:has(*))) {
    .legal-meta {
        justify-content: flex-end;
    }
    .legal-meta .legal-date {
        margin-right: auto;
    }
}

@media print {
    /* Hide non-essential elements */
    header,
    footer,
    .header,
    .footer,
    .nav,
    .print-button,
    .cookie-banner,
    .scroll-to-top,
    .dark-mode-toggle,
    .lang-switch {
        display: none !important;
    }

    /* Reset page layout */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.5;
        margin: 0;
        padding: 0;
    }

    /* Legal page adjustments */
    .legal-page {
        padding: 0 !important;
        min-height: auto !important;
    }

    .legal-content {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
    }

    /* Section styling for print */
    .legal-section {
        background: none !important;
        border: 1px solid #ccc;
        border-radius: 0 !important;
        padding: 15px !important;
        margin-bottom: 20px !important;
        page-break-inside: avoid;
    }

    /* Typography for print */
    .legal-content h1 {
        font-size: 18pt !important;
        color: black !important;
        margin-bottom: 5px !important;
    }

    .legal-section h2 {
        font-size: 14pt !important;
        color: #333 !important;
        border-bottom: 1px solid #ccc;
        padding-bottom: 5px;
    }

    .legal-section h3 {
        font-size: 12pt !important;
        color: #444 !important;
    }

    .legal-section p,
    .legal-section li {
        color: black !important;
        font-size: 11pt !important;
    }

    .legal-date {
        font-size: 10pt !important;
        color: #666 !important;
    }

    /* Links: show URL */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }

    /* Don't show URL for internal links */
    a[href^="#"]:after,
    a[href^="mailto"]:after,
    a[href^="tel"]:after {
        content: "";
    }

    /* Page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
    }

    /* Ensure proper page margins */
    @page {
        margin: 2cm;
    }

    /* Print Footer - nur beim Drucken sichtbar */
    .print-footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px 2cm;
        border-top: 1px solid #ccc;
        background: white;
        font-size: 9pt;
        color: #666;
    }

    .print-footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .print-footer img {
        height: 20px;
        width: auto;
    }

    .print-footer .print-date {
        text-align: right;
    }
}

/* Print Footer - im Browser versteckt */
.print-footer {
    display: none;
}
