/* ==========================================================
   gxnet Tech – Stylesheet
   Ruhig, redaktionell, barrierefrei (WCAG 2.2 AA)
   Linien statt Karten, eine Schrift, Farbe nur als Akzent.
   ========================================================== */

/* ---------- 1. Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../Fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 300;
    font-display: block;
    src: url('../Fonts/material-symbols-outlined-v375-latin-regular.woff2') format('woff2'),
         url('../Fonts/material-symbols-outlined.woff2') format('woff2'),
         url('../Fonts/material-symbols-outlined-v332-latin-regular.woff2') format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.35rem;
    line-height: 1;
    display: inline-block;
    width: 1em;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: normal;
    text-transform: none;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

/* ---------- 2. Farben ----------
   Alle Textfarben erreichen mind. 4,5:1 Kontrast auf ihrem Hintergrund. */
:root {
    --bg:          #F6F4EF;
    --bg-alt:      #EEEBE4;
    --surface:     #FFFFFF;
    --ink:         #15171C;
    --muted:       #4E5561;
    --subtle:      #5F6672;
    --line:        #DAD5CB;
    --line-strong: #B9B2A5;
    --accent:      #E8590C;   /* nur Flächen, Linien */
    --accent-text: #B4460A;   /* Orange für Text */
    --corp:        #1D4ED8;
    --focus:       #1D4ED8;
    --on-ink:      #F6F4EF;
    --success-bg:  #ECFDF5;
    --success-text:#065F46;
    --success-line:#6EE7B7;
    --error-bg:    #FEF2F2;
    --error-text:  #B91C1C;
    --error-line:  #FCA5A5;
    --radius:      6px;
    --ease:        cubic-bezier(0.22, 1, 0.36, 1);
    --header-h:    72px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg:          #121314;
    --bg-alt:      #18191B;
    --surface:     #1C1D20;
    --ink:         #EDEBE6;
    --muted:       #B3B0A8;
    --subtle:      #9A978F;
    --line:        #2C2D31;
    --line-strong: #45474D;
    --accent:      #F07A2E;
    --accent-text: #F59E5B;
    --corp:        #93C5FD;
    --focus:       #93C5FD;
    --on-ink:      #121314;
    --success-bg:  #052E22;
    --success-text:#6EE7B7;
    --success-line:#047857;
    --error-bg:    #2A1215;
    --error-text:  #FCA5A5;
    --error-line:  #991B1B;
    color-scheme: dark;
}

/* ---------- 3. Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.125rem;
    line-height: 1.65;
    font-feature-settings: 'ss01', 'cv11';
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

h1, h2, h3 {
    color: var(--ink);
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
h3 { font-weight: 650; letter-spacing: -0.015em; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent-text); }

strong { font-weight: 650; color: var(--ink); }

.highlight { color: var(--muted); font-style: normal; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: fixed;
    top: 12px; left: 12px;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--ink);
    color: var(--on-ink);
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; color: var(--on-ink); }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- 4. Kopfbereich ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo-mark { flex-shrink: 0; color: var(--ink); transition: transform 0.4s var(--ease); }
.logo-mark .logo-dot { transform-origin: 49px 45px; transition: transform 0.4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-4deg); }
.logo:hover .logo-dot { transform: scale(1.35); }
.logo-text, .logo-text .tech { transition: color 0.25s ease; }
.logo:hover .logo-text, .logo:hover .logo-text .tech,
.logo:focus-visible .logo-text, .logo:focus-visible .logo-text .tech { color: var(--accent-text); }
.logo-text { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; }
.logo-text .dot { color: var(--accent); }
.logo-text .tech { font-weight: 400; color: var(--muted); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 8px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 14px; }

.header-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 4px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.header-call .material-symbols-outlined { font-size: 1.15rem; color: var(--accent-text); }

.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.lang-switch a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    opacity: 0.55;
    transition: opacity 0.2s ease, transform 0.25s var(--ease);
}
.lang-switch img {
    width: 26px;
    height: 17px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.lang-switch a:hover { opacity: 1; transform: translateY(-1px); }
.lang-switch a[aria-current="true"] { opacity: 1; }
.lang-switch a[aria-current="true"]::after {
    content: "";
    position: absolute;
    left: 9px; right: 9px; bottom: 6px;
    height: 2px;
    background: var(--accent);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.icon-btn:hover { border-color: var(--ink); }

.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .material-symbols-outlined {
    position: absolute;
    font-size: 1.25rem;
    transition: transform 0.45s var(--ease), opacity 0.25s ease;
}
.theme-toggle .icon-light { transform: translateY(140%); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .icon-dark { transform: translateY(-140%); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .icon-light { transform: none; opacity: 1; }

.burger { display: none; flex-direction: column; gap: 5px; }
.burger-line {
    display: block;
    width: 20px; height: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.burger[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 26px;
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn .material-symbols-outlined { font-size: 1.2rem; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--ink); color: var(--on-ink); }
@media (hover: hover) {
    .btn-primary:hover { background: var(--accent-text); color: #FFFFFF; }
    :root[data-theme="dark"] .btn-primary:hover { background: var(--accent); color: #121314; }
}

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

/* ---------- 6. Einstieg ---------- */
.hero { padding: 72px 0 0; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 72px;
    align-items: end;
}
.kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
}
.kicker::before {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--accent);
}
.hero-title {
    font-size: clamp(2.4rem, 5.4vw, 4.4rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}
.hero-lead {
    max-width: 600px;
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-photo { margin: 0; }
.hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius);
    background: var(--bg-alt);
}
.hero-photo figcaption {
    display: flex;
    flex-direction: column;
    margin-top: 14px;
    padding-left: 14px;
    border-left: 2px solid var(--accent);
    font-size: 0.95rem;
    line-height: 1.45;
}
.hero-photo figcaption span { color: var(--muted); }

.facts {
    list-style: none;
    margin: 72px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line-strong);
}
.facts li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 22px 24px 4px;
    border-left: 1px solid var(--line);
    font-size: 0.98rem;
}
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts strong { font-size: 1.05rem; }
.facts span { color: var(--muted); }

/* ---------- 7. Abschnitte ---------- */
.section { padding: 128px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 760px; margin-bottom: 64px; }
.section-no {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
}
.section-no::before {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--accent);
    transform-origin: left;
    transition: transform 0.8s var(--ease) 0.15s;
}
.js .reveal:not(.is-visible) .section-no::before,
.js .reveal.section-no:not(.is-visible)::before { transform: scaleX(0); }
.section-no span { color: var(--accent-text); font-variant-numeric: tabular-nums; }
.section-title { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.035em; }
.section-sub { font-size: 1.2rem; color: var(--muted); margin: 0; max-width: 640px; }

/* Profil: zwei Spalten, durch eine Linie getrennt */
.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line-strong);
}
.split-col { padding: 40px 56px 0 0; }
.split-col + .split-col { padding: 40px 0 0 56px; border-left: 1px solid var(--line); }
.split-col h3 { font-size: 1.6rem; margin-bottom: 16px; }
.split-col p { color: var(--muted); }
.col-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 18px;
}
.col-label::before { content: ""; width: 10px; height: 10px; background: var(--accent); }
.col-label-business::before { background: var(--corp); }

.ticks { list-style: none; margin: 20px 0 0; padding: 0; }
.ticks li {
    position: relative;
    padding: 12px 0 12px 30px;
    border-top: 1px solid var(--line);
    color: var(--ink);
}
.ticks li::before {
    content: "";
    position: absolute;
    left: 2px; top: 19px;
    width: 12px; height: 7px;
    border-left: 2px solid var(--accent-text);
    border-bottom: 2px solid var(--accent-text);
    transform: rotate(-45deg);
}

/* Leistungen: nummerierte Zeilen */
.service-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-strong); }
.service-row {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 32px;
    align-items: baseline;
    padding: 36px 0;
    border-top: 1px solid var(--line-strong);
}
.service-row::before {
    content: "";
    position: absolute;
    left: 0; top: -1px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease);
}
.service-row:hover::before { transform: scaleX(1); }
.service-no {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-text);
    font-variant-numeric: tabular-nums;
}
.service-row h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    transition: transform 0.4s var(--ease);
}
.service-row:hover h3 { transform: translateX(6px); }
.service-row p { margin: 0; color: var(--muted); }

/* Über mich */
.about {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 88px;
    align-items: start;
}
.about-text p { color: var(--muted); }
.about-text .about-hi { font-size: 1.7rem; line-height: 1.3; color: var(--ink); letter-spacing: -0.02em; }
.about-text .about-hi strong { font-weight: 700; }
.about-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-weight: 600;
    color: var(--ink) !important;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #16A34A; flex-shrink: 0; }

.cv-title { font-size: 0.95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.timeline li {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}
.time-year { font-weight: 600; font-size: 0.98rem; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.time-body { display: flex; flex-direction: column; }
.time-title { font-weight: 650; color: var(--ink); line-height: 1.35; }
.time-sub { color: var(--muted); font-size: 1rem; margin-top: 4px; }

/* FAQ */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 72px;
    align-items: start;
}
.section-head-left { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-bottom: 1px solid var(--line-strong); }
.faq-item { border-top: 1px solid var(--line-strong); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.2rem; line-height: 1.4; transition: color 0.2s ease; }
.faq-item summary:hover h3 { color: var(--accent-text); }
.faq-toggle { position: relative; flex-shrink: 0; width: 18px; height: 18px; }
.faq-toggle::before, .faq-toggle::after {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 18px; height: 2px;
    background: var(--ink);
    transition: transform 0.35s var(--ease);
}
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
.faq-answer { padding: 0 56px 28px 0; color: var(--muted); }
.faq-answer p { margin: 0; }
.faq-item[open] .faq-answer { animation: fade-down 0.4s var(--ease); }
@keyframes fade-down {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- 8. Kontakt ---------- */
.contact-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 88px;
    align-items: start;
}
.contact-intro .section-sub { margin-bottom: 40px; }
.contact-lines { margin: 0; border-bottom: 1px solid var(--line); }
.contact-lines > div { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-lines dt { font-size: 0.95rem; color: var(--muted); margin-bottom: 2px; }
.contact-lines dd { margin: 0; font-size: 1.35rem; font-weight: 650; letter-spacing: -0.015em; }
.contact-lines a {
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s var(--ease), color 0.2s ease;
}
.contact-lines a:hover { background-size: 100% 2px; color: var(--ink); }

.form-card {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.form-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.field { margin-bottom: 22px; }
.field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
}
.req { color: var(--accent-text); }
.field input,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    font: inherit;
    font-size: 1.0625rem;
    color: var(--ink);
    background: var(--bg);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--subtle); }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px var(--focus);
    background: var(--surface);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error-text); }
.field-hint { margin: 6px 0 0; font-size: 0.95rem; color: var(--muted); }
.form-card > .field-hint { margin: 0 0 28px; }
.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--error-text);
}
.field-error:empty { display: none; }
.field-error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--error-text); color: var(--surface); font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }

.captcha-question { font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.captcha-question.is-new { animation: nudge 0.45s var(--ease); }
@keyframes nudge {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}
.field input[inputmode="numeric"] { max-width: 200px; }

.check, .field label.check { display: flex; margin: 0; font-weight: 400; align-items: flex-start; gap: 14px; cursor: pointer; font-size: 1rem; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--ink); cursor: pointer; }

.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { width: 100%; margin-top: 8px; }
.btn-submit .btn-spinner, .btn-submit .btn-check { display: none; }
.btn-submit.is-loading .btn-spinner { display: inline-block; }
.btn-submit.is-loading .btn-send-icon { display: none; }
.btn-submit.is-done .btn-check { display: inline-block; }
.btn-submit.is-done .btn-send-icon { display: none; }
.btn-submit:disabled { cursor: progress; opacity: 0.8; }
.btn-spinner {
    width: 18px; height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status { margin-top: 18px; border-radius: var(--radius); font-weight: 500; }
.status:empty { display: none; }
.status.is-info    { padding: 14px 18px; background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line); }
.status.is-success { padding: 14px 18px; background: var(--success-bg); color: var(--success-text); border: 1px solid var(--success-line); }
.status.is-error   { padding: 14px 18px; background: var(--error-bg); color: var(--error-text); border: 1px solid var(--error-line); }

.noscript-note { padding: 14px 18px; margin-bottom: 20px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- 9. Rechtstexte ---------- */
.legal { padding: 72px 0 112px; }
.legal-card { max-width: 780px; }
.legal-card h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.04em; }
.legal-sub { font-size: 1.2rem; color: var(--muted); padding-bottom: 32px; margin-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.legal-card h2 { margin-top: 56px; font-size: clamp(1.4rem, 3vw, 1.75rem); }
.legal-card h3 { margin-top: 32px; font-size: 1.15rem; }
.legal-card p, .legal-card address { color: var(--muted); }
.legal-card address { font-style: normal; margin-bottom: 1em; }
.legal-note { margin: 32px 0; padding: 24px 28px; background: var(--bg-alt); border-left: 3px solid var(--accent); }
.legal-note h3 { margin-top: 0; }
.legal-note p { margin: 0; }

/* ---------- 10. Fußbereich ---------- */
.site-footer { border-top: 1px solid var(--line-strong); padding: 40px 0; }
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}
.footer-copy { margin: 0; color: var(--muted); font-size: 0.98rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 500; }

/* ---------- 11. Kontaktleiste (nur Handy) ---------- */
.quick-contact { display: none; }

/* ---------- 11b. Chat-Assistent ---------- */
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 950; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.chat-launcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 20px 0 16px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--on-ink);
    background: var(--ink);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.3s var(--ease), background-color 0.25s ease;
}
.chat-launcher .material-symbols-outlined { font-size: 1.3rem; }
.chat-launcher:hover { transform: translateY(-2px); }
.chat[data-state="open"] .chat-launcher { background: var(--accent-text); color: #FFFFFF; }
:root[data-theme="dark"] .chat[data-state="open"] .chat-launcher { background: var(--accent); color: #121314; }

.chat-teaser {
    position: relative;
    max-width: 280px;
    padding: 14px 40px 14px 16px;
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 10px 10px 2px 10px;
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
.chat-teaser.is-visible { opacity: 1; transform: none; }
.chat-teaser p { margin: 0; }
.chat-teaser-close {
    position: absolute;
    top: 2px; right: 2px;
    width: 36px; height: 36px;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--muted);
    background: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}
.chat-teaser-close:hover { color: var(--ink); }

.chat-panel {
    display: flex;
    flex-direction: column;
    width: 380px;
    height: min(600px, calc(100vh - 120px));
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform-origin: bottom right;
    animation: chat-in 0.35s var(--ease);
    order: -1;   /* Fenster über dem Button anzeigen */
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 10px 14px 16px;
    border-bottom: 1px solid var(--line);
}
.chat-head .logo-mark { color: var(--ink); }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.chat-head p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.chat-close {
    position: relative;
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}
.chat-close:hover { background: var(--bg-alt); }
.chat-close-x::before, .chat-close-x::after {
    content: "";
    position: absolute;
    left: 13px; top: 21px;
    width: 18px; height: 2px;
    background: var(--ink);
    transform: rotate(45deg);
}
.chat-close-x::after { transform: rotate(-45deg); }

.chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg);
    scroll-behavior: smooth;
}
.chat-msg { display: flex; flex-direction: column; max-width: 88%; animation: msg-in 0.3s var(--ease); }
@keyframes msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}
.chat-msg-user { align-self: flex-end; align-items: flex-end; }
.chat-msg-bot { align-self: flex-start; }
.chat-bubble {
    margin: 0;
    padding: 10px 14px;
    font-size: 0.98rem;
    line-height: 1.5;
    white-space: pre-line;
    border-radius: 10px;
}
.chat-msg-bot .chat-bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 2px; color: var(--ink); }
.chat-msg-user .chat-bubble { background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 2px; }

.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chat-action {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.chat-action:hover { border-color: var(--ink); color: var(--ink); }
.chat-action-call { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chat-action-call:hover { color: var(--on-ink); }

.chat-typing .chat-bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); animation: dot 1s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot {
    0%, 60%, 100% { transform: none; opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-topics {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    scrollbar-width: thin;
}
.chat-chip {
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 14px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.chat-chip:hover { border-color: var(--ink); }

.chat-form {
    display: flex;
    gap: 8px;
    padding: 12px 12px 14px 16px;
    border-top: 1px solid var(--line);
}
.chat-form input {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--bg);
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
}
.chat-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus); }
.chat-send {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--on-ink);
    background: var(--ink);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}
.chat-send:hover { background: var(--accent-text); color: #FFFFFF; }

@media (max-width: 760px) {
    .chat { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); }
    .chat-launcher { min-height: 48px; padding: 0 16px 0 14px; }
    .chat[data-state="open"] { left: 8px; right: 8px; }
    .chat-panel { width: 100%; height: calc(100vh - 220px); height: calc(100dvh - 220px); }
    .chat-teaser { max-width: calc(100vw - 32px); }
}

@media print { .chat { display: none !important; } }

/* ---------- 12. Einblenden beim Scrollen ----------
   Ohne JavaScript ist alles sofort sichtbar. */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .reveal-photo img {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.1s var(--ease) 0.2s;
}
.js .reveal-photo.is-visible img { clip-path: inset(0 0 0 0); }
.js .reveal-photo figcaption { opacity: 0; transition: opacity 0.6s ease 0.9s; }
.js .reveal-photo.is-visible figcaption { opacity: 1; }

/* ---------- 13. Responsiv ---------- */
@media (max-width: 1180px) {
    .header-call { display: none; }
}

@media (max-width: 1020px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr); gap: 48px; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
    .about, .contact-wrap, .faq-layout { grid-template-columns: 1fr; gap: 48px; }
    .section-head-left { position: static; }
}

@media (max-width: 900px) {
    :root { --header-h: 64px; }
    .burger { display: inline-flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        margin: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line-strong);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
    }
    .main-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s;
    }
    .main-nav ul { flex-direction: column; padding: 8px 20px 20px; gap: 0; }
    .main-nav li + li { border-top: 1px solid var(--line); }
    .main-nav a { width: 100%; min-height: 56px; padding: 0; font-size: 1.15rem; color: var(--ink); }
    .main-nav a::after { left: 0; right: auto; width: 24px; bottom: 12px; }
    .no-burger .main-nav { position: static; visibility: visible; opacity: 1; transform: none; background: none; border: 0; margin-left: auto; }
    .no-burger .main-nav ul { flex-direction: row; padding: 0; }
    .no-burger .main-nav li + li { border: 0; }
    .no-burger .main-nav a { min-height: 44px; font-size: 1rem; }
    .header-tools { margin-left: auto; gap: 8px; }
    .no-burger .header-tools { margin-left: 0; }
}

@media (max-width: 760px) {
    body { padding-bottom: 76px; }
    .container, .header-inner, .footer-inner { padding: 0 20px; }
    .header-inner { gap: 8px; }
    .logo-text { display: none; }
    .lang-switch a { width: 40px; }
    .no-burger .main-nav a { font-size: 0; gap: 0; padding: 0 8px; }
    .no-burger .main-nav a .material-symbols-outlined { font-size: 1.35rem; }
    .no-burger .main-nav a::after { display: none; }

    .hero { padding-top: 40px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-photo { max-width: 320px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .facts { grid-template-columns: 1fr; margin-top: 48px; }
    .facts li, .facts li:nth-child(3) { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
    .facts li:first-child { border-top: 0; }

    .section { padding: 80px 0; }
    .section-head { margin-bottom: 40px; }
    .split { grid-template-columns: 1fr; }
    .split-col, .split-col + .split-col { padding: 32px 0; border-left: 0; }
    .split-col + .split-col { border-top: 1px solid var(--line); }
    .service-row { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
    .service-row:hover h3 { transform: none; }
    .timeline li { grid-template-columns: 1fr; gap: 4px; }
    .faq-answer { padding-right: 0; }
    .form-card { padding: 28px 20px; }
    .legal { padding: 40px 0 72px; }
    .footer-inner { flex-direction: column; text-align: center; }

    .quick-contact {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 900;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--surface);
        border-top: 1px solid var(--line-strong);
    }
    .qc-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 64px;
        color: var(--ink);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
    }
    .qc-item + .qc-item { border-left: 1px solid var(--line); }
    .qc-call { background: var(--ink); color: var(--on-ink); }
    .qc-call:hover { color: var(--on-ink); }
    .qc-icon .material-symbols-outlined { font-size: 1.4rem; }
    .qc-item:focus-visible { outline-offset: -4px; }
}

/* ---------- 14. Weniger Bewegung gewünscht ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }
    .js .reveal { opacity: 1; transform: none; }
    .js .reveal-photo img { clip-path: none; }
    .js .reveal-photo figcaption { opacity: 1; }
    .js .reveal:not(.is-visible) .section-no::before { transform: none; }
    .btn-spinner { animation: none; }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* ---------- 15. Hoher Kontrast (Windows) ---------- */
@media (forced-colors: active) {
    .btn, .icon-btn, .field input, .field textarea, .form-card { border: 1px solid CanvasText; }
}

/* ---------- 16. Druck ---------- */
@media print {
    .site-header, .quick-contact, .skip-link { display: none !important; }
    body { background: #FFFFFF; color: #000000; padding: 0; }
    .js .reveal, .js .reveal-photo img, .js .reveal-photo figcaption { opacity: 1; transform: none; clip-path: none; }
}

/* ==========================================================
   17. Interaktive Effekte
   ========================================================== */

/* Fortschrittsbalken oben */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 0)); }

/* Einstieg: interaktives Punkte-Netz im Hintergrund */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }

/* Überschriften gleiten Wort für Wort herein */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split-words .wi {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 55ms + 0.1s);
}
.split-words.is-visible .wi, .is-visible .split-words .wi { transform: none; }
.js .split-words.reveal { transform: none; }

/* Foto: Neigung zur Maus + versetzter oranger Rahmen */
.photo-tilt {
    position: relative;
    transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
    transition: transform 0.5s var(--ease);
}
.photo-tilt img { position: relative; z-index: 1; }
.photo-frame {
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    transform: translate(calc(16px + var(--fx, 0px)), calc(16px + var(--fy, 0px)));
    transition: transform 0.5s var(--ease), opacity 0.6s ease 1s;
}
.js .reveal-photo:not(.is-visible) .photo-frame { opacity: 0; transform: translate(0, 0); }
.hero-photo figcaption { margin-top: 30px; }

/* Laufband */
.ticker {
    margin-top: 72px;
    padding: 28px 0;
    overflow: hidden;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    white-space: nowrap;
    transform: translate3d(var(--tx, 0px), 0, 0);
    will-change: transform;
}
.ticker-track span:not(.ticker-dot) {
    font-size: clamp(2rem, 5.5vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.3px var(--ink);
    transition: color 0.3s ease;
}
.ticker-track span:not(.ticker-dot):nth-of-type(4n+1) { color: var(--ink); -webkit-text-stroke: 0; }
.ticker-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@supports not (-webkit-text-stroke: 1px black) {
    .ticker-track span:not(.ticker-dot) { color: var(--muted); }
}

/* Linien-Icons zeichnen sich selbst */
.line-icon { display: block; width: 48px; height: 48px; color: var(--ink); margin-bottom: 20px; overflow: visible; }
.line-icon .ic-accent { stroke: var(--accent); }
.line-icon .ic-dot { fill: var(--accent); stroke: none; }
.js .reveal .line-icon path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) 0.25s; }
.js .reveal .line-icon .ic-accent { transition-delay: 0.85s; }
.js .reveal .line-icon .ic-dot { opacity: 0; transition: opacity 0.4s ease 1.1s; }
.js .reveal.is-visible .line-icon path { stroke-dashoffset: 0; }
.js .reveal.is-visible .line-icon .ic-dot { opacity: 1; }
.split-col:hover .line-icon, .service-row:hover .line-icon { animation: icon-nudge 0.7s var(--ease); }
@keyframes icon-nudge {
    0% { transform: none; }
    35% { transform: rotate(-8deg) scale(1.08); }
    100% { transform: none; }
}
.split-col h3 { transition: color 0.25s ease; }
.split-col:hover h3 { color: var(--accent-text); }

/* Leistungen: Zeilen mit Wisch-Effekt und Pfeil */
.service-row {
    grid-template-columns: 52px 52px minmax(0, 1fr) minmax(0, 1.25fr) 40px;
    align-items: center;
    isolation: isolate;
}
.service-row::after {
    content: "";
    position: absolute;
    inset: 0 -24px;
    z-index: -1;
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease);
}
.service-row:hover::after { transform: scaleX(1); }
.service-icon .line-icon { width: 40px; height: 40px; margin: 0; }
.service-arrow {
    position: relative;
    justify-self: end;
    width: 26px;
    height: 2px;
    background: var(--accent-text);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.3s ease, transform 0.45s var(--ease);
}
.service-arrow::after {
    content: "";
    position: absolute;
    right: 0; top: -5px;
    width: 10px; height: 10px;
    border-top: 2px solid var(--accent-text);
    border-right: 2px solid var(--accent-text);
    transform: rotate(45deg);
}
.service-row:hover .service-arrow { opacity: 1; transform: none; }

/* Zeitleiste füllt sich beim Scrollen */
.timeline { position: relative; padding-left: 32px; border-bottom: 0; }
.timeline::before, .timeline::after {
    content: "";
    position: absolute;
    left: 6px; top: 0; bottom: 0;
    width: 2px;
    background: var(--line);
}
.timeline::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--tl, 0)); }
.timeline li { position: relative; border-top: 0; padding: 18px 0; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -32px; top: 24px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--line-strong);
    z-index: 1;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}
.timeline li.is-passed::before { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }

/* Fakten-Zeile: kleine Hover-Reaktion */
.facts li strong { transition: color 0.25s ease; }
.facts li:hover strong { color: var(--accent-text); }

/* Magnetischer Hauptbutton */
.magnetic { transition: transform 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }

@media (max-width: 760px) {
    .ticker { margin-top: 48px; padding: 18px 0; }
    .ticker-track { gap: 24px; }
    .ticker-dot { width: 10px; height: 10px; }
    .service-row { grid-template-columns: 1fr; }
    .service-row::after { inset: 0 -20px; }
    .service-arrow { display: none; }
    .hero-photo figcaption { margin-top: 24px; }
    .photo-frame { transform: translate(10px, 10px); }
}

@media (prefers-reduced-motion: reduce) {
    .split-words .wi { transform: none !important; }
    .js .reveal .line-icon path { stroke-dashoffset: 0 !important; }
    .js .reveal .line-icon .ic-dot { opacity: 1 !important; }
    .ticker-track { transform: none !important; }
    .photo-tilt { transform: none !important; }
    .js .reveal-photo:not(.is-visible) .photo-frame { opacity: 1; }
    .timeline::after { transform: scaleY(1); }
    .magnetic { transform: none !important; }
}

@media print {
    .scroll-progress, .hero-net, .ticker { display: none !important; }
}
