/* Common Styles for Esox Media Website */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Hero & Header Reset - Prevent unwanted borders/shadows */
.header { 
    border-left: 0 !important; 
    border-top: 0 !important; 
    border-right: 0 !important; 
}

.header::before, .header::after { 
    display: none !important; 
}

.hero { 
    border: none !important; 
    box-shadow: none !important; 
}

.hero::before, .hero::after { 
    display: none !important; 
}

/* Utility Classes for Inline Style Replacement */
.hero__code-function-name {
    color: #111827;
}
.hero__code-line-spacing {
    margin-top: 1rem;
}
.card-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.card-text-italic {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 0.75rem;
}
.card-text-bold {
    font-weight: 600;
    color: #111827;
    margin-top: 0.75rem;
}
.feature-icon-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0F766E;
}
.otp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid #CCFBF1;
    background: #F0FDFA;
    color: #0F766E;
    white-space: nowrap;
    margin-left: 0.5rem;
}
.pricing-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 12px;
}
.pricing-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6b7280;
}
.trust-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}
.trust-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}
.trust-card-text {
    font-size: 1rem;
    margin-bottom: 0;
    color: #4b5563;
}
.trust-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.trust-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.trust-link:hover {
    transform: translateY(-1px);
    border-color: #CCFBF1;
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.08);
}
.trust-link-label {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
}
.content-note {
    margin-top: 3rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Hero Typography - Dark on Light (for Stripe SaaS Look) */
.hero__title { 
    color: #111827 !important; 
    text-shadow: none !important; 
}

.hero__subtitle { 
    color: #4b5563 !important; /* Weicheres Grau */
    text-shadow: none !important; 
}

.hero__tagline {
    color: #6b7280 !important;
    background: transparent !important; /* Kein Kasten mehr */
    backdrop-filter: none !important;
    padding: 0;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-shadow: none !important;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: -9999px;
    background: #111827;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
    border-radius: 0 0 4px 0;
    transition: top 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.skip-link:focus {
    top: 0;
    left: 0;
    opacity: 1;
    visibility: visible;
    outline: 2px solid #0F766E;
    outline-offset: 2px;
}

/* Enhanced Focus States for Accessibility */
a:focus,
button:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid #0F766E;
    outline-offset: 2px;
    border-radius: 2px;
}

.nav a:focus {
    outline: 2px solid #0F766E;
    outline-offset: 4px;
    border-radius: 2px;
}

.btn:focus {
    outline: 2px solid #0F766E;
    outline-offset: 2px;
}

/* Remove default focus outline and add custom */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #0F766E;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Feature Pill Grid & Pills */
.feature-pill-container,
.feature-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
    list-style: none;
    margin-top: 1.5rem;
}

.feature-pill {
    background: #F0FDFA; /* Mint White */
    color: #0F766E; /* Deep Teal Text */
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid #CCFBF1; /* Soft Mint Border */
    display: inline-flex;
    align-items: center;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 900px; }
.section { padding: 8rem 0; }
.section--tight { padding: 5rem 0; }

/* Hero Section - Ensure transparent background and proper layering */
.hero {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Gradient Canvas - Masked for Stripe SaaS Look */
#gradient-canvas {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 1;
    pointer-events: none;
    background: transparent !important;
    
    /* Option 3: Radial Gradient oben rechts (Top Right Corner) */
    -webkit-mask-image: radial-gradient(circle at 100% 0%, black 0%, transparent 60%);
    mask-image: radial-gradient(circle at 100% 0%, black 0%, transparent 60%);
}

/* Header - Frosted Glass Effect */
.header {
    padding: 1.5rem 0;
    /* Transparenteres Weiß für besseren Glass-Effekt */
    background: rgba(255, 255, 255, 0.6) !important;
    
    /* Starker Blur für den Frost-Effekt */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Subtile Border statt Schatten */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.logo { 
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }
.logo-icon {
    height: 48px;
    width: auto;
    transition: opacity 0.3s ease;
    filter: none !important; /* Logo Originalfarben */
}
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a { 
    color: #4b5563 !important; 
    text-decoration: none !important; 
    font-weight: 500; 
    font-size: 0.9375rem; 
    transition: color 0.2s;
    position: relative;
    text-shadow: none !important;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0F766E;
    transition: width 0.3s ease;
}
.nav a:hover::after {
    width: 100%;
}
.nav a:hover { 
    color: #111827 !important; 
    text-decoration: none !important;
    text-shadow: none !important;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}
.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #111827;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.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(7px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        gap: 1rem;
    }
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav a {
        color: #4b5563;
    }
    .nav a::after {
        background: #0F766E;
    }
    .nav a:hover {
        color: #111827;
        text-decoration: none !important;
    }
    .header {
        position: relative;
    }
    .header.sticky {
        position: sticky;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typography - Stripe Style */
h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #111827;
    margin-bottom: 1.5rem;
}
h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #111827;
    margin-bottom: 1.5rem;
}
h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
    margin-bottom: 1rem;
}
p {
    color: #4b5563;
    margin-bottom: 1rem;
}
a {
    color: #0F766E;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Footer - Stripe Style */
.footer {
    background: #FFFFFF;
    border-top: 1px solid #F0F0F0;
    padding: 3rem 0;
    margin-top: 0;
    font-size: 0.875rem;
    color: #6b7280;
}
.footer .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 1.5rem; 
}
.footer a { 
    color: #6b7280; 
    text-decoration: none; 
    font-weight: 500;
    transition: color 0.2s;
}
.footer a:hover { 
    color: #111827; 
}

/* Content Pages */
.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.content-page h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.content-page h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.content-page ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #4b5563;
}
.content-page li {
    margin-bottom: 0.5rem;
}

/* --- Global Button Styles --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.5;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background-color: #0F766E; /* Primary Teal */
    color: #ffffff !important;
    box-shadow: 0 4px 14px 0 rgba(15, 118, 110, 0.3);
}

.btn--primary:hover {
    background-color: #115E59; /* Darker Teal */
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}

.btn--link {
    background: transparent;
    color: #0F766E;
    padding: 0;
    box-shadow: none;
}
.btn--link:hover {
    color: #115E59;
    background: transparent;
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn--secondary {
    background: transparent;
    color: #111827;
    border: 1px solid #E5E7EB;
}
.btn--secondary:hover {
    border-color: #111827;
    background: #FAFAFA;
    transform: translateY(-1px);
}

.btn-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.card .btn {
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    margin-top: 0.5rem;
}

.btn--card {
    margin-top: 1rem;
}
