:root {
    --g4b-bg-dark: #0e1015;
    --g4b-surface-dark: #161922;
    --g4b-surface-card: #1d212d;
    --g4b-bg-light: #f6f7f9;
    --g4b-surface-light: #ffffff;
    --g4b-accent: #c9342b;
    --g4b-accent-hover: #ad2820;
    --g4b-accent-soft: rgba(201, 52, 43, 0.12);
    --g4b-green: #16a34a;
    --g4b-green-soft: rgba(22, 163, 74, 0.14);
    --g4b-text-dark: #14171f;
    --g4b-text-muted: #5f6675;
    --g4b-text-light: #f3f5f8;
    --g4b-text-light-muted: #a9b1c2;
    --g4b-border-light: rgba(20, 23, 31, 0.08);
    --g4b-border-dark: rgba(255, 255, 255, 0.1);
    --g4b-radius-lg: 1.25rem;
    --g4b-radius-md: 0.875rem;
    --g4b-shadow-sm: 0 6px 24px rgba(14, 16, 21, 0.06);
    --g4b-shadow-lg: 0 20px 50px rgba(14, 16, 21, 0.14);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    overflow-x: clip;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--g4b-text-dark);
    background-color: var(--g4b-bg-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, .font-display {
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

a {
    color: var(--g4b-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--g4b-accent-hover);
}

/* Shared Section Utilities */
.g4b-section {
    padding: 5.5rem 0;
}

.g4b-section-dark {
    background-color: var(--g4b-bg-dark);
    color: var(--g4b-text-light);
}

.g4b-section-light {
    background-color: var(--g4b-bg-light);
    color: var(--g4b-text-dark);
}

.g4b-section-white {
    background-color: var(--g4b-surface-light);
    color: var(--g4b-text-dark);
}

.g4b-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--g4b-accent);
    margin-bottom: 0.75rem;
}

.g4b-eyebrow::before {
    content: "";
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--g4b-accent);
    border-radius: 2px;
}

.g4b-section-title {
    font-size: clamp(1.9rem, 3.2vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1rem;
}

.g4b-section-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--g4b-text-muted);
    max-width: 620px;
}

.g4b-section-dark .g4b-section-subtitle {
    color: var(--g4b-text-light-muted);
}

/* Buttons */
.btn-g4b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--g4b-accent);
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(201, 52, 43, 0.28);
}

.btn-g4b:hover {
    background-color: var(--g4b-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(201, 52, 43, 0.36);
}

.btn-g4b-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-g4b-outline:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-g4b-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--g4b-text-dark) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--g4b-border-light);
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-g4b-outline-dark:hover {
    background-color: rgba(20, 23, 31, 0.05);
    border-color: rgba(20, 23, 31, 0.25);
    transform: translateY(-2px);
}

/* Subpage Banner */
.g4b-page-banner {
    background: linear-gradient(135deg, rgba(14, 16, 21, 0.92), rgba(22, 25, 34, 0.86)), url('/images/studio-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 8rem 0 4rem;
}

/* Blazor validation & error UI */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--g4b-green);
}

.invalid {
    outline: 1px solid #dc2626;
}

.validation-message {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1.5rem;
    color: white;
    border-radius: 0.75rem;
}

.blazor-error-boundary::after {
    content: "Ein unerwarteter Fehler ist aufgetreten.";
}

h1:focus {
    outline: none;
}

@media (max-width: 767.98px) {
    .g4b-section {
        padding: 3.75rem 0;
    }

    .g4b-page-banner {
        padding: 6.75rem 0 3rem;
    }
}
    }

    .g4b-page-banner {
        padding: 2.75rem 0 2.25rem;
    }

    .btn-g4b,
    .btn-g4b-outline,
    .btn-g4b-outline-dark {
        padding: 0.8rem 1.35rem;
        font-size: 0.93rem;
        min-height: 46px;
    }
}

@media (max-width: 479.98px) {
    .g4b-section {
        padding: 2.75rem 0;
    }
}
