/* ============================================================
   Corporate Design
   ============================================================ */

:root {

    /* Farben */

    --color-primary:        #4080C0;
    --color-primary-dark:   #2F6699;
    --color-primary-light:  #EAF3FB;

    --color-text:           #303030;
    --color-text-light:     #707070;

    --color-background:     #FFFFFF;
    --color-surface:        #F8FAFC;
    --color-border:         #DCE5EE;

    /* Layout */

    --page-width:           1120px;

    --header-height:        72px;
    --anchor-offset:        90px;

    --hero-height:          40vh;
    --hero-min-height:      220px;
    --hero-max-height:      540px;

    /* Abstände */

    --space-xs:             .5rem;
    --space-s:              1rem;
    --space-m:              2rem;
    --space-l:              4rem;
    --space-xl:             6rem;

    /* Rundungen */

    --radius-s:             10px;
    --radius-m:             20px;
    --radius-l:             30px;

    /* Schatten */

    --shadow-soft:
        0 8px 25px rgba(0,0,0,.08);

    /* Animation */

    --transition:           .25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ============================================================
   Schriftarten
   ============================================================ */

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Medium.woff2") format("woff2");
    font-weight: 500;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 700;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Bold.woff2") format("woff2");
    font-weight: 800;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter",sans-serif;
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.7;
    font-size: 18px;
}

/* ===========================================
   Container
   =========================================== */

.container {
    width: min(94%, var(--page-width));
    margin: auto;
}

/* ===========================================
   Header
   =========================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition:
        background .3s ease,
        box-shadow .3s ease,
        backdrop-filter .3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, .40);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.site-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* ===========================================
   Bilder
   =========================================== */

img {
    max-width: 100%;
    display: block;
}

/* ===========================================
   Logo
   =========================================== */

.logo img {
    height: 42px;
    width: auto;
}

/* ===========================================
   Navigation
   =========================================== */

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

nav a:hover {
    color: var(--color-primary);
}

/* ===========================================
   Content Panel
   =========================================== */

.content-panel {
    position: relative;
    margin-top: -30px;
    background: var(--color-background);
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    z-index: 10;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.content-panel .container {
    width: min(94%, var(--page-width));
}

/* ===========================================
   Hauptbereich
   =========================================== */

main {
    width: 100%;
    margin: auto;
    padding-bottom: 5rem;
}

.content {
    width: 100%;
    margin: auto;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

/* ===========================================
   Überschriften
   =========================================== */

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 .6rem;
}

h2 {
    position: relative;
    display: inline-block;
    margin-top: 4rem;
    scroll-margin-top: var(--anchor-offset);
}

h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 5px;
    margin-top: .4rem;
    background: var(--color-primary);
    border-radius: 3px;
}

/* ===========================================
   Listen
   =========================================== */

ul {
    padding-left: 1.2rem;
}

li {
    margin-bottom: .5rem;
}

/* ===========================================
   Absätze
   =========================================== */

p {
    max-width: 70ch;
    margin-bottom: 1.2rem;
}

/* ===========================================
   Single Pages
   =========================================== */

.page-header {
    height: 420px;
    overflow: hidden;
}

.page-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================================
   Links
   =========================================== */

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

.main-nav {
    display: flex;
    gap: 1.2rem;
}

.main-nav a {
    color: white;
    font-weight: 500;
    letter-spacing: .02em;
}

.site-header.scrolled .main-nav a {
    color: var(--color-primary);
}

.site-header.scrolled .main-nav a:hover {
    color: var(--color-primary-dark);
}

/* ===========================================
   Footer
   =========================================== */

footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 2rem;
}

footer .container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

footer a {
    color: var(--color-text);
    text-decoration: none;
}

footer a:hover {
    color: var(--color-primary);
}

/* ===========================================
   Responsive
   =========================================== */
/*
@media (max-width: 768px) {

    footer .container {
        flex-direction: column;
        align-items: center;
        gap: .6rem;
    }
    .site-header {
        height: auto;
    }

    .site-header .container {
        flex-direction: column;
        padding: 1rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .main-nav {
        gap: 1rem;
    }
    .main-nav a {
        font-size: .95rem;
    }
    :root{
        --hero-height:34vh;
    }    
}

@media (max-width: 600px) {
    .site-header {
        height: auto;
    }
    .site-header .container {
        flex-direction: column;
        gap: .8rem;
        padding: .8rem 0;
    }
    .logo img {
        height: 36px;
    }
    .main-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    :root{
        --hero-height:28vh;
        --hero-min-height:180px;
    }    
}
*/
/* ===========================
   Hero
   =========================== */

.hero {
    position: relative;
    height: var(--hero-height);
    min-height: var(--hero-min-height);
    max-height: var(--hero-max-height);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 110%;
    object-fit: cover;
    transform: translateY(0);
    transition:transform .1s linear;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
}

.hero-overlay .container {
    width: min(94%, var(--page-width));
    margin: 0 auto;
    padding-bottom: 2rem;
}

.hero-text {
    color: white;
    padding-bottom: 2rem;
}

.hero-text h1 {
    color: white;
    margin-bottom: .4rem;
}

.hero-text h2 {
    color: white;
    margin-bottom: .2rem;
}

.hero-text p {
    font-size: 1.6rem;
    margin: 0;
}

.hero img {
    width: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    text-shadow: 0 0 12px rgba(0,0,0,.7);
    padding: 2rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    margin-bottom: .5rem;
}

.hero-content h2 {
    font-size: clamp(3rem, 7vw, 3rem);
    margin-bottom: .5rem;
}

.hero-content p {
    font-size: 1.4rem;
    max-width: 700px;
}

/* ============================================================
   Responsive Design
   ============================================================ */

/* ---------- Tablet ---------- */

@media (max-width: 992px) {
    :root {
        --hero-height: 34vh;
    }
    .main-nav {
        gap: 1rem;
    }
    .main-nav a {
        font-size: .95rem;
    }
    h1 {
        font-size: 2.2rem;
    }
    .hero-content h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    .hero-content p {
        font-size: 1.3rem;
    }
}

/* ---------- Smartphone ---------- */

@media (max-width: 600px) {
    :root {
        --hero-height: 28vh;
        --hero-min-height: 180px;
    }
    body {
        font-size: 17px;
    }
    .site-header {
        height: auto;
    }
    .site-header .container {
        flex-direction: column;
        gap: .8rem;
        padding: .8rem 0;
    }
    .logo img {
        height: 36px;
    }
    .main-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: .9rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content h2 {
        font-size: 1.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .content-panel {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }
    footer .container {
        flex-direction: column;
        align-items: center;
        gap: .7rem;
    }
}

/* ---------- Kleine Smartphones ---------- */

@media (max-width: 400px) {
    body {
        font-size: 16px;
    }
    .hero-content h1 {
        font-size: 1.9rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    h2::after {
        width: 60px;
    }
}