/* ── FONTS (lokal gehostet, keine Verbindung zu Google) ── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    /* Farbpalette laut CueCraft-Designsheet */
    --cue-blue: #458FD2;
    --deep-cue: #101820;
    --midnight: #050505;
    --graphite: #343A40;
    --craft-grey: #C8C7C5;
    --signal-grey: #CECECE;
    --cloud: #F4F7F9;
    --white: #FFFFFF;

    --success: #22A06B;
    --warning: #F5A623;
    --error: #D64545;
    --info: #458FD2;

    /* Abgeleitete UI-Tokens (Dark Mode) */
    --bg-primary: var(--midnight);
    --bg-secondary: var(--deep-cue);
    --bg-card: #16212C;
    --bg-card-hover: #1C2936;
    --accent: var(--cue-blue);
    --accent-light: #6FA9DD;
    --accent-glow: rgba(69, 143, 210, 0.15);
    --accent-border: rgba(69, 143, 210, 0.3);
    --text-primary: var(--cloud);
    --text-secondary: var(--craft-grey);
    --text-muted: #8A8F96;
    --border: rgba(206, 206, 206, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1140px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background .3s;
}

.nav.scrolled {
    background: rgba(5, 5, 5, 0.95);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo img {
    display: block;
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: .6rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .875rem;
    transition: opacity .2s, transform .2s;
}

.nav-cta:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: .3s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── SECTIONS ── */
section {
    padding: 6rem 2rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-label {
    color: var(--accent-light);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

/* ── HERO ── */
.hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: .85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: opacity .2s, transform .2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: .9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-light);
    padding: .85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--accent);
    transition: background .2s, transform .2s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* Dashboard Mockup */
.dashboard-mock {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .4);
}

.dash-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.dash-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dash-dot.r {
    background: var(--error);
}

.dash-dot.y {
    background: var(--warning);
}

.dash-dot.g {
    background: var(--success);
}

.dash-title {
    margin-left: .5rem;
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dash-stat {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.dash-stat-label {
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dash-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: .25rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dash-stat-value.tick {
    animation: dash-tick 1.2s ease-out;
}

@keyframes dash-tick {
    0% {
        color: var(--accent-light);
        transform: translateY(-2px);
    }

    100% {
        color: var(--text-primary);
        transform: none;
    }
}

.dashboard-mock.animate .chart-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: dash-draw 1.6s ease-out .2s forwards;
}

.dashboard-mock.animate .chart-area {
    opacity: 0;
    animation: dash-fade .8s ease 1.2s forwards;
}

@keyframes dash-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes dash-fade {
    to {
        opacity: 1;
    }
}

.dash-stat-change {
    font-size: .75rem;
    color: var(--success);
    margin-top: .15rem;
}

.dash-chart {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 1rem;
    height: 120px;
    position: relative;
    overflow: hidden;
}

.dash-chart svg {
    width: 100%;
    height: 80px;
    margin-top: .5rem;
}

.dash-chart .chart-line {
    stroke: var(--accent);
}

.dash-chart .chart-grad-stop {
    stop-color: var(--accent);
}

.dash-chart-label {
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── LEISTUNGEN ── */
.services {
    background: var(--bg-secondary);
}

.services-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.services-header .section-subtitle {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent-light);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: .925rem;
    line-height: 1.65;
}

.service-card ul {
    list-style: none;
    margin-top: 1rem;
}

.service-card ul li {
    color: var(--text-secondary);
    font-size: .875rem;
    padding: .3rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.service-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .65rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* ── REFERENZEN ── */
.reference-card {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 3rem auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.reference-client {
    color: var(--accent-light);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.reference-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.reference-text h4 {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 1.5rem 0 .4rem;
}

.reference-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.reference-compare {
    display: flex;
    align-items: stretch;
    gap: .75rem;
    margin: 1.5rem 0 .5rem;
}

.compare-item {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.compare-item.highlight {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.compare-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.compare-value {
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: .2rem;
}

.compare-item.highlight .compare-value {
    color: var(--accent-light);
}

.compare-note {
    font-size: .8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: .25rem;
}

.compare-arrow {
    display: flex;
    align-items: center;
    color: var(--accent);
    font-size: 1.25rem;
}

.reference-results {
    list-style: none;
    margin-bottom: 1.5rem;
}

.reference-results li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: .6rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.reference-results li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: 700;
}

.text-link {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.text-link:hover {
    color: var(--text-primary);
}

.vote-mock {
    text-align: center;
}

.vote-phone {
    max-width: 240px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
    text-align: left;
}

.vote-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.vote-option {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .9rem;
    margin-bottom: .6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    color: var(--text-secondary);
}

.vote-option.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
    color: var(--text-primary);
}

.vote-radio {
    width: 14px;
    height: 14px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    flex-shrink: 0;
}

.vote-option.selected .vote-radio {
    border-color: var(--accent);
    background: radial-gradient(circle, var(--accent) 40%, transparent 45%);
}

.vote-button {
    margin-top: 1rem;
    background: var(--accent);
    color: var(--white);
    text-align: center;
    padding: .65rem;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
}

.vote-caption {
    margin-top: .75rem;
    font-size: .75rem;
    color: var(--text-muted);
}

/* ── PROZESS ── */
.process {
    background: var(--bg-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -1rem;
    width: calc(100% - 60px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: translateX(50%);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-glow);
    border: 2px solid var(--accent-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-light);
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.process-step p {
    color: var(--text-secondary);
    font-size: .85rem;
    line-height: 1.6;
}

/* ── ÜBER MICH ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-photo {
    position: relative;
    max-width: 460px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .4);
}

.about-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.about-photo figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3rem 1.5rem 1.25rem;
    background: linear-gradient(to top, rgba(5, 5, 5, .85), transparent);
    display: flex;
    flex-direction: column;
}

.about-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.about-role {
    font-size: .85rem;
    color: var(--accent-light);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-top: 2rem;
}

.about-stat {
    text-align: center;
    padding: 1rem .5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.about-stat .num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.about-stat .label {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .25rem;
    line-height: 1.4;
}

.about-text h2 {
    margin-bottom: 1.25rem;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.about-tag {
    background: var(--accent-glow);
    color: var(--accent-light);
    padding: .4rem 1rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}

/* ── WARUM CUECRAFT ── */
.why {
    background: var(--bg-secondary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    transition: transform .2s, border-color .2s;
}

.why-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-border);
}

.why-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.why-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-light);
}

.why-card h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.why-card p {
    color: var(--text-secondary);
    font-size: .85rem;
    line-height: 1.6;
}

/* ── CTA ── */
.cta-section {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ── KONTAKTFORMULAR ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-direct a {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
}

.contact-direct a:hover {
    color: var(--text-primary);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-field label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: .4rem;
}

.form-field .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-field input,
.form-field textarea {
    width: 100%;
    font: inherit;
    font-size: .95rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid rgba(206, 206, 206, 0.18);
    border-radius: var(--radius-sm);
    padding: .75rem .9rem;
    transition: border-color .2s, box-shadow .2s;
}

.form-field textarea {
    resize: vertical;
    min-height: 130px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cta-section .form-privacy {
    font-size: .8rem;
    color: var(--text-muted);
    max-width: none;
    margin-bottom: 1.25rem;
}

.form-privacy a {
    color: var(--accent-light);
}

.contact-form .btn-primary:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

.form-status:empty {
    display: none;
}

.form-status {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
}

.form-status.success {
    background: rgba(34, 160, 107, 0.12);
    border: 1px solid var(--success);
    color: #5fd3a0;
}

.form-status.error {
    background: rgba(214, 69, 69, 0.12);
    border: 1px solid var(--error);
    color: #f08a8a;
}

/* ── FOOTER ── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1.5rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .logo img {
    height: 24px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: .875rem;
    line-height: 1.6;
    margin-top: .75rem;
}

.footer h4 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: .5rem;
}

.footer ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .875rem;
    transition: color .2s;
}

.footer ul a:hover {
    color: var(--text-primary);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: .875rem;
    margin-bottom: .6rem;
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* ── RESPONSIVE ── */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem 2rem;
        gap: 1rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero .container {
        gap: 3rem;
    }

    .dashboard-mock {
        max-width: 560px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .reference-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-photo {
        margin: 0 auto;
        width: 100%;
    }

    .about-stats {
        gap: .5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    section {
        padding: 4rem 1.25rem;
    }

    .nav-inner {
        padding: 0 1.25rem;
    }

    .logo img {
        height: 22px;
    }

    .nav-links.open {
        padding: 1.5rem 1.25rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Kompaktes Dashboard: drei Kennzahlen in einer Reihe */
    .dashboard-mock {
        padding: 1rem;
        border-radius: var(--radius);
    }

    .dash-header {
        margin-bottom: .9rem;
        padding-bottom: .75rem;
    }

    .dash-stats {
        gap: .5rem;
        margin-bottom: .75rem;
    }

    .dash-stat {
        padding: .7rem .6rem;
    }

    .dash-stat-label,
    .dash-chart-label {
        font-size: .6rem;
        letter-spacing: .5px;
    }

    .dash-stat-value {
        font-size: 1.05rem;
    }

    .dash-stat-change {
        font-size: .65rem;
    }

    .dash-chart {
        height: 90px;
        padding: .75rem;
    }

    .dash-chart svg {
        height: 55px;
    }

    .reference-card {
        padding: 1.75rem;
    }

    .reference-compare {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .compare-arrow {
        justify-content: center;
        transform: rotate(90deg);
    }

    .hero {
        padding-top: 8rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: .75rem;
        text-align: center;
    }
}

/* ── LEGAL PAGES (Impressum, Datenschutz) ── */
.nav-back {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.nav-back:hover {
    color: var(--text-primary);
}

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.legal-page .updated {
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: 3rem;
}

.legal-page h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: .75rem;
    color: var(--accent-light);
}

.legal-page h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    margin-bottom: .75rem;
}

.legal-page ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.legal-page ul li {
    padding-left: 1.25rem;
    position: relative;
}

.legal-page ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .65rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.legal-page a {
    color: var(--accent-light);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.placeholder {
    background: rgba(245, 166, 35, 0.15);
    color: var(--warning);
    padding: .1rem .4rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: .9em;
}

.footer--legal {
    padding: 2rem;
    text-align: center;
}

.footer--legal .footer-bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 640px) {
    .legal-page {
        padding: 6rem 1.25rem 3rem;
    }
}

/* ── ANIMATIONS ── */
/* Nur ausblenden, wenn JS läuft – sonst bleiben Inhalte sichtbar */
.js .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0s !important;
    }
}
