/* ========================================
   AZUBI BSK — Design System & Styles
   ======================================== */

/* ---- CSS Variables ---- */
:root {
    --teal-dark: #1A9E90;
    --teal: #2EC4B6;
    --teal-light: #4ECDC4;
    --teal-pale: #A8E6CF;
    --orange-dark: #E85D26;
    --orange: #FF6B35;
    --orange-light: #FF8C42;
    --orange-pale: #FFB088;
    --white: #FFFFFF;
    --off-white: #F8FAFB;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-400: #94A3B8;
    --gray-600: #475569;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow-teal: 0 0 40px rgba(46, 196, 182, 0.2);
    --shadow-glow-orange: 0 0 40px rgba(255, 107, 53, 0.15);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Hero Animation (scroll-driven, Apple-style) ---- */
.hero-animation {
    position: relative;
    width: 100%;
    height: 500vh;
    /* tall section to scroll through — drives the animation */
    background: var(--white);
}

#animation-canvas {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: block;
}

/* Scroll hint */
.scroll-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 1s ease 1s both, pulse-hint 2s ease-in-out infinite 2s;
    z-index: 10;
    pointer-events: none;
}

.scroll-hint span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.scroll-hint__mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--gray-400);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-hint__wheel {
    width: 4px;
    height: 10px;
    background: var(--teal);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.3;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pulse-hint {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* ---- Section Base ---- */
.section {
    padding: 120px 0;
    position: relative;
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--teal);
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.1), rgba(78, 205, 196, 0.08));
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.gradient-text {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal-light), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--gray-600);
    max-width: 700px;
    line-height: 1.8;
}

.section__divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--orange));
    border-radius: 2px;
    margin-top: 40px;
}

/* ---- Intro ---- */
.section--intro {
    background: var(--white);
    text-align: center;
}

.section--intro .section__subtitle {
    margin: 0 auto 0;
}

.section--intro .section__divider {
    margin: 40px auto 0;
}

/* ---- Pflegeschulen ---- */
.section--pflegeschulen {
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

/* ---- Azubis ---- */
.section--azubis {
    background: linear-gradient(180deg, var(--gray-900) 0%, #162033 100%);
    color: var(--white);
}

.section--azubis .section__title {
    color: var(--white);
}

.section--azubis .section__subtitle {
    color: var(--gray-400);
}

.section--azubis .section__label {
    color: var(--orange-light);
    background: rgba(255, 107, 53, 0.12);
}

/* ---- Cards Grid ---- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 56px;
}

/* Glass Cards (Pflegeschulen) */
.card--glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(46, 196, 182, 0.15);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card--glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card--glass:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-teal);
    border-color: rgba(46, 196, 182, 0.3);
}

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

/* Solid Cards (Azubis) */
.card--solid {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card--solid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card--solid:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow-lg), var(--shadow-glow-orange);
    border-color: rgba(255, 140, 66, 0.25);
}

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

.card__icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.card:hover .card__icon {
    transform: scale(1.15) rotate(-3deg);
}

.card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: inherit;
}

.card__text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.card--solid .card__text {
    color: var(--gray-400);
}

/* ---- CTA Section ---- */
.section--cta {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal), var(--teal-light));
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.section--cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.2), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 140, 66, 0.15), transparent 50%);
    pointer-events: none;
}

.section--cta .section__title {
    color: var(--white);
    position: relative;
}

.section--cta .section__subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 24px;
    position: relative;
}

.cta-contact {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 600;
    color: var(--white);
    position: relative;
    margin-top: 8px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

.cta-contact a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.cta-contact a:hover {
    color: var(--teal);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 60px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn--primary {
    background: var(--white);
    color: var(--teal-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.btn--secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* ---- Footer ---- */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 32px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger card entrance */
.reveal-card:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal-card:nth-child(2) {
    transition-delay: 0.15s;
}

.reveal-card:nth-child(3) {
    transition-delay: 0.25s;
}

.reveal-card:nth-child(4) {
    transition-delay: 0.35s;
}

.reveal-card:nth-child(5) {
    transition-delay: 0.45s;
}

.reveal-card:nth-child(6) {
    transition-delay: 0.55s;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card--glass,
    .card--solid {
        padding: 32px 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .section__title {
        font-size: 1.75rem;
    }

    .section__subtitle {
        font-size: 1rem;
    }
}