/*
 * andre-jagusch.de
 * Dezent angelehnt an das CDU-Design der Kreis- und Ortsverbandsseiten (Tuerkis, Navy, Gold, Inter, IBM Plex Serif).
 * Farben nur ueber Variablen verwenden.
 */

/* ---------- Schriften (selbst gehostet, Lizenzen im jeweiligen Ordner) ---------- */

@font-face { font-family: "IBM Plex Serif"; src: url("../schriften/ibm-plex-serif/IBMPlexSerif-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("../schriften/ibm-plex-serif/IBMPlexSerif-Italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("../schriften/ibm-plex-serif/IBMPlexSerif-Bold.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../schriften/inter/inter-latin-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../schriften/inter/inter-latin-ext-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../schriften/inter/inter-latin-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../schriften/inter/inter-latin-ext-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../schriften/inter/inter-latin-800-normal.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../schriften/inter/inter-latin-ext-800-normal.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Farben und Masse ---------- */

:root {
    /* Grundwerte aus dem CDU-Theme */
    --tuerkis: #52b7c1;
    --navy: #2d3c4b;
    --gold: #ffa600;

    /* Rollen (hell) */
    --flaeche: #ffffff;
    --flaeche-sanft: #edf8f9;
    --tinte: #202d38;
    --gedaempft: #536371;
    --linie: #d9e2e5;
    --link: #17616b;
    --link-hover: #0f444b;
    --akzent: var(--tuerkis);
    --namensblock: var(--navy);
    --namensblock-text: #ffffff;
    --knopf: var(--navy);
    --knopf-text: #ffffff;
    --knopf-hover: #17616b;
    --fuss: var(--navy);
    --fuss-text: #e8eef1;
    --fuss-gedaempft: #b9c6cf;
    --fokus: #17616b;

    --schrift-text: "IBM Plex Serif", Georgia, serif;
    --schrift-ui: "Inter", Arial, Helvetica, sans-serif;
    --breite: 960px;
    --rand: clamp(16px, 5vw, 40px);

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --flaeche: #141d25;
        --flaeche-sanft: #1c2a35;
        --tinte: #e6edf1;
        --gedaempft: #a9b7c1;
        --linie: #2e3e4b;
        --link: #7fd0d8;
        --link-hover: #b5e6eb;
        --akzent: var(--tuerkis);
        --namensblock: var(--tuerkis);
        --namensblock-text: #0e161c;
        --knopf: var(--tuerkis);
        --knopf-text: #0e161c;
        --knopf-hover: #8fd6dd;
        --fuss: #0d141a;
        --fuss-text: #e6edf1;
        --fuss-gedaempft: #9aabb7;
        --fokus: #7fd0d8;
    }
}

/* ---------- Grundlagen ---------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--flaeche);
    color: var(--tinte);
    font-family: var(--schrift-text);
    font-size: 1.0625rem;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

main { flex: 1; }

h1, h2, h3 {
    font-family: var(--schrift-ui);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--fokus); outline-offset: 4px; }

.symbol { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }

.breite {
    width: min(var(--breite), 100% - 2 * var(--rand));
    margin-inline: auto;
}

.sprungmarke {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 10;
    padding: 10px 16px;
    background: var(--knopf);
    color: var(--knopf-text);
    font-family: var(--schrift-ui);
    font-weight: 700;
}
.sprungmarke:focus { top: 16px; }

/* ---------- Kopf der Unterseiten ---------- */

.kopf {
    border-top: 6px solid var(--akzent);
    border-bottom: 1px solid var(--linie);
    padding: 18px 0;
}
.kopf-name {
    display: inline-block;
    padding: 4px 10px;
    background: var(--namensblock);
    color: var(--namensblock-text);
    font-family: var(--schrift-ui);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.kopf-name:hover { color: var(--namensblock-text); }

/* ---------- Einstieg ---------- */

.einstieg {
    position: relative;
    background: var(--flaeche-sanft);
    border-top: 6px solid var(--akzent);
    padding-top: clamp(40px, 8vw, 88px);
    margin-bottom: clamp(24px, 5vw, 48px);
    overflow: hidden;
}

/* Dezentes Zitat des tuerkisen CDU-Kopfbereichs: schraeger Streifen am rechten Rand */
.einstieg::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 38%;
    background: var(--akzent);
    opacity: 0.12;
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.einstieg-raster {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(8px, 4vw, 56px);
    align-items: end;
}

/* Handy: erst Text, darunter das Bild an der Unterkante */
.einstieg-bild { order: 2; }

@media (min-width: 720px) {
    .einstieg-raster { grid-template-columns: minmax(260px, 380px) 1fr; }
    .einstieg-bild { order: 0; }
    .einstieg-text { align-self: center; }
}

.einstieg-text { padding-bottom: clamp(8px, 3vw, 72px); }

/* Freigestellte Person steht an der Unterkante vor einem tuerkisen Block, der Kopf ragt darueber hinaus */
.einstieg-bild {
    position: relative;
    width: min(300px, 64vw);
}
.einstieg-bild::before {
    content: "";
    position: absolute;
    inset: 32% 4% 0;
    background: var(--akzent);
}
@media (min-width: 720px) {
    .einstieg-bild { width: 100%; }
}

.einstieg-bild img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
}

/* Ersatz ohne Foto */
.einstieg-bild--monogramm { aspect-ratio: 4 / 5; margin-bottom: clamp(40px, 7vw, 72px); }
.einstieg-bild--monogramm::before { inset: 16px -16px -16px 16px; }

.monogramm {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--navy);
    color: #ffffff;
    font-family: var(--schrift-ui);
    font-weight: 800;
    font-size: clamp(4rem, 12vw, 6.5rem);
    letter-spacing: -0.04em;
}

.einstieg-name {
    font-size: clamp(2.25rem, 7vw, 3.75rem);
    margin-bottom: 0.35em;
}
.einstieg-name span {
    background: var(--namensblock);
    color: var(--namensblock-text);
    padding: 0.04em 0.22em 0.08em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    line-height: 1.3;
}

.einstieg-untertitel {
    display: inline-block;
    font-family: var(--schrift-ui);
    font-weight: 700;
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
    line-height: 1.35;
    padding-bottom: 6px;
    margin-bottom: 1.1em;
    border-bottom: 4px solid var(--gold);
}

.einstieg-absatz {
    font-size: clamp(1.0625rem, 2.2vw, 1.2rem);
    max-width: 38em;
}
.einstieg-absatz:last-child { margin-bottom: 0; }

/* ---------- Abschnitte ---------- */

.abschnitt {
    padding-block: clamp(28px, 5vw, 48px);
}
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }

.abschnitt h2 {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    margin-bottom: 0.9em;
}
.abschnitt h2::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    margin-bottom: 14px;
    background: var(--akzent);
}

/* ---------- Projektkarten ---------- */

.karten {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}
@media (min-width: 640px) {
    .karten { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

.karte {
    display: flex;
    flex-direction: column;
    padding: 24px 28px 28px;
    background: var(--flaeche-sanft);
    border-left: 4px solid var(--akzent);
}
.karte h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
.karte p { flex: 1; }

.knopf {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    min-height: 44px;
    padding: 10px 18px;
    background: var(--knopf);
    color: var(--knopf-text);
    font-family: var(--schrift-ui);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.15s ease;
}
.knopf .symbol { transition: transform 0.15s ease; }
.knopf:hover { background: var(--knopf-hover); color: var(--knopf-text); }
.knopf:hover .symbol { transform: translateX(3px); }

/* ---------- Politik ---------- */

.aemter {
    list-style: none;
    margin: 0;
    padding: 0;
}
.aemter li {
    display: grid;
    gap: 2px 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--linie);
}
.aemter li:first-child { border-top: 1px solid var(--linie); }
@media (min-width: 640px) {
    .aemter li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: baseline; }
}
.amt-bezeichnung {
    font-family: var(--schrift-ui);
    font-weight: 700;
}
.amt-organisation { color: var(--gedaempft); }
a.amt-organisation { color: var(--link); }

/* ---------- Kontakt ---------- */

.kontakt { font-family: var(--schrift-ui); font-weight: 700; font-size: clamp(1.1rem, 3vw, 1.4rem); }
.kontakt a { display: inline-flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.kontakt .symbol { width: 1.2em; height: 1.2em; }

/* ---------- Textseiten (Impressum, Datenschutz, Fehler) ---------- */

.textseite {
    max-width: 44rem;
    margin-inline: max(var(--rand), (100% - var(--breite)) / 2);
    padding-block: clamp(32px, 6vw, 64px);
}
.textseite h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
.textseite h2 { font-size: 1.35rem; margin-top: 1.6em; }
.textseite address { font-style: normal; margin: 0 0 1em; }
.textseite .stand { margin-top: 2em; color: var(--gedaempft); font-family: var(--schrift-ui); font-size: 0.9rem; }

/* ---------- Fuss ---------- */

.fuss {
    margin-top: clamp(32px, 6vw, 64px);
    background: var(--fuss);
    color: var(--fuss-text);
    border-top: 6px solid var(--akzent);
    padding: 36px 0 40px;
    font-family: var(--schrift-ui);
    font-size: 0.95rem;
}
.fuss a { color: var(--fuss-text); }

.fuss-raster {
    display: grid;
    gap: 20px;
    align-items: center;
}
@media (min-width: 720px) {
    .fuss-raster { grid-template-columns: auto 1fr auto; }
}

.fuss-name { margin: 0; font-weight: 800; letter-spacing: -0.02em; }

.profile {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.profile a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--fuss-gedaempft);
    font-weight: 700;
    text-decoration: none;
}
.profile a:hover { border-color: var(--tuerkis); color: var(--fuss-text); background: rgb(82 183 193 / 0.15); }

.fuss-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fuss-links a { color: var(--fuss-gedaempft); }
.fuss-links a:hover { color: var(--fuss-text); }
.fuss :focus-visible { outline-color: var(--tuerkis); }

/* ---------- Bewegung und Druck ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    body { background: #fff; color: #000; font-size: 11pt; }
    .sprungmarke, .knopf .symbol, .einstieg::after, .einstieg-bild, .profile .symbol { display: none; }
    .einstieg, .karte, .fuss { background: none; border: 0; color: #000; padding: 0; margin: 0 0 12pt; }
    .einstieg-name span { background: none; color: #000; padding: 0; }
    .knopf { background: none; color: #000; padding: 0; min-height: 0; }
    .knopf::after, .profile a::after { content: " (" attr(href) ")"; font-weight: 400; }
    .fuss a, .fuss-links a { color: #000; }
    .profile a { border: 0; padding: 0; min-height: 0; }
}
