/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    -webkit-text-size-adjust: none;
}

main {
    display: block;
}

address {
    font-style: normal;
}

li::marker {
    display: none;
}

img {
    display: block;
}

legend {
    display: table;
    padding: 0;
}

fieldset {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0.01em 0 0 0;
}


:root {
    --color-black: #000;
    --color-dark: #3B3B3A;
    --color-primary: #363636;
    --color-secondary: #838383;
    --color-highlight: #606060;
    --color-bright: #fff;
    --color-grey: #F7F7F5;
    --color-border: #EEEEED;

    --radius-s: 10px;
    --radius-m: 16px;
    --radius-l: 24px;

    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 20px;
    --space-5: 28px;
    --space-6: 36px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    --maxw: 1180px;
}

/* --- Smooth Scroll + Scroll Padding --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 64px;
    }
}

/* Fonts */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/space-grotesk-v22-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/space-grotesk-v22-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-v22-latin-700.woff2') format('woff2');
}

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

body {
    font-family: 'Space Grotesk', Inter, sans-serif;
    color: var(--color-dark);
    background: var(--color-grey);
    line-height: 1.6;
    font-size: 18px;
}

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


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

strong {
    font-weight: 700;
}

a:not(.button):hover {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--color-primary);
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 20px;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .9rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all .25s ease;
}

.button--primary {
    background: var(--color-primary);
    color: var(--color-bright);
}

.button--primary:hover {
    background: var(--color-black);
}

.button--ghost {
    background: transparent;
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
}

.button--ghost:hover {
    background: var(--color-dark);
    color: var(--color-bright);
}

.button--bright {
    background: transparent;
    border: 1px solid var(--color-bright);
    color: var(--color-bright);
}

.button--bright:hover {
    background: var(--color-bright);
    color: var(--color-dark);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--color-bright);
    border-bottom: 1px solid var(--color-border);
    z-index: 50;
}

.header__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: var(--space-3);
}

.logo__title {
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.2;
}

.main-nav__list {
    list-style: none;
    display: flex;
    gap: var(--space-4);
}

.main-nav__list a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
}

.main-nav__list a:hover {
    color: var(--color-primary);
}

.header__cta {
    display: flex;
    gap: var(--space-2);
}

/* Hero */
.hero {
    position: relative;
    color: var(--color-bright);
    background: var(--color-dark);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url("../images/hero.jpg") center/cover no-repeat;
    opacity: .45;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-block: var(--space-9);
    text-align: center;
}

p + h2,
p + h3,
p + h4,
p + h5 {
    margin-top: 2rem;
}

.hero__title,
h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.15;
}

.hero__subtitle {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: var(--space-5);
    font-size: 1.1rem;
    opacity: .95;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding-block: var(--space-8);
    background: var(--color-bright);
}

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

.section--dark {
    background: var(--color-dark);
    color: var(--color-bright);
}

/* Footer */
.footer {
    background: var(--color-bright);
    border-top: 1px solid var(--color-border);
    padding: var(--space-7) 0 var(--space-4);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: var(--space-5);
    align-items: start;
}

.footer__bar {
    margin-top: var(--space-5);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-3);
    font-size: .9rem;
}

.footer__bar a {
    color: var(--color-dark);
    text-decoration: none;
    margin-left: var(--space-3);
}

.footer__bar a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 960px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .main-nav__list {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }
}

.jobs {
    list-style: none;
    margin: var(--space-6) 0 0;
    padding: 0;
    display: grid;
    gap: var(--space-4);
}

.job {
    background: var(--color-bright);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-m);
    padding: var(--space-4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .04);
}

.job h3 {
    margin-bottom: var(--space-2);
    font-size: 1.3rem;
    font-weight: 700;
}

.job p {
    margin-bottom: var(--space-3);
}

.benefits {
    list-style: none;
    margin: 0 0 var(--space-4);
    padding: 0;
    display: grid;
    gap: var(--space-2);
}

.benefits li {
    position: relative;
    padding-left: 1.4em;
    font-size: 1rem;
    line-height: 1.5;
}

.benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}


/* --- Über uns Section --- */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: center;
}

.about__text h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.about__text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-dark);
    margin-bottom: var(--space-3);
}

.about__image {
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.about__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* --- Section Headings allgemein --- */
.section h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: var(--space-4);
    font-weight: 700;
    color: var(--color-black);
}

.section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-dark);
    max-width: 800px;
}

/* --- Jobs Section --- */
.jobs {
    list-style: none;
    margin: var(--space-6) 0 0;
    padding: 0;
    display: grid;
    gap: var(--space-5);
}

.job {
    background: var(--color-bright);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-m);
    padding: var(--space-5);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.job h3 {
    margin-bottom: var(--space-3);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
}

.job p {
    margin-bottom: var(--space-4);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-dark);
}

/* --- Kontakt Section --- */
#kontakt p {
    max-width: 720px;
    font-size: 1.1rem;
    line-height: 1.7;
}

#kontakt a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

#kontakt a:hover {
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .about {
        grid-template-columns: 1fr;
    }

    .about__image {
        order: -1; /* Bild über dem Text */
    }
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 8px;
    padding: 8px 12px;
    background: var(--color-primary);
    color: var(--color-bright);
    border-radius: 4px;
    z-index: 1000;
}
