/* webfellows – base styles, mobile first, no build step */

/* Global tokens: dark throughout (see CLAUDE.md, Design). #2373a2 only for surfaces/borders,
   #4cc3ff for text and small elements, because #2373a2 on #0b1220 has only ~3.6:1 contrast. */
:root {
    --primary: #4cc3ff;
    --primary-dark: #7dd4ff;
    --primary-light: rgba(35, 115, 162, 0.22);
    --accent: #2373a2;
    --text: #e6ebf2;
    --text-muted: #a3adbb;
    --bg: #0b1220;
    --bg-alt: #111a2e;
    --border: rgba(255, 255, 255, 0.08);
    --error: #ff8a80;
    --success: #6fdc9a;
    --radius: 6px;
    --container: 72rem;
    color-scheme: dark;
}

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

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

a {
    color: var(--primary);
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--primary-dark);
}

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

h1,
h2,
h3 {
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.45rem, 3.5vw, 2rem);
}

h3 {
    font-size: 1.2rem;
}

p,
ul {
    margin: 0 0 1rem;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--bg);
    z-index: 100;
}

.skip-link:focus {
    top: 1rem;
    color: var(--bg);
}

/* Header */

/* Sticky on all viewports. No backdrop-filter on the header itself: it would become the
   containing block for the fixed mobile menu overlay. The blur sits on ::before instead. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 18, 32, 0.96);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header {
        background: transparent;
    }

    .site-header::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background: rgba(11, 18, 32, 0.82);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }
}

/* Anchor targets must not end up under the sticky header */
html {
    scroll-padding-top: 5rem;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo {
    position: relative;
    z-index: 2;
    display: inline-flex;
}

/* Only a dark-colored logo exists: show it as a white silhouette on the dark header */
.logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.main-nav ul,
.lang-switch ul,
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-nav {
    order: 3;
    width: 100%;
}

.main-nav-links {
    gap: 0.25rem 1rem;
}

.main-nav a,
.lang-switch a {
    display: inline-block;
    padding: 0.5rem 0.25rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.main-nav-links a:hover,
.main-nav-links a[aria-current="page"] {
    color: var(--primary);
    box-shadow: inset 0 -2px 0 var(--primary);
}

.lang-switch ul {
    gap: 0.25rem;
}

.lang-switch a {
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius);
}

.lang-switch a[aria-current="true"] {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Menu extras (language + CTA) and the toggle exist only in the mobile overlay */
.nav-extra,
.nav-toggle {
    display: none;
}

@media (min-width: 56.25rem) {
    .main-nav {
        order: 0;
        width: auto;
        margin-left: auto;
    }

    .main-nav-links {
        gap: 1.5rem;
    }
}

/* Mobile menu (below 900 px, only with JS; without JS the nav stays a plain link list) */
@media (max-width: 56.24rem) {
    .js .nav-toggle {
        position: relative;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        color: var(--text);
        cursor: pointer;
    }

    .js .lang-switch {
        display: none;
    }

    .js .main-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        width: auto;
        padding: 6rem 1.5rem 2rem;
        overflow-y: auto;
        background: #0b1220;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

    @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .js .main-nav {
            background:
                radial-gradient(40rem 30rem at 100% 0%, rgba(35, 115, 162, 0.3), transparent 60%),
                rgba(11, 18, 32, 0.94);
            -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
        }
    }

    .js.nav-open .main-nav {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.3s ease, visibility 0s linear 0s;
    }

    .js .main-nav-links {
        flex-direction: column;
        gap: 0.25rem;
    }

    .js .main-nav-links a {
        display: block;
        padding: 0.6rem 0;
        font-size: clamp(1.9rem, 7vw, 2.5rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        box-shadow: none;
    }

    .js .main-nav-links a[aria-current="page"] {
        color: var(--primary);
    }

    .js .nav-extra {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-top: auto;
        padding-top: 2rem;
        border-top: 1px solid var(--border);
    }

    .nav-lang {
        gap: 0.5rem;
    }

    .nav-lang a {
        padding: 0.6rem 1rem;
        border: 1px solid var(--border);
        border-radius: 999px;
        font-size: 1rem;
    }

    .nav-lang a[aria-current="true"] {
        border-color: var(--accent);
        background: var(--primary-light);
        color: var(--primary-dark);
    }

    .nav-cta {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 999px;
        text-align: center;
    }

    /* Staggered entry of the menu items */
    .js .main-nav-links li,
    .js .nav-extra {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .js.nav-open .main-nav-links li,
    .js.nav-open .nav-extra {
        opacity: 1;
        transform: none;
        transition-delay: calc(var(--i, 0) * 60ms + 60ms);
    }

    /* Lock scrolling on body only: locking html too would make body the scroll container
       and push the sticky header (with the close button) out of view */
    .nav-open body {
        overflow: hidden;
    }
}

/* Hamburger icon that morphs into an X */
.nav-toggle-bars {
    position: relative;
    display: block;
    width: 20px;
    height: 14px;
}

.nav-toggle-bars i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle-bars i:nth-child(1) { top: 0; }
.nav-toggle-bars i:nth-child(2) { top: 6px; }
.nav-toggle-bars i:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.2);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
    .js .main-nav,
    .js.nav-open .main-nav,
    .js .main-nav-links li,
    .js .nav-extra,
    .nav-toggle-bars i {
        transition: none !important;
    }

    .js .main-nav-links li,
    .js .nav-extra {
        transform: none;
    }
}

/* Sections */

.section {
    padding: 3rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 44rem;
}

@media (min-width: 48rem) {
    .section {
        padding: 4.5rem 0;
    }
}

/* Hero */

/* Background comes from .section--deep (see "Section backgrounds" at the end) */
.hero {
    --cyan: #4cc3ff;
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 4rem;
    color: #fff;
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.hero h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(3rem, 3.4vw + 1rem, 5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    hyphens: auto;
    overflow-wrap: break-word;
    color: #fff;
}

.hero-lead {
    max-width: 36rem;
    margin: 0;
    font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem);
    color: rgba(255, 255, 255, 0.78);
}

.hero .button-row {
    margin-top: 2rem;
}

.hero .button {
    padding: 1rem 1.6rem;
    border-radius: 999px;
}

/* Smartphone: hero buttons span the full width */
@media (max-width: 47.99rem) {
    .hero .button {
        width: 100%;
        text-align: center;
    }
}

.hero :focus-visible {
    outline-color: var(--cyan);
}

.button.button-signal {
    background: #4cc3ff;
    border-color: #4cc3ff;
    color: #0b1220;
    box-shadow: 0 10px 30px -10px rgba(76, 195, 255, 0.6);
}

.button.button-signal:hover {
    background: #7dd4ff;
    border-color: #7dd4ff;
    color: #0b1220;
}

.button.button-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.button.button-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    color: #fff;
}

/* Glass card behind the process graphic; opaque fallback without backdrop-filter */
.hero-visual {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: #111c2e;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hero-visual {
        background: rgba(255, 255, 255, 0.05);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }
}

.flow {
    display: block;
    width: 100%;
    height: auto;
    font-family: inherit;
}

.flow-lines path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 2;
}

.flow-packets .pk {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 10 200;
    stroke-dashoffset: 10;
    animation: flow-packet 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.pk-2 { animation-delay: 0.4s; }
.pk-3 { animation-delay: 0.8s; }
.pk-4 { animation-delay: 1.3s; }
.pk-5 { animation-delay: 1.7s; }

@keyframes flow-packet {
    from { stroke-dashoffset: 10; }
    to { stroke-dashoffset: -100; }
}

.flow-node rect {
    fill: rgba(255, 255, 255, 0.06);
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1;
}

.flow-node text {
    fill: #fff;
    font-size: 17px;
    font-weight: 600;
    text-anchor: middle;
}

.flow-node-out rect {
    stroke: rgba(76, 195, 255, 0.55);
}

.flow-node-out text {
    text-anchor: start;
}

.flow-hub {
    filter: drop-shadow(0 0 18px rgba(76, 195, 255, 0.45));
}

.flow-hub-label {
    fill: #fff;
    font-size: 24px;
    font-weight: 800;
    text-anchor: middle;
}

.flow-ring {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    animation: flow-ring 2.4s ease-out infinite;
}

@keyframes flow-ring {
    from { transform: scale(1); opacity: 0.7; }
    to { transform: scale(1.6); opacity: 0; }
}

.flow-check-bg {
    fill: rgba(76, 195, 255, 0.2);
}

.flow-check {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: flow-check 4.8s ease-in-out infinite;
}

@keyframes flow-check {
    0%, 30% { stroke-dashoffset: 100; }
    45%, 90% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 100; }
}

.flow-bar {
    fill: var(--cyan);
    transform-box: fill-box;
    transform-origin: bottom;
    animation: flow-bar 2.4s ease-in-out infinite alternate;
}

.flow-bar-1 { animation-delay: 0s; }
.flow-bar-2 { animation-delay: 0.3s; }
.flow-bar-3 { animation-delay: 0.6s; }

@keyframes flow-bar {
    from { transform: scaleY(0.35); }
    to { transform: scaleY(1); }
}

.hero-copy,
.hero-visual {
    animation: hero-in 0.8s ease-out both;
}

.hero-visual {
    animation-delay: 0.15s;
}

@keyframes hero-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@media (min-width: 60rem) {
    .hero {
        padding: 6rem 0 6.5rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 3.5rem;
    }

    .hero-visual {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy,
    .hero-visual,
    .flow-packets .pk,
    .flow-ring,
    .flow-check,
    .flow-bar {
        animation: none;
    }

    .flow-packets .pk {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
        stroke-opacity: 0.6;
    }

    .flow-ring {
        opacity: 0;
    }

    .flow-check {
        stroke-dashoffset: 0;
    }
}


.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: var(--bg);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--bg);
}

.button-secondary {
    background: transparent;
    color: var(--primary);
}

.button-secondary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.check-list {
    padding-left: 1.25rem;
}

.check-list li {
    margin-bottom: 0.5rem;
}

.card-grid {
    display: grid;
    gap: 1.25rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 48rem) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-alt);
}

.card p:last-child {
    margin-bottom: 0;
}

.service + .service {
    margin-top: 3rem;
}

.text-block {
    max-width: 44rem;
}

/* Closing call to action; background from .section--deep */
.cta {
    color: #fff;
}

.cta .lead {
    color: var(--text-muted);
}

/* Forms */

.form {
    max-width: 40rem;
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    font: inherit;
    color: var(--text);
    background: var(--bg-alt);
}

.form-field textarea {
    min-height: 10rem;
    resize: vertical;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
    border-color: var(--error);
}

.form-error {
    margin: 0.35rem 0 0;
    color: var(--error);
    font-size: 0.95rem;
}

.form-hint {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    border: 1px solid rgba(111, 220, 154, 0.35);
    background: rgba(111, 220, 154, 0.1);
    color: var(--success);
}

.alert-error {
    border: 1px solid rgba(255, 138, 128, 0.35);
    background: rgba(255, 138, 128, 0.1);
    color: var(--error);
}

/* Footer */

/* Darkest tone, 1-px divider on top, subtle glow. Muted text #a3adbb on #070d19 is about 8:1. */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(40rem 20rem at 10% 0%, rgba(35, 115, 162, 0.12), transparent 70%),
        #070d19;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 48rem) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.3fr);
        gap: 3rem;
    }
}

.footer-col p {
    margin: 1rem 0 1.25rem;
    max-width: 22rem;
}

.footer-logo img {
    height: 36px;
}

.footer-title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-footer .footer-col ul {
    display: grid;
    gap: 0.35rem;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    text-underline-offset: 0.2em;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.footer-col ul a {
    display: inline-block;
    padding: 0.2rem 0;
}

.site-footer .footer-col .footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-col .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    border-color: rgba(76, 195, 255, 0.5);
    color: var(--primary);
}

.footer-social .icon {
    width: 20px;
    height: 20px;
}

.footer-contact li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.2rem 0;
}

.footer-contact .icon {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    color: var(--primary);
}

.footer-contact a {
    padding: 0;
}

.footer-todo {
    color: #8b97a8;
    font-size: 0.8rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
}

.footer-meta p {
    margin: 0;
}

.footer-meta p + p {
    margin-top: 0.25rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
}

.site-footer .footer-legal ul {
    gap: 0.25rem 1.1rem;
}

.footer-legal a {
    display: inline-block;
    padding: 0.35rem 0;
}

.site-footer .footer-lang {
    gap: 0.25rem;
}

.footer-lang a {
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
}

.footer-lang a[aria-current="true"] {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.site-footer .to-top:hover {
    border-color: rgba(76, 195, 255, 0.5);
    color: var(--primary);
    text-decoration: none;
    transform: translateY(-2px);
}

.to-top .icon {
    width: 18px;
    height: 18px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}


/* Dark sections: section head, bento grid */

.dark-section {
    --dark-bg: #0b1220;
    --surface: #111a2e;
    --line: rgba(255, 255, 255, 0.08);
    --line-hover: rgba(255, 255, 255, 0.2);
    --cyan: #4cc3ff;
    position: relative;
    padding: 4rem 0;
    color: #fff;
}

@media (min-width: 48rem) {
    .dark-section {
        padding: 6rem 0;
    }
}

.dark-section :focus-visible {
    outline-color: var(--cyan);
}

/* No max-width on the head itself: at 48rem the 5rem headings broke onto a second line
   ("Das haben wir / gebaut."). Only the intro is limited; titles use text-wrap: balance. */
.section-head {
    margin-bottom: 2.5rem;
}

.label-pill {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: 0.3rem 0.9rem;
    border: 1px solid #2373a2;
    border-radius: 999px;
    background: rgba(35, 115, 162, 0.12);
    color: var(--cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.section-title {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 3.5vw + 1rem, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    hyphens: auto;
    overflow-wrap: break-word;
    text-wrap: balance;
}

/* Markenname "webfellows" nie trennen (gesetzt von App\Support\Ueberschrift::marke) */
.marke {
    -webkit-hyphens: manual;
    hyphens: manual;
    white-space: nowrap;
}

.section-title .accent {
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background: linear-gradient(90deg, #4cc3ff, #2373a2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (forced-colors: active) {
    .section-title .accent {
        background: none;
        color: CanvasText;
    }
}

.section-intro {
    max-width: 44rem;
    margin: 0;
    font-size: 1.15rem;
    color: #a3adbb;
}

.bento {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bento-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-hover);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(76, 195, 255, 0.06);
}

.bento-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.bento-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(76, 195, 255, 0.25);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(35, 115, 162, 0.45), rgba(35, 115, 162, 0.12));
    color: var(--cyan);
    box-shadow: 0 0 24px -4px rgba(35, 115, 162, 0.7);
}

/* System chain in the first card: nodes linked by lines with a moving light */
.sys-chain {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.sys-node {
    flex: none;
    padding: 0.45rem 0.8rem;
    border: 1px solid rgba(76, 195, 255, 0.35);
    border-radius: 10px;
    background: rgba(35, 115, 162, 0.18);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.sys-link {
    position: relative;
    flex: 1;
    min-width: 0.75rem;
    height: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.sys-link::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    transform: translateX(-100%);
    animation: sys-flow 2.4s linear infinite;
}

.sys-link:nth-of-type(4)::after { animation-delay: 0.4s; }
.sys-link:nth-of-type(6)::after { animation-delay: 0.8s; }

@keyframes sys-flow {
    to { transform: translateX(250%); }
}

.bento-card.is-paused .sys-link::after {
    animation-play-state: paused;
}

.point-list,
.tag-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.point-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.point-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.85);
}

.point-list .icon {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    color: var(--cyan);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.tag-list li {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--line-hover);
    border-radius: 999px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Bento layout: 1 column mobile, 2 from 768 px, 4 from 1024 px */
@media (min-width: 48rem) {
    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bento-card {
        padding: 1.75rem;
    }
}

@media (min-width: 64rem) {
    .bento {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Services: six cards. The highlighted card (.svc-gross, flag 'highlight' in lang/*\/home.php) is one row high and
   two columns wide (1x2); e-commerce spans the full width at the end (1x3 on desktop).
   Tablet 2 columns: highlighted card and e-commerce wide. Desktop 3 columns. Dense placement fills the gaps. */
.svc .tag-list,
.svc .sys-chain,
.svc .svc-chart {
    margin-top: auto;
    padding-top: 1.25rem;
}

@media (min-width: 48rem) {
    .svc-grid {
        grid-auto-flow: dense;
    }

    .svc-gross,
    .svc-ecom {
        grid-column: span 2;
    }

    .svc-gross h3 {
        font-size: 1.5rem;
    }

    .svc-gross p {
        max-width: 40rem;
    }
}

@media (min-width: 64rem) {
    .svc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .svc-ecom {
        grid-column: 1 / -1;
    }

    .svc-gross {
        padding: 2rem;
    }

    .svc-gross .icon-box {
        width: 52px;
        height: 52px;
    }

    .svc-gross h3 {
        font-size: 1.65rem;
    }

    .svc-gross p {
        font-size: 1.05rem;
    }

    /* E-Commerce über die volle Breite: links Text und Link, rechts Ablaufkette und Tags */
    .svc-ecom {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        column-gap: 3rem;
        align-items: start;
    }

    .svc-ecom > .icon-box { grid-column: 1; grid-row: 1; }
    .svc-ecom > h3 { grid-column: 1; grid-row: 2; }
    .svc-ecom > p { grid-column: 1; grid-row: 3; }
    .svc-ecom > .svc-more { grid-column: 1; grid-row: 4; }

    .svc-ecom > .sys-chain {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
        margin-top: 0;
        padding-top: 0;
    }

    .svc-ecom > .tag-list {
        grid-column: 2;
        grid-row: 3 / 5;
        margin-top: 0.75rem;
        padding-top: 0;
    }
}

/* Rotating light on the 1-px border; static border where @property is unsupported */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.card-glow {
    border-color: transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        conic-gradient(
            from var(--angle),
            var(--line) 0deg,
            var(--line) 240deg,
            #2373a2 290deg,
            var(--cyan) 320deg,
            var(--line) 360deg
        ) border-box;
    animation: border-spin 7s linear infinite;
}

.card-glow:hover {
    --line: var(--line-hover);
    border-color: transparent;
}

.card-glow.is-paused {
    animation-play-state: paused;
}

@keyframes border-spin {
    to { --angle: 360deg; }
}

/* Staggered reveal on scroll (classes set by public/js/app.js) */
.js [data-reveal]:not(.is-visible) {
    opacity: 0;
}

.js [data-reveal].is-visible {
    animation: reveal-up 0.5s ease-out backwards;
    animation-delay: calc(var(--i, 0) * 60ms);
}

/* Glow cards run two animations: reveal once, border endlessly */
.js .card-glow.is-visible {
    animation: reveal-up 0.5s ease-out backwards, border-spin 7s linear infinite;
    animation-delay: calc(var(--i, 0) * 60ms), 0s;
}

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal]:not(.is-visible) {
        opacity: 1;
    }

    .js [data-reveal].is-visible,
    .card-glow,
    .js .card-glow.is-visible {
        animation: none;
    }

    .bento-card,
    .bento-card:hover {
        transition: none;
        transform: none;
    }

    .sys-link::after {
        animation: none;
        display: none;
    }
}

/* Projects: tabs, project text, mock UI windows, floating tags */

.tab-list {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 2.5rem;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.tab-list[hidden] {
    display: none;
}

@media (min-width: 48rem) {
    .tab-list {
        display: inline-flex;
        gap: 0.35rem;
    }
}

.tab {
    flex: 1;
    min-height: 44px;
    padding: 0.6rem 0.9rem;
    white-space: nowrap;
    font-size: 0.95rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #c4ccd8;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.tab[aria-selected="true"] {
    background: #2373a2;
    color: #fff;
}

.project-panel {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.project-panel[hidden] {
    display: none;
}

.project-panel + .project-panel {
    margin-top: 4rem;
}

.tabs-ready .project-panel + .project-panel {
    margin-top: 0;
}

.tabs-ready .project-panel:not([hidden]) {
    animation: panel-in 0.35s ease-out;
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@media (min-width: 48rem) {
    .project-link {
        padding: 0.75rem 1.4rem;
        font-size: 1rem;
    }
}

@media (min-width: 60rem) {
    .project-panel {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 3.5rem;
    }
}

.project-copy h3 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.6rem, 1.5vw + 1rem, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.project-facts {
    display: grid;
    gap: 1.1rem;
    margin: 0 0 2rem;
}

.project-facts dt {
    margin-bottom: 0.25rem;
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-facts dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.project-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    color: #fff;
}

.project-stage {
    position: relative;
    padding: 1.25rem 0 1.9rem;
}

@media (min-width: 60rem) {
    .project-stage {
        padding: 1.25rem 0;
    }
}

.float-tag {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(76, 195, 255, 0.45);
    border-radius: 999px;
    background: #14223a;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7), 0 0 20px -6px rgba(35, 115, 162, 0.8);
}

.float-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
}

/* Mobile: tag 1 top right so it does not cover the window title */
.float-tag-1 {
    top: 0;
    right: 0.75rem;
}

.float-tag-2 {
    right: 0.75rem;
    bottom: 0;
}

@media (min-width: 60rem) {
    .float-tag-1 { right: auto; left: -1rem; }
    .float-tag-2 { right: -1rem; }
}

/* Parallax for floating tags: scroll-driven where supported, else JS sets --parallax */
.float-tag {
    transform: translateY(var(--parallax, 0px));
}

@supports (animation-timeline: view()) {
    .float-tag-1 {
        animation: tag-drift-up linear both;
        animation-timeline: view();
    }

    .float-tag-2 {
        animation: tag-drift-down linear both;
        animation-timeline: view();
    }
}

@keyframes tag-drift-up {
    from { transform: translateY(36px); }
    to { transform: translateY(-36px); }
}

@keyframes tag-drift-down {
    from { transform: translateY(-24px); }
    to { transform: translateY(24px); }
}

/* Window frame */
.ui-window {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.ui-titlebar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.ui-dots {
    display: inline-flex;
    gap: 6px;
}

.ui-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.ui-title {
    color: #a3adbb;
    font-size: 0.8rem;
    font-weight: 600;
}

.ui-body {
    padding: 1rem;
    font-size: 12px;
    line-height: 1.35;
}

/* Pause all loops inside a window while it is off-screen (class set by app.js) */
.ui-window.is-paused,
.ui-window.is-paused *,
.ui-window.is-paused *::before,
.ui-window.is-paused *::after {
    animation-play-state: paused;
}

/* INOSYS: three columns, rows 44 px high so the SVG lines meet the row centers */
.ino {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    column-gap: 0;
    row-gap: 0.75rem;
}

.ino-head {
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 0.6rem;
    color: #8b97a8;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ino-head-dst {
    color: var(--cyan);
}

.ino-row {
    position: relative;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0.6rem;
}

.ino-row::before {
    content: '';
    position: absolute;
    inset: 3px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.ino-row::after {
    content: '';
    position: absolute;
    inset: 3px 0;
    border: 1px solid rgba(76, 195, 255, 0.45);
    border-radius: 8px;
    background: rgba(76, 195, 255, 0.1);
    opacity: 0;
    animation: ino-flash 8s infinite backwards;
    animation-delay: calc(var(--r) * 0.15s);
}

.ino-field::after {
    animation-name: ino-flash-dst;
}

.ino-key,
.ino-val {
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ino-key {
    color: #8b97a8;
    font-size: 10px;
}

.ino-val {
    color: #fff;
    font-weight: 600;
}

.ino-raw {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-weight: 500;
    color: #d5dbe4;
}

.ino-mapped {
    animation: ino-val 8s infinite backwards;
    animation-delay: calc(var(--r) * 0.15s);
}

.ino-mid {
    position: relative;
}

.ino-lines {
    display: block;
    width: 64px;
    height: 220px;
    overflow: visible;
}

.ino-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 1.5;
}

.ino-pk {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 14 200;
    stroke-dashoffset: -100;
    animation: ino-pk-in 8s infinite backwards;
    animation-delay: calc(var(--r) * 0.15s);
}

.ino-pk-out {
    animation-name: ino-pk-out;
}

.ino-ai {
    position: absolute;
    top: calc(28px + 110px - 26px);
    left: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(76, 195, 255, 0.5);
    border-radius: 14px;
    background: linear-gradient(145deg, #2373a2, #16486a);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 0 28px -4px rgba(76, 195, 255, 0.7);
    animation: ino-ai 8s infinite;
}

.ino-ai .icon {
    width: 20px;
    height: 20px;
    color: var(--cyan);
}

.ino-status {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.ino-status-text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #d5dbe4;
    animation: ino-status 8s infinite backwards;
}

.ino-badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(76, 195, 255, 0.16);
    color: var(--cyan);
    font-weight: 700;
    animation: ino-badge 8s infinite backwards;
}

.ino-badge .icon {
    width: 14px;
    height: 14px;
}

@keyframes ino-flash {
    0%, 4% { opacity: 0; }
    9% { opacity: 1; }
    24%, 100% { opacity: 0; }
}

@keyframes ino-flash-dst {
    0%, 44% { opacity: 0; }
    50% { opacity: 1; }
    64%, 100% { opacity: 0; }
}

@keyframes ino-pk-in {
    0%, 10% { stroke-dashoffset: 14; }
    28%, 100% { stroke-dashoffset: -100; }
}

@keyframes ino-pk-out {
    0%, 32% { stroke-dashoffset: 14; }
    48%, 100% { stroke-dashoffset: -100; }
}

@keyframes ino-ai {
    0%, 24% { transform: scale(1); }
    30% { transform: scale(1.12); }
    36%, 100% { transform: scale(1); }
}

@keyframes ino-val {
    0%, 44% { opacity: 0; transform: translateX(-8px); }
    52%, 90% { opacity: 1; transform: none; }
    96%, 100% { opacity: 0; transform: none; }
}

@keyframes ino-status {
    0%, 56% { opacity: 0.3; }
    62%, 92% { opacity: 1; }
    97%, 100% { opacity: 0.3; }
}

@keyframes ino-badge {
    0%, 62% { opacity: 0; transform: scale(0.7); }
    68% { opacity: 1; transform: scale(1.08); }
    72%, 92% { opacity: 1; transform: scale(1); }
    97%, 100% { opacity: 0; transform: scale(1); }
}

/* Schönberg: calm portal dashboard */
.sb {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sb-card {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.sb-contracts,
.sb-stat,
.sb-network,
.sb-commission {
    grid-column: 1 / -1;
}

@media (min-width: 30rem) {
    .sb-stat,
    .sb-network {
        grid-column: auto;
    }
}

@media (min-width: 60rem) {
    .sb {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sb-contracts { grid-column: 1 / span 2; grid-row: 1; }
    .sb-stat { grid-column: 3; grid-row: 1 / span 2; }
    .sb-network { grid-column: 1; grid-row: 2; }
    .sb-commission { grid-column: 2; grid-row: 2; }
}

.sb-title {
    margin-bottom: 0.6rem;
    color: #8b97a8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sb-list,
.sb-sum,
.sb-legend {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sb-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    padding: 0.45rem 0;
    border-top: 1px solid var(--line);
}

.sb-list li:first-child {
    border-top: 0;
}

.sb-id {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    color: #d5dbe4;
}

.sb-type {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #fff;
}

.sb-status {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #c4ccd8;
    font-size: 11px;
    white-space: nowrap;
}

.sb-status.is-active {
    background: rgba(76, 195, 255, 0.15);
    color: var(--cyan);
}

.sb-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.1rem;
    border-color: rgba(76, 195, 255, 0.35);
    background: linear-gradient(150deg, rgba(35, 115, 162, 0.5), rgba(35, 115, 162, 0.12));
    /* Kennzahl richtet sich nach der Breite der Box, damit "90 – 95 %" immer hineinpasst */
    container-type: inline-size;
}

.sb-stat-num {
    color: #fff;
    /* Fallback ohne Container-Query-Einheiten, danach Größe relativ zur Boxbreite */
    font-size: clamp(1.35rem, 1.3vw + 0.8rem, 2rem);
    font-size: clamp(1.35rem, 17cqi, 2.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.sb-stat-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.35;
}

.sb-tree {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 0.5rem;
}

.sb-edges path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1.5;
}

.sb-node-1 { fill: var(--cyan); }
.sb-node-2 { fill: #2373a2; }
.sb-node-3 { fill: #3b4b66; }

.sb-node-root {
    transform-box: fill-box;
    transform-origin: center;
    animation: sb-pulse 4s ease-in-out infinite;
}

@keyframes sb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.sb-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.75rem;
    color: #a3adbb;
    font-size: 10px;
}

.sb-legend li {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.sb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.sb-dot-1 { background: var(--cyan); }
.sb-dot-2 { background: #2373a2; }
.sb-dot-3 { background: #3b4b66; }

.sb-sum li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0;
    color: #d5dbe4;
    font-variant-numeric: tabular-nums;
}

.sb-total {
    margin-top: 0.25rem;
    border-top: 1px solid var(--line-hover);
    color: #fff !important;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .tabs-ready .project-panel:not([hidden]),
    .float-tag-1,
    .float-tag-2,
    .ui-window *,
    .ui-window *::before,
    .ui-window *::after {
        animation: none !important;
    }

    .float-tag {
        transform: none;
    }
}

/* "Sound familiar?": problem (muted) above, solution (cyan) below a hairline */
.pain-card .pain-problem {
    margin: 0 0 1.25rem;
    color: #a3adbb;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.45;
}

.bento-card .pain-solution {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    color: var(--cyan);
    font-weight: 600;
}

.pain-solution .icon {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
}

/* Section backgrounds: three subtle variants plus a 1-px divider between sections.
   Text contrast stays AA on all three (muted #a3adbb is above 7:1 on each). */
.section--base {
    background: #0b1220;
}

.section--alt {
    /* Cards need a slightly lighter surface to stand out from the bluer alt background */
    --surface: #15233d;
    background:
        radial-gradient(48rem 28rem at 0% 0%, rgba(35, 115, 162, 0.16), transparent 70%),
        #0e1a30;
}

.section--deep {
    background:
        radial-gradient(48rem 28rem at 100% 100%, rgba(35, 115, 162, 0.14), transparent 70%),
        #070d19;
}

/* Hero keeps a soft glow behind the process graphic on top of the deep variant */
.hero.section--deep {
    background:
        radial-gradient(50rem 32rem at 85% 25%, rgba(35, 115, 162, 0.32), transparent 65%),
        radial-gradient(48rem 28rem at 100% 100%, rgba(35, 115, 162, 0.14), transparent 70%),
        #070d19;
}

main > section + section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Admin area (.adm-): own layout without the public header and footer */
.adm {
    --surface: #111a2e;
    --line: rgba(255, 255, 255, 0.08);
    --cyan: #4cc3ff;
    /* Inhalt 1200 px breit; .container hat zusätzlich 1rem Innenabstand je Seite */
    --container: calc(1200px + 2rem);
    min-height: 100vh;
    background:
        radial-gradient(40rem 24rem at 100% 0%, rgba(35, 115, 162, 0.18), transparent 70%),
        #0b1220;
}

.adm :focus-visible {
    outline-color: var(--cyan);
}

.adm-bar {
    border-bottom: 1px solid var(--line);
    background: #070d19;
}

.adm-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.adm-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--cyan);
    font-weight: 700;
    text-decoration: none;
}

.adm-brand img,
.adm-login-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.adm-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.adm-nav a,
.adm-link-button {
    display: inline-block;
    padding: 0.5rem 0.25rem;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.adm-nav a:hover,
.adm-nav a[aria-current="page"],
.adm-link-button:hover {
    color: var(--cyan);
}

.adm-nav form {
    margin: 0;
}

.adm-main {
    padding: 2.5rem 0 4rem;
}

.adm-page h1 {
    font-size: clamp(2rem, 2vw + 1.25rem, 2.75rem);
}

.adm-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.adm-card {
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.adm-card h2 {
    font-size: 1.3rem;
}

.adm-placeholder {
    margin-top: 2rem;
    color: var(--text-muted);
}

.adm-placeholder p {
    margin: 0;
}

.adm-grid {
    display: grid;
    gap: 16px;
    margin-top: 1.5rem;
}

@media (min-width: 56.25rem) {
    .adm-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
        align-items: start;
    }
}

.adm-facts {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.adm-facts dt {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.adm-facts dd {
    margin: 0;
    color: #fff;
    overflow-wrap: anywhere;
}

/* Login: centered card */
.adm-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 6.5rem);
    padding: 0 1rem;
}

.adm-login .adm-card {
    width: 100%;
    max-width: 26rem;
    box-shadow: 0 0 80px -30px rgba(35, 115, 162, 0.8);
}

.adm-login-logo {
    display: block;
    margin-bottom: 1.5rem;
}

.adm-login h1 {
    font-size: 1.75rem;
}

.adm-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.adm-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--cyan);
}

.adm-check label {
    margin: 0;
    font-weight: 500;
}

/* Admin-Bereich: kompakte Buttons statt der großen Pillen der Webseite */
.adm .button {
    padding: 0.35rem 0.85rem;
    border-width: 1.5px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.adm-submit {
    width: 100%;
    text-align: center;
}

/* Beleg-Verwaltung im Admin-Bereich (.bl-), Paket 4c. Statusfarben nur ergänzend, der Text trägt die Information. */
.bl-subbar {
    border-top: 1px solid var(--line);
    background: #0a1222;
}

.bl-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
}

.bl-subnav a {
    display: inline-block;
    padding: 0.5rem 0.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.bl-subnav a:hover,
.bl-subnav a[aria-current="page"] {
    color: var(--cyan);
}

.bl-subnav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.4em;
}

.bl-section {
    margin-top: 1.5rem;
}

.bl-stack {
    display: grid;
    gap: 16px;
    align-content: start;
}

.bl-grid-2 {
    display: grid;
    gap: 16px;
    margin-top: 1.5rem;
}

@media (min-width: 48rem) {
    .bl-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bl-alert-hint {
    border: 1px solid rgba(255, 209, 102, 0.4);
    background: rgba(255, 209, 102, 0.08);
    color: #ffd98a;
}

.bl-alert-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
}

.bl-alert-list {
    margin: 0;
    padding-left: 1.25rem;
}

.bl-empty {
    margin: 0;
    color: var(--text-muted);
}

.bl-hint-gap {
    margin-top: 1.25rem;
}

.bl-muted {
    color: var(--text-muted);
}

.bl-wrap,
.bl-break {
    overflow-wrap: anywhere;
}

/* Kennzahlen */
.bl-stats {
    display: grid;
    gap: 12px;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.bl-stat,
.bl-stat a {
    display: grid;
    gap: 0.15rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
}

.bl-stat a {
    margin: -1.1rem -1.25rem;
    border: 0;
}

.bl-stat:has(a:hover) {
    border-color: rgba(76, 195, 255, 0.45);
}

.bl-stat-label,
.bl-stat-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bl-stat-value {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.bl-pairs {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.bl-pairs > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--line);
}

.bl-pairs dt {
    color: var(--text-muted);
}

.bl-pairs dd {
    margin: 0;
    color: #fff;
    text-align: right;
    overflow-wrap: anywhere;
}

/* Social-Analytics: Verlauf als Inline-SVG (zwei Linien, je auf ihr eigenes Maximum skaliert) */
.so-chart {
    display: block;
    width: 100%;
    height: 10rem;
    margin-top: 0.5rem;
}

.so-chart-achse {
    stroke: var(--line);
    stroke-width: 1;
}

.so-chart-linie {
    fill: none;
    stroke: #4cc3ff;
    stroke-width: 2;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.so-chart-linie--2 {
    stroke: #f5c451;
    stroke-dasharray: 6 4;
}

.so-legende {
    display: inline-block;
    width: 1.25rem;
    height: 0;
    margin: 0 0.25rem 0.2rem 0.5rem;
    vertical-align: middle;
    border-top: 2px solid #4cc3ff;
}

.so-legende--2 {
    border-top: 2px dashed #f5c451;
}

/* Badges: Text plus Rahmen, Farbe nie allein */
.bl-badge {
    display: inline-block;
    padding: 0.1rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.bl-badge--ok {
    border-color: rgba(111, 220, 154, 0.5);
    color: var(--success);
}

.bl-badge--warn {
    border-color: rgba(255, 209, 102, 0.5);
    color: #ffd98a;
}

.bl-badge--fehler {
    border-color: rgba(255, 138, 128, 0.55);
    color: var(--error);
}

.bl-badge--neutral {
    color: var(--text-muted);
}

.bl-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Tabellen: auf schmalen Bildschirmen horizontal scrollbar, mit Fokus per Tastatur erreichbar */
.bl-table-wrap {
    overflow-x: auto;
}

.bl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.bl-table th,
.bl-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.bl-table thead th {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.bl-table tbody th {
    font-weight: 600;
}

.bl-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

/* Einzeilige Tabellen (z. B. Empfänger): Zellen umbrechen nicht, Aktionen stehen in einer Reihe */
.bl-table-nowrap th,
.bl-table-nowrap td {
    white-space: nowrap;
    vertical-align: middle;
}

.bl-table-nowrap .bl-actions,
.bl-table-nowrap .bl-inline-confirm {
    flex-wrap: nowrap;
}

.bl-table .bl-num {
    text-align: right;
    white-space: nowrap;
}

.bl-check {
    width: 20px;
    height: 20px;
    accent-color: var(--cyan);
}

/* Filter und Formulare */
.bl-filter {
    display: grid;
    gap: 0 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    /* Oben ausrichten: Hinweistexte unter einzelnen Feldern verschieben die Nachbarn nicht */
    align-items: start;
}

.bl-filter .form-field {
    margin-bottom: 0.75rem;
}

/* Kästchen und Buttons als eigene Zeile über die volle Breite */
.bl-filter-check,
.bl-filter-actions {
    grid-column: 1 / -1;
}

.bl-filter .form-hint {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
}

.bl-filter-check {
    margin-bottom: 0.5rem;
}

.bl-filter-check label {
    font-weight: 500;
}

.bl-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.bl-filter select,
.bl-bulk select,
.bl-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    font: inherit;
    color: var(--text);
    background: var(--bg-alt);
}

.bl-filter input,
.bl-filter select {
    padding: 0.6rem 0.75rem;
}

.bl-form-row {
    display: grid;
    gap: 0 1rem;
}

@media (min-width: 36rem) {
    .bl-form-row {
        grid-template-columns: 1fr 1.5fr;
    }
}

.bl-form textarea {
    min-height: 6rem;
}

.bl-toolbar,
.bl-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.bl-toolbar {
    margin-top: 1.25rem;
}

.bl-actions form {
    margin: 0;
}

.bl-toolbar .button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.bl-link {
    font-size: 0.875rem;
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.bl-link-danger {
    color: var(--error);
}

.bl-inline-confirm {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.bl-inline-confirm .adm-check label {
    font-size: 0.85rem;
}

/* Löschen am Kontokärtchen: abgesetzt unter den Aktionen */
.bl-account-delete {
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.bl-account-delete .form-hint {
    flex-basis: 100%;
    margin: 0;
    font-size: 0.8rem;
}

.button.bl-button-danger {
    margin-top: 1rem;
    border-color: var(--error);
    background: transparent;
    color: var(--error);
}

.button.bl-button-danger:hover {
    background: rgba(255, 138, 128, 0.12);
    color: var(--error);
}

.bl-danger {
    border-color: rgba(255, 138, 128, 0.3);
}

.bl-bulk {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.75rem;
}

.bl-bulk legend {
    padding: 0 0.4rem;
    font-weight: 700;
}

.bl-bulk .button {
    justify-self: start;
}

.bl-nachtrag {
    display: grid;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px dashed rgba(255, 209, 102, 0.45);
    border-radius: 12px;
}

/* Konten als Karten */
.bl-cards {
    display: grid;
    gap: 16px;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 56.25rem) {
    .bl-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bl-account {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.bl-account-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.bl-account-head h2 {
    margin: 0;
}

/* Vorschau */
.bl-preview .bl-actions {
    margin-bottom: 1rem;
}

.bl-frame {
    width: 100%;
    height: 70vh;
    min-height: 24rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.bl-image {
    display: block;
    max-width: 100%;
    border-radius: 12px;
    background: #fff;
}

.bl-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.bl-pager [aria-disabled="true"] {
    color: var(--text-muted);
}

.bl-tile .button {
    margin-top: 0.5rem;
}

/* Hinweis während langer Aufrufe (public/js/admin.js): Punkt pulsiert, ohne Bewegung bei reduzierter Animation */
.bl-laeuft {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.bl-laeuft::before {
    content: "";
    flex: none;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: currentColor;
    animation: bl-puls 1.2s ease-in-out infinite;
}

.bl-laeuft-zeit {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@keyframes bl-puls {
    50% {
        opacity: 0.25;
        transform: scale(0.7);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bl-laeuft::before {
        animation: none;
    }
}

/* Blog-Verwaltung (Admin, nutzt die .bl-Bausteine) */
.bl-klein {
    font-size: 0.85rem;
    font-weight: 400;
}

/* Formular über die volle Kartenbreite, Inhalt in zwei Spalten (ab 56.25rem) */
.form.bl-form-breit {
    max-width: none;
}

.bl-spalten {
    display: grid;
    gap: 0 2.5rem;
}

@media (min-width: 56.25rem) {
    .bl-spalten {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.bl-h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.1rem;
}

.bl-feld {
    margin-bottom: 1.25rem;
}

.bl-fieldset {
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.bl-fieldset legend {
    padding: 0 0.4rem;
    font-weight: 600;
}

.bl-slot {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.5rem 1.25rem;
}

.bl-slot .form-field {
    margin-bottom: 0.75rem;
}

.bl-slot .adm-check {
    margin-bottom: 1.1rem;
}

@media (min-width: 48rem) {
    .bl-form-row--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.bl-blocks {
    display: grid;
    gap: 12px;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.bl-block fieldset {
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
}

.bl-block legend {
    padding: 0 0.4rem;
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 600;
}

.bl-queue {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding-left: 1.25rem;
}

.bl-input-klein {
    min-width: 0;
    flex: 1 1 10rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    font: inherit;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--bg-alt);
}

/* Öffentlicher Blog: Übersicht. Kopf über die volle Breite (auch die Einleitung), ohne unteren Abstand,
   darunter die Kategorie-Leiste (.lx-jump) */
.blog-index-kopf .section-head {
    margin-bottom: 0;
}

.blog-index-kopf .section-title,
.blog-index-kopf .section-intro {
    max-width: none;
}

/* Überschrift einzeilig: Schriftgröße folgt der Breite des Kopfes (Container-Einheiten), mobil darf sie umbrechen */
.blog-index-kopf .section-head {
    container-type: inline-size;
}

@supports (font-size: 1cqi) {
    .blog-index-kopf .section-title {
        font-size: clamp(2.25rem, 5.6cqi, 5rem);
    }
}

.blog-leer {
    padding: 2rem 1.5rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    color: var(--text-muted);
    text-align: center;
}

.blog-seiten {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.blog-seiten [aria-disabled="true"] {
    color: var(--text-muted);
}

/* Öffentlicher Blog: Artikelseite (auch Admin-Vorschau) */
.blog-vorschau {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 209, 102, 0.4);
    background: rgba(255, 209, 102, 0.1);
    color: #ffd98a;
    font-size: 0.95rem;
}

.blog-schmal {
    max-width: 48rem;
}

/* Detailseite: zwei Spalten ab 64rem, rechte Spalte läuft beim Scrollen mit (unter dem Sticky-Header) */
.blog-layout {
    --blog-zurueck-zeile: 1.5rem;
    --blog-zurueck-abstand: 1.25rem;
    display: grid;
    gap: 2.5rem;
}

.blog-seite-innen {
    display: grid;
    gap: 16px;
}

@media (min-width: 64rem) {
    .blog-layout {
        grid-template-columns: minmax(0, 1fr) 21rem;
        gap: 3rem;
        align-items: start;
    }

    /* Spalte so hoch wie der Artikel, sonst hat sticky keinen Raum zum Mitlaufen */
    .blog-seite {
        align-self: stretch;
        /* So tief wie der Link "Alle Beiträge" (Zeile + Abstand), damit Bild und "In Kürze" oben bündig sind */
        padding-top: calc(var(--blog-zurueck-zeile) + var(--blog-zurueck-abstand));
    }

    .blog-seite-innen {
        position: sticky;
        top: 6.5rem;
        /* Höher als der Bildschirm: innen scrollbar statt abgeschnitten */
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    .blog-titel {
        font-size: clamp(1.9rem, 1.2vw + 1.35rem, 2.6rem);
    }

    .blog-kurz--mobil {
        display: none;
    }
}

@media (max-width: 63.99rem) {
    .blog-kurz--seite {
        display: none;
    }
}

.blog-zurueck {
    margin: 0 0 var(--blog-zurueck-abstand, 1.25rem);
    font-size: 0.95rem;
    line-height: var(--blog-zurueck-zeile, 1.5rem);
}

.blog-zurueck a {
    color: var(--text-muted);
    text-decoration: none;
}

.blog-zurueck a:hover {
    color: var(--primary);
}

.blog-kopf {
    margin-bottom: 2rem;
}

.blog-kopf .blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
}

.blog-kopf .label-pill {
    margin: 0;
}

.blog-titel {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 2.5vw + 1.2rem, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
    hyphens: auto;
    overflow-wrap: break-word;
}

.blog-meta {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.blog-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    object-fit: cover;
}

.blog-cover--gross {
    margin-bottom: 1.5rem;
}

/* Ersatz-Cover ohne Bild: Farbschimmer im Stil der Seite, je Kategorie leicht verschoben */
.blog-cover--css {
    background:
        radial-gradient(60% 80% at 20% 30%, rgba(76, 195, 255, 0.35), transparent 70%),
        radial-gradient(50% 70% at 85% 75%, rgba(35, 115, 162, 0.55), transparent 70%),
        linear-gradient(135deg, #111a2e, #0b1220);
}

.blog-cover--ki,
.blog-cover--saas {
    background:
        radial-gradient(55% 75% at 75% 25%, rgba(76, 195, 255, 0.35), transparent 70%),
        radial-gradient(60% 80% at 15% 85%, rgba(35, 115, 162, 0.55), transparent 70%),
        linear-gradient(135deg, #0b1220, #111a2e);
}

.blog-cover--ecommerce,
.blog-cover--shopware,
.blog-cover--marketing {
    background:
        radial-gradient(70% 60% at 50% 0%, rgba(76, 195, 255, 0.3), transparent 70%),
        radial-gradient(50% 70% at 50% 100%, rgba(35, 115, 162, 0.55), transparent 70%),
        linear-gradient(180deg, #111a2e, #0b1220);
}

.blog-kurz {
    margin: 0 0 2.5rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(35, 115, 162, 0.6);
    border-radius: 20px;
    background: rgba(35, 115, 162, 0.1);
}

.blog-kurz h2 {
    margin: 0 0 0.75rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.blog-kurz ul {
    margin: 0;
    padding-left: 1.2rem;
}

.blog-kurz li + li {
    margin-top: 0.4rem;
}

.blog-inhalt h2 {
    margin: 2.25rem 0 0.75rem;
    font-size: clamp(1.4rem, 1vw + 1.1rem, 1.85rem);
    line-height: 1.25;
}

.blog-inhalt p,
.blog-inhalt li {
    color: rgba(255, 255, 255, 0.86);
}

.blog-inhalt li + li {
    margin-top: 0.4rem;
}

.blog-hinweis {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
    background: rgba(76, 195, 255, 0.06);
}

.blog-faq {
    margin-top: 3rem;
}

.blog-faq h2 {
    font-size: 1.5rem;
}

.blog-faq details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-faq summary {
    padding: 1rem 0;
    font-weight: 600;
    cursor: pointer;
}

.blog-faq details p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.blog-cta {
    margin-top: 3rem;
    padding: 2rem 1.75rem;
    border: 1px solid rgba(35, 115, 162, 0.6);
    border-radius: 24px;
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(35, 115, 162, 0.3), transparent 70%),
        #111a2e;
}

.blog-cta h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

/* In der rechten Spalte: kompakt, Button über die volle Breite */
.blog-seite .blog-kurz,
.blog-seite .blog-cta {
    margin: 0;
    padding: 1.25rem 1.4rem;
}

.blog-seite .blog-kurz li,
.blog-seite .blog-cta p {
    font-size: 0.92rem;
    line-height: 1.5;
}

.blog-seite .blog-kurz li + li {
    margin-top: 0.5rem;
}

.blog-seite .blog-cta h2 {
    font-size: 1.2rem;
}

.blog-seite .blog-cta .button {
    display: block;
    text-align: center;
}

.blog-cta p {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
}

.blog-fussnote {
    margin: 2rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-verwandt-titel {
    margin: 0 0 1.5rem;
    font-size: clamp(1.6rem, 1.5vw + 1.1rem, 2.25rem);
}

@media (min-width: 48rem) {
    .blog-karten {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.blog-karte {
    padding: 0;
    overflow: hidden;
    /* Eigener Rand: --line ist außerhalb einzelner Abschnitte nicht gesetzt */
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111a2e;
}

.blog-karte:hover,
.blog-karte:focus-within {
    border-color: rgba(76, 195, 255, 0.35);
}

.blog-karte .blog-cover {
    border: 0;
    border-radius: 0;
}

.blog-karte-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.5rem 1.5rem;
}

.blog-karte-text .label-pill {
    align-self: flex-start;
    margin-bottom: 0.75rem;
}

.blog-karte h3 a {
    color: #fff;
    text-decoration: none;
}

.blog-karte h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.blog-karte .blog-meta {
    margin: auto 0 0;
    padding-top: 1rem;
}

/* Closing call to action: one large centered card with glow and rotating border */
.cta-card {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 28px;
    text-align: center;
    background:
        radial-gradient(40rem 20rem at 50% 0%, rgba(35, 115, 162, 0.38), transparent 70%) padding-box,
        linear-gradient(var(--surface), var(--surface)) padding-box,
        conic-gradient(
            from var(--angle),
            var(--line) 0deg,
            var(--line) 240deg,
            #2373a2 290deg,
            var(--cyan) 320deg,
            var(--line) 360deg
        ) border-box;
    box-shadow: 0 0 90px -25px rgba(35, 115, 162, 0.8);
}

@media (min-width: 48rem) {
    .cta-card {
        padding: 4rem 3rem;
    }
}

.cta-card .section-title {
    margin-right: auto;
    margin-left: auto;
    max-width: 24ch;
    font-size: clamp(2.5rem, 2.8vw + 1rem, 4rem);
}

.cta-text {
    max-width: 40rem;
    margin: 0 auto 1.75rem;
    color: var(--text-muted);
    font-size: 1.15rem;
}

.cta-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
    margin: 0 0 2.25rem;
    padding: 0;
    list-style: none;
}

.cta-points li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #dbe2ea;
    font-size: 0.95rem;
    text-align: left;
}

/* Mobile: points stacked and centered as a block, icon stays next to wrapped text */
@media (max-width: 47.99rem) {
    .cta-points {
        flex-direction: column;
        align-items: center;
    }

    .cta-points li {
        align-items: flex-start;
    }

    .cta-points .icon {
        flex: none;
        margin-top: 0.15rem;
    }
}

.cta-points .icon {
    width: 18px;
    height: 18px;
    color: var(--cyan);
}

.button.cta-button {
    padding: 1.05rem 2.1rem;
    font-size: 1.05rem;
}

/* Light sweep across the button on hover/focus */
.button-shine {
    position: relative;
    overflow: hidden;
}

.button-shine::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.button-shine:hover::after,
.button-shine:focus-visible::after {
    transform: translateX(120%);
}

.cta-direct {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin: 1.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cta-direct a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0;
    color: var(--text);
    text-decoration: none;
    text-underline-offset: 0.2em;
}

.cta-direct a:hover {
    color: var(--cyan);
    text-decoration: underline;
}

.cta-direct .icon {
    width: 16px;
    height: 16px;
    color: var(--cyan);
}

@media (prefers-reduced-motion: reduce) {
    .button-shine::after {
        display: none;
    }
}

/* Testimonial slider (.ts-): scroll-snap track, 1 card mobile, 2 from 900 px.
   Cards stretch to equal height; JS (testimonials.js) adds arrows, dots and the active card. */
.ts-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ts-hint-badge {
    padding: 0.1rem 0.45rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--cyan);
    font-size: 0.75rem;
    font-weight: 700;
}

.ts-track {
    display: grid;
    grid-auto-columns: 100%;
    grid-auto-flow: column;
    gap: 16px;
    margin: -6px;
    padding: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    scrollbar-width: thin;
}

/* With JS the arrows and dots take over, so the scrollbar can go */
.ts-ready .ts-track {
    scrollbar-width: none;
}

.ts-ready .ts-track::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .ts-track {
        scroll-behavior: smooth;
    }
}

@media (min-width: 56.25rem) {
    .ts-track {
        grid-auto-columns: calc((100% - 16px) / 2);
    }

    /* A single active quote should not sit at half width next to an empty space */
    .ts-track:has(> .ts-card:only-child) {
        grid-auto-columns: min(100%, 52rem);
    }
}

.ts-track:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
    border-radius: 28px;
}

.ts-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    scroll-snap-align: start;
}

@media (min-width: 48rem) {
    .ts-card {
        padding: 2.25rem;
    }
}

.ts-mark {
    width: 44px;
    height: auto;
    color: #2373a2;
}

.ts-quote {
    flex: 1;
    margin: 1.25rem 0 1.75rem;
}

.ts-quote p {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
    line-height: 1.6;
}

.ts-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.ts-initials {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(76, 195, 255, 0.4);
    border-radius: 50%;
    background: linear-gradient(145deg, #2373a2, #16486a);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.ts-name {
    display: block;
    color: #fff;
    font-weight: 700;
}

.ts-role {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ts-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.ts-controls[hidden] {
    display: none;
}

.ts-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-hover);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ts-arrow .icon {
    width: 18px;
    height: 18px;
    transform: rotate(-90deg);
}

.ts-arrow-next .icon {
    transform: rotate(90deg);
}

.ts-arrow:hover:not(:disabled) {
    border-color: var(--cyan);
    background: rgba(76, 195, 255, 0.1);
}

.ts-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.ts-arrow:focus-visible,
.ts-dot:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.ts-dots {
    display: flex;
    gap: 0.25rem;
}

/* 24 px hit area, small visible dot; the current one becomes a short cyan bar */
.ts-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.ts-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.2s ease, background-color 0.2s ease;
}

.ts-dot[aria-current="true"]::before {
    width: 22px;
    background: var(--cyan);
}

@media (prefers-reduced-motion: reduce) {
    .ts-dot::before,
    .ts-arrow {
        transition: none;
    }
}

/* Projects: subtitle and three tabs on small screens (tab bar scrolls sideways) */
.project-copy .project-subtitle {
    margin: -1rem 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 47.99rem) {
    .tab-list {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tab-list::-webkit-scrollbar {
        display: none;
    }

    .tab {
        flex: 1 0 auto;
    }
}

/* Würzburg window: generic shop tiles + order flow with stock sync, 8 s loop */
.wz {
    display: grid;
    gap: 14px;
}

@media (min-width: 30rem) {
    .wz {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    }
}

/* Desktop: Würzburg window as tall as the other two, and no height jump when switching tabs */
@media (min-width: 60rem) {
    .wz-tile {
        min-height: 128px;
        padding: 0.85rem;
    }

    .wz-step {
        padding: 0.85rem 0.75rem;
    }

    .wz-link {
        height: 26px;
    }

    .tabs-ready .project-panel {
        min-height: 29rem;
    }
}

.wz-head {
    height: 24px;
    display: flex;
    align-items: center;
    color: #8b97a8;
    font-size: 11px;
    font-weight: 600;
}

.wz-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wz-tile,
.wz-step {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.wz-tile {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.6rem;
}

.wz-tile-icon,
.wz-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border-radius: 8px;
    background: rgba(35, 115, 162, 0.3);
    color: var(--cyan);
}

.wz-tile-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 0.3rem;
}

.wz-tile-icon .icon,
.wz-step-icon .icon {
    width: 16px;
    height: 16px;
}

.wz-tile-name {
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wz-tile-price {
    color: #a3adbb;
    font-size: 11px;
}

.wz-tile-ordered::after,
.wz-step::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(76, 195, 255, 0.55);
    border-radius: 10px;
    background: rgba(76, 195, 255, 0.08);
    opacity: 0;
    pointer-events: none;
}

.wz-tile-ordered::after {
    animation: wz-flash-tile 8s infinite;
}

.wz-flow {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wz-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
}

.wz-step::after {
    animation: wz-flash-step 8s infinite backwards;
    animation-delay: calc(var(--s) * 2.2s + 0.6s);
}

.wz-step-icon {
    width: 28px;
    height: 28px;
}

.wz-step-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.wz-step-body b {
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wz-step-body small {
    color: #a3adbb;
    font-size: 10.5px;
}

.wz-link {
    position: relative;
    width: 2px;
    height: 16px;
    margin-left: calc(0.65rem + 13px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
}

.wz-link::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 8px;
    border-radius: 2px;
    background: var(--cyan);
    transform: translateY(20px);
    animation: wz-packet 8s infinite backwards;
    animation-delay: calc(var(--s) * 2.2s + 1.4s);
}

.wz-badge {
    flex: none;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(76, 195, 255, 0.15);
    color: var(--cyan);
    font-size: 10.5px;
    font-weight: 700;
}

.wz-badge-erp {
    animation: wz-badge-erp 8s infinite backwards;
}

.wz-badge-ship {
    animation: wz-badge-ship 8s infinite backwards;
}

/* Stock 42 -> 41: both numbers stacked in one grid cell, cross-faded. Final state without animation: 41 */
.wz-swap {
    display: inline-grid;
    color: #fff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.wz-old,
.wz-new {
    grid-area: 1 / 1;
}

.wz-old {
    opacity: 0;
    animation: wz-old 8s infinite backwards;
}

.wz-new {
    animation: wz-new 8s infinite backwards;
}

@keyframes wz-flash-tile {
    0%, 2% { opacity: 0; }
    6% { opacity: 1; }
    16%, 100% { opacity: 0; }
}

@keyframes wz-flash-step {
    0% { opacity: 0; }
    4% { opacity: 1; }
    20%, 100% { opacity: 0; }
}

@keyframes wz-packet {
    0% { transform: translateY(-10px); }
    8%, 100% { transform: translateY(20px); }
}

@keyframes wz-badge-erp {
    0%, 32% { opacity: 0; transform: scale(0.8); }
    38%, 92% { opacity: 1; transform: none; }
    97%, 100% { opacity: 0; transform: none; }
}

@keyframes wz-badge-ship {
    0%, 60% { opacity: 0; transform: scale(0.8); }
    66%, 92% { opacity: 1; transform: none; }
    97%, 100% { opacity: 0; transform: none; }
}

@keyframes wz-old {
    0%, 40% { opacity: 1; }
    46%, 94% { opacity: 0; }
    98%, 100% { opacity: 1; }
}

@keyframes wz-new {
    0%, 40% { opacity: 0; transform: translateY(4px); }
    46%, 94% { opacity: 1; transform: none; }
    98%, 100% { opacity: 0; transform: none; }
}

/* "Why webfellows": 2 key figures + 4 reasons. Mobile: figures side by side, cards full width */
.why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.why-card {
    grid-column: span 2;
}

@media (min-width: 48rem) {
    .why-card-2,
    .why-card-3 {
        grid-column: span 1;
    }
}

@media (min-width: 64rem) {
    .why-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .why-card-1,
    .why-card-4 {
        grid-column: span 2;
    }
}

.why-stat {
    justify-content: center;
    gap: 0.4rem;
    border-color: rgba(76, 195, 255, 0.25);
    background: linear-gradient(150deg, rgba(35, 115, 162, 0.4), rgba(35, 115, 162, 0.08)), var(--surface);
}

.why-stat-num {
    background: linear-gradient(180deg, #fff 40%, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(2.6rem, 3vw + 1.5rem, 4.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.why-stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (forced-colors: active) {
    .why-stat-num {
        background: none;
        color: CanvasText;
    }
}

/* "How we work": three steps with icon circles and a connector that fills while scrolling */
.steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.step-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #4cc3ff, #2373a2);
    box-shadow: 0 0 0 6px rgba(76, 195, 255, 0.08), 0 0 28px -4px rgba(76, 195, 255, 0.6);
}

.step:nth-child(2) .step-icon {
    background: linear-gradient(145deg, #2f8fc6, #1b5a80);
}

.step:nth-child(3) .step-icon {
    background: linear-gradient(145deg, #2373a2, #143e5e);
}

.step-card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-hover);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}

.step-num {
    display: block;
    margin-bottom: 0.75rem;
    background: linear-gradient(180deg, #4cc3ff, rgba(35, 115, 162, 0.35));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.step-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.step-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

/* Connector: track (::before) and fill (::after). Mobile vertical, desktop horizontal */
.step:not(:last-child)::before,
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 27px;
    top: 64px;
    bottom: -8px;
    width: 2px;
    border-radius: 2px;
}

.step:not(:last-child)::before {
    background: rgba(255, 255, 255, 0.12);
}

.step:not(:last-child)::after {
    background: linear-gradient(180deg, #4cc3ff, #2373a2);
    transform: scaleY(0);
    transform-origin: top;
}

@media (min-width: 48rem) {
    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .step {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .step-card {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .step:not(:last-child)::before,
    .step:not(:last-child)::after {
        top: 27px;
        bottom: auto;
        left: calc(50% + 40px);
        width: calc(100% + 16px - 80px);
        height: 2px;
    }

    .step:not(:last-child)::after {
        background: linear-gradient(90deg, #4cc3ff, #2373a2);
        transform: scaleX(0);
        transform-origin: left;
    }
}

@supports (animation-timeline: view()) {
    .step:not(:last-child)::after {
        animation: step-fill linear both;
        animation-timeline: view();
        animation-range: entry 40% cover calc(40% + var(--i, 1) * 8%);
    }
}

@supports not (animation-timeline: view()) {
    .step:not(:last-child)::after {
        transition: transform 0.6s ease-out;
        transition-delay: calc(var(--i, 1) * 200ms + 200ms);
    }

    .step.is-visible:not(:last-child)::after {
        transform: none;
    }
}

@keyframes step-fill {
    to { transform: none; }
}

.approach-highlight {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
    padding: 1.75rem;
    border: 1px solid rgba(76, 195, 255, 0.25);
    border-radius: 24px;
    background:
        radial-gradient(36rem 16rem at 0% 50%, rgba(35, 115, 162, 0.5), transparent 70%),
        var(--surface);
    box-shadow: 0 0 60px -20px rgba(35, 115, 162, 0.9);
}

.approach-highlight .icon-box {
    margin-bottom: 0;
}

.approach-highlight p {
    margin: 0;
    color: #fff;
    font-size: clamp(1.2rem, 0.8vw + 1rem, 1.6rem);
    font-weight: 700;
    line-height: 1.35;
    text-wrap: balance;
}

@media (min-width: 48rem) {
    .approach-highlight {
        flex-direction: row;
        align-items: center;
        padding: 2.25rem 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .step:not(:last-child)::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .step-card,
    .step-card:hover {
        transition: none;
        transform: none;
    }

    .wz-old {
        opacity: 0;
    }
}

/* Social-Autopilot (Admin): Beitragstexte mit Zeilenumbrüchen, Bildvorschau, Vorschau je Profil */
.so-text {
    margin: 0 0 0.75rem;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.so-bild {
    width: 100%;
    max-width: 22rem;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.so-vorschau {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
}

.so-vorschau summary {
    cursor: pointer;
    color: #fff;
}

.so-vorschau .so-text {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

/* Startseite: Link je Leistungskachel zum Abschnitt auf der Seite Leistungen */
.svc-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 1.25rem;
    color: var(--cyan);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

/* Bar chart in the dashboard card (building blocks from the services page). Paused off-screen via app.js. */
.svc-chart .lx-chart { margin-bottom: 0; }
.svc-chart.is-paused .lx-bars i { animation-play-state: paused; }

.svc .tag-list + .svc-more,
.svc .sys-chain + .svc-more,
.svc .svc-chart + .svc-more {
    margin-top: 0;
    padding-top: 1rem;
}

.svc-more:hover {
    color: #fff;
    text-decoration: underline;
}

.svc-more .icon {
    width: 16px;
    height: 16px;
}

/* ===== Seite Leistungen (.lx-) ===== */

.lx-hero {
    padding-bottom: 3rem;
    background:
        radial-gradient(50rem 30rem at 80% 10%, rgba(35, 115, 162, 0.3), transparent 65%),
        radial-gradient(40rem 24rem at 0% 100%, rgba(35, 115, 162, 0.12), transparent 70%),
        #070d19;
}

.lx-hero .section-head {
    margin-bottom: 0;
}

.lx-hero-title {
    max-width: 18ch;
    font-size: clamp(2.5rem, 3.6vw + 1rem, 4.75rem);
}

/* Sprungnavigation: klebt unter dem Seitenkopf, mobil seitlich scrollbar */
.lx-jump {
    position: sticky;
    /* Höhe des Seitenkopfs: Innenabstand 2 × 0.75rem + Logo 40 px + Rand 1 px (rem wächst ab Desktop mit) */
    top: var(--lx-kopf, calc(1.5rem + 41px));
    z-index: 40;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 13, 25, 0.94);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .lx-jump {
        background: rgba(7, 13, 25, 0.8);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }
}

.lx-jump-list {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0.65rem 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
    scroll-padding-inline: 1rem;
}

.lx-jump-list::-webkit-scrollbar {
    display: none;
}

.lx-jump-list li {
    flex: none;
}

/* Gleiche Leiste für Sprungnavigation (Links), Referenzen-Filter (Buttons) und Blog-Kategorien (Links) */
.lx-jump[hidden] {
    display: none;
}

.lx-jump a,
.lx-jump-link {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.4rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: transparent;
    color: #dbe2ea;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.lx-jump a:hover,
.lx-jump-link:hover {
    border-color: rgba(76, 195, 255, 0.6);
    color: #fff;
}

.lx-jump a:focus-visible,
.lx-jump-link:focus-visible {
    outline: 2px solid #4cc3ff;
    outline-offset: 2px;
}

/* Aktiver Eintrag (Abschnitt, Filter, Kategorie): Rand, Fläche und Unterstrich, nicht nur Farbe */
.lx-jump a[aria-current="page"],
.lx-jump-link[aria-pressed="true"],
.lx-jump a[aria-current="true"] {
    border-color: #2373a2;
    background: rgba(35, 115, 162, 0.35);
    color: #fff;
    box-shadow: inset 0 -2px 0 #4cc3ff;
}

.lx-jump-nr {
    color: #4cc3ff;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 72rem) {
    .lx-jump-list {
        justify-content: center;
    }
}

/* Leistungsabschnitte */
.lx-section {
    scroll-margin-top: 3.75rem;
}

.lx-nr {
    margin-right: 0.3rem;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.lx-title {
    font-size: clamp(2.25rem, 3vw + 1rem, 4.25rem);
}

.lx-sub {
    margin: 0 0 1rem;
    color: #a3adbb;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lx-grid {
    display: grid;
    gap: 2.5rem;
}

.lx-cases {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 36rem) {
    .lx-cases {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .lx-cases {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lx-case {
    padding: 1.35rem;
}

.lx-case .icon-box {
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 12px;
}

.lx-case .icon-box .icon {
    width: 20px;
    height: 20px;
}

.lx-case h4 {
    margin: 0 0 0.4rem;
    color: #fff;
    font-size: 1.08rem;
    line-height: 1.3;
    hyphens: auto;
}

.lx-case p {
    font-size: 0.95rem;
}

.lx-stage {
    margin: 0;
}

@media (min-width: 64rem) {
    .lx-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 3rem;
        align-items: start;
    }

    .lx-section--flip .lx-visual {
        order: -1;
    }

    /* Fenster bleibt beim Lesen der Karten im Blick */
    .lx-visual {
        position: sticky;
        top: 9.5rem;
        padding-top: 2.1rem;
    }
}

/* Mock-Fenster: Zeilen mit Status als Text (Badge), Farbe nur als Zusatz */
.lx-window .ui-body {
    font-size: 12.5px;
}

/* Mobil: Seitenleiste als Reiterzeile über dem Inhalt, ab 30rem links daneben */
.lx-body--side {
    display: grid;
    gap: 0.75rem;
}

.lx-body--side .lx-side {
    display: flex;
    gap: 0.25rem;
    padding: 0 0 0.6rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.lx-body--side .lx-side li {
    flex: none;
    margin-bottom: 0;
}

@media (min-width: 30rem) {
    .lx-body--side {
        grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr);
        gap: 0.9rem;
    }

    .lx-body--side .lx-side {
        display: block;
        padding: 0 0.75rem 0 0;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .lx-body--side .lx-side li {
        margin-bottom: 0.25rem;
    }
}

.lx-main {
    min-width: 0;
}

.lx-side {
    margin: 0;
    padding: 0 0.75rem 0 0;
    border-right: 1px solid var(--line);
    list-style: none;
}

.lx-side li {
    margin-bottom: 0.25rem;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    color: #a3adbb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lx-side li.is-active {
    background: rgba(35, 115, 162, 0.3);
    color: #fff;
    font-weight: 600;
}

.lx-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
}

.lx-head .icon,
.lx-foot .icon,
.lx-decision p .icon {
    flex: none;
    width: 16px;
    height: 16px;
    color: #4cc3ff;
}

.lx-rows {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lx-row {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.4rem 0.65rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

/* Lichtpunkt läuft nacheinander über die Zeilen (8-s-Schleife) */
.lx-row::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(76, 195, 255, 0.55);
    border-radius: 12px;
    background: rgba(76, 195, 255, 0.06);
    opacity: 0;
    pointer-events: none;
    animation: lx-flash 8s infinite backwards;
    animation-delay: calc(var(--r, 0) * 1.6s + 0.4s);
}

.lx-row-text {
    min-width: 0;
}

.lx-row-text b,
.lx-row-text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lx-row-text b {
    color: #fff;
    font-weight: 600;
}

.lx-row-text small {
    color: #a3adbb;
    font-size: 11px;
}

.lx-tone--ok { --tone: #6fdc9a; --tone-bg: rgba(111, 220, 154, 0.14); }
.lx-tone--run { --tone: #4cc3ff; --tone-bg: rgba(76, 195, 255, 0.15); }
.lx-tone--wait { --tone: #ffd27a; --tone-bg: rgba(255, 210, 122, 0.14); }
.lx-tone--err { --tone: #ff8a80; --tone-bg: rgba(255, 138, 128, 0.15); }
.lx-tone--draft { --tone: #c3ccd8; --tone-bg: rgba(255, 255, 255, 0.08); }

.lx-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tone);
}

.lx-dot.lx-tone--run {
    animation: lx-pulse 1.6s ease-in-out infinite;
}

.lx-badge {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--tone-bg);
    color: var(--tone);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.lx-progress {
    grid-column: 1 / -1;
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.lx-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2373a2, #4cc3ff);
    transform-origin: left;
    animation: lx-fill 4s ease-in-out infinite;
}

.lx-chart {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.lx-chart-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #a3adbb;
    font-size: 11px;
}

.lx-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 64px;
}

.lx-bars i {
    flex: 1;
    height: var(--h);
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #4cc3ff, #2373a2);
    transform-origin: bottom;
    animation: lx-grow 6s ease-in-out infinite;
    animation-delay: calc(var(--b, 0) * 0.12s);
}

.lx-decision {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(76, 195, 255, 0.35);
    border-radius: 12px;
    background: rgba(35, 115, 162, 0.15);
}

.lx-decision p {
    display: flex;
    gap: 0.45rem;
    margin: 0 0 0.65rem;
    color: #dbe2ea;
}

.lx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-right: 0.4rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.lx-btn .icon {
    width: 12px;
    height: 12px;
}

.lx-btn--primary {
    border-color: #2373a2;
    background: #2373a2;
    animation: lx-press 8s infinite;
}

.lx-foot {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    color: #a3adbb;
    font-size: 11px;
}

@keyframes lx-flash {
    0%, 2% { opacity: 0; }
    6% { opacity: 1; }
    16%, 100% { opacity: 0; }
}

@keyframes lx-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@keyframes lx-fill {
    0% { transform: scaleX(0.08); }
    80%, 100% { transform: scaleX(1); }
}

@keyframes lx-grow {
    0% { transform: scaleY(0.35); }
    25%, 85% { transform: scaleY(1); }
    100% { transform: scaleY(0.35); }
}

@keyframes lx-press {
    0%, 66%, 74%, 100% { transform: none; }
    70% { transform: scale(0.94); }
}

/* Ausgangslage und Lieferung nebeneinander (ab 48rem), darunter Technologien und Hinweis über die volle Breite */
.lx-details {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.75rem;
}

.lx-facts {
    display: grid;
    gap: 1rem;
    margin: 0;
}

@media (min-width: 48rem) {
    .lx-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lx-facts div {
    padding: 1.1rem 1.35rem;
    border-left: 3px solid #2373a2;
    border-radius: 0 16px 16px 0;
    background: rgba(255, 255, 255, 0.035);
}

.lx-facts dt {
    margin-bottom: 0.35rem;
    color: #4cc3ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lx-facts dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.lx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.lx-chips li {
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #dbe2ea;
    font-size: 0.8rem;
}

.lx-note {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(76, 195, 255, 0.3);
    border-radius: 16px;
    background: rgba(35, 115, 162, 0.12);
}

.lx-note .icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: #4cc3ff;
}

.lx-note p {
    margin: 0;
    color: #dbe2ea;
    font-size: 0.95rem;
}

.lx-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #4cc3ff;
    font-weight: 600;
    text-decoration: none;
}

.lx-cta a .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.lx-cta a:hover {
    color: #fff;
    text-decoration: underline;
}

.lx-cta a:hover .icon {
    transform: translateX(3px);
}

.lx-cta {
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

/* Inline statt Flex: Der Pfeil bleibt beim Umbruch am letzten Wort */
.lx-cta a {
    display: inline;
    font-size: 1.05rem;
}

.lx-cta a .icon {
    display: inline-block;
    margin-left: 0.2rem;
    vertical-align: -0.2em;
}

/* Abschluss: ohne die 24ch-Grenze der Startseite, damit "Automatisierung" auf dem Desktop nicht getrennt wird */
.cta-card .lx-cta-title {
    max-width: none;
}

/* Ab Tablet passt das Wort ganz in eine Zeile: weiches Trennzeichen dort nicht nutzen */
@media (min-width: 48rem) {
    .lx-cta-title .accent {
        white-space: nowrap;
    }
}

/* Vorgehen und FAQ */
.lx-steps-link {
    margin: 2.5rem 0 0;
    text-align: center;
}

.lx-faq-list {
    max-width: 52rem;
    border-top: 1px solid var(--line);
}

.lx-faq-list details {
    border-bottom: 1px solid var(--line);
}

.lx-faq-list summary {
    position: relative;
    padding: 1.15rem 2.75rem 1.15rem 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.lx-faq-list summary::-webkit-details-marker {
    display: none;
}

/* Plus/Minus als Zeichen, Zustand zusätzlich über das native Aufklappen erkennbar */
.lx-faq-list summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 0.5rem;
    color: #4cc3ff;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
}

.lx-faq-list details[open] summary::after {
    content: '\2013';
}

.lx-faq-list summary:hover {
    color: #4cc3ff;
}

.lx-faq-list details p {
    max-width: 46rem;
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (prefers-reduced-motion: reduce) {
    .lx-row::after,
    .lx-dot.lx-tone--run,
    .lx-progress i,
    .lx-bars i,
    .lx-btn--primary {
        animation: none;
    }

    .lx-jump a,
    .lx-cta a .icon {
        transition: none;
    }

    .lx-cta a:hover .icon {
        transform: none;
    }
}

/* ===== Seite Über uns (.ab-) ===== */

.lx-section,
.ab-section {
    scroll-margin-top: 3.75rem;
}

.ab-title {
    font-size: clamp(2.25rem, 3vw + 1rem, 4.25rem);
}

/* Seitenkopf: Text links, Zähler rechts (Desktop), mobil darunter nebeneinander */
.ab-hero-grid {
    display: grid;
    gap: 2rem;
}

/* Desktop: nach dem ersten Satz neue Zeile ("Wir sind webfellows." / "Wir machen Abläufe leichter.") */
.ab-satz {
    display: none;
}

.lx-hero-title.ab-hero-title {
    max-width: none;
}

.ab-hero-links {
    margin: 2rem 0 0;
}

.ab-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ab-stat {
    padding: 1.25rem;
}

.ab-stat .why-stat-num {
    font-size: clamp(2.4rem, 2.5vw + 1.4rem, 3.75rem);
}

@media (min-width: 64rem) {
    /* Schmale Zählerspalte, damit die Überschrift Platz für ganze Sätze hat */
    .ab-hero-grid {
        grid-template-columns: minmax(0, 1fr) 14rem;
        align-items: end;
        gap: 2rem;
    }

    .ab-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .ab-satz {
        display: block;
    }
}

/* Zweispaltige Abschnitte (Mission, Nachhaltigkeit) */
.ab-split {
    display: grid;
    gap: 2rem;
}

.ab-split .section-head {
    margin-bottom: 0;
}

@media (min-width: 64rem) {
    .ab-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 4rem;
        align-items: center;
    }

    .ab-split--top {
        align-items: start;
    }
}

.ab-inline-link {
    margin-top: 1.75rem;
    padding-top: 0;
    border-top: 0;
}

/* Mission: drei Stationen mit fortschreitender Linie (nur transform/opacity, 6-s-Schleife) */
.ab-journey {
    margin: 0;
    padding: 1.75rem;
}

.ab-journey-title {
    margin-bottom: 1.5rem;
    color: #4cc3ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ab-stations {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ab-station {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding-bottom: 1.6rem;
}

.ab-station:last-child {
    padding-bottom: 0;
}

.ab-station:not(:last-child)::before,
.ab-station:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 56px;
    bottom: 4px;
    left: 25px;
    width: 2px;
    border-radius: 2px;
}

.ab-station:not(:last-child)::before {
    background: rgba(255, 255, 255, 0.12);
}

.ab-station:not(:last-child)::after {
    background: linear-gradient(180deg, #4cc3ff, #2373a2);
    transform: scaleY(0);
    transform-origin: top;
    animation: ab-line 6s ease-in-out infinite;
    animation-delay: calc(var(--s, 0) * 1.5s);
}

.ab-station-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(76, 195, 255, 0.4);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(35, 115, 162, 0.55), rgba(35, 115, 162, 0.15));
    color: #4cc3ff;
}

.ab-station-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid #4cc3ff;
    border-radius: 50%;
    opacity: 0;
    animation: ab-ring 6s ease-out infinite;
    animation-delay: calc(var(--s, 0) * 1.5s);
}

.ab-station-text strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
}

.ab-station-text span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.ab-journey .ab-journey-caption {
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: #a3adbb;
    font-size: 0.95rem;
}

@keyframes ab-line {
    0% { transform: scaleY(0); }
    25%, 85% { transform: scaleY(1); }
    100% { transform: scaleY(0); }
}

@keyframes ab-ring {
    0%, 100% { opacity: 0; transform: scale(0.9); }
    8% { opacity: 1; transform: scale(1); }
    25% { opacity: 0; transform: scale(1.15); }
}

/* Werte: 1 / 2 / 3 Spalten */
@media (min-width: 64rem) {
    .ab-werte {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Sicherheit: Zeilenkarten mit Icon links (anderes Muster als die Werte-Kacheln) */
.ab-measures {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 48rem) {
    .ab-measures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ab-measure {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.ab-measure .icon-box {
    flex: none;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 12px;
}

/* Textblock darf schmaler werden als lange Wörter ("Verarbeitungsverzeichnis"), sonst Überlauf bei 320 px */
.ab-measure > div {
    min-width: 0;
}

.ab-measure h3 {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1.1rem;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}

@media (max-width: 23.99rem) {
    .ab-measure {
        gap: 0.85rem;
        padding: 1.1rem;
    }
}

.ab-measure p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* Nachhaltigkeit: kompakte Liste mit grünem Icon (Text bleibt weiß/grau) */
.ab-green-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 36rem) {
    .ab-green-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ab-green-item {
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
}

.ab-green-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(111, 220, 154, 0.3);
    border-radius: 12px;
    background: rgba(111, 220, 154, 0.1);
    color: #6fdc9a;
}

.ab-green-icon .icon {
    width: 20px;
    height: 20px;
}

.ab-green-item h3 {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1.08rem;
}

.ab-green-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* Partner: Initialen-Kreise statt Logos */
.ab-partner-groups {
    display: grid;
    gap: 0 12px;
}

@media (min-width: 36rem) {
    .ab-partner-groups {
        grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    }

    .ab-partner-group--voll {
        grid-column: 1 / -1;
    }
}

.ab-partner-group {
    margin-bottom: 2rem;
}

.ab-partners {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 36rem) {
    .ab-partners {
        grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    }
}

.ab-partner {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    transition: border-color 0.2s ease;
}

.ab-partner:hover {
    border-color: var(--line-hover);
}

/* Mobil: kompaktere Kacheln, damit die Liste nicht zu lang wird */
@media (max-width: 35.99rem) {
    .ab-partners {
        gap: 8px;
    }

    .ab-partner {
        padding: 0.75rem 0.9rem;
    }

    .ab-partner .ab-initials {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

.ab-initials {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(76, 195, 255, 0.4);
    border-radius: 50%;
    background: linear-gradient(145deg, #2373a2, #16486a);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.ab-partner-text {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.ab-partner-text strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.ab-partner-cat {
    color: #a3adbb;
    font-size: 0.85rem;
}

.ab-partner-status {
    justify-self: start;
    margin-top: 0.15rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid rgba(76, 195, 255, 0.4);
    border-radius: 999px;
    color: #4cc3ff;
    font-size: 0.75rem;
}

.ab-partner-text a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.2rem;
    color: #4cc3ff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.ab-partner-text a:hover {
    color: #fff;
    text-decoration: underline;
}

.ab-partner-text a .icon {
    width: 14px;
    height: 14px;
}

.ab-partner-more {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ab-partner-more summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.1rem 0;
    color: #fff;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.ab-partner-more summary::-webkit-details-marker {
    display: none;
}

.ab-partner-more summary::before {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(76, 195, 255, 0.5);
    border-radius: 50%;
    color: #4cc3ff;
    font-weight: 400;
}

.ab-partner-more[open] summary::before {
    content: '\2013';
}

.ab-partner-more summary:hover {
    color: #4cc3ff;
}

.ab-count {
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #a3adbb;
    font-size: 0.8rem;
    font-weight: 600;
}

.ab-partner-more .ab-partners {
    padding-bottom: 1.25rem;
}

/* Kontakt und Standort */
.ab-contact-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 64rem) {
    .ab-contact-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        align-items: stretch;
    }
}

.cta-card.ab-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: none;
    margin: 0;
    padding: 2.25rem 1.5rem;
    text-align: left;
}

@media (min-width: 48rem) {
    .cta-card.ab-cta {
        padding: 3rem;
    }
}

.ab-cta .section-title {
    max-width: none;
    margin-left: 0;
    font-size: clamp(2.25rem, 2.4vw + 1rem, 3.5rem);
}

.ab-cta .cta-text {
    margin-left: 0;
}

.ab-location {
    padding: 1.5rem;
}

.ab-location h3 {
    margin: 0 0 1rem;
    color: #fff;
}

/* Stilisierte Karte aus CSS (keine externe Karte) */
.ab-map {
    position: relative;
    height: 9rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 22px),
        radial-gradient(14rem 8rem at 55% 40%, rgba(35, 115, 162, 0.35), transparent 70%),
        #0d1830;
}

.ab-map-river {
    position: absolute;
    top: 52%;
    left: -15%;
    width: 130%;
    height: 16px;
    border-radius: 50%;
    background: rgba(35, 115, 162, 0.45);
    transform: rotate(-10deg);
}

.ab-map-pin {
    position: absolute;
    top: 18%;
    left: 52%;
    color: #4cc3ff;
}

.ab-map-pin .icon {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    fill: rgba(11, 18, 32, 0.9);
}

/* Pulsierender Ring unter der Nadel */
.ab-map-pin::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 30px;
    width: 26px;
    height: 10px;
    margin-left: -13px;
    border: 1px solid #4cc3ff;
    border-radius: 50%;
    animation: ab-pulse 2.4s ease-out infinite;
}

@keyframes ab-pulse {
    0% { opacity: 0.9; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(1.8); }
}

.ab-location-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.ab-location-list div {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.ab-location-list dt .icon {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    color: #4cc3ff;
}

.ab-location-list dd {
    margin: 0;
    color: #dbe2ea;
}

.ab-location-list a {
    color: #dbe2ea;
    text-decoration: none;
}

.ab-location-list a:hover {
    color: #4cc3ff;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .ab-station:not(:last-child)::after {
        animation: none;
        transform: none;
    }

    .ab-station-icon::after,
    .ab-map-pin::after {
        animation: none;
        opacity: 0;
    }

    .ab-partner {
        transition: none;
    }
}

/* ===== Seite Referenzen (.rf-) ===== */

/* Startseite, Projekte: Link zur Fallstudie */
.project-case {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    margin-top: 0.9rem;
    color: var(--cyan);
    font-weight: 600;
    text-decoration: none;
}

.project-case:hover {
    color: #fff;
    text-decoration: underline;
}

.project-case .icon {
    width: 16px;
    height: 16px;
}

[data-ref-gruppe][hidden],
[data-ref-kategorie][hidden] {
    display: none;
}

/* Fallstudien */
.rf-cases {
    display: grid;
    gap: 5rem;
}

.rf-case {
    display: grid;
    gap: 2rem;
}

@media (min-width: 64rem) {
    .rf-case {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 2rem 3.5rem;
        align-items: center;
    }

    .rf-case--flip {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }

    .rf-case--flip .rf-case-visual {
        order: -1;
    }
}

.rf-case-title {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: clamp(2rem, 2vw + 1.2rem, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    -webkit-hyphens: auto;
    hyphens: auto;
    text-wrap: balance;
}

.rf-kurz {
    margin: 0 0 1.5rem;
    color: #dbe2ea;
    font-size: 1.15rem;
}

.rf-blocks {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rf-block h3,
.rf-meta-title {
    margin: 0 0 0.3rem;
    color: #4cc3ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rf-block p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.rf-meta-title {
    margin-bottom: 0.5rem;
}

.rf-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.rf-services li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #dbe2ea;
    font-size: 0.95rem;
}

.rf-services .icon {
    width: 16px;
    height: 16px;
    color: #4cc3ff;
}

.rf-services--klein li {
    font-size: 0.85rem;
}

.rf-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    color: #4cc3ff;
    font-weight: 600;
    text-decoration: none;
}

.rf-link:hover {
    color: #fff;
    text-decoration: underline;
}

.rf-link .icon {
    width: 16px;
    height: 16px;
}

/* Kundenstimme unter der Fallstudie (wörtlich aus config/testimonials.php) */
.rf-quote {
    margin: 0;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--line);
    border-left: 3px solid #2373a2;
    border-radius: 0 20px 20px 0;
    background: rgba(255, 255, 255, 0.03);
}

@media (min-width: 64rem) {
    .rf-quote {
        grid-column: 1 / -1;
    }
}

.rf-quote blockquote {
    margin: 0 0 1.1rem;
}

.rf-quote blockquote p {
    margin: 0;
    color: #fff;
    font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem);
    line-height: 1.6;
}

.rf-quote figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.rf-quote-hint {
    margin: 0 0 0 auto;
}

/* E-Commerce-Karten: 1 / 2 / 3 Spalten */
@media (min-width: 64rem) {
    .rf-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.rf-card {
    padding: 1.5rem;
}

.rf-card .rf-card-title {
    margin: 0 0 0.2rem;
}

.rf-card .rf-card-kurz {
    margin: 0 0 0.6rem;
    color: #4cc3ff;
    font-size: 0.95rem;
    font-weight: 600;
}

.rf-card .rf-card-text {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.rf-card .rf-link {
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Kleine Vorschauen (nur CSS, aria-hidden, Animation nur transform/opacity) */
.rf-mini {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 7.75rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(35, 115, 162, 0.24), rgba(255, 255, 255, 0.02));
    color: #dbe2ea;
    font-size: 11px;
    line-height: 1.3;
}

.rf-mini .icon {
    width: 12px;
    height: 12px;
}

.rf-mini-bar,
.rf-mini-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}

.rf-mini-pill {
    padding: 0.1rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #c3ccd8;
}

.rf-mini-pill.is-active {
    border-color: #2373a2;
    background: #2373a2;
    color: #fff;
}

.rf-mini-account {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    color: #a3adbb;
}

.rf-mini-list {
    display: grid;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rf-mini-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.28rem 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.rf-mini-list i {
    width: 34px;
    height: 6px;
    border-radius: 3px;
    background: #4cc3ff;
    opacity: 0.35;
    animation: rf-blink 4.8s ease-in-out infinite;
    animation-delay: calc(var(--r, 0) * 0.8s);
}

.rf-mini-move {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.rf-mini-box {
    flex: 1;
    padding: 0.75rem 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.rf-mini-box--alt {
    border-style: dashed;
    color: #a3adbb;
}

.rf-mini-box--neu {
    border-color: #2373a2;
    background: rgba(35, 115, 162, 0.32);
    color: #fff;
}

.rf-mini-arrow {
    color: #4cc3ff;
    animation: rf-nudge 2.4s ease-in-out infinite;
}

.rf-mini-arrow .icon {
    width: 18px;
    height: 18px;
}

.rf-mini-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    align-self: center;
    margin-top: 0.35rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid rgba(76, 195, 255, 0.45);
    border-radius: 999px;
    color: #4cc3ff;
}

.rf-mini-config {
    display: grid;
    gap: 0.3rem;
}

.rf-mini-label {
    color: #a3adbb;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rf-mini-slider {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
}

.rf-mini-slider i {
    position: relative;
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
}

.rf-mini-slider i::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--w, 50%);
    border-radius: 2px;
    background: linear-gradient(90deg, #2373a2, #4cc3ff);
    transform-origin: left;
    animation: rf-slide 5s ease-in-out infinite;
}

@keyframes rf-blink {
    0%, 100% { opacity: 0.35; }
    40%, 60% { opacity: 1; }
}

@keyframes rf-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

@keyframes rf-slide {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(0.8); }
}

@media (prefers-reduced-motion: reduce) {
    .rf-mini-list i,
    .rf-mini-arrow,
    .rf-mini-slider i::after {
        animation: none;
    }

    .rf-mini-list i {
        opacity: 0.7;
    }

    .lx-jump-link {
        transition: none;
    }
}

/* ===== Kontaktseite (.kt-) ===== */

.kt-hero {
    padding-bottom: 2.5rem;
}

.kt-titel {
    max-width: none;
    hyphens: manual;
}

.kt-bereich {
    padding-top: 2.5rem;
}

/* Mobil untereinander (Formular zuerst), ab 900 px zwei Drittel Formular, ein Drittel Seitenspalte */
.kt-grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 56.25rem) {
    .kt-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 2rem;
    }
}

.kt-karte {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg-alt);
}

@media (min-width: 48rem) {
    .kt-karte {
        padding: 2rem;
    }
}

.kt-formular-karte {
    scroll-margin-top: 5rem;
    border-color: rgba(35, 115, 162, 0.45);
    box-shadow: 0 0 60px -30px rgba(35, 115, 162, 0.8);
}

.kt-karte-titel {
    margin: 0 0 1rem;
    font-size: 1.35rem;
}

.kt-seite {
    display: grid;
    gap: 1.5rem;
}

/* Meldungen: Text plus Symbol, Farbe nur als Zusatz */
.kt-meldung {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    line-height: 1.5;
}

.kt-meldung:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.kt-meldung .icon {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 0.1rem;
}

.kt-meldung p {
    margin: 0;
}

.kt-meldung--ok {
    border-color: rgba(111, 220, 154, 0.45);
    background: rgba(111, 220, 154, 0.1);
    color: #b8f0cd;
}

.kt-meldung--fehler {
    border-color: rgba(255, 138, 128, 0.5);
    background: rgba(255, 138, 128, 0.1);
    color: #ffd1cc;
}

.kt-meldung--hinweis {
    border-color: rgba(76, 195, 255, 0.35);
    background: rgba(35, 115, 162, 0.15);
}

.kt-meldung--hinweis .icon {
    color: var(--primary);
}

.kt-meldung-titel {
    font-weight: 700;
}

.kt-zusammenfassung ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
}

.kt-zusammenfassung a {
    color: #ffd1cc;
}

.kt-pflicht {
    margin-left: 0.15rem;
    color: var(--primary);
    font-weight: 700;
}

.kt-pflicht-hinweis {
    margin: 0 0 1.25rem;
}

/* Honeypot: aus dem Sichtbereich, für Screenreader verborgen */
.kt-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Felder: einspaltig, ab ausreichender Breite des Formulars zwei Spalten (Container-Abfrage) */
.kt-form {
    container-type: inline-size;
}

.kt-felder {
    display: grid;
    gap: 0 1.25rem;
}

@container (min-width: 34rem) {
    .kt-felder {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kt-feld--breit {
        grid-column: 1 / -1;
    }
}

.kt-feld input,
.kt-feld textarea,
.kt-feld select {
    min-height: 48px;
}

.kt-feld input:focus-visible,
.kt-feld textarea:focus-visible,
.kt-feld select:focus-visible {
    border-color: var(--primary);
    outline: 3px solid var(--primary);
    outline-offset: 1px;
}

.kt-feld textarea {
    min-height: 11rem;
}

.kt-feld textarea::placeholder {
    color: #8792a3;
}

/* Select: nativ bedienbar, nur das Aussehen angepasst */
.kt-select {
    position: relative;
}

.kt-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.kt-select select {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    background: var(--bg-alt);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.kt-select select:invalid {
    color: #a3adbb;
}

.kt-select option {
    color: var(--text);
    background: var(--bg-alt);
}

.kt-feld select[aria-invalid="true"] {
    border-color: var(--error);
}

.kt-hilfe {
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
}

.kt-fehler {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    font-weight: 600;
}

.kt-fehler[hidden] {
    display: none;
}

.kt-fehler .icon {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
}

.kt-zaehler {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.kt-zustimmung {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.kt-check {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.kt-check input {
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
    margin: 0.15rem 0 0;
    accent-color: #2373a2;
}

.kt-check label {
    font-weight: 400;
}

.kt-check input[aria-invalid="true"] {
    outline: 2px solid var(--error);
    outline-offset: 2px;
}

.kt-kleingedruckt {
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.kt-captcha {
    margin-top: 1.5rem;
    padding: 1.15rem;
    border: 1px dashed rgba(76, 195, 255, 0.35);
    border-radius: 16px;
}

.kt-captcha:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.kt-captcha-titel {
    margin: 0;
    font-weight: 700;
}

.kt-captcha-laden {
    min-height: 44px;
    margin-top: 1rem;
}

.kt-captcha-widget:not(:empty) {
    margin-top: 1rem;
}

.kt-captcha-status {
    margin: 0.75rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.kt-captcha-status:empty {
    display: none;
}

.kt-absenden {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    margin-top: 1.5rem;
}

.kt-senden {
    min-height: 48px;
}

.kt-senden[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

.kt-senden.is-loading {
    opacity: 0.8;
    cursor: progress;
}

.kt-senden-hinweis {
    flex: 1 1 16rem;
    margin: 0;
    font-size: 0.9rem;
}

.kt-senden-hinweis[hidden] {
    display: none;
}

/* Seitenspalte */
.kt-direkt,
.kt-schritte {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kt-direkt li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    overflow-wrap: anywhere;
}

.kt-direkt .icon-box {
    flex: none;
    width: 44px;
    height: 44px;
    margin: 0;
}

.kt-direkt .icon-box .icon {
    width: 20px;
    height: 20px;
}

.kt-direkt-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.kt-direkt a {
    display: inline-block;
    min-height: 24px;
    font-weight: 600;
}

.kt-schritte li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.kt-schritt-nr {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #2373a2;
    border-radius: 50%;
    background: rgba(35, 115, 162, 0.25);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    .kt-senden {
        transition: none;
    }
}

/* ===== Rechtsseiten (.rt-): Impressum, AGB, Datenschutz, Widerrufsbelehrung ===== */

.rt-seite {
    padding-bottom: 4rem;
}

.rt-kopf {
    margin-bottom: 2rem;
}

.rt-titel {
    max-width: 30ch;
    font-size: clamp(2rem, 2.4vw + 1rem, 3.25rem);
    hyphens: auto;
}

.rt-text {
    max-width: 46rem;
    color: #d3dae4;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.rt-text h2 {
    margin: 2.5rem 0 0.75rem;
    color: #fff;
    font-size: 1.35rem;
}

.rt-text h3 {
    margin: 1.75rem 0 0.5rem;
    color: #fff;
    font-size: 1.1rem;
}

.rt-text p,
.rt-text ul {
    margin: 0 0 1rem;
}

.rt-text ul {
    padding-left: 1.25rem;
}

.rt-text li + li {
    margin-top: 0.25rem;
}

.rt-label {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rt-weitere {
    max-width: 46rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.rt-weitere ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rt-weitere a {
    display: inline-block;
    min-height: 44px;
    padding: 0.6rem 0;
}

.rt-weitere a[aria-current="page"] {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* Admin "Anfragen": neue Anfragen hervorgehoben, Nachricht mit Zeilenumbrüchen */
.kt-admin-neu {
    background: rgba(35, 115, 162, 0.16);
    box-shadow: inset 3px 0 0 #4cc3ff;
}

.kt-admin-neu th a {
    font-weight: 700;
}

.kt-admin-nachricht {
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-left: 3px solid #2373a2;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Admin SEO: Schweregrad in der Ergebnisliste */
.seo-stufe {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
}

.seo-stufe--fehler {
    background: rgba(255, 107, 107, 0.16);
    color: #ffb3b3;
}

/* Blog-Artikel: Link zur passenden Leistung unter dem Prozess-Check */
.blog-cta-leistung {
    margin: 0.85rem 0 0;
    font-size: 0.95rem;
}

/* Fehlerseiten 404, 410, 500 */
.fehler-seite {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.fehler-seite .container {
    width: 100%;
}

.fehler-nav {
    margin-top: 2rem;
}

.fehler-weiter {
    margin: 0 0 1rem;
    color: var(--text-muted, #aab4c3);
}

.fehler-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
