/* ── Variant B ── */

:root {
    --brown: #7d6e50;
    --blue: #497683;
    --blue-dark: #3f6570;
    --grey: #4a4a49;
    --off-white: #f5f4f0;
    --ink: #1e1e1b;
    --muted: #6b6b67;
    --panel: #ffffff;
    --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Calibri', Candara, Segoe, sans-serif;
    --font-mono: 'Courier New', monospace;
    --line-motif-bars: linear-gradient(
            90deg,
            rgba(30, 30, 27, 0.75) 0 8px,
            transparent 8px 12px,
            rgba(148, 131, 95, 0.85) 12px 20px,
            transparent 20px 24px,
            rgba(78, 126, 140, 0.85) 24px 32px,
            transparent 32px 100%
    );
}

/* ── Reset ── */

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--off-white);
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

a:hover,
a:focus-visible {
    color: var(--blue);
}

.container {
    width: min(1080px, 90vw);
    margin: 0 auto;
}

/* ── Skip Link ── */

.skip-link {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--off-white);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    transform: translateY(-200%);
    transition: transform 0.2s;
    z-index: 1000;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

/* ── Line Motif: Service Card Left Border ── */

.service-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border-radius: 2px;
}

.service-line::before,
.service-line::after {
    content: '';
    display: block;
    flex: 1;
}

.service-line::before {
    background: linear-gradient(to bottom, var(--ink) 0%, var(--ink) 50%, var(--brown) 50%, var(--brown) 100%);
    opacity: 0.7;
}

.service-line::after {
    background: var(--blue);
    opacity: 0.85;
}

/* ── Header ── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 244, 240, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(74, 74, 73, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 44px;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ink), var(--brown), var(--blue));
    transition: width 0.3s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--ink);
}

.nav a:hover::after,
.nav a:focus-visible::after {
    width: 100%;
}

/* ── Mobile Nav Toggle ── */

.nav-toggle {
    display: none;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--ink);
    background: transparent;
    color: var(--ink);
    padding: 8px 12px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.nav-toggle__icon {
    width: 22px;
    height: 2px;
    background: var(--ink);
    position: relative;
    display: inline-block;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s;
}

.nav-toggle__icon::before {
    top: -7px;
}

.nav-toggle__icon::after {
    top: 7px;
}

.nav-open .nav-toggle__icon {
    background: transparent;
}

.nav-open .nav-toggle__icon::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle__icon::after {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 30, 27, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 90;
}

.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* ── Hero ── */

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
}

.hero .line-motif-hero {
    background-image: linear-gradient(
            90deg,
            rgba(30, 30, 27, 0.75) 0 14px,
            transparent 14px 20px,
            rgba(148, 131, 95, 0.85) 20px 34px,
            transparent 34px 40px,
            rgba(78, 126, 140, 0.85) 40px 54px,
            transparent 54px 100%
    );
    position: absolute;
    top: -200px;
    left: -200px;
    width: 80px;
    height: calc(100% + 200px);
    opacity: 0.45;
    background-size: 80px 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    transform: translateZ(0) skewX(25deg);
    transform-origin: center;
    backface-visibility: hidden;
    will-change: transform;
    pointer-events: none;
    z-index: -1;
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 0 64px;

    width: min(700px, 90vw);
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--blue-dark);
    margin-bottom: 16px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 18px;
}

.lead {
    font-size: 1.0625rem;
    color: var(--grey);
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Buttons ── */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid var(--blue);
    background: var(--blue);
    color: var(--off-white);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(73, 118, 131, 0.3);
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--off-white);
}

.button--outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.button--outline:hover,
.button--outline:focus-visible {
    background: var(--blue);
    color: var(--off-white);
}

/* ── Sections ── */

.section {
    padding: 72px 0;
    scroll-margin-top: 96px;
}

.section--tint {
    background: rgba(148, 131, 95, 0.05);
}

.section-intro {
    font-size: 1.0625rem;
    color: var(--grey);
    max-width: 640px;
    margin-bottom: 40px;
}

.section h2 {
    position: relative;
    margin-left: 48px;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-legal .section h2 {
    margin-left: 0;
}

.section h2 .h2-lines {
    position: absolute;
    left: -48px;
    top: 50%;
    width: 48px;
    height: 26px;
    transform: translate3d(0, -50%, 0) skewX(25deg);
    transform-origin: center;
    backface-visibility: hidden;
    will-change: transform;
    display: inline-block;
}

.line-motif {
    background-image: var(--line-motif-bars);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 2px;
    backface-visibility: hidden;
}

.section h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.section p {
    color: var(--grey);
    margin-bottom: 14px;
}

.section p a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* ── Profil ── */

.profil-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.profil-main p {
    max-width: 600px;
}

.profil-aside {
    display: grid;
    gap: 28px;
}

.aside-block h3 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brown);
    margin-bottom: 12px;
}

.aside-block ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.aside-block ul li {
    font-size: 0.9375rem;
    color: var(--grey);
    padding-left: 16px;
    position: relative;
}

.aside-block ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blue);
}

.aside-link {
    display: inline-flex;
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
}

.aside-link:hover,
.aside-link:focus-visible {
    color: var(--blue);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badges .badge {
    height: 50px;
    padding: 5px 14px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(78, 126, 140, 0.5);
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    flex-direction: row;
}

.badges .badge img {
    height: 40px;
    margin-right: 8px;
}

/* ── Services ── */

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service {
    position: relative;
    padding: 24px 24px 24px 20px;
    background: var(--panel);
    border: 1px solid rgba(74, 74, 73, 0.08);
}

/* ── Competence Grid ── */

.competence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.competence {
    padding: 20px 22px;
    border: 1px solid rgba(30, 30, 27, 0.1);
    background: var(--panel);
}

.competence h3 {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.competence .competence-text {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 0;
    max-height: calc(1.5em * 4.2);
    overflow: hidden;
    position: relative;
}

.competence .competence-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0.9em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--panel));
    display: none;
}

.competence.has-toggle .competence-text::after {
    display: block;
}

.competence.no-toggle .competence-text::after {
    display: none;
}

.competence .competence-toggle {
    margin-top: 6px;
    align-self: flex-start;
    background: transparent;
    color: var(--blue);
    padding: 0;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.competence .competence-toggle:hover,
.competence .competence-toggle:focus-visible {
    border-color: var(--blue);
    color: var(--blue-dark);
}

.competence {
    display: flex;
    flex-direction: column;
}

.competence.is-expanded .competence-text {
    max-height: none;
}

.competence.is-expanded .competence-text::after {
    display: none;
}

.competence--more {
    display: none;
}

.competence-grid.is-expanded .competence--more {
    display: flex;
}

.competence-more-toggle {
    margin-top: 18px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    border: 1px solid rgba(73, 118, 131, 0.35);
    color: var(--blue);
    padding: 8px 14px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.competence-more-toggle:hover,
.competence-more-toggle:focus-visible {
    border-color: var(--blue);
    color: var(--blue-dark);
}

/* ── Zusammenarbeit ── */

.collab-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.collab-text p {
    font-size: 1.0625rem;
    max-width: 540px;
}

.collab-sidebar {
    font-size: 0.9375rem;
}

.collab-sidebar .badges {
    margin-top: 16px;
}

.meta-label {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brown);
    margin-bottom: 12px;
}

/* ── Kontakt ── */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-text p {
    max-width: 440px;
}

.contact-hint {
    font-size: 0.9375rem;
    color: var(--muted);
    margin-bottom: 24px;
}

.contact-details {
    display: grid;
    gap: 24px;
}

.contact-block p {
    font-size: 0.9375rem;
}

.contact-block a {
    transition: color 0.2s;
}

.contact-block a:hover {
    color: var(--blue);
}

/* ── Footer ── */

.site-footer {
    padding: 32px 0 48px;
    border-top: 1px solid rgba(74, 74, 73, 0.1);
    background: rgba(245, 244, 240, 0.9);
}

.footer-inner {
    display: grid;
    gap: 20px;
    color: var(--muted);
    font-size: 0.8125rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.footer-links {
    display: inline-flex;
    gap: 16px;
    align-items: center;
}

.footer-links a {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--blue);
}

.footer-impressum {
    padding-top: 16px;
    border-top: 1px solid rgba(74, 74, 73, 0.08);
}

.footer-impressum .meta-label {
    margin-bottom: 4px;
}

.footer-impressum p {
    margin-bottom: 0;
}

/* ── Honeypot ── */

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ── Animations ── */

.section {
    animation: fadeIn 0.6s ease both;
}

.section:nth-of-type(2) { animation-delay: 0.08s; }
.section:nth-of-type(3) { animation-delay: 0.16s; }
.section:nth-of-type(4) { animation-delay: 0.24s; }
.section:nth-of-type(5) { animation-delay: 0.32s; }
.section:nth-of-type(6) { animation-delay: 0.40s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        position: fixed;
        top: 68px;
        right: 12px;
        left: 12px;
        background: var(--panel);
        border: 1px solid rgba(30, 30, 27, 0.1);
        box-shadow: 0 18px 40px rgba(30, 30, 27, 0.12);
        padding: 16px 18px;
        flex-direction: column;
        gap: 22px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s, transform 0.2s;
        z-index: 110;
    }

    .nav a {
        padding: 4px 0;
    }

    .nav-open .nav {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .hero {
        min-height: 400px;
    }

    .hero-content {
        padding: 40px 0 48px;
    }

    /*.hero .line-motif-hero {*/
    /*    top: -120px;*/
    /*    left: -00px;*/
    /*    width: 64px;*/
    /*    height: calc(100% + 160px);*/
    /*    opacity: 0.55;*/
    /*    background-size: 64px 100%;*/
    /*    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);*/
    /*    mask-image: linear-gradient(to bottom, black 30%, transparent 100%);*/
    /*}*/

    .profil-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .collab-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section {
        padding: 52px 0;
    }
}

@media (max-width: 1024px) {
    .hero .line-motif-hero {
        left: 0;
        width: 56px;
        opacity: 0.2;
        background-size: 56px 100%;
    }
}


kfd-inline .width-container {
    padding: 0 !important;
}

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