:root {
    --bg: #02011E;
    --bg-soft: #1a1a22;
    --accent: #eab308;
    --accent-soft: rgba(234, 179, 8, 0.15);
    --text: #F8D570;
    --text-muted: #a1a1aa;
    --radius: 14px;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-top: 90px; /* exakte Headerhöhe */
    overflow-x: hidden;
}

/* GLOBALER ANKER-OFFSET */
section,
#start {
    scroll-margin-top: 110px;
}

/* ===========================
   HEADER (sticky)
=========================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(15, 15, 21, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    /* FIX: Header darf Flaggen nicht abschneiden */
    overflow: visible !important;
}

.nav {
    max-width: 1100px;
    margin: auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo1 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ===========================
   HAMBURGER
=========================== */

.hamburger {
    width: 32px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: var(--text);
    border-radius: 4px;
    transition: 0.3s;
}

/* Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ===========================
   MOBILE MENU (off-canvas)
=========================== */

nav#mobileMenu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: var(--bg-soft);
    box-shadow: var(--shadow);
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 10000;
}

nav#mobileMenu.open {
    right: 0;
}

nav#mobileMenu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

nav#mobileMenu a {
    color: var(--text);
    font-size: 1.1rem;
    text-decoration: none;
}

body.menu-open {
    overflow: hidden;
}

/* ===========================
   DESKTOP NAVIGATION
=========================== */

@media (min-width: 900px) {
    .hamburger {
        display: none;
    }

    nav#mobileMenu {
        position: static;
        height: auto;
        width: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        right: 0;
    }

    nav#mobileMenu ul {
        flex-direction: row;
        gap: 1.5rem;
    }

    nav#mobileMenu a {
        font-size: 0.95rem;
        color: var(--text-muted);
    }

    nav#mobileMenu a:hover {
        color: var(--accent);
    }
}

/* ===========================
   HERO
=========================== */

.hero {
    max-width: 1100px;
    margin: auto;
    padding: 3rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 4vw, 2.4rem);
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 32rem;
}

.btn {
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.hero-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-soft);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===========================
   SECTIONS
=========================== */

section {
    max-width: 1100px;
    margin: auto;
    padding: 3rem 1.5rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--bg-soft);
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 0.4rem;
}

.person-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===========================
   KONTAKT
=========================== */

.contact-box {
    background: var(--bg-soft);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

input,
textarea {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #111;
    color: var(--text);
}

/* ===========================
   FOOTER
=========================== */

footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3rem;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    section {
        scroll-margin-top: 140px;
    }
}

/* ===========================
   LANGUAGE SWITCH
=========================== */

.language-switch {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 99999;
    display: flex;
    gap: 10px;
}

.language-switch img {
    width: 32px;
    height: auto;
    border: none;
    outline: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.language-switch img:hover {
    transform: scale(1.15);
}

.language-switch a,
.language-switch img {
    outline: none;
    border: none;
}

.language-switch a:focus,
.language-switch a:active {
    outline: none;
    border: none;
}

/* Portrait */
@media (orientation: portrait) and (max-width: 900px) {
    .language-switch {
        top: 80px;
    }
}

/* Landscape – FIX */
@media (orientation: landscape) and (max-width: 900px) {
    .language-switch {
        top: 65px !important;
    }
}
