/* ══════════════════════════════════════════════════════════════════════════
   BildungsSprung – style.css
   Mobile-first, keine externen Frameworks
   ══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────── */
:root {
    --color-petrol:       #1E6F75;
    --color-petrol-dark:  #165358;
    --color-petrol-light: rgba(30, 111, 117, 0.08);
    --color-amber:        #D17637;
    --color-amber-dark:   #b8642e;
    --color-amber-light:  rgba(209, 118, 55, 0.10);
    --color-dark:         #1A1A1A;
    --color-mid:          #4A4A4A;
    --color-muted:        #6B7280;
    --color-border:       #E5E7EB;
    --color-white:        #FFFFFF;
    --color-bg-light:     #F9FAFB;

    --font:               'Outfit', sans-serif;

    --section-gap:        3rem;
    --container-max:      1140px;
    --container-pad:      1.25rem;

    --radius:             6px;
    --radius-lg:          12px;
    --shadow:             0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md:          0 4px 24px rgba(0, 0, 0, 0.12);

    --transition:         0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

img, svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ── Base Typography ───────────────────────────────────────────────────── */
body {
    font-family: var(--font);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-dark);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5625rem); }
h4 { font-size: 1.125rem; }

p { line-height: 1.7; }

strong { font-weight: 600; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section {
    padding-block: var(--section-gap);
}

.section--light {
    background: var(--color-petrol-light);
}

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

.section--petrol h1,
.section--petrol h2,
.section--petrol h3,
.section--petrol p {
    color: var(--color-white);
}

/* ── Grid Utilities ────────────────────────────────────────────────────── */
.grid-2 {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

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

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

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-weight: 500;
    font-size: 17px;
    border-radius: var(--radius);
    padding: 12px 24px;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--color-petrol);
    color: var(--color-white);
    border-color: var(--color-petrol);
}
.btn--primary:hover {
    background: var(--color-petrol-dark);
    border-color: var(--color-petrol-dark);
}

.btn--secondary {
    background: transparent;
    color: var(--color-petrol);
    border-color: var(--color-petrol);
}
.btn--secondary:hover {
    background: var(--color-petrol-light);
}

.btn--light {
    background: var(--color-white);
    color: var(--color-petrol);
    border-color: var(--color-white);
}
.btn--light:hover {
    background: rgba(255, 255, 255, 0.88);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

/* Amber pill label above card title */
.card__label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-amber);
    background: var(--color-amber-light);
    padding: 3px 10px;
    border-radius: 100px;
    align-self: flex-start;
}

/* Amber top border variant (b2b challenge cards) */
.card--amber-border {
    border-top: 3px solid var(--color-amber);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.card__text {
    color: var(--color-mid);
    font-size: 0.9375rem;
    line-height: 1.6;
    flex: 1;
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-petrol);
    margin-top: auto;
    transition: gap var(--transition);
}
.card__link:hover { gap: 0.625rem; }
.card__link::after { content: '→'; }

/* ── Feature Blocks (Why section) ─────────────────────────────────────── */
.feature-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-block__icon {
    width: 48px;
    height: 48px;
    color: var(--color-petrol);
    flex-shrink: 0;
}

.feature-block__title {
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-block__text {
    color: var(--color-mid);
    line-height: 1.6;
}

/* ── Service Blocks (b2b 2×2) ──────────────────────────────────────────── */
.service-block {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.service-block:hover {
    border-color: var(--color-petrol);
    box-shadow: var(--shadow);
}

.service-block__number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-petrol);
    opacity: 0.25;
    line-height: 1;
}

.service-block__text {
    color: var(--color-mid);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ── Steps (b2c Ablauf) ────────────────────────────────────────────────── */
.steps {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.step__number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-amber);
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step__title {
    font-size: 1.1875rem;
    font-weight: 600;
}

.step__text {
    color: var(--color-mid);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ── Notice / Alert Boxes ──────────────────────────────────────────────── */
.notice {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.notice--amber {
    background: var(--color-amber-light);
    border-left: 4px solid var(--color-amber);
}

.notice--amber strong { color: var(--color-amber); }

/* ── Partner Section ───────────────────────────────────────────────────── */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.partner__item {
    position: relative;
    max-width: 280px;
    width: 100%;
}

.partner__item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.partner__placeholder {
    display: none;
    border: 2px dashed var(--color-petrol);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--color-petrol);
    font-size: 0.875rem;
    opacity: 0.6;
    width: 100%;
    min-height: 100px;
    align-items: center;
    justify-content: center;
}

/* ── Scroll Animations ─────────────────────────────────────────────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Section Headings ──────────────────────────────────────────────────── */
.section__header {
    margin-bottom: 2.5rem;
    max-width: 640px;
}

.section__header--center {
    text-align: center;
    margin-inline: auto;
}

.section__header p {
    margin-top: 0.875rem;
    color: var(--color-mid);
    font-size: 1.0625rem;
}

.section--petrol .section__header p {
    color: rgba(255, 255, 255, 0.82);
}

/* ── Navigation ────────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 1rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav__logo img {
    height: 36px;
    width: auto;
    min-width: 120px;
}

.nav__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem var(--container-pad) 1.5rem;
    gap: 0.25rem;
}

.nav__menu.is-open {
    display: flex;
}

.nav__links {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.nav__link {
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    color: var(--color-dark);
    border-bottom: 2px solid transparent;
    transition: color var(--transition);
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-petrol);
    border-bottom-color: var(--color-petrol);
}

.nav__cta {
    margin-top: 0.75rem;
    align-self: flex-start;
}

.nav__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    margin-left: auto;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero Sections ─────────────────────────────────────────────────────── */
.hero {
    padding-block: 4rem 3rem;
    position: relative;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    align-items: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero__subtext {
    font-size: 1.0625rem;
    color: var(--color-mid);
    line-height: 1.7;
    max-width: 560px;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__icon-deco {
    width: min(280px, 70vw);
    height: auto;
    opacity: 0.12;
}

/* Petrol Hero (b2b) */
.hero--petrol {
    background: var(--color-petrol);
}

.hero--petrol h1,
.hero--petrol p {
    color: var(--color-white);
}

.hero--petrol .hero__subtext {
    color: rgba(255, 255, 255, 0.82);
}

.hero--petrol .hero__watermark {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(200px, 35vw, 400px);
    opacity: 0.06;
    pointer-events: none;
}

/* White Hero (index, b2c) */
.hero--white {
    background: var(--color-white);
}

.hero--white .hero__deco {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 38%;
    background: var(--color-petrol-light);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero--white .hero__inner {
    position: relative;
    z-index: 1;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.75);
    padding-block: 3rem 2rem;
}

.footer__inner {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer__logo img {
    height: 32px;
    width: auto;
    min-width: 120px;
}

.footer__tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer__nav-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.footer__nav a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
}

.footer__nav a:hover {
    color: var(--color-white);
}

.footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* ── Contact Form ──────────────────────────────────────────────────────── */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 680px;
}

.form__row {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form__label {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-dark);
}

.form__input,
.form__select,
.form__textarea {
    font-family: var(--font);
    font-weight: 300;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    color: var(--color-dark);
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-petrol);
    box-shadow: 0 0 0 3px rgba(30, 111, 117, 0.12);
}

.form__textarea {
    resize: vertical;
    min-height: 130px;
}

.form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
}

.form__checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.form__checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-petrol);
    cursor: pointer;
}

.form__checkbox-label {
    font-size: 0.875rem;
    color: var(--color-mid);
    line-height: 1.5;
    cursor: pointer;
}

.form__checkbox-label a {
    color: var(--color-petrol);
    text-decoration: underline;
}

/* Honeypot – hidden from real users */
.form__honeypot {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.form__status {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    display: none;
}

.form__status--success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #065F46;
}

.form__status--error {
    display: block;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991B1B;
}

/* ── Impressum Page ────────────────────────────────────────────────────── */
.legal-section {
    max-width: 780px;
}

.legal-section h2 {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.legal-section h3 {
    margin-top: 1.75rem;
    font-size: 1.125rem;
    color: var(--color-dark);
}

.legal-section p {
    margin-top: 0.75rem;
    color: var(--color-mid);
}

.legal-section address {
    font-style: normal;
    color: var(--color-mid);
    line-height: 1.8;
    margin-top: 0.75rem;
}

/* ── Responsive: Tablet (768px+) ───────────────────────────────────────── */
@media (min-width: 768px) {
    :root {
        --section-gap: 5rem;
    }

    /* Grid */
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }

    /* Nav */
    .nav__hamburger { display: none; }

    .nav__menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        border: none;
        padding: 0;
        background: transparent;
        align-items: center;
        gap: 0.25rem;
    }

    .nav__links {
        flex-direction: row;
        gap: 0.25rem;
        align-items: center;
    }

    .nav__link {
        padding: 0.375rem 0.75rem;
        border-bottom: none;
        border-radius: var(--radius);
    }

    .nav__link:hover,
    .nav__link--active {
        border-bottom: none;
        background: var(--color-petrol-light);
    }

    .nav__cta { margin-top: 0; }

    /* Hero */
    .hero__inner { grid-template-columns: 1fr 1fr; }
    .hero { padding-block: 5rem 4rem; }

    /* Steps */
    .steps {
        grid-template-columns: repeat(3, 1fr);
        position: relative;
    }

    .steps::before {
        content: '';
        position: absolute;
        top: 1.5rem;
        left: calc(3rem + 1.5rem);
        right: calc(3rem + 1.5rem);
        height: 2px;
        background: var(--color-amber);
        opacity: 0.35;
        z-index: 0;
    }

    .step { position: relative; z-index: 1; }

    /* Form */
    .form__row--2col { grid-template-columns: repeat(2, 1fr); }

    /* Footer */
    .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* ── Responsive: Desktop (1024px+) ─────────────────────────────────────── */
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }

    .hero { padding-block: 6rem 5rem; }
}

/* ── Accessibility: Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    html { scroll-behavior: auto; }
}
