/*Reset*/
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --yellow: #FFE209;
    --magenta: #FF0078;
    --cyan: #009ee3;
    --black: #000000;
    --white: #FFFFFF;
    --grey: #9B9B9B;
    --font-display: 'TeXGyreHeros', sans-serif;
    --font-body: 'TeXGyreHeros', sans-serif;
}

html,
body {
    height: 100%;
    /* overflow: hidden; */
    font-family: var(--font-body);
    font-weight: 700;
    background-color: var(--white);
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1;
}

html.baustelle {
    background-color: var(--yellow);
}

/* Basics */
p {
    margin-bottom: 1rem;
}

h2 {
    margin-bottom: 1rem;
    margin-top: 2rem;
}

h3 {
    margin-bottom: 1rem;
    margin-top: 2rem;
}

a {
    color: var(--magenta);
    word-break: break-all;
}

.hightlight-cyan {
    color: var(--cyan) !important;
}

.hightlight-black {
    color: var(--black) !important;
}

.style-italic {
    font-style: italic !important;
}

/* Skip link */
.skip-link {
    position: fixed;
    top: -100%;
    left: 1rem;
    background: var(--black);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* Page wrapper */
.page-wrapper {
    display: flex;
    flex-direction: row;
    /* height: 100%; */
    /* height: 100vh; */
    width: 100%;
    /* height: 100dvh; */
    /* width: 100vw; */
    /* overflow: hidden; */
    overflow: unset;
}

/* Nur für Startseite - Height darf für den Footer bei den anderen Seiten nicht auf 100dhv sein, da der Footer sonst nicht ganz herunterrutscht*/
.baustelle .page-wrapper {
    height: 100dvh;
}

/* Full width container for Impressum Datenschutz */
.main-container-full-width {
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile */
@media (max-width: 1200px) {
    .main-container-full-width {
        max-width: 750px;
        padding-top: 3.5rem;
    }
}

/* RIGHT SECTION — Grey (appears second in DOM = right on desktop, top on mobile) */
.section-right {
    /* background-color: var(--grey); */
    /*     
        Hintergrundbild einfügen — einfach auskommentieren und Pfad anpassen:
        background-image: url('ihr-foto.jpg');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
      */
    background-image: url('../gfx/marcel_schroeter_profil_beste_quali.webp');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    flex: 0 0 50%;
    position: relative;
    /* Anker für absolut positionierte Elemente */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    /* overflow: hidden; */
    overflow: unset;
}

.section-right>a {
    position: absolute;
    bottom: .5rem;
    right: .5rem;
}

/* Logo — absolut oben rechts (Desktop) */
.logo-area {
    /* position: absolute;
    top: .5rem;
    right: .5rem; */
}

.logo-container {
    background-color: transparent;
    padding: 0.6rem 1rem;
    display: inline-block;
    min-width: 9rem;
    min-height: 3.5rem;
    line-height: 2.3rem;
}

.logo-container img {
    width: 330px;
    max-width: 100%;
}

.logo-area-imprint {
    margin-top: 3rem;
}

.logo-container-imprint img {
    max-width: 100%;
    width: 330px;
    height: auto;
}

/* Hamburger — nur mobil sichtbar (CSS schaltet um) */
.hamburger-btn {
    display: none;
    /* Desktop: ausgeblendet */
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    z-index: 200;
    padding: 0.3rem;
}

.main-container-full-width .hamburger-btn {
    color: var(--black);
}

.hamburger-btn:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Kandidaten-Info — unten in der grauen Fläche */
.candidate-info .candidate-name,
.candidate-info .candidate-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.05;
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
}

/*  LEFT SECTION — Yellow
       (erscheint in DOM als erstes = links auf Desktop, unten auf Mobil) */
.section-left {
    background-color: var(--yellow);
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 3rem 2rem 3rem;
    /* overflow: hidden; */
    overflow: unset;
}

/* Desktop-Navigation */
.site-nav {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-shrink: 0;
    justify-content: flex-end;
}

.site-nav a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.site-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-nav a:focus-visible {
    outline: 3px solid var(--magenta);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Haupt-Headline */
.hero-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: normal;
    font-size: clamp(3.5rem, 7.3vw, 7.3rem);
    line-height: .97;
    color: var(--magenta);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

/* normal h1 */
.normal-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: normal;
    font-size: 2rem;
    line-height: .97;
    color: var(--magenta);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

/* Sub-Headline */
.sub-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 3rem);
    line-height: .97;
    letter-spacing: -0.02em;
    color: var(--magenta);
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.signature {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 2rem);
    line-height: .97;
    letter-spacing: -0.02em;
    color: var(--magenta);
    flex-shrink: 0;
}

/* Domain-Block */
.domain-block {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-top: auto;
}

.domain-block img {
    width: 80px;
}

.domain-block .warning-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
}

.domain-info .domain-url {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: normal;
    font-size: clamp(1.1rem, 3vw, 3rem);
    color: var(--black);
    text-decoration: none;
    display: block;
    margin-bottom: 0.2rem;
    white-space: nowrap;
}

@media screen and (max-width: 1450px) {
    .domain-info .domain-url {
        font-size: clamp(1.1rem, 2vw, 2rem);
    }
}

.domain-info .domain-url:hover {
    text-decoration: underline;
}

.domain-info .domain-url:focus-visible {
    outline: 3px solid var(--magenta);
    outline-offset: 3px;
}

.domain-info p {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 1rem;
    color: var(--black);
    line-height: 1.35;
}

/* Social Links (Desktop) */
.social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    flex-shrink: 0;
}

.social-text {
    font-size: 1.2rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1.1rem;
    list-style: none;
    margin-top: 1.5rem;
}

.social-links li a {
    display: inline-flex;
    color: var(--black);
    text-decoration: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.social-links li a:hover {
    transform: scale(1.12);
    opacity: 0.8;
}

.social-links li a:focus-visible {
    outline: 3px solid var(--magenta);
    outline-offset: 4px;
    border-radius: 4px;
}

.social-links li a svg {
    width: 2.3rem;
    height: 2.3rem;
}

/* Footer Homepage */
.footer-homepage {}

.footer-homepage a {
    text-decoration: none;
    color: var(--black);
    font-size: 0.9rem;
}

footer.footer-copyright {
    max-width: 1200px;
    width: 100%;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

footer.footer-copyright a {
    text-decoration: none;
    color: var(--black);
}

@media (max-width: 1200px) {
    footer.footer-copyright {
        max-width: 750px;
        padding-top: 3.5rem;
    }
}


/* Mobile Overlay-Menü */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--magenta);
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 500;
}

.mobile-menu.is-open {
    display: flex;
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.mobile-menu a {
    color: var(--yellow);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.mobile-menu a:hover {
    text-decoration: underline;
}

.mobile-menu a:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .section-right {
        flex: 0 0 40%;
    }
}

/* RESPONSIVE — Mobil (≤ 768 px) */
@media (max-width: 768px) {

    .page-wrapper {
        flex-direction: column;
        /* Grau oben, Gelb unten */
        /* height: 100dvh; */
        /* dynamic viewport height — kein Scrollbalken */
    }

    /* Graue Sektion: größere Fläche oben (62 % der Bildschirmhöhe) */
    .section-right {
        order: -1;
        /* stellt sicher: oben im Stack */
        /* flex: 0 0 50%; */
        width: 100%;
        padding: 0 1.5rem 1.5rem;
        /* overflow: unset; */
        /* kein top-padding — Logo & Burger sind absolut */
    }

    .section-right>a {
        position: absolute;
        bottom: .5rem;
        right: .5rem;
    }

    /* Logo oben links auf Mobil */
    .logo-area {
        /* top: .5rem;
        left: .5rem;
        right: auto; */
    }

    .logo-container {
        min-width: 7rem;
        min-height: 3rem;
        padding: 0.4rem 0.8rem;
    }

    .logo-container img {
        width: 330px;
        max-width: 100%;
        height: auto;
    }

    /* Hamburger einblenden, oben rechts */
    .hamburger-btn {
        display: flex;
        top: 1.25rem;
        right: 1.25rem;
    }

    .candidate-info .candidate-name,
    .candidate-info .candidate-title {
        font-size: clamp(1.4rem, 5.5vw, 2.2rem);
    }

    /* Gelbe Sektion: kleinere Fläche unten (restliche ~38 %) */
    .section-left {
        flex: 1 1 0%;
        width: 100%;
        padding: 1.5rem 1.5rem 2rem;
        /* overflow: unset; */
    }

    /* Desktop-Nav & Social ausblenden */
    .site-nav {
        display: none;
    }

    .social-section {
        display: none;
    }

    .hero-headline {
        font-size: clamp(2.7rem, 4vw, 4rem);
        margin-bottom: 0.75rem;
    }

    .sub-headline {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin-bottom: 0.75rem;
    }

    .domain-block {
        margin-top: auto;
    }

    .domain-block img {
        width: 60px;
    }
}

@media (max-width: 1200px) {
    .domain-block {
        flex-direction: column;
        align-items: center;
    }

    .domain-info {
        text-align: center;
    }
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    /* overflow: hidden; */
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
