/* ===== Global responsive base (Handy + Laptop) ===== */
html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    min-width: 320px;
}

/* Bilder auf allen Seiten responsiv */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Nav-Logo behält feste Höhe (überschreibt img oben in .navbar) */
.navbar .logo img {
    max-width: none;
}

/* Einheitliche Navigation – wie auf der Homepage */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f1f5f9;
}

.navbar .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar .logo img {
    height: 38px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1e293b;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-actions .demo-call {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-actions .btn-login {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-actions .btn-login:hover {
    color: #f97316;
    border-color: #f97316;
    background: #fff7ed;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.1);
}

.nav-actions .btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.nav-actions .btn-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    z-index: 1001;
    padding: 7px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1e293b;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: white;
    z-index: 1000;
    padding: 100px max(2rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(2rem, env(safe-area-inset-left));
    padding-top: max(100px, env(safe-area-inset-top));
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    font-size: 1.25rem;
    color: #1e293b;
    text-decoration: none;
    padding: 1rem 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav a:hover {
    color: #6366f1;
}

.mobile-nav .mobile-cta {
    margin-top: 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    border: none;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }

    .navbar .logo img {
        height: 28px;
    }
}

/* Sehr kleine Displays (z. B. schmale Handys) */
@media (max-width: 380px) {
    .navbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== Integration-Partner-Seiten: Logos & Abstände ===== */
.partner-logo-large {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .content-section {
        padding: 2rem 1rem;
    }
}

/* ===== Blog: Lesbarkeit auf kleinen Screens ===== */
@media (max-width: 768px) {
    .blog-content,
    .blog-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== Tabellen & Code: kein Horizontal-Scroll auf Handy ===== */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    pre,
    code {
        max-width: 100%;
        overflow-x: auto;
    }
}
