/*
  ============================================
  VERIO.CH DESIGN SYSTEM V2.0
  ============================================
  * Swiss Precision, Modern Aesthetic
  * Developer-First, Trustworthy & Secure
  * Inspired by Stripe, Vercel, Linear
  ============================================
*/

/*
  ============================================
  1. FONT & BASE
  ============================================
*/
@font-face {
    font-family: "TikTok Sans";
    src: url('tiktoksans.ttf') format('truetype-variations');
    font-display: swap;
}

:root {
    /* 1a. Light Theme Color Palette */
    --brand-blue-primary: hsl(220, 100%, 55%); /* More vibrant blue */
    --brand-blue-hover: hsl(220, 90%, 50%); /* Darker for hover */
    --brand-blue-light: hsl(220, 100%, 65%);
    --accent-green: hsl(171, 100%, 41%); /* #00d1b2 */
    --accent-red-swiss: hsl(4, 79%, 48%); /* #d52b1e */

    --bg-primary: hsl(0, 0%, 100%);
    --bg-secondary: hsl(220, 43%, 98%);
    --bg-glass: hsla(0, 0%, 100%, 0.6);
    
    --text-primary: hsl(220, 25%, 20%);
    --text-secondary: hsl(220, 15%, 45%);
    --text-on-brand: hsl(0, 0%, 100%);

    --border-primary: hsl(220, 20%, 88%);
    --border-secondary: hsl(220, 20%, 92%);
    --border-glow: hsla(220, 100%, 55%, 0.5);

    /* 1b. Sizing & Typography */
    --font-family-main: "TikTok Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1140px;
    --nav-height: 70px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;

    /* 1c. Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 20px 0px var(--brand-blue-primary);

    /* 1d. Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

[data-theme="dark"] {
    /* 1e. Dark Theme Color Palette */
    --brand-blue-primary: hsl(220, 100%, 60%);
    --brand-blue-hover: hsl(220, 90%, 55%); /* Darker for hover */
    --brand-blue-light: hsl(220, 100%, 70%);

    --bg-primary: hsl(220, 25%, 10%);
    --bg-secondary: hsl(220, 25%, 14%);
    --bg-glass: hsla(220, 25%, 12%, 0.7);

    --text-primary: hsl(220, 20%, 95%);
    --text-secondary: hsl(220, 15%, 65%);

    --border-primary: hsl(220, 15%, 30%);
    --border-secondary: hsl(220, 15%, 20%);
    --border-glow: hsla(220, 100%, 60%, 0.6);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-main);
    line-height: 1.7;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    margin: 0;
    font-size: 16px;
    font-weight: 450; /* Regular+ */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/*
  ============================================
  2. TYPOGRAPHY & HEADINGS
  ============================================
*/
h1, h2, h3, h4 {
    font-weight: 700; /* Bold */
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size */
    margin-bottom: 1rem;
    font-weight: 800; /* Extra-Bold */
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    margin-bottom: 4rem;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

p {
    margin: 0 0 1.5rem;
}

a {
    color: var(--brand-blue-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--brand-blue-light);
}

/*
  ============================================
  3. UI ELEMENTS (Buttons, Theme Toggle)
  ============================================
*/
.cta-button {
    background-color: var(--brand-blue-primary);
    color: var(--text-on-brand);
    padding: 14px 32px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    display: inline-block;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background-color: var(--brand-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px hsla(220, 100%, 55%, 0.3);
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--border-radius-sm);
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    align-self: center;
    width: fit-content;
}
.theme-toggle .material-symbols-outlined {
    font-size: 20px;
    color: var(--text-secondary);
}

/*
  ============================================
  4. HEADER & NAVIGATION (Glassmorphism)
  ============================================
*/
.main-header {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    padding: 0 24px;
    max-width: var(--container-width);
    margin: 0 auto;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-secondary);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

.nav-cta {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-actions .nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    margin-right: 24px; /* Sorgt für Abstand zum Button */
    transition: color 0.3s ease;
    vertical-align: middle; /* Stellt sicher, dass er auf gleicher Höhe ist */
}

.nav-actions .nav-link:hover {
    color: var(--primary-color); /* Verwendet Ihre Hauptfarbe beim Hover */
}

/*
  ============================================
  5. HERO SECTION & AURORA BACKGROUND
  ============================================
*/
.hero {
    padding: calc(var(--nav-height) + 80px) 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.aurora-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.aurora-background::before,
.aurora-background::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(100px);
    mix-blend-mode: screen;
    animation: aurora-drift 25s infinite linear;
}

[data-theme="light"] .aurora-background::before {
    background: radial-gradient(circle, hsla(220, 100%, 70%, 0.4) 0%, transparent 60%);
    top: -20%;
    left: -20%;
}
[data-theme="light"] .aurora-background::after {
    background: radial-gradient(circle, hsla(171, 100%, 60%, 0.3) 0%, transparent 60%);
    bottom: -20%;
    right: -20%;
    animation-delay: -12s;
}

[data-theme="dark"] .aurora-background::before {
    background: radial-gradient(circle, hsla(220, 100%, 55%, 0.3) 0%, transparent 60%);
    top: -20%;
    left: -20%;
}
[data-theme="dark"] .aurora-background::after {
    background: radial-gradient(circle, hsla(171, 100%, 41%, 0.2) 0%, transparent 60%);
    bottom: -20%;
    right: -20%;
    animation-delay: -12s;
}

@keyframes aurora-drift {
    0% { transform: rotate(0deg) translateX(20px); }
    50% { transform: rotate(180deg) translateX(-20px); }
    100% { transform: rotate(360deg) translateX(20px); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.sub-headline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 1.5rem 0 2.5rem;
    font-weight: 500;
}

/*
  ============================================
  6. GENERAL SECTION STYLING
  ============================================
*/
.section {
    padding: 80px 0;
    position: relative;
}

.section-bg {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
}

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-medium), transform 0.8s var(--transition-medium);
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/*
  ============================================
  7. FEATURES SECTION (BENTO GRID)
  ============================================
*/
.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.bento-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--border-radius-lg);
    border: 1px solid transparent;
    pointer-events: none;
    transition: border-color var(--transition-medium);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.bento-item:hover::before {
    border-color: var(--border-glow);
}

/* Bento Grid Layout */
.bento-item:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.bento-item:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.bento-item:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.bento-item:nth-child(4) { grid-column: span 3; grid-row: span 1; }
.bento-item:nth-child(5) { grid-column: span 3; grid-row: span 1; }

.bento-item h3 {
    font-size: 1.5rem;
}
.bento-item p {
    font-size: 1rem;
    color: var(--text-secondary);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--brand-blue-primary);
    margin-bottom: 1rem;
    display: block;
}

/*
  ============================================
  8. HOW IT WORKS SECTION
  ============================================
*/
.steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 700px;
    margin: 4rem auto 0;
    position: relative;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    padding: 1rem;
    z-index: 2;
}

.step-indicator {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-blue-primary);
    background: var(--bg-primary);
    z-index: 2;
    transition: all var(--transition-medium);
}

.step:hover .step-indicator {
    transform: scale(1.1);
    border-color: var(--brand-blue-primary);
    background: var(--brand-blue-primary);
    color: var(--text-on-brand);
}

.step-content h3 {
    font-size: 1.25rem;
}

/* Connecting Line */
.steps-container::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 25px;
    bottom: 25px;
    width: 2px;
    background: var(--border-secondary);
    z-index: 1;
}

/*
  ============================================
  9. NEWSLETTER & FOOTER
  ============================================
*/
.newsletter-section {
    background-color: var(--bg-secondary);
    text-align: center;
}

.beehiiv-embed {
    max-width: 500px !important;
    margin: 2rem auto 0;
    background: transparent !important;
    transition: box-shadow var(--transition-medium);
}

footer {
    padding: 3rem 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-left p {
    margin-bottom: 0;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-links a {
    margin-left: 0;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/*
  ============================================
  10. RESPONSIVE DESIGN
  ============================================
*/
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .bento-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    .main-header {
        top: 8px;
        left: 8px;
        right: 8px;
    }
    .main-nav {
        padding: 0 16px;
        height: 60px;
    }
    .nav-actions .nav-link {
        display: none;
    }
    .logo { font-size: 1.5rem; }
    .nav-actions .cta-button { display: none; }

    .section { padding: 60px 0; }
    h2 { margin-bottom: 2.5rem; }

    .steps-container::before { left: 24px; }
    .step-indicator { width: 48px; height: 48px; }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1.5rem;
    }
    .footer-left {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .footer-links a { margin-left: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
