:root {
    /* Fiery Ocean Palette */
    --color-molten-lava: #780000;
    --color-flag-red: #C1121F;
    --color-papaya-whip: #FDF0D5;
    --color-deep-space-blue: #003049;
    --color-steel-blue: #669BBC;
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* Theme Defaults */
    --background: var(--color-white);
    --foreground: var(--color-gray-900);
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    height: 100%;
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Containers & Layout */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

/* Flex & Grid Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-5 {
    gap: 1.25rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 1.6rem;
}

.gap-10 {
    gap: 2rem;
}

.gap-12 {
    gap: 2.4rem;
}

.mt-10 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 2.4rem;
}

.mt-16 {
    margin-top: 3.2rem;
}

.mt-24 {
    margin-top: 4.8rem;
}

.mt-32 {
    margin-top: 6.4rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-10 {
    padding: 2.5rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md-hidden {
        display: none;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:flex-row {
        flex-direction: row;
    }

    .lg\:flex-nowrap {
        flex-wrap: nowrap;
    }

    .lg\:pl-0 {
        padding-left: 0;
    }

    .lg\:block {
        display: block;
    }
}

@media (max-width: 767px) {
    .hidden-mobile {
        display: none;
    }
}

/* Typography */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-black {
    font-weight: 900;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-wider-2 {
    letter-spacing: 0.2em;
}

.heading-l {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 800;
}

.heading-m {
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 700;
}

.text-shadow-premium {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.text-xl {
    font-size: 1rem;
}

.text-2xl {
    font-size: 1.2rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

/* Colors */
.bg-lava {
    background-color: var(--color-molten-lava);
}

.bg-flag {
    background-color: var(--color-flag-red);
}

.bg-papaya {
    background-color: var(--color-papaya-whip);
}

.bg-deep-blue {
    background-color: var(--color-deep-space-blue);
}

.bg-steel {
    background-color: var(--color-steel-blue);
}

.bg-white {
    background-color: var(--color-white);
}

.bg-gray-50 {
    background-color: var(--color-gray-50);
}

.bg-gray-100 {
    background-color: var(--color-gray-100);
}

.bg-black-60 {
    background-color: rgba(0, 0, 0, 0.6);
}

.bg-white-5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-white-80 {
    background-color: rgba(255, 255, 255, 0.8);
}

.text-white {
    color: var(--color-white);
}

.text-white-40 {
    color: rgba(255, 255, 255, 0.4);
}

.text-white-90 {
    color: rgba(255, 255, 255, 0.9);
}

.text-deep-blue {
    color: var(--color-deep-space-blue);
}

.text-lava {
    color: var(--color-molten-lava);
}

.text-papaya {
    color: var(--color-papaya-whip);
}

.text-gray-600 {
    color: var(--color-gray-600);
}

/* Custom UI Components */
.btn-primary {
    background-color: var(--color-molten-lava);
    color: var(--color-white);
    padding: 0.9rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-flag-red);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(120, 0, 0, 0.2);
}

.btn-pill {
    border-radius: 9999px !important;
}

.card-premium {
    background: var(--color-white);
    padding: 2.4rem;
    border-radius: 2rem;
    border: 1px solid var(--color-gray-100);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.rounded-4xl {
    border-radius: 2rem;
}

/* Ablauf card: red bar slides in at top on hover */
.ablauf-card {
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.ablauf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-papaya-whip);
    transform: scaleX(1);
    transform-origin: left center;
    transition: transform 0.35s ease;
    border-radius: 2rem 2rem 0 0;
    z-index: 1;
}

.ablauf-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-flag-red);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s ease;
    border-radius: 2rem 2rem 0 0;
    z-index: 2;
}

.ablauf-card:hover::after {
    transform: scaleX(1);
}

.ablauf-card:hover {
    background: #ffffff;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.25);
}


.card-premium.card-dark {
    background: var(--color-deep-space-blue) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.card-premium:hover {
    transform: none;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(193, 18, 31, 0.08);
}

.card-premium:hover .card-icon-container {
    background-color: var(--color-molten-lava) !important;
}

.card-premium:hover .card-icon-container i,
.card-premium:hover .card-icon-container svg {
    color: var(--color-papaya-whip) !important;
    stroke: var(--color-papaya-whip) !important;
}

.card-icon-container {
    transition: all 0.3s ease;
}

.card-description {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.card-premium .mt-auto {
    margin-top: auto !important;
}

.card-hover-scale:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.backdrop-blur-md {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.border {
    border: 1px solid transparent;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.2);
}

.border-gray-100 {
    border-color: var(--color-gray-100);
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.expert-list::before,
.expert-list::after {
    display: none !important;
}

.text-lava {
    color: var(--color-molten-lava) !important;
}

.expert-item-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.expert-item-hover:hover {
    transform: translateX(10px);
}

.expert-item-hover:hover .icon-lava-hover {
    color: var(--color-flag-red) !important;
    transform: scale(1.1);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-4xl {
    border-radius: 2rem;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.aspect-square {
    aspect-ratio: 1 / 1;
    width: 200px;
    height: 200px;
    max-width: none;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Specific Page Elements */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--color-deep-space-blue);
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: url('/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    opacity: 0.4;
    transform: scale(1.05);
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--color-deep-space-blue), rgba(0, 48, 73, 0.8), transparent 70%);
    z-index: 1;
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    /* Short sharp transition */
    background: linear-gradient(to bottom, transparent, var(--color-white));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.max-width-xl {
    max-width: 36rem;
}

.max-width-2xl {
    max-width: 42rem;
}

.max-width-3xl {
    max-width: 48rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-1-5 {
    margin-bottom: 0.375rem;
}

.mb-2-5 {
    margin-bottom: 0.625rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 1.6rem;
}

.mb-12 {
    margin-bottom: 2.4rem;
}

.mb-16 {
    margin-bottom: 3.2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-10 {
    padding: 2.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-12 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-5 {
    padding-top: 1.125rem;
    padding-bottom: 1.125rem;
}

.py-7 {
    padding-top: 1.125rem;
    padding-bottom: 1.125rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

.min-width-240 {
    min-width: 240px;
}

.min-width-260 {
    min-width: 260px;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.select-none {
    user-select: none;
}

.opacity-30 {
    opacity: 0.3;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-80 {
    opacity: 0.8;
}

.opacity-100 {
    opacity: 1;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.w-full {
    width: 100%;
}

.border-b {
    border-bottom: 1px solid transparent;
}

.border-t {
    border-top: 1px solid transparent;
}

.hidden {
    display: none;
}

/* Hover effects for SVGs */
.card-icon-container:hover svg {
    fill: var(--color-papaya-whip);
    stroke: var(--color-flag-red);
    transform: scale(1.1);
    transition: all 0.3s ease;
}