/* Dark Reader Protection - Prevent Dark Reader from modifying the page */
html {
    color-scheme: light dark;
}

/* Dark Reader Protection - Aggressively block Dark Reader's filters */
/* Dark Reader injects filters on html/body, we need to override them */
html,
body {
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
}

/* Prevent Dark Reader from modifying background images */
.hero {
    background-image: url('data/pictures/background.svg') !important;
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
}

/* Prevent Dark Reader from inverting images */
img,
picture,
svg {
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
}

/* Block Dark Reader's inline style modifications */
*[data-darkreader-mode],
*[data-darkreader-inline-bgcolor],
*[data-darkreader-inline-color],
*[data-darkreader-inline-border],
*[data-darkreader-inline-outline] {
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
}

/* Font Face Declarations */
/* IMPORTANT: Font warnings (kern table, glyf components) are from the font file structure
   and cannot be suppressed via CSS/JS. They are harmless and don't affect rendering.
   The warnings appear in DevTools but don't impact functionality. */
@font-face {
    font-family: 'Astonpoliz';
    /* Using TTF only - OTF removed to reduce warnings */
    src: url('data/fonts/Astonpoliz.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Swap strategy - show fallback until font loads */
    unicode-range: U+0020-007F, U+00A0-00FF, U+0100-017F; /* Latin + Extended Latin */
    /* Note: Browser may still show kern table warnings - these are harmless */
}

@font-face {
    font-family: 'SF-Compact';
    src: url('data/fonts/SF-Compact.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* Swap strategy - show fallback until font loads */
    /* Note: Glyf component warnings are from font structure but don't affect rendering */
}

@font-face {
    font-family: 'SF-Compact';
    src: url('data/fonts/SF-Compact.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: optional;
}

@font-face {
    font-family: 'SF-Compact';
    src: url('data/fonts/SF-Compact.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: optional;
}

@font-face {
    font-family: 'SF-Compact';
    src: url('data/fonts/SF-Compact.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: optional;
}

/* Suppress font loading warnings in console */
/* These warnings are from font file structure and don't affect functionality */

/* CSS Variables for Theme Support */
:root {
    /* Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --text-tertiary: #adb5bd;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-hover: #4f46e5;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-tertiary: #737373;
    --accent-primary: #818cf8;
    --accent-secondary: #a78bfa;
    --accent-hover: #6366f1;
    --border-color: #2a2a2a;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
    background-color: var(--bg-primary);
}

body {
    font-family: 'SF-Compact', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    /* Prevent any purple/lila shimmer during load */
    overflow-x: hidden;
    overflow-y: scroll;
    min-height: 100vh;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Headings use Astonpoliz */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.service-title,
.api-benefit h4,
.advantage-card h3,
.impressum-item h3,
.ueber-uns-item h3,
.team-name,
.story-title,
.footer-heading {
    font-family: 'Astonpoliz', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
    height: 100%;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 80px;
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    background-color: transparent;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Use solid background first, then rgba for transparency */
    background-color: #ffffff; /* Fallback for light mode */
    border-bottom: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95); /* Light mode with transparency */
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background-color: rgba(15, 15, 15, 0.95); /* Dark mode with transparency */
}

.nav-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo-img,
.logo-img img,
picture.logo-img img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

picture.logo-img {
    display: inline-block;
}

.logo-dark,
picture.logo-dark {
    display: none;
}

picture.logo-dark img {
    display: block;
}

[data-theme="dark"] .logo-light,
[data-theme="dark"] picture.logo-light {
    display: none;
}

[data-theme="dark"] picture.logo-dark {
    display: inline-block;
}

[data-theme="dark"] .logo-dark {
    display: block;
}


.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

/* Language Toggle Switch */
.lang-toggle-checkbox {
    width: 0;
    height: 0;
    visibility: hidden;
    position: absolute;
}

.lang-toggle-label {
    width: 75px;
    height: 32px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #e5e7eb;
    border-radius: 200px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .lang-toggle-label {
    background: #374151;
}

.lang-toggle-label::after {
    content: "";
    width: 50%;
    height: 28px;
    position: absolute;
    top: 2px;
    left: 2px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    border-radius: 200px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.lang-toggle-checkbox:checked + .lang-toggle-label::after {
    left: calc(50% - 2px);
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 2;
    transition: opacity 0.3s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.lang-flag.lang-de {
    opacity: 1;
}

.lang-flag.lang-en {
    opacity: 0.6;
}

.lang-toggle-checkbox:checked + .lang-toggle-label .lang-de {
    opacity: 0.6;
}

.lang-toggle-checkbox:checked + .lang-toggle-label .lang-en {
    opacity: 1;
}


.lang-toggle-label:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

/* Theme Toggle Switch */
.theme-toggle-checkbox {
    width: 0;
    height: 0;
    visibility: hidden;
    position: absolute;
}

.theme-toggle-label {
    width: 75px;
    height: 32px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #e5e7eb;
    border-radius: 200px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-toggle-label {
    background: #374151;
}

.theme-toggle-label::after {
    content: "";
    width: 50%;
    height: 28px;
    position: absolute;
    top: 2px;
    left: 2px;
    background: linear-gradient(180deg, #ffcc89, #d8860b);
    border-radius: 200px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.theme-toggle-checkbox:checked + .theme-toggle-label::after {
    left: calc(50% - 2px);
    background: linear-gradient(180deg, #777, #3a3a3a);
}

.theme-toggle-label:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2;
    transition: opacity 0.3s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.theme-icon.sun {
    opacity: 1;
}

.theme-icon.moon {
    opacity: 0.6;
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-icon.sun {
    opacity: 0.6;
}

.theme-toggle-checkbox:checked + .theme-toggle-label .theme-icon.moon {
    opacity: 1;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 6rem 0;
    background: var(--bg-primary);
    background-image: url('data/pictures/background.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 80px);
    scroll-snap-align: start;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0;
    animation: none;
    transition: opacity 0.5s ease;
    /* Only show after page is fully loaded */
    pointer-events: none;
    /* Ensure it's hidden by default - prevent shimmer on hard reload */
    visibility: hidden;
}

/* Show hero gradient only after page is loaded */
body.loaded .hero::before {
    opacity: 0.05;
    animation: pulse 20s ease-in-out infinite;
    visibility: visible;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: 'SF-Compact', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
    transition: transform 0.1s ease;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(1.02);
    transition: transform 0.1s ease;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--bg-primary);
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 5;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:active {
    transform: translateY(-3px) scale(1.01);
    transition: transform 0.1s ease;
}

    .service-icon {
        width: 221px;
        flex-shrink: 0;
        height: 450px;
        object-fit: cover;
        object-position: center center;
        display: block;
        align-self: stretch;
    }

    @media (max-width: 768px) {
        .service-card {
            flex-direction: column;
            overflow: visible;
            display: flex;
        }

        .service-card.featured {
            flex-direction: column !important;
        }

        .service-card.featured .service-icon {
            order: 1 !important;
            width: 100% !important;
            height: 180px !important;
            object-fit: cover !important;
            flex-shrink: 0 !important;
        }

        .service-card.featured .service-content {
            order: 2 !important;
            flex: 1 !important;
            min-height: auto !important;
            display: flex !important;
            flex-direction: column !important;
            padding: 1.25rem !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        .service-icon {
            width: 100%;
            height: 180px;
            object-fit: cover;
            flex-shrink: 0;
            order: 1;
        }

        .service-content {
            flex: 1;
            min-height: auto;
            display: flex;
            flex-direction: column;
            order: 2;
            padding: 1.25rem;
            visibility: visible !important;
            opacity: 1 !important;
        }

        .service-title {
            padding: 0;
            visibility: visible !important;
            opacity: 1 !important;
        }

        .service-description {
            padding: 0;
            visibility: visible !important;
            opacity: 1 !important;
        }

        .service-features {
            padding: 0;
            visibility: visible !important;
            opacity: 1 !important;
        }
    }

.service-card.featured {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    padding: 0 1.5rem;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.service-features li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* .service-card.featured - No special styling needed */


/* API Integration Section */
.api-integration {
    padding: 6rem 0;
    background: var(--bg-secondary);
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
}

.api-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.api-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.api-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.api-benefit {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.api-benefit:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
}

.api-benefit:active {
    transform: translateY(-3px) scale(1.01);
    transition: transform 0.1s ease;
}

.api-benefit:hover .api-icon-img {
    transform: scale(1.15);
    transition: transform 0.3s ease;
}

.api-benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.api-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.api-benefit h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.api-benefit p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* AI Advantages Section */
.ai-advantages {
    padding: 6rem 0;
    background: var(--bg-secondary);
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.advantage-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
}

.advantage-card:active {
    transform: translateY(-3px) scale(1.01);
    transition: transform 0.1s ease;
}

.advantage-card:hover .advantage-icon-img {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.advantage-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.advantage-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.advantage-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Calculator Section */
.calculator {
    padding: 2rem 0;
    background: var(--bg-primary);
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    background-color: var(--bg-primary);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    text-align: left;
}

.contact-form-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.contact-info-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-title,
.info-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'SF-Compact', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Validation States */
.form-group input.valid,
.form-group textarea.valid {
    border-color: #10b981 !important;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.1);
    background-color: rgba(16, 185, 129, 0.05);
}

.form-group input.valid:focus,
.form-group textarea.valid:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ef4444 !important;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2), 0 0 0 1px rgba(239, 68, 68, 0.1);
    background-color: rgba(239, 68, 68, 0.05);
}

.form-group input.invalid:focus,
.form-group textarea.invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3), 0 0 0 1px rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .form-group input.valid,
[data-theme="dark"] .form-group textarea.valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 0 0 1px rgba(16, 185, 129, 0.15);
    background-color: rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .form-group input.valid:focus,
[data-theme="dark"] .form-group textarea.valid:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35), 0 0 0 1px rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .form-group input.invalid,
[data-theme="dark"] .form-group textarea.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25), 0 0 0 1px rgba(239, 68, 68, 0.15);
    background-color: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .form-group input.invalid:focus,
[data-theme="dark"] .form-group textarea.invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35), 0 0 0 1px rgba(239, 68, 68, 0.25);
}

/* Field Error Message */
.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    animation: slideDown 0.3s ease;
}

.field-error.show {
    display: block;
}

[data-theme="dark"] .field-error {
    color: #f87171;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State for Buttons */
.btn.loading,
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
    pointer-events: none;
}

.btn.loading::after,
.btn:disabled::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2.5px solid currentColor;
    border-top-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn.loading {
    color: transparent;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Page Load Progress Bar - REMOVED - No longer used */

/* Error 404 Section Styles */
.error-404 {
    margin-top: 80px;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--bg-tertiary) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 2rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-card {
    padding: 2rem;
    border-radius: 1rem;
    background: var(--bg-secondary);
}

/* Fade-in Animation */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 500px;
    animation: slideInRight 0.3s ease-out;
    font-weight: 500;
}

.toast.success {
    background: #10b981;
    color: white;
}

.toast.error {
    background: #ef4444;
    color: white;
}

.toast.info {
    background: var(--accent-primary);
    color: white;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

[data-theme="dark"] .toast.success {
    background: rgba(16, 185, 129, 0.9);
}

[data-theme="dark"] .toast.error {
    background: rgba(239, 68, 68, 0.9);
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--bg-tertiary) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
    transition: transform 0.1s ease;
}

.scroll-to-top:focus {
    outline: 3px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}

/* Enhanced focus styles for better accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip focus outline for mouse users, keep for keyboard */
.js-focus-visible *:focus:not(.focus-visible) {
    outline: none;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

/* Smooth Icon Animation */
.scroll-to-top::before {
    content: '↑';
    display: block;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-top: 80px;
    padding: 0.5rem 0;
    background-color: var(--bg-primary);
    margin-bottom: 0;
    border: none;
    border-bottom: none;
}

.breadcrumbs + section,
.breadcrumbs + .contact,
.breadcrumbs + .ueber-uns,
.breadcrumbs + .impressum,
.breadcrumbs + .datenschutz {
    margin-top: 0 !important;
    padding-top: 0;
}

/* Remove any black bars or separators */
.breadcrumbs::after,
.breadcrumbs::before,
section::before,
.contact::before,
.ueber-uns::before,
.impressum::before,
.datenschutz::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
}

.breadcrumbs li[aria-current="page"] span {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumbs li[aria-hidden="true"] {
    color: var(--text-tertiary);
    user-select: none;
}

@media (max-width: 768px) {
    .breadcrumbs {
        margin-top: 70px;
        padding: 0.75rem 0;
    }
    
    .breadcrumbs ol {
        font-size: 0.85rem;
    }
}

/* Tab Button Animations */
.tab-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover:not(.active) {
    transform: translateY(-2px);
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
}

.tab-button:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
}

.tab-button.active {
    position: relative;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Link Hover Effects */
a:not(.btn):not(.nav-link):not(.footer-link):not(.cookie-banner-link):not(.toast-close) {
    transition: color 0.2s ease;
    position: relative;
}

a:not(.btn):not(.nav-link):not(.footer-link):not(.cookie-banner-link):not(.toast-close):hover {
    color: var(--accent-primary);
}

/* Nav Link Hover */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Footer Link Hover */
.footer-link {
    position: relative;
    transition: all 0.2s ease;
}

.footer-link:hover {
    padding-left: 5px;
}

/* Icon Animations */
.service-icon,
.api-icon-img,
.advantage-icon-img {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .btn {
    margin-top: 0.5rem;
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
}

[data-theme="dark"] .form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

[data-theme="dark"] .form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-item-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item-card:hover {
    transform: translateX(5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.contact-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.contact-item-content strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item-content a {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-item-content a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.contact-item-content span {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-additional-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.additional-info-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.additional-info-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.calculator-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-subtitle {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Calculator Tabs */
.calculator-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.tab-button {
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
    font-family: inherit;
    border-radius: 0.5rem 0.5rem 0 0;
}

.tab-button:hover {
    color: var(--accent-primary);
    background: var(--bg-secondary);
}

.tab-button.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: var(--bg-secondary);
}

/* Model Info */
.model-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 0.875rem;
    transition: all 0.3s ease;
    text-align: center;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* Calculator Recommendation */
.calculator-recommendation {
    background: #d1fae5;
    border: 2px solid #10b981;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

[data-theme="dark"] .calculator-recommendation {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.recommendation-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.recommendation-text {
    color: #065f46;
    font-weight: 500;
    flex: 1;
}

[data-theme="dark"] .recommendation-text {
    color: #6ee7b7;
}

/* Calculator Warning */
.calculator-warning {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

[data-theme="dark"] .calculator-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-text {
    color: #92400e;
    font-weight: 500;
    flex: 1;
}

[data-theme="dark"] .warning-text {
    color: #fbbf24;
}

/* Calculator Basis Info */
.calculator-basis-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.basis-text {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    text-align: center;
    font-style: italic;
}

.input-hint {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    font-style: italic;
}

.calculator-inputs {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.slider-value {
    min-width: 70px;
    text-align: right;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-primary);
}

.slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.calculator-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.result-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.result-card.highlight {
    border: 2px solid var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.result-card.savings {
    border: 2px solid #10b981;
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.result-value.updating {
    transform: scale(1.05);
    opacity: 0.8;
}

.result-card.highlight .result-value {
    color: var(--accent-primary);
}

.result-card.savings .result-value {
    color: #10b981;
}

.result-note {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.result-hint {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.3;
}

/* Impressum, Datenschutz, Über Uns Sections */
.impressum,
.datenschutz,
.ueber-uns {
    margin-top: 0;
    margin-bottom: 0;
    padding: 4rem 0;
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.ueber-uns::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0;
    animation: none;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
    /* Ensure it's hidden by default - prevent shimmer on hard reload */
    visibility: hidden;
}

/* Show gradient only after page is loaded */
body.loaded .ueber-uns::before {
    opacity: 0.05;
    animation: pulse 20s ease-in-out infinite;
    visibility: visible;
}

.ueber-uns .container {
    position: relative;
    z-index: 1;
}

.ueber-uns .section-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.datenschutz .section-title,
.impressum .section-title {
    margin-top: 2rem;
}

.impressum-content,
.datenschutz-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.impressum-item {
    margin-bottom: 2rem;
}

.impressum-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.impressum-item p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-photo,
picture .team-photo,
picture img.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: block;
}

picture {
    display: inline-block;
}

.team-photo:hover,
picture:hover .team-photo {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Company Story */
.company-story {
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 3rem;
    padding-top: 4rem;
    border-top: 2px solid transparent;
    background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
                var(--gradient-primary) border-box;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.story-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
}

.datenschutz-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.datenschutz-intro {
    font-style: italic;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
}

.datenschutz-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.datenschutz-subheading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.datenschutz-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.datenschutz-content ul li {
    margin-bottom: 0.5rem;
}

.datenschutz-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    scroll-snap-align: start;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    justify-items: start;
}

.footer-section {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    width: 100%;
    min-width: 0;
}

.footer-logo,
.footer-logo img,
picture.footer-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
}

picture.footer-logo {
    display: inline-block;
}

.footer-logo.logo-dark,
picture.footer-logo.logo-dark {
    display: none;
}

picture.footer-logo.logo-dark img {
    display: block;
}

[data-theme="dark"] .footer-logo.logo-light,
[data-theme="dark"] picture.footer-logo.logo-light {
    display: none;
}

[data-theme="dark"] .footer-logo.logo-dark,
[data-theme="dark"] picture.footer-logo.logo-dark {
    display: inline-block;
}

.footer-section:first-child {
    justify-items: center;
}

.footer-section:first-child .footer-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
    text-align: center;
    width: 100%;
}

.footer-section:nth-child(2) .footer-text,
.footer-section:nth-child(3) .footer-text,
.footer-section:nth-child(4) .footer-text {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.5;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    text-align: center;
    width: 100%;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.footer-nav .footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-nav .footer-link:hover {
    color: var(--accent-primary);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: var(--accent-primary);
}

.footer-social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.5;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    text-align: center;
    width: 100%;
}

.footer-text:last-child {
    margin-bottom: 0;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-separator {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-badge {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
}

.mobile-menu-nav .nav-link {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: block;
    font-size: 1rem;
}

.mobile-menu-nav .nav-link:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 0;
    }

    .nav-content {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-controls {
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .mobile-menu {
        display: block;
    }

    .logo-img {
        height: 32px;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 0 4rem 0;
        min-height: calc(100vh - 70px);
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.1rem);
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px; /* Touch target size */
    }

    /* Sections */
    .services,
    .api-integration,
    .ai-advantages,
    .calculator {
        padding: 3rem 0;
        min-height: auto;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 0;
        overflow: visible;
        display: flex;
        flex-direction: column;
    }

    .service-card.featured {
        flex-direction: column !important;
    }

    .service-card.featured .service-icon {
        order: 1 !important;
    }

    .service-card.featured .service-content {
        order: 2 !important;
    }

    .service-icon {
        height: 180px;
        width: 100%;
        object-fit: cover;
        flex-shrink: 0;
        order: 1;
    }

    .service-content {
        padding: 1.25rem;
        display: flex;
        flex-direction: column;
        min-height: auto;
        order: 2;
        flex: 1;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .service-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        padding: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .service-description {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0;
        margin-bottom: 0.75rem;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .service-features {
        padding: 0;
        margin-top: 0.5rem;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Calculator */
    .calculator {
        padding: 2rem 0;
    }

    .calculator-inputs {
        padding: 1.25rem;
    }

    .calculator-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: 0;
    }

    .slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .slider-value {
        text-align: left;
        font-size: 1rem;
    }

    .input-group {
        margin-bottom: 1.25rem;
    }

    .input-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .input-group input {
        font-size: 1rem;
        padding: 0.875rem;
        min-height: 48px;
    }

    .calculator-results {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .result-card {
        padding: 1.25rem;
    }

    .result-label {
        font-size: 0.85rem;
    }

    .result-value {
        font-size: 1.5rem;
    }
    
    .result-value.updating {
        transform: scale(1.05);
    }

    .model-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
        font-size: 0.85rem;
    }

    .info-item {
        padding: 0.75rem;
    }

    .info-value {
        font-size: 1.1rem;
    }

    /* API Integration */
    .api-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .api-description {
        font-size: clamp(0.95rem, 3vw, 1.05rem);
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .api-benefits {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }

    .api-benefit {
        padding: 1.5rem 1.25rem;
    }

    .api-benefit h4 {
        font-size: 1.1rem;
    }

    .api-benefit p {
        font-size: 0.9rem;
    }

    .api-icon-img {
        width: 48px;
        height: 48px;
    }

    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .advantage-card {
        padding: 1.5rem 1.25rem;
    }

    .advantage-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .advantage-card p {
        font-size: 0.9rem;
    }

    .advantage-icon-img {
        width: 48px;
        height: 48px;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 2rem 0;
    }

    .footer-logo {
        height: 35px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        justify-items: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-heading {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-text {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .footer-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    /* Contact Page */
    .contact {
        padding: 3rem 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form-container,
    .contact-info-container {
        padding: 1.25rem;
    }

    .form-title,
    .info-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .form-group {
        gap: 0.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .contact-item-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* About Us */
    .ueber-uns {
        padding: 3rem 0;
        margin-top: 70px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-photo {
        width: 150px;
        height: 150px;
    }

    .team-name {
        font-size: 1.25rem;
        margin-top: 1rem;
    }

    .team-role {
        font-size: 0.9rem;
    }

    .company-story {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .story-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .story-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    /* Impressum & Datenschutz */
    .impressum,
    .datenschutz {
        padding: 3rem 0;
        margin-top: 70px;
    }

    .impressum-item,
    .datenschutz-content {
        padding: 1.5rem 0;
    }

    .impressum-item h3,
    .datenschutz-heading {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .impressum-item p,
    .datenschutz-content p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 0.75rem;
    }

    /* Scroll Snap für Mobile anpassen */
    html {
        scroll-snap-type: none; /* Deaktiviert auf Mobile für besseres Scrolling */
    }

    section {
        scroll-snap-align: none;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .calculator-tabs {
        gap: 0.25rem;
    }

    .tab-button {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1.5rem 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cookie-banner-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.cookie-banner-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-banner-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.cookie-btn-accept:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md), 0 0 15px rgba(99, 102, 241, 0.4);
}

.cookie-btn-accept:active {
    transform: translateY(-1px) scale(1.02);
    transition: transform 0.1s ease;
}

.cookie-btn-reject {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cookie-btn-reject:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    transform: translateY(-2px) scale(1.03);
    box-shadow: var(--shadow-sm);
}

.cookie-btn-reject:active {
    transform: translateY(0) scale(1.01);
    transition: transform 0.1s ease;
}

.cookie-btn-settings {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.cookie-btn-settings:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.cookie-btn-settings:active {
    transform: translateY(0) scale(1.02);
    transition: transform 0.1s ease;
}

.cookie-btn-save {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
    width: 100%;
    margin-top: 1rem;
}

.cookie-btn-save:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md), 0 0 15px rgba(99, 102, 241, 0.4);
}

.cookie-btn-save:active {
    transform: translateY(-1px) scale(1.02);
    transition: transform 0.1s ease;
}

/* Cookie Settings Panel */
.cookie-settings-panel {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    padding: 0 2rem;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.cookie-settings-panel.show {
    max-height: 1000px;
    padding: 1.5rem 2rem;
    opacity: 1;
}

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

.cookie-settings-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.cookie-category {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cookie-category-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.cookie-category-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.cookie-category-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 2.75rem;
    line-height: 1.4;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-settings-panel {
        padding: 1rem;
    }

    .cookie-category-description {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Loading Skeletons */
.skeleton {
    background: linear-gradient(90deg, 
        var(--bg-secondary) 0%, 
        var(--bg-tertiary) 50%, 
        var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, 
        var(--bg-secondary) 0%, 
        var(--bg-tertiary) 50%, 
        var(--bg-secondary) 100%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1em;
    margin: 0.25em 0;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-card {
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.skeleton-button {
    height: 2.5rem;
    width: 120px;
    border-radius: 6px;
}

.skeleton-input {
    height: 2.5rem;
    border-radius: 6px;
}

.skeleton-result-value {
    height: 3rem;
    width: 150px;
    margin: 0.5rem auto;
    border-radius: 6px;
}

/* Calculator Skeleton */
.calculator-skeleton {
    display: none;
}

.calculator-skeleton.active {
    display: block;
}

.calculator-skeleton .skeleton-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.calculator-skeleton .skeleton-tab {
    flex: 1;
    height: 3rem;
    border-radius: 8px;
}

.calculator-skeleton .skeleton-input-group {
    margin-bottom: 1.5rem;
}

.calculator-skeleton .skeleton-label {
    height: 1.2rem;
    width: 200px;
    margin-bottom: 0.5rem;
}

.calculator-skeleton .skeleton-input {
    height: 3rem;
}

.calculator-skeleton .skeleton-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.calculator-skeleton .skeleton-result-card {
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Form Skeleton */
.form-skeleton {
    display: none;
}

.form-skeleton.active {
    display: block;
}

.form-skeleton .skeleton-form-group {
    margin-bottom: 1.5rem;
}

.form-skeleton .skeleton-label {
    height: 1.2rem;
    width: 150px;
    margin-bottom: 0.5rem;
}

.form-skeleton .skeleton-textarea {
    height: 8rem;
    border-radius: 6px;
}

/* View Transitions API */
@supports (view-transition-name: none) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.3s;
        animation-timing-function: ease-in-out;
    }
    
    /* Smooth page transitions */
    html {
        view-transition-name: root;
    }
    
    /* Smooth navigation transitions */
    .nav-link {
        view-transition-name: none;
    }
    
    /* Calculator result transitions */
    .result-value {
        view-transition-name: none;
    }
}
