* {
    box-sizing: border-box;
}

:root {
    --text-color: #494949;
    --muted-color: #6b6b6b;
    --surface: #ffffff;
    --section-background: #f5f6f7;
    --accent: #3f5965;
    --accent-dark: #293e48;
    --line-color: #494949;
    --header-height: 65px;
    --shadow-soft: 0 10px 32px rgba(0, 0, 0, 0.10);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    overflow-x: hidden;
    background: var(--surface);
    color: var(--text-color);
    text-align: center;
}

a {
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

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

h1,
h2,
h3,
h4,
.site-header a,
.btn {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

h1,
h2 {
    margin: 0;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
}

h3 {
    margin: 0 0 24px;
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    font-weight: 700;
    line-height: 1.3;
}

h4 {
    margin: 32px 0 10px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

p,
.long-text li {
    font-family: 'Roboto Slab', serif;
    color: var(--text-color);
}

p {
    margin: 0;
    line-height: 1.8;
}

code {
    padding: 2px 6px;
    border-radius: 5px;
    background: #eeeeee;
    font-size: 0.92em;
}

hr {
    width: 42px;
    height: 3px;
    margin: 14px auto 0;
    border: 0;
    background: var(--line-color);
}


/* Header */

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: var(--header-height);
    padding: 0 50px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
}

#logo {
    flex: 0 0 auto;
    width: 120px;
}

#logo a {
    display: inline-flex;
    align-items: center;
}

#logo img {
    width: 45px;
    transition: opacity 200ms ease, transform 200ms ease;
}

#logo a:hover img,
#logo a:focus-visible img {
    opacity: 0.7;
    transform: scale(1.03);
}

.site-header nav {
    margin-left: auto;
}

.site-header nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.site-header nav a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 200ms ease, transform 200ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
    color: var(--accent);
    transform: translateY(2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-color);
    font-size: 29px;
}

.menu-toggle::before {
    content: '\f0c9';
    font-family: FontAwesome;
}

.menu-toggle.active::before {
    content: '\f00d';
}


/* Gemeinsame Sektionen */

.page-section {
    padding: clamp(70px, 8vw, 110px) clamp(18px, 4vw, 48px);
    scroll-margin-top: 85px;
}

.section-heading {
    width: 100%;
    margin: 0 auto clamp(34px, 5vw, 56px);
}


/* Erste Sektion */

.hero-section {
    padding-top: calc(var(--header-height) + clamp(55px, 7vw, 90px));
    background: var(--surface);
}

.hero-image {
    width: min(100%, 1100px);
    max-height: 75vh;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}


/* Textsektion */

.text-section {
    background: var(--section-background);
}

.text-card {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 60px);
    border: 1px solid rgba(73, 73, 73, 0.08);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.text-card h3 {
    position: relative;
    padding-bottom: 17px;
}

.text-card h3::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
    content: '';
}

.long-text {
    font-size: clamp(1rem, 1.45vw, 1.12rem);
}

.long-text p+p {
    margin-top: 22px;
}

.long-text ul,
.long-text ol {
    margin: 20px 0;
    padding-left: 28px;
}

.long-text li {
    margin: 8px 0;
    line-height: 1.7;
    list-style: disc;
}

.text-actions {
    display: flex;
    justify-content: center;
    margin-top: clamp(32px, 5vw, 48px);
    padding-top: 28px;
    border-top: 1px solid #e3e3e3;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 21px;
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    box-shadow: 0 5px 14px rgba(41, 62, 72, 0.22);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn:hover,
.btn:focus-visible {
    background: var(--accent-dark);
    box-shadow: 0 8px 18px rgba(41, 62, 72, 0.28);
    color: #ffffff;
    outline: none;
    transform: translateY(-2px);
}


/* Footer */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    padding: 20px;
    background: #3f3f3f;
}

.site-footer p {
    color: #f0f0f0;
    font-size: 12px;
    line-height: 1.7;
}

.site-footer a {
    color: #add8e6;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
}


/* Navigation für kleinere Bildschirme */

@media (max-width: 1200px) {
    .site-header {
        flex-wrap: wrap;
        padding: 0 18px;
    }
    #logo {
        width: auto;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .site-header nav {
        display: none;
        flex-basis: 100%;
        width: 100%;
        margin: 0;
        background: #ffffff;
    }
    .site-header nav.active {
        display: block;
    }
    .site-header nav ul {
        display: block;
        width: 100%;
        padding-bottom: 10px;
    }
    .site-header nav li {
        border-top: 1px solid #e5e5e5;
    }
    .site-header nav a {
        padding: 12px 6px;
    }
    .site-header nav a:hover,
    .site-header nav a:focus-visible {
        background: #f4f4f4;
        transform: none;
    }
}

@media (max-width: 700px) {
     :root {
        --header-height: 62px;
    }
    .page-section {
        padding-right: 16px;
        padding-left: 16px;
    }
    .hero-section {
        padding-top: calc(var(--header-height) + 48px);
    }
    .hero-image {
        max-height: none;
        border-radius: 10px;
    }
    .text-card {
        padding: 25px 20px;
        border-radius: 13px;
    }
    .long-text {
        font-size: 1rem;
    }
    .text-actions {
        align-items: stretch;
    }
    .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}