@font-face {
    font-family: RalewayText;
    src: url('assets/Raleway-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: RalewayText;
    src: url('assets/Raleway-Italic-VariableFont_wght.ttf') format('truetype');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --font-heading: Raleway, RalewayText, sans-serif;
    --font-body: RalewayText, Raleway, sans-serif;
    --green: #385b4f;
    --mint: #b1d8b7;
    --lime: #7cc644;
    --paper: #fdfffb;
    --ink: #101010;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
}

a {
    color: inherit;
}
p{
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: justify;
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
    color: var(--ink);

}

img {
    max-width: 100%;
    height: auto;
}

.skip-link {
    position: absolute;
    left: -999px;
}

.skip-link:focus {
    top: 1rem;
    left: 1rem;
    z-index: 20;
    padding: 0.5rem 1rem;
    background: var(--lime);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--green);
    box-shadow: 0 2px 16px #0002;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 34px;
    width: 80%;
    min-height: 120px;
    margin: auto;
}

.site-logo {
    display: block;
    margin-right: auto;
}

.site-logo img {
    display: block;
    width: 120px;
    height: auto;
    object-fit: cover;
    padding: 5px;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.desktop-menu a,
.mobile-menu a {
    color: var(--paper);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.desktop-menu a:hover,
.desktop-menu a:focus {
    color: var(--lime);
}

.mobile-menu {
    display: none;
    color: #fff;
}

.mobile-menu summary {
    cursor: pointer;
    font-weight: 600;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border: 0;
    border-radius: 3px 0 3px 3px;
    color: var(--green);
    background: var(--mint);
    font-weight: 700;
    font-style: italic;
    text-decoration: none;
    box-shadow: 2px 2px 4px #0008;
    transition: 0.2s ease;
}

.button:hover,
.button:focus {
    color: var(--mint);
    background: var(--green);
}

.button--small {
    font-size: 15px;
}

/* Hero */
.hero {
    position: relative;
    display: grid;
    place-items: center;
    height: calc(100vh - 90px);
    overflow: hidden;
    padding: 90px 24px 110px;
    text-align: center;
    background: radial-gradient(circle at 85% 0, var(--lime) 0, var(--mint) 42%, var(--mint) 100%);
}

.hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    z-index: 0;
    content: '';
    opacity: 0.2;
    pointer-events: none;
    background: url('assets/skyline2.png') center / cover no-repeat;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    max-width: 850px;
    margin: 12px auto 16px;
    color: var(--green);
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 650;
    line-height: 1.05;
}

.hero h1 em {
    color: var(--paper);
    font-style: normal;
}

.hero h2 {
    margin: 0 auto 18px;
    color: var(--green);
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2.25rem);
    line-height: 1.2;
}

.hero p {
    max-width: 760px;
    margin: 2rem auto;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: auto;
    perspective: 1000px;
}

.hero-card {
    position: relative;
    transform: translateZ(0) rotateX(0deg);
    transform-style: preserve-3d;
    padding: 24px 18px;
    border: 1px solid #ffffffaa;
    color: var(--green);
    background: linear-gradient(145deg, #f8fff8 0%, #d8f0dc 100%);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 0 #385b4f55, 0 14px 24px #385b4f33;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-card:hover,
.hero-card:focus-visible {
    transform: translateY(-8px) rotateX(4deg) translateZ(12px);
    box-shadow: 0 9px 0 #385b4f66, 0 22px 34px #385b4f55;
}

.hero-card span {
    display: block;
    margin-top: 2rem;
    font-size: 14px;
    font-style: italic;
}

/* Content sections */
.content-band {
    padding: 92px 24px;
}

.content-band--white {
    background: var(--paper)
}

.content-band--green {
    background: radial-gradient(circle at 85% 0, var(--lime) 0, var(--mint) 42%, var(--mint) 100%);
}

.content-band--lime {
    position: relative;
    isolation: isolate;
    color: var(--paper);
    background:
        linear-gradient(#385b4fcc, #385b4fcc),
        url('assets/new-york-6200560_1920-1.webp') center / cover no-repeat;
}

.content-band--lime > * {
    position: relative;
    z-index: 1;
}

.content-inner {
    width: min(var(--max), 100%);
    margin: auto;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.8fr);
    align-items: center;
    gap: 70px;
}

.split--reverse .split__image {
    order: 2;
}

.content-band--green .split__image {
    order: 1;
}

.content-band--green .split {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.7fr);
}

.content-band--green .split > div {
    order: 2;
}

.split__image {
    width: min(100%, 320px);
    height: 500px;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    justify-self: end;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 24px;
}

.section-heading h2 {
    flex: 1;
    margin: 0;
}

.section-heading__image {
    display: none;
    align-self: center;
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 0%; 
}

#haus .split__image,
#eigen .split__image {
    height: auto;
    aspect-ratio: 16 / 9;
}

.content-band h2 {
    margin: 0 0 24px;
    color: var(--green);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
}



.check-list {
    padding: 0;
    list-style: none;
}

.check-list li {
    margin: 12px 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 35px 0;
}

.stat {
    position: relative;
    min-height: 150px;
    padding: 24px;
    border: 1px solid #ffffffaa;
    border-radius: 4px;
    color: var(--green);
    text-align: center;
    background: linear-gradient(145deg, #f8fff8 0%, #d8f0dc 100%);
    transform: translateZ(0) rotateX(0deg);
    transform-style: preserve-3d;
    box-shadow: 0 5px 0 #385b4f55, 0 14px 24px #385b4f33;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat:hover {
    transform: translateY(-7px) rotateX(3deg) translateZ(8px);
    box-shadow: 0 9px 0 #385b4f66, 0 22px 34px #385b4f44;
}

.stat strong {
    display: block;
    color: var(--green);
    font-size: 2.8rem;
    line-height: 1;
}

.stat span {
    display: block;
    margin-top: 12px;
    color: var(--green);
    font-size: 0.9rem;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 35px;
    perspective: 1200px;
}

.benefit {
    position: relative;
    min-height: 190px;
    padding: 28px 24px;
    border: 1px solid #ffffff33;
    border-radius: 4px;
    color: var(--paper);
    background: linear-gradient(145deg, #385b4f 0%, #29473e 100%);
    transform: translateZ(0) rotateX(0deg);
    transform-style: preserve-3d;
    box-shadow: 0 5px 0 #243d36, 0 14px 24px #385b4f40;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit:hover,
.benefit:focus-within {
    transform: translateY(-8px) rotateX(3deg) translateZ(10px);
    box-shadow: 0 9px 0 #243d36, 0 22px 34px #385b4f55;
}

.benefit strong {
    display: block;
    margin-bottom: 12px;
    color: var(--lime);
    font-size: 1.15rem;
    line-height: 1.25;
}

.benefit span {
    display: block;
    color: var(--paper);
    font-size: 1rem;
    line-height: 1.5;
}

.benefit::after {
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: 34px;
    height: 3px;
    content: '';
    background: var(--lime);
    opacity: 0.8;
}

/* Contact form */
.cta {
    text-align: center;
}

.cta h2 {
    color: var(--green);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: start;
    gap: 42px;
    margin-top: 45px;
    text-align: left;
}

.contact-copy {
    padding-top: 0;
}

.contact-copy h2,
.contact-copy p,
.contact-copy .check-list li {
    color: var(--paper);
}

.contact-copy h2 {
    margin: 0 0 28px;
}

.contact-copy p {
    margin: 0 0 22px;
}

.contact-copy .check-list {
    margin: 0;
}

.contact-copy .check-list li {
    position: relative;
    padding-left: 34px;
    margin: 0 0 16px;
    color: var(--paper);
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-copy .check-list li::before {
    position: absolute;
    left: 0;
    color: var(--lime);
    content: '✔';
    font-size: 1.25rem;
}

.contact-layout .contact-form {
    width: 100%;
    max-width: 480px;
    margin: 0;
}

.form-message {
    grid-column: 1 / -1;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
    text-indent: 0;
}

.form-message--success {
    color: var(--green);
    background: #d8f0dc;
}

.form-message--error {
    color: #7d2424;
    background: #ffe1e1;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 480px;
    margin: 30px auto 0;
}

.form-field {
    position: relative;
    display: grid;
}

.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-field span {
    position: absolute;
    top: 15px;
    left: 14px;
    z-index: 1;
    padding: 2px 10px;
    color: #385b4fcc;
    font-weight: bold;
    pointer-events: none;
    transform-origin: left center;
    transition: transform 0.2s ease, top 0.2s ease, color 0.2s ease;
}

.form-field input,
.form-field textarea {
    position: relative;
    z-index: 0;
}

.form-field:focus-within span,
.form-field:has(input:not(:placeholder-shown)) span,
.form-field:has(textarea:not(:placeholder-shown)) span {
    top: -35px;
    color: var(--paper);

}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 3px #7cc64444, 0 8px 18px #385b4f22;
}

.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--paper);
    font-size: 0.85rem;
    line-height: 1.4;
}

.consent-field input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.consent-box {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1px solid var(--paper);
    border-radius: 4px;
    background: #ffffff22;
    box-shadow: inset 0 1px 2px #385b4f44;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.consent-field input:checked + .consent-box {
    border-color: var(--lime);
    background: var(--lime);
    box-shadow: 0 0 0 3px #7cc64444;
}

.consent-field input:checked + .consent-box::after {
    display: block;
    margin: -2px 0 0 4px;
    color: var(--green);
    content: '✔';
    font-size: 16px;
    font-weight: 800;
}

.consent-field input:focus-visible + .consent-box {
    outline: 3px solid #7cc64466;
    outline-offset: 2px;
}

.consent-text {
    display: block;
}

.consent-text a {
    color: var(--paper);
    text-decoration: underline;
}

.consent-text a:hover,
.consent-text a:focus {
    color: var(--lime);
}

.contact-form .form-submit {
    grid-column: 1 / -1;
    min-width: 220px;
    padding: 15px 28px;
    font-size: 1rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 15px 14px;
    border: 1px solid #385b4f66;
    border-radius: 4px;
    opacity: 90%;
    background: var(--paper);
    font: inherit;
}

.form-field textarea {
    min-height: 130px;
    resize: vertical;
}

.form-submit {
    justify-self: center;
}

/* Footer */
.site-footer {
    padding: 60px 24px 24px;
    color: var(--paper);
    background: var(--green);
}

.footer-grid,
.footer-bottom {
    width: 80%;
    margin: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 34px;
    border-bottom: 1px dotted #9b9b9b;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links {
    align-items: flex-start;
    text-align: left;
}

.footer-social {
    align-items: flex-end;
    text-align: right;
}

.footer-links a,
.footer-social a {
    font-size: 1rem;
    line-height: 1.4;
}

.footer-links a,
.footer-social a,
.footer-address a,
.footer-bottom a {
    color: var(--paper);
    text-decoration: none;
}

.footer-links a:hover,
.footer-social a:hover,
.footer-address a:hover {
    color: var(--lime);
}

.footer-address p {
    margin: 0 0 10px;
    color: var(--paper);
    font-size: 1rem;
    line-height: 1.45;
    text-align: left;
    text-indent: 0;
}

.footer-address p:first-child {
    margin-bottom: 12px;
}

.footer-address p:nth-child(2) {
    margin-bottom: 18px;
    font-size: 1.15rem;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
    color: var(--paper);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: right;
    text-indent: 0;
}

.footer-bottom img {
    width: 350px;
}

/* Legal pages */
.legal {
    width: min(850px, calc(100% - 48px));
    margin: auto;
    padding: 100px 0;
}

.legal h1 {
    color: var(--green);
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
}

.legal h2 {
    margin-top: 44px;
    color: var(--green);
    font-family: var(--font-heading);
}

.legal a {
    color: var(--green);
}

.form-result {
    min-height: 55vh;
}

/* Mobile */
@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .site-header__inner {
        width: calc(100% - 32px);
        min-height: 74px;
        gap: 16px;
    }

    html {
        scroll-padding-top: 74px;
    }

    .site-logo img {
        width: 58px;
        height: 58px;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu nav {
        position: absolute;
        top: 74px;
        right: 16px;
        display: grid;
        gap: 0;
        padding: 10px 18px;
        background: var(--green);
        box-shadow: 0 4px 12px #0003;
    }

    .mobile-menu a {
        padding: 8px 0;
    }

    .button--small {
        padding: 10px 12px;
        font-size: 13px;
    }

    .hero {
        min-height: auto;
        height: auto;
        padding: 74px 16px 100px;
    }

    .hero-cards,
    .split,
    .benefits,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-cards {
        gap: 10px;
    }

    .hero-card:hover,
    .hero-card:focus-visible {
        transform: translateY(-4px);
    }

    .content-band {
        padding: 65px 20px;
    }

    .split--reverse .split__image {
        order: 0;
    }

    .split > div {
        order: 1;
    }

    .split > .split__image {
        order: 2;
        justify-self: center;
        width: min(100%, 320px);
    }

    #azubi .section-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 78px;
        align-items: center;
        gap: 14px;
    }

    #azubi .section-heading__image {
        display: block;
        align-self: center;
        justify-self: center;
        margin: 0;
        flex-basis: 78px;
        width: 78px;
        height: 78px;
    }

    #azubi .split > .split__image {
        display: none;
    }

    .content-band--green .split__image,
    .content-band--green .split > div {
        order: 1;
    }

    .content-band--green .split__image {
        order: 2;
    }

    .content-band--green .split {
        grid-template-columns: 1fr;
    }

    .stats,
    .contact-form,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-copy {
        padding-top: 0;
    }

    .contact-form .form-submit {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-social {
        align-items: flex-start;
        text-align: left;
    }

    .legal {
        padding: 65px 0;
    }
}
