/* ===== Freiwerk IT – Design ===== */
/* Hell/Dunkel folgt automatisch dem System (prefers-color-scheme).
   Der Button setzt data-theme="light|dark" nur, wenn bewusst umgeschaltet wurde. */

:root {
    --bg: #f7f8fc;
    --bg-alt: #eef1f9;
    --surface: #ffffff;
    --surface-2: #f3f5fb;
    --border: #e1e6f2;
    --text: #0d1530;
    --text-2: #475069;
    --muted: #6b7390;
    --primary: #3e57da;
    --primary-hover: #2f45bd;
    --primary-soft: rgba(62, 87, 218, .10);
    --on-primary: #ffffff;
    --accent: #00b894;
    --grad: linear-gradient(100deg, #3e57da 0%, #2a8fd8 50%, #00b894 100%);
    --header-bg: rgba(247, 248, 252, .82);
    --shadow: 0 1px 2px rgba(13, 21, 48, .04), 0 8px 24px rgba(13, 21, 48, .06);
    --shadow-lg: 0 2px 4px rgba(13, 21, 48, .05), 0 20px 48px rgba(13, 21, 48, .10);
    --logo-filter: none;
    --radius: 16px;
    --radius-sm: 10px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b0f1c;
        --bg-alt: #0f1426;
        --surface: #131a2f;
        --surface-2: #182038;
        --border: #232c48;
        --text: #eceff8;
        --text-2: #a9b1c9;
        --muted: #8089a6;
        --primary: #6d82f2;
        --primary-hover: #8496f5;
        --primary-soft: rgba(109, 130, 242, .14);
        --on-primary: #0b0f1c;
        --accent: #2ee6bf;
        --grad: linear-gradient(100deg, #7d90f5 0%, #4fb3f0 50%, #2ee6bf 100%);
        --header-bg: rgba(11, 15, 28, .78);
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
        --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 20px 48px rgba(0, 0, 0, .4);
        --logo-filter: brightness(0) invert(1);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0b0f1c;
    --bg-alt: #0f1426;
    --surface: #131a2f;
    --surface-2: #182038;
    --border: #232c48;
    --text: #eceff8;
    --text-2: #a9b1c9;
    --muted: #8089a6;
    --primary: #6d82f2;
    --primary-hover: #8496f5;
    --primary-soft: rgba(109, 130, 242, .14);
    --on-primary: #0b0f1c;
    --accent: #2ee6bf;
    --grad: linear-gradient(100deg, #7d90f5 0%, #4fb3f0 50%, #2ee6bf 100%);
    --header-bg: rgba(11, 15, 28, .78);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 20px 48px rgba(0, 0, 0, .4);
    --logo-filter: brightness(0) invert(1);
    color-scheme: dark;
}

/* ===== Basis ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { color: var(--text); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--muted); }
.center { text-align: center; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: 48px 0 96px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--text-2); font-size: 1.08rem; }
.section-head-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; text-align: left; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }

.eyebrow {
    display: inline-block;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
    padding: .85em 1.3em; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { font-size: .88rem; padding: .7em 1.1em; }
.btn-lg { font-size: 1rem; padding: 1em 1.55em; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 18px -6px var(--primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--primary); }
.btn-white { background: #fff; color: #1b2a78; }
.btn-white:hover { background: #eef1ff; color: #1b2a78; }

.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
    color: var(--text-2); cursor: pointer; transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--primary); }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
/* Logo-Bild hat viel Rand: Ausschnitt auf den sichtbaren Inhalt (Bild 800x446, Inhalt ca. 97–697 / 122–331) */
.brand { display: block; flex: none; width: 126px; height: 44px; overflow: hidden; }
.brand-logo { height: 94px; width: auto; max-width: none; margin: -26px 0 0 -20px; filter: var(--logo-filter); }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: .95rem; }
.main-nav a:not(.btn):hover { color: var(--text); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta-mobile, .menu-toggle { display: none; }

.theme-toggle span, .menu-toggle span { display: inline-grid; }
.theme-toggle .theme-icon-dark { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .theme-icon-light { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .theme-icon-dark { display: inline-grid; }
}
:root[data-theme="dark"] .theme-toggle .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-dark { display: inline-grid; }
.menu-icon-close { display: none !important; }
.site-header.is-open .menu-icon-close { display: inline-grid !important; }
.site-header.is-open .menu-icon-open { display: none !important; }

@media (max-width: 880px) {
    .hide-sm { display: none !important; }
    .menu-toggle { display: inline-grid; }
    .header-actions { margin-left: auto; }
    .main-nav {
        position: fixed; inset: 72px 0 auto 0; z-index: 49;
        flex-direction: column; gap: 16px; padding: 16px 16px 24px;
        background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .site-header.is-open .main-nav { transform: none; opacity: 1; visibility: visible; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a:not(.btn) { padding: 12px 14px; font-size: 1.05rem; }
    .nav-cta-mobile { display: inline-flex; align-self: stretch; }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; overflow: clip; padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); }
.hero-glow {
    position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(closest-side, rgba(62, 87, 218, .18), transparent 70%),
                radial-gradient(closest-side at 70% 60%, rgba(0, 184, 148, .14), transparent 70%);
    filter: blur(20px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-bottom: 24px; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.17rem); color: var(--text-2); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .5em 1em; border-radius: 999px; font-size: .9rem; font-weight: 500;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.hero-badges .icon { color: var(--primary); }

.status-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
    box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--mono); font-size: .88rem;
    transform: rotate(1.2deg);
}
.status-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--muted); background: var(--surface-2); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.dots i:first-child { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:last-child { background: #28c840; }
.status-list { list-style: none; margin: 0; padding: 10px 18px; }
.status-list li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.status-list li:last-child { border-bottom: 0; }
.status-list b { font-weight: 600; color: var(--text); }
.status-list em { font-style: normal; color: var(--muted); font-size: .82rem; }
.ok { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); animation: pulse 2.4s ease-in-out infinite; }
.status-list li:nth-child(2) .ok { animation-delay: .4s; } .status-list li:nth-child(3) .ok { animation-delay: .8s; }
.status-list li:nth-child(4) .ok { animation-delay: 1.2s; } .status-list li:nth-child(5) .ok { animation-delay: 1.6s; }
.status-foot { padding: 14px 18px; border-top: 1px solid var(--border); color: var(--accent); background: var(--surface-2); }
/* Animiertes Terminal */
.term-tabs { display: flex; gap: 6px; padding: 12px 18px 0; flex-wrap: wrap; font-family: var(--font); }
.term-tabs[hidden], .term-body[hidden] { display: none; }
.term-tab {
    font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
    padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border);
    background: transparent; color: var(--muted); transition: color .2s, background-color .2s, border-color .2s;
}
.term-tab:hover { color: var(--text); }
.term-tab.is-active { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.term-body { padding: 14px 18px 18px; min-height: 250px; line-height: 1.55; }
.term-line { padding: 5px 0; color: var(--text-2); animation: term-in .35s ease both; word-break: break-word; }
.term-line.is-cmd { color: var(--text); font-weight: 600; animation: none; }
.term-line.is-cmd::before { content: attr(data-prompt) " "; color: var(--accent); }
.term-line.is-ok { color: var(--accent); font-weight: 600; }
.term-line .bullet { color: var(--primary); }
.term-cursor { display: inline-block; width: .55em; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--accent); animation: blink 1s steps(1) infinite; }
.term-progress { height: 2px; background: var(--border); overflow: hidden; }
.term-progress span { display: block; height: 100%; width: 0; background: var(--grad); }
.term-progress.is-running span { width: 100%; transition: width var(--term-hold, 4s) linear; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes term-in { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 600px) {
    .term-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .term-tabs::-webkit-scrollbar { display: none; }
    .term-tab { flex: none; }
}
@media (max-width: 480px) { .term-body { min-height: 260px; font-size: .82rem; } }

@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 6%, transparent); } }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .status-card { transform: none; max-width: 520px; }
}

/* ===== Philosophie ===== */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.split h2 { margin: 0; }
.prose-lg p { font-size: 1.12rem; color: var(--text-2); }
.prose-lg p.strong { font-size: 1.3rem; line-height: 1.55; color: var(--text); font-weight: 500; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* ===== Karten / Leistungen ===== */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 28px; display: flex; flex-direction: column; }
.service:hover, a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.service h3 { margin: 18px 0 10px; }
.service h3 a { color: inherit; }
.service p { color: var(--text-2); font-size: .97rem; margin: 0; }
.service-icon {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
    background: var(--primary-soft); color: var(--primary);
}
.service-icon .icon { width: 24px; height: 24px; }
.service-featured { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-content: start; padding: 32px; position: relative; overflow: hidden; }
.service-featured:nth-child(1) { grid-column: span 2; }
.service-featured:nth-child(2) { grid-column: span 1; display: flex; }
.service-featured::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.service-featured:nth-child(1) .service-icon { grid-row: span 3; }
.service-featured:nth-child(1) h3 { margin-top: 6px; font-size: 1.45rem; }
.card-link { display: inline-flex; align-items: center; gap: .4em; margin-top: 18px; font-weight: 600; font-size: .93rem; color: var(--primary); }
@media (max-width: 960px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-featured:nth-child(1) { grid-column: span 2; }
    .service-featured:nth-child(2) { grid-column: span 2; }
}
@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-featured:nth-child(1), .service-featured:nth-child(2) { grid-column: auto; display: flex; padding: 28px; }
}

/* ===== MSP-Paket ===== */
.msp {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    padding: clamp(32px, 5vw, 64px); border-radius: 28px; color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(0, 250, 200, .25), transparent 45%),
        linear-gradient(135deg, #1b2a78 0%, #2f45bd 55%, #2a6fd8 100%);
    box-shadow: var(--shadow-lg);
}
.msp h2 { color: #fff; }
.msp p { color: rgba(255, 255, 255, .86); font-size: 1.1rem; margin-bottom: 28px; }
.eyebrow-light { color: #9ff5df; }
.msp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.msp-list li {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px;
    background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); font-weight: 500; font-size: .95rem;
}
.msp-list .icon { color: #5ff0cc; }
@media (max-width: 880px) { .msp { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .msp-list { grid-template-columns: 1fr; } }

/* ===== Ablauf ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; position: relative; }
.step { position: relative; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 18px;
}
.step p { color: var(--text-2); font-size: .95rem; margin: 0; }
.step:not(:last-child)::after {
    content: ""; position: absolute; top: 49px; right: -21px; width: 22px; height: 2px; background: var(--border);
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .step::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ===== Über mich ===== */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.about-side { position: sticky; top: 100px; }
.about-img { width: 100%; max-width: 340px; border-radius: 20px; box-shadow: var(--shadow-lg); margin-bottom: 28px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--text-2); }
.checklist .icon { color: var(--accent); margin-top: .2em; }
.more summary {
    cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .4em;
    font-weight: 600; color: var(--primary); margin: 4px 0 16px;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "↓"; transition: transform .2s; }
.more[open] summary { display: none; }
@media (max-width: 880px) {
    .about { grid-template-columns: 1fr; gap: 32px; }
    .about-side { position: static; }
    .about-img { max-width: 220px; }
}

/* ===== Prose (Blog, Rechtstexte) ===== */
.prose { color: var(--text-2); font-size: 1.05rem; }
.prose h2 { font-size: 1.6rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .15em .4em; border-radius: 6px; }
.prose pre { background: var(--surface-2); border: 1px solid var(--border); padding: 16px; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 1.5em 0; padding: .2em 1.2em; border-left: 3px solid var(--primary); color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.about-text.prose h2 { margin-top: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* ===== Seitenkopf (Unterseiten) ===== */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 8px; position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.back-link { display: block; width: fit-content; margin-bottom: 24px; color: var(--muted); font-size: .93rem; }
.back-link:hover { color: var(--text); }
.post-meta { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== Blog ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { padding: 28px; display: flex; flex-direction: column; color: inherit; }
.post-card:hover { color: inherit; }
.post-card time { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.post-card h3 { margin: 10px 0 10px; font-size: 1.25rem; }
.post-card p { color: var(--text-2); font-size: .96rem; flex: 1; }
.post-card .post-meta { margin-bottom: 4px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-cta {
    margin-top: 56px; padding: 28px 32px; border-radius: var(--radius);
    background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
    display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.post-cta h3 { margin: 0 0 4px; }
.post-cta p { margin: 0; color: var(--text-2); }

/* ===== Kontakt ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; color: var(--text); font-weight: 600; font-size: 1.05rem; }
.contact-card:hover { color: var(--text); }
.contact-card small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-card-primary { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.contact-card-primary span:last-child { color: var(--primary); }
.contact-hints { padding: 28px 30px; }
.contact-hints ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.contact-hints li { color: var(--text-2); padding-left: 18px; position: relative; }
.contact-hints li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.contact-hints strong { color: var(--text); }
.contact-hints .muted { margin: 0; font-size: .93rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--text-2); max-width: 380px; margin-top: 18px; }
.footer-muted { display: flex; align-items: center; gap: 8px; color: var(--muted) !important; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-2); }
.footer-legal a:hover { color: var(--text); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ===== Cookie-Hinweis ===== */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; margin: 0 auto; max-width: 720px;
    display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
    font-size: .9rem; color: var(--text-2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner a { text-decoration: underline; }
@media (max-width: 560px) { .cookie-banner { flex-direction: column; align-items: stretch; } }

/* ===== Hinweis bei externen Links ===== */
.ext-overlay { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 8, 18, .55); backdrop-filter: blur(4px); }
.ext-overlay[hidden] { display: none; }
.ext-dialog { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg); }
.ext-dialog h3 { margin-bottom: 8px; }
.ext-dialog p { color: var(--text-2); margin-bottom: 6px; }
.ext-title { font-weight: 600; color: var(--text) !important; }
.ext-url { font-family: var(--mono); font-size: .82rem; word-break: break-all; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; }
.ext-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ===== Terminbuchung ===== */
.booking-card {
    max-width: 980px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.booking-card iframe { display: block; width: 100%; height: 680px; border: 0; background: transparent; }
@media (max-width: 800px) { .booking-card iframe { height: 560px; } }

/* ===== Einblend-Animation ===== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
