/* wildfeuer – Startseite (Entwurf 2026) */

@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400 900; font-display: swap; src: url('fonts/schibsted-grotesk-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400 900; font-display: swap; src: url('fonts/schibsted-grotesk-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-weight: 400 700; font-display: swap; src: url('fonts/instrument-sans-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-weight: 400 700; font-display: swap; src: url('fonts/instrument-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400 500; font-display: swap; src: url('fonts/jetbrains-mono-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400 500; font-display: swap; src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --bg: #fbfbf9;
    --ink: #111;
    --fire: #e8461c;
    --fire-dark: #d23d14;
    --line: #d8d8d2;
    --line-dark: #333;
    --soft: #f0efea;
    --muted: #6b6b66;
    /* Orange für kleine Schrift auf hellem Grund, sonst reicht der Kontrast nicht */
    --fire-text: #c2380f;
    --head: 'Instrument Sans', 'Schibsted Grotesk', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Schibsted Grotesk', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
section { scroll-margin-top: 96px; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 600; }
h1 { letter-spacing: -0.03em; }
h2 { letter-spacing: -0.02em; }
h3 { letter-spacing: -0.01em; }
.mono { font: 12px var(--mono); }
.eyebrow { font: 12px var(--mono); color: var(--muted); }

@keyframes wfPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 70, 28, .55); }
    50% { box-shadow: 0 0 0 6px rgba(232, 70, 28, 0); }
}

/* --- Hinweis auf das kostenlose Demo (wildfeuer.biz/demo/) --- */
.demo-hinweis { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 12px 20px; background: var(--fire-dark); color: #fff; font-size: 15px; line-height: 1.4; text-align: center; transition: background .25s; }
.demo-hinweis:hover { background: var(--ink); }
.demo-hinweis .ember { background: #fff; }
.demo-hinweis-cta { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; font: 500 12px var(--mono); text-transform: uppercase; white-space: nowrap; transition: background .25s, color .25s; }
.demo-hinweis:hover .demo-hinweis-cta { background: var(--fire-dark); border-color: var(--fire-dark); }
@media (max-width: 719px) {
    .demo-hinweis { justify-content: space-between; text-align: left; font-size: 14px; }
    .demo-hinweis-lang, .demo-hinweis .ember { display: none; }
}
/* Der lange Satz passt erst ab 1280 px mit dem Knopf in eine Zeile */
@media (max-width: 1279px) { .demo-hinweis-lang { display: none; } }
/* Das Menü beginnt unter der Kopfleiste, die Leiste darüber würde sie verdecken */
@media (max-width: 1023px) { .menu-open .demo-hinweis { display: none; } }

/* --- Kopfzeile --- */
.top { position: sticky; top: 0; z-index: 20; padding: 0; transition: padding .4s var(--ease); pointer-events: none; }
.top nav.bar {
    pointer-events: auto; position: relative; overflow: hidden; margin: 0 auto; max-width: 4000px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px 10px 10px 28px; background: var(--ink); color: var(--bg);
    transition: all .4s var(--ease);
}
.top.scrolled nav.bar { background: rgba(17, 17, 17, .92); }
.brand { display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.ember { width: 9px; height: 9px; border-radius: 50%; background: var(--fire); display: inline-block; animation: wfPulse 2.2s ease-in-out infinite; }
.links { display: flex; flex-wrap: wrap; gap: 2px; }
.links a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background .25s, color .25s; }
.links a:hover { color: var(--fire); }
.links a.on { background: rgba(255, 255, 255, .09); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fire); opacity: 0; transition: opacity .25s; }
.on .dot, .on .mdot { opacity: 1; }
/* Link zur Demo-Seite: Punkt glüht dauerhaft */
.link-demo .dot { opacity: 1; animation: wfPulse 2.2s ease-in-out infinite; }
.link-demo .mdot { opacity: 1; }
.menu > a.link-demo { color: var(--fire); }
/* Unter 1280 px passt der Eintrag nicht mehr in eine Zeile, dort führen Leiste und Hero-Knopf zur Demo */
@media (max-width: 1279px) { .links .link-demo { display: none; } }
.cta { display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--fire-dark); color: #fff; font-weight: 600; font-size: 15px; transition: background .25s; }
.cta:hover { background: #b8320f; }
.cta i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.cta-mini, .burger { display: none; }
.cta-mini { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--fire-dark); color: #fff; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.burger { flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .09); cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; background: var(--bg); transition: transform .3s; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--fire); transition: width .1s linear; }
.menu { display: none; pointer-events: auto; position: fixed; left: 0; right: 0; top: 64px; bottom: 0; background: var(--ink); color: var(--bg); flex-direction: column; padding: 24px 20px 32px; border-top: 1px solid var(--line-dark); overflow-y: auto; }
.menu > a:not(.menu-cta) { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-dark); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.mdot { font: 12px var(--mono); color: var(--fire); opacity: 0; }
.menu-cta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 24px; border-radius: 999px; background: var(--fire-dark); color: #fff; font-weight: 600; font-size: 17px; }
.menu-cta i { font-style: normal; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }

@media (min-width: 720px) {
    .top.scrolled { padding: 14px 20px; }
    .top.scrolled nav.bar { max-width: 1040px; border-radius: 999px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); }
}
/* Unter 1024 px passen Links und Knopf nicht mehr in eine Zeile: Burger-Menü */
@media (max-width: 1023px) {
    .links, .cta { display: none; }
    .cta-mini, .burger { display: flex; }
    .menu-open .menu { display: flex; }
    body.menu-open { overflow: hidden; }
    .menu-open .top { padding: 0; }
    .menu-open .top nav.bar { max-width: none; border-radius: 0; }
}

/* --- Hero --- */
.hero { border-bottom: 1px solid var(--ink); padding: clamp(48px, 8vw, 112px) 32px 64px; }
.hero .eyebrow { margin-bottom: 40px; }
.hero h1 { font-size: clamp(56px, 10vw, 148px); line-height: .92; }
.hero p { margin: 48px 0 0; max-width: 560px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; color: #444; text-wrap: pretty; white-space: pre-line; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn-dark { background: var(--ink); color: #fff; padding: 16px 22px; font-weight: 700; font-size: 15px; display: flex; gap: 40px; transition: background .25s; }
.btn-dark:hover { background: var(--fire); }
.btn-fire { background: var(--fire-dark); }
.btn-fire:hover { background: var(--ink); }
.btn-line { padding: 16px 22px; font-weight: 500; font-size: 15px; border: 1px solid var(--ink); transition: background .25s, color .25s; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* --- Leistungen --- */
.services { border-bottom: 1px solid var(--ink); overflow: hidden; }
.sec-head { padding: 32px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.sec-head h2 { font-size: 40px; line-height: 1; }
/* margin + clip hide the right border of the last cell in each row */
.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-right: -1px; clip-path: inset(0 1px 0 0); }
.cell { padding: 32px 32px 48px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell .num { font: 12px var(--mono); color: var(--fire-text); margin-bottom: 56px; }
.cell h3 { margin-bottom: 12px; font-size: 26px; line-height: 1.1; }
.cell p { margin: 0; font-size: 15px; line-height: 1.6; color: #555; }
.cell p + .chips { margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; font: 11px var(--mono); }
.chips span { padding: 4px 8px; border: 1px solid var(--line); }

/* --- Praxis --- */
.praxis { background: var(--ink); color: var(--bg); border-bottom: 1px solid var(--ink); overflow: hidden; }
.praxis-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); border-bottom: 1px solid var(--line-dark); }
.praxis-intro { padding: 64px 32px; border-right: 1px solid var(--line-dark); }
.praxis-intro .eyebrow { margin-bottom: 32px; color: #999; }
.praxis-intro h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1; text-wrap: balance; }
.praxis-intro p { margin: 32px 0 0; max-width: 520px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: #ddd; text-wrap: pretty; }
.praxis-text { padding: 64px 32px; display: flex; flex-direction: column; gap: 20px; font-size: 16px; line-height: 1.65; color: #bbb; max-width: 640px; }
.praxis-text p { margin: 0; text-wrap: pretty; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-right: -1px; clip-path: inset(0 1px 0 0); }
.stat { padding: 40px 32px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stat b { display: block; font-size: clamp(48px, 6vw, 80px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--fire); }
.stat span { display: block; margin-top: 12px; font: 12px var(--mono); color: #bbb; }
.praxis-quote { padding: 56px 32px 64px; }
.praxis-quote p { margin: 0; max-width: 960px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; text-wrap: pretty; }

/* --- Referenzen --- */
.refs { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); padding-block: 48px; border-bottom: 1px solid var(--ink); }
.refs-head { padding: 32px; border-right: 1px solid var(--line); }
.refs-head h2 { margin-top: 40px; font-size: 40px; line-height: 1; }
.ref { border-bottom: 1px solid var(--line); }
.ref-row, .ref-panel { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.6fr) 90px; gap: 24px; }
.ref-row { width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer; padding: 20px 32px; align-items: center; font-family: 'Schibsted Grotesk', sans-serif; color: var(--ink); transition: background .2s; }
.ref-row:hover, .ref.open .ref-row { background: var(--soft); }
.ref-row:focus-visible { outline: 2px solid var(--fire); outline-offset: -2px; }
.ref-logo { height: 48px; display: flex; align-items: center; }
.ref-logo img { max-width: 100%; max-height: 48px; object-fit: contain; }
.ref-logo.dark { justify-content: center; padding: 6px 10px; background: var(--ink); border-radius: 4px; }
.ref-logo.dark img { max-height: 36px; }
.ref-name { font-size: 20px; font-weight: 700; }
.ref-short { font-size: 15px; color: #555; }
.ref-tag { font: 12px var(--mono); color: var(--muted); text-align: right; }
.ref-panel { padding: 0 32px 28px; background: var(--soft); }
.ref-panel[hidden] { display: none; }
.ref-panel > div { grid-column: 3; }
.ref-panel p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #333; text-wrap: pretty; white-space: pre-line; }
.ref-panel a { font: 500 12px var(--mono); color: var(--fire-text); }
.ref-panel a:hover { color: var(--ink); }

@media (max-width: 1399px) {
    .refs { grid-template-columns: minmax(0, 1fr); }
    .refs-head { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 719px) {
    .ref-row { grid-template-columns: 64px minmax(0, 1fr) 20px; gap: 16px; padding: 20px; }
    .ref-short, .ref-tag-label { display: none; }
    .ref-panel { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 20px 28px; }
    .ref-panel > div { grid-column: 1; }
}

/* --- Kontakt --- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); background: var(--fire-dark); color: #fff; }
.contact-head { padding: 80px 32px; border-right: 1px solid rgba(255, 255, 255, .35); }
.contact-head .mono { margin-bottom: 32px; }
.contact-head h2 { font-size: clamp(56px, 8vw, 112px); line-height: .92; }
.contact-body { padding: 80px 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; max-width: 520px; }
.contact-body p { margin: 0; font-size: 17px; line-height: 1.55; }
.contact-body a { background: var(--ink); color: #fff; padding: 18px 22px; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; transition: background .25s, color .25s; }
.contact-body a:hover { background: #fff; color: var(--ink); }

/* --- Fußzeile --- */
.foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding: 20px 32px; font: 12px var(--mono); color: var(--muted); text-transform: uppercase; }
.foot nav { display: flex; gap: 24px; }
.foot a:hover { color: var(--ink); }

/* --- Impressum / Datenschutz --- */
.legal { padding: clamp(48px, 8vw, 96px) 32px 80px; border-bottom: 1px solid var(--ink); }
.legal .eyebrow { margin-bottom: 32px; }
.legal h1 { font-size: clamp(44px, 7vw, 96px); line-height: .95; margin-bottom: 48px; }
.legal-body { max-width: 720px; font-size: 16px; line-height: 1.7; color: #333; white-space: pre-line; }
.legal .back { display: inline-block; margin-top: 48px; font: 500 12px var(--mono); color: var(--fire-text); }
.legal .back:hover { color: var(--ink); }

/* --- Bearbeitungsmodus --- */
.editbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font: 12px var(--mono); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.editbar .ember { animation: none; }
.editbar a { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.editbar a:hover { background: var(--fire); }

/* Ab 1100 px: Hintergründe über die volle Breite, Inhalt auf 80 %.
   Steht am Ende, damit es die Abstände der einzelnen Abschnitte überschreibt. */
@media (min-width: 1100px) {
    .top:not(.scrolled) nav.bar { padding-left: calc(10% + 32px); padding-right: calc(10% + 10px); }
    .hero, .legal, .foot { padding-left: calc(10% + 32px); padding-right: calc(10% + 32px); }
    .services, .praxis, .refs, .contact { padding-inline: 10%; }
}

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