/* ==========================================================================
   C2S IT Solutions - Stylesheet
   Markenfarbe #0b6cf7 · eckiges Design (keine Rundungen)
   Hell/Dunkel: Standard folgt immer der Browsereinstellung.
   ========================================================================== */

/* ============================ FARBEN: HELL ============================ */
:root {
    --brand: #0b6cf7;
    --brand-hover: #0552c4;
    --brand-accent: #0b6cf7;
    --brand-soft: #eaf1ff;

    --ink: #0b1220;
    --ink-soft: #1c2735;
    --body: #47556b;
    --muted: #6b7a90;

    --bg: #ffffff;
    --bg-alt: #f6f8fb;
    --surface: #ffffff;
    --surface-2: #fbfcfe;
    --line: #e3e8f0;
    --line-strong: #cfdcf2;

    --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 1px 3px rgba(11, 18, 32, .04);
    --shadow: 0 4px 12px rgba(11, 18, 32, .06), 0 12px 28px rgba(11, 18, 32, .05);
    --shadow-lg: 0 18px 48px rgba(11, 18, 32, .12);

    --hero-1: #071322;
    --hero-2: #0a1524;
    --hero-3: #102a4c;

    --ok-bg: #e9f9f0;  --ok-line: #b6e8cd;  --ok-ink: #17693f;
    --err-bg: #fdf0ef; --err-line: #f5c6c2; --err-ink: #9a2b21;
    --info-bg: #eaf1ff; --info-line: #c6dbff; --info-ink: #0552c4;

    --wrap: 1140px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

/* ============================ FARBEN: DUNKEL ============================ */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand: #4d94ff;
        --brand-hover: #7fb3ff;
        --brand-accent: #4d94ff;
        --brand-soft: rgba(77, 148, 255, .14);

        --ink: #eef4fb;
        --ink-soft: #dae4f0;
        --body: #a7b7cb;
        --muted: #7d8ea5;

        --bg: #08121f;
        --bg-alt: #0c1929;
        --surface: #0f1f34;
        --surface-2: #0b1728;
        --line: #1e3049;
        --line-strong: #2b4262;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow: 0 4px 14px rgba(0, 0, 0, .45);
        --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);

        --hero-1: #060f1c;
        --hero-2: #08121f;
        --hero-3: #0e2540;

        --ok-bg: #10291e;  --ok-line: #245c3f;  --ok-ink: #9ae0b8;
        --err-bg: #2c1715; --err-line: #6b322c; --err-ink: #f5b3ad;
        --info-bg: #12243d; --info-line: #2b4d7d; --info-ink: #a8c9f5;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --brand: #4d94ff;
    --brand-hover: #7fb3ff;
    --brand-accent: #4d94ff;
    --brand-soft: rgba(77, 148, 255, .14);

    --ink: #eef4fb;
    --ink-soft: #dae4f0;
    --body: #a7b7cb;
    --muted: #7d8ea5;

    --bg: #08121f;
    --bg-alt: #0c1929;
    --surface: #0f1f34;
    --surface-2: #0b1728;
    --line: #1e3049;
    --line-strong: #2b4262;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 4px 14px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);

    --hero-1: #060f1c;
    --hero-2: #08121f;
    --hero-3: #0e2540;

    --ok-bg: #10291e;  --ok-line: #245c3f;  --ok-ink: #9ae0b8;
    --err-bg: #2c1715; --err-line: #6b322c; --err-ink: #f5b3ad;
    --info-bg: #12243d; --info-line: #2b4d7d; --info-ink: #a8c9f5;
    color-scheme: dark;
}

/* ---------- Logo- und Symbol-Austausch je Farbschema ----------
   Aufbau bewusst in dieser Reihenfolge, damit jede Stufe die vorherige
   sicher ueberschreibt:
     1. Grundzustand = hell
     2. hell erzwungen  (data-theme="light")
     3. dunkel erzwungen (data-theme="dark")
     4. System dunkel    (prefers-color-scheme), sofern nichts erzwungen ist
   ------------------------------------------------------------------- */

/* 1. Grundzustand: hell */
.only-theme-light, .ico-on-light { display: block !important; }
.only-theme-dark,  .ico-on-dark  { display: none  !important; }

/* 2. hell erzwungen */
:root[data-theme="light"] .only-theme-light,
:root[data-theme="light"] .ico-on-light { display: block !important; }
:root[data-theme="light"] .only-theme-dark,
:root[data-theme="light"] .ico-on-dark  { display: none  !important; }

/* 3. dunkel erzwungen */
:root[data-theme="dark"] .only-theme-light,
:root[data-theme="dark"] .ico-on-light { display: none  !important; }
:root[data-theme="dark"] .only-theme-dark,
:root[data-theme="dark"] .ico-on-dark  { display: block !important; }

/* 4. Systemeinstellung dunkel, nichts erzwungen */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .only-theme-light,
    :root:not([data-theme="light"]) .ico-on-light { display: none  !important; }
    :root:not([data-theme="light"]) .only-theme-dark,
    :root:not([data-theme="light"]) .ico-on-dark  { display: block !important; }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .2s, color .2s;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 .5em;
    letter-spacing: -.02em;
    font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.16rem; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--brand); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 0; color: #fff; }

/* ============================ HEADER ============================ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .site-header { background: var(--bg); }
}
.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 1px 20px rgba(11, 18, 32, .06);
}

.nav { display: flex; align-items: center; gap: 14px; height: 76px; }
.brand { display: flex; align-items: center; margin-right: auto; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.nav-links {
    display: flex; align-items: center; gap: 2px;
    list-style: none; margin: 0; padding: 0;
}
.nav-links a {
    display: block; padding: 9px 12px;
    color: var(--ink-soft); font-size: .93rem; font-weight: 500;
    transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-hover); }

/* ---------- Theme-Umschalter ---------- */
/* ---------- Menue-Schaltflaeche (nur mobil) ---------- */
.nav-toggle {
    display: none;
    width: 44px; height: 44px; flex-shrink: 0;
    align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
    cursor: pointer; font-family: inherit;
    transition: border-color .18s, color .18s, background .18s;
}
.nav-toggle:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.nav-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.theme-toggle {
    width: 40px; height: 40px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
    cursor: pointer; font-family: inherit;
    transition: border-color .18s, color .18s, background .18s;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.theme-toggle svg { width: 19px; height: 19px; }

/* ============================ BUTTONS (eckig) ============================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 24px; border-radius: 0;
    font-size: .96rem; font-weight: 600; font-family: inherit;
    border: 1px solid transparent; cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, transform .1s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.btn-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-light:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: #fff; }

.btn-sm { padding: 10px 17px; font-size: .89rem; }

/* ============================ HERO ============================ */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 45%, var(--hero-3) 100%);
    color: rgba(255, 255, 255, .78);
    padding: clamp(58px, 9vw, 104px) 0 clamp(64px, 9vw, 108px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(ellipse 78% 62% at 68% 22%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 78% 62% at 68% 22%, #000 20%, transparent 78%);
    pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; z-index: 0;
    width: 620px; height: 620px; right: -190px; top: -230px;
    background: radial-gradient(circle, rgba(11, 108, 247, .34) 0%, rgba(11, 108, 247, 0) 66%);
    pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
    display: grid; grid-template-columns: 1.15fr .85fr;
    gap: clamp(28px, 5vw, 60px); align-items: center;
}
.hero h1 { color: #fff; margin-bottom: .55em; }
.hero h1 .hl {
    background: linear-gradient(120deg, #4d94ff, #9cc4ff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
    font-size: clamp(1.02rem, 1.7vw, 1.15rem);
    max-width: 60ch; margin-bottom: 32px; color: rgba(255, 255, 255, .74);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero-logo-card {
    display: flex; align-items: center; justify-content: center;
    padding: 40px 34px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
}
.hero-logo-card img { width: 100%; max-width: 320px; }

/* ============================ SECTIONS ============================ */
.section { padding: clamp(58px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
    background: linear-gradient(165deg, var(--hero-1) 0%, var(--hero-2) 100%);
    border-top: 1px solid rgba(255, 255, 255, .07);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, .68); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
    display: block; font-size: .79rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--brand); margin-bottom: 11px;
}
.section-head p { font-size: 1.05rem; }

/* ============================ CARDS ============================ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, border-color .2s, transform .2s, background-color .2s;
    height: 100%;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}
.card h3 { margin-bottom: .55em; }
.card > p { font-size: .95rem; }

.icon-box {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand);
    margin-bottom: 18px; flex-shrink: 0;
}
.icon-box svg { width: 23px; height: 23px; }

.ticks { list-style: none; margin: 16px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 22px; font-size: .91rem; margin-bottom: 9px; color: var(--body); }
.ticks li::before {
    content: ""; position: absolute; left: 2px; top: .55em;
    width: 7px; height: 2px; background: var(--brand);
}
.ticks li:last-child { margin-bottom: 0; }

/* ============================ STEPS ============================ */
.steps { position: relative; }
.step { position: relative; padding-left: 66px; }
.step-num {
    position: absolute; left: 0; top: 2px;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff;
    font-weight: 700; font-size: 1rem;
}

.note-box {
    margin-top: 38px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    padding: 22px 26px;
    box-shadow: var(--shadow-sm);
}
.note-box strong { color: var(--ink); }

/* ============================ ÜBER MICH ============================ */
.about-grid {
    display: grid; grid-template-columns: 340px 1fr;
    gap: clamp(26px, 4vw, 52px); align-items: start;
}
.about-photo {
    background: var(--surface-2);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.about-photo img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
}
.about-text h3 { font-size: 1.35rem; margin-bottom: .25em; }
.about-text .role {
    color: var(--brand); font-weight: 600; font-size: .95rem;
    margin-bottom: 1.4em;
}
.about-text p { font-size: 1.02rem; }

/* Faktenreihe: volle Breite, vier Spalten, feine Trennlinien */
.about-facts {
    display: grid; grid-template-columns: repeat(4, 1fr);
    list-style: none; margin: 46px 0 0; padding: 0;
    border-top: 1px solid var(--line);
}
.about-facts li {
    padding: 20px 24px 0 24px;
    border-left: 1px solid var(--line);
}
.about-facts li:first-child { padding-left: 0; border-left: 0; }
.about-facts .k {
    display: block; margin-bottom: 6px;
    color: var(--muted); font-weight: 600; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .06em;
}
.about-facts .v { display: block; font-size: .95rem; color: var(--ink); line-height: 1.5; }

/* ============================ KONTAKT ============================ */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: clamp(26px, 4.5vw, 48px); align-items: start;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 11px; }
.contact-list a {
    display: flex; align-items: center; gap: 14px;
    padding: 15px 18px;
    background: var(--surface); border: 1px solid var(--line);
    color: var(--ink); font-weight: 500;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.contact-list a:hover {
    border-color: var(--brand); transform: translateX(3px);
    box-shadow: var(--shadow-sm); color: var(--ink);
}
.contact-list .ico {
    width: 38px; height: 38px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand);
}
.contact-list .ico svg { width: 19px; height: 19px; }
.contact-list .lbl {
    display: block; font-size: .74rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.contact-list .val { font-size: .95rem; font-weight: 600; color: var(--ink); }

/* ============================ FORMULAR ============================ */
.form-card {
    background: var(--surface); border: 1px solid var(--line);
    padding: 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label {
    display: block; font-size: .86rem; font-weight: 600;
    color: var(--ink-soft); margin-bottom: 7px;
}
.field .req { color: var(--brand); }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; border-radius: 0;
    font-family: inherit; font-size: .95rem; color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--line);
    transition: border-color .16s, box-shadow .16s, background .16s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; background: var(--surface);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { resize: vertical; min-height: 126px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-consent {
    display: flex; gap: 11px; align-items: flex-start;
    font-size: .85rem; color: var(--muted); margin-bottom: 20px;
}
.form-consent input { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; accent-color: var(--brand); }
.form-consent a { text-decoration: underline; }

.form-status { display: none; margin-top: 16px; padding: 13px 16px; font-size: .9rem; }
.form-status.is-ok   { display: block; background: var(--ok-bg);   border: 1px solid var(--ok-line);   color: var(--ok-ink); }
.form-status.is-err  { display: block; background: var(--err-bg);  border: 1px solid var(--err-line);  color: var(--err-ink); }
.form-status.is-info { display: block; background: var(--info-bg); border: 1px solid var(--info-line); color: var(--info-ink); }

/* ============================ FOOTER ============================ */
.site-footer {
    background: #071322; color: rgba(255, 255, 255, .58);
    padding: 56px 0 30px; font-size: .91rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
}
.footer-top {
    display: flex; flex-wrap: wrap; gap: 30px;
    justify-content: space-between; align-items: flex-start;
    padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .58); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 54px; }
.footer-col h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255, 255, 255, .58); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
    padding-top: 24px; font-size: .85rem; color: rgba(255, 255, 255, .42);
}
.footer-bottom a { color: rgba(255, 255, 255, .58); }
.footer-bottom a:hover { color: #fff; }

/* ============================ RECHTS-SEITEN ============================ */
.page-hero {
    background: linear-gradient(160deg, var(--hero-1) 0%, var(--hero-3) 130%);
    color: rgba(255, 255, 255, .72);
    padding: 54px 0 48px;
}
.page-hero h1 { color: #fff; margin-bottom: .2em; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.page-hero p { margin: 0; color: rgba(255, 255, 255, .62); }
.prose { max-width: 800px; }
.prose h2 {
    font-size: 1.26rem; margin-top: 2.1em; margin-bottom: .6em;
    padding-top: 1.1em; border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.02rem; margin-top: 1.6em; }
.prose ul { padding-left: 20px; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5em; }
.prose address { font-style: normal; line-height: 1.8; }
/* ============================ 404 ============================ */
.err-code {
    font-size: clamp(4.5rem, 16vw, 9rem); font-weight: 800; line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(120deg, var(--brand), #6fa8ff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: .1em;
}

/* ============================ REVEAL ============================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ============================ INTERAKTIVE SHELL ============================ */
.terminal-wrap { margin-top: clamp(30px, 4vw, 46px); }

.terminal {
    background: linear-gradient(180deg, #0e141c 0%, #0a1017 100%);
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 22px 48px rgba(6, 12, 20, .3);
    overflow: hidden;
    color: #c7d2de;
    font-family: var(--mono);
    font-size: .9rem;
    line-height: 1.65;
}
:root[data-theme="dark"] .terminal,
html[data-theme="dark"] .terminal { box-shadow: 0 22px 48px rgba(0, 0, 0, .6); }

.terminal-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 10px 18px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
}
.terminal-title {
    display: flex; align-items: center; gap: 9px;
    color: #f2f6fb; font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
}
.terminal-title::before {
    content: ""; width: 9px; height: 9px; border-radius: 50%;
    background: #35d07f; box-shadow: 0 0 0 3px rgba(53, 208, 127, .18);
    flex: 0 0 auto;
}
.terminal-hint {
    color: #8698aa; font-size: .79rem; line-height: 1.6;
    max-width: 60ch;
}
.terminal-hint code {
    font-family: inherit; color: #9cc4ff;
    background: rgba(77, 148, 255, .12);
    padding: 1px 6px;
}

.terminal-body { padding: 16px 18px 18px; }

.terminal-output {
    /* feste Hoehe: die Ausgabe des Intros darf das Layout nicht verschieben */
    height: 320px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: #2b3a4d transparent;
}
.terminal-output::-webkit-scrollbar { width: 8px; }
.terminal-output::-webkit-scrollbar-thumb { background: #2b3a4d; }

.terminal-entry { display: grid; gap: 6px; margin-bottom: 12px; }
.terminal-line {
    display: flex; align-items: flex-start; gap: 3px;
    min-width: 0; flex-wrap: wrap;
}
.terminal-prompt {
    display: inline-flex; align-items: center; flex-wrap: wrap;
    flex: 0 0 auto; margin-right: 7px;
}
.prompt-user   { color: #4d94ff; }
.prompt-at     { color: #8698aa; }
.prompt-path   { color: #9cc4ff; }
.prompt-colon  { color: #8698aa; }
.prompt-dollar { color: #8698aa; }

.terminal-output-block {
    margin-left: 0; padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, .09);
    color: #aab9c8; white-space: pre-wrap; overflow-wrap: anywhere;
    font-size: .86rem; line-height: 1.65;
}
.terminal-output-block.is-accent  { color: #8fd3a8; }
.terminal-output-block.is-strong  { color: #ffffff; }
.terminal-output-block.is-success { color: #8fd3ff; }
.terminal-output-block.is-muted   { color: #8698aa; }

.terminal-input-line {
    display: flex; align-items: center; gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
    margin-top: 14px; padding-top: 13px; cursor: text;
}
.terminal-input-wrap { flex: 1 1 220px; min-width: 0; }
.terminal-input {
    width: 100%; min-width: 0;
    background: transparent; border: none; outline: none;
    color: #f2f6fb; padding: 0; font: inherit; caret-color: #4d94ff;
}
.terminal-input::placeholder { color: #5d7287; opacity: 1; }
.terminal-input:focus { box-shadow: none; }

.terminal-cursor {
    display: inline-block; width: .56em; height: 1.05em;
    background: #4d94ff; animation: term-blink 1s step-end infinite;
    vertical-align: text-bottom;
}
@keyframes term-blink { 50% { opacity: 0; } }

.terminal.is-booting .terminal-input-line { opacity: .5; }
.terminal.is-booting .terminal-input { pointer-events: none; caret-color: transparent; }

@media (max-width: 660px) {
    .terminal { font-size: .82rem; }
    .terminal-header { padding: 12px 14px; }
    .terminal-hint { font-size: .75rem; }
    .terminal-body { padding: 13px 14px 15px; }
    .terminal-output { height: 260px; }
    .terminal-output-block { font-size: .79rem; }
}
@media (prefers-reduced-motion: reduce) {
    .terminal-cursor { animation: none; }
}

/* ============================ STACK-AUFLISTUNG ============================ */
.stack-list { border-top: 1px solid rgba(255, 255, 255, .12); }
.stack-row {
    display: grid; grid-template-columns: 260px 1fr; gap: 12px 30px;
    padding: 19px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.stack-cat {
    color: #fff; font-weight: 600; font-size: .93rem;
    letter-spacing: -.01em;
}
.stack-cat span {
    display: block; margin-top: 3px;
    font-size: .76rem; font-weight: 400; letter-spacing: .04em;
    text-transform: uppercase; color: #6fa8ff;
}
.stack-items {
    display: flex; flex-wrap: wrap; gap: 4px 0;
    list-style: none; margin: 0; padding: 0;
}
.stack-items li {
    font-size: .93rem;
    color: rgba(255, 255, 255, .74);
    padding: 0 14px 0 0;
    margin-right: 14px;
    position: relative;
}
.stack-items li + li::before {
    content: "·"; position: absolute; left: -11px;
    color: rgba(255, 255, 255, .3);
}
@media (max-width: 760px) {
    .stack-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
    /* Zweispaltiges Raster statt Trennpunkten: beim Umbruch landeten die
       Punkte sonst am Zeilenanfang ("· Docker Compose"). */
    .stack-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 16px; }
    .stack-items li { font-size: .89rem; padding: 0; margin-right: 0; }
    .stack-items li + li::before { display: none; }
}

/* ============================ RESPONSIVE ============================ */

/* --- Tablets quer / kleine Notebooks --- */
@media (max-width: 1080px) {
    .nav-links a { padding: 9px 9px; font-size: .9rem; }
}

/* --- Tablets hochkant --- */
@media (max-width: 980px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-logo-card { padding: 30px; }
    .hero-logo-card img { max-width: 240px; }
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { gap: 40px; }

    /* Ueber mich: Foto kleiner, Fakten zweispaltig */
    .about-grid { gap: 30px; }
    .about-photo { max-width: 300px; }
    .about-facts { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
    .about-facts li { padding: 18px 22px 0 22px; }
    .about-facts li:nth-child(odd)  { padding-left: 0; border-left: 0; }
    .about-facts li:nth-child(n+3)  { padding-top: 22px; }
}

/* --- Mobiles Menue einblenden --- */
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }

    .nav-links {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 36px rgba(11, 18, 32, .14);
        padding: 4px 0 8px;
        margin: 0; z-index: 99;
    }
    .nav-links.is-open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        padding: 15px 24px; font-size: 1rem; font-weight: 500;
        border-bottom: 1px solid var(--line);
    }
    .nav-links li:last-child a { border-bottom: 0; }
}

/* --- Touch-Geraete: iOS/Safari zoomt beim Fokussieren von Feldern
       unter 16px automatisch in die Seite hinein. Gilt auch fuer iPads. --- */
@media (max-width: 1024px) {
    .field input, .field textarea, .field select,
    .terminal-input { font-size: 16px; }
    .terminal-input { line-height: 1.4; }
}

/* --- Touch-Geraete unabhaengig von der Breite: iPad Pro quer hat 1366px
       und zoomt in Safari trotzdem. Erkennung ueber das Eingabegeraet. --- */
@media (hover: none) and (pointer: coarse) {
    .field input, .field textarea, .field select,
    .terminal-input { font-size: 16px; }
}

/* --- Smartphones --- */
@media (max-width: 660px) {
    body { font-size: 16px; }
    .nav { height: 66px; gap: 8px; }
    .brand img { height: 36px; }
    .theme-toggle, .nav-toggle { width: 44px; height: 44px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .step { padding-left: 56px; }
    .step-num { width: 38px; height: 38px; }
    .card, .form-card { padding: 22px 20px; }
    .hero-cta { gap: 10px; }
    .hero-cta .btn { flex: 1 1 100%; }
    .footer-top { flex-direction: column; }

    /* Header-Button ausblenden: auf schmalen Geraeten fehlt der Platz.
       Der Kontakt-Link ist im Menue und als Hero-Button erreichbar. */
    .nav .btn-sm { display: none; }

    /* Ueber mich: Foto zentriert, Fakten einspaltig */
    /* width noetig: durch margin:auto streckt das Grid das Element nicht,
       sonst loest width:100% am Bild gegen 0 auf und das Foto verschwindet */
    .about-photo { width: 100%; max-width: 240px; margin: 0 auto; }
    .about-text h3 { font-size: 1.2rem; }
    .about-facts { grid-template-columns: 1fr; margin-top: 30px; }
    .about-facts li {
        padding: 16px 0 0 0; border-left: 0;
        border-top: 1px solid var(--line);
    }
    .about-facts li:first-child { border-top: 0; padding-top: 0; }
    .about-facts li:nth-child(n+3) { padding-top: 16px; }

    .hero-badges, .hero-badges li { font-size: .82rem; }
}

/* --- Sehr kleine Geraete (iPhone SE, aeltere Androids) --- */
@media (max-width: 400px) {
    .wrap { padding: 0 16px; }
    .nav-links a { padding: 14px 18px; }
    .brand img { height: 32px; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    .terminal { font-size: .78rem; }
    .terminal-header { padding: 11px 13px; }
    .terminal-hint { font-size: .73rem; }
    .terminal-body { padding: 12px 13px 14px; }
    .terminal-output { height: 220px; }
    .stack-items li { font-size: .86rem; }
    .about-photo { max-width: 200px; }
}

@media print {
    .site-header, .hero-cta, .site-footer, .form-card, .theme-toggle, .nav-toggle { display: none; }
    body { color: #000; background: #fff; }
}
