/*
 * Inkcubator – Marketing-Seite
 * Handgeschriebenes CSS, kein Build-Schritt, keine externen Anfragen.
 * Farben folgen der App (resources/css/app.css): warmes Creme + Terrakotta, dunkle „Kaminabend“-Bänder.
 * Die Tokens nutzen light-dark(): helle Abschnitte folgen dem Farbschema des Besuchers,
 * Abschnitte mit der Klasse .on-dark sind immer dunkel. Produkt-Mockups: mock.css
 */

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/instrument-sans-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/instrument-sans-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/instrument-sans-600.woff2') format('woff2');
}

:root {
    color-scheme: light dark;

    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: ui-serif, 'Iowan Old Style', Georgia, Cambria, 'Times New Roman', serif;

    --bg: light-dark(#fcf9f4, #1e1916);
    --bg-2: light-dark(#f7f1e8, #191512);
    --bg-3: light-dark(#f1e8dc, #2e2721);
    --card: light-dark(#fffdf9, #2a231e);
    --ink: light-dark(#2b211c, #f4ece3);
    --ink-2: light-dark(#5f5047, #b3a496);
    --line: light-dark(#eadfd2, #3a322b);
    --line-2: light-dark(#ddcfbf, #4a4036);

    --brand: light-dark(#b24a27, #f0875f);
    --brand-hi: light-dark(#c2552f, #f0875f);
    --brand-bg: light-dark(#fbe6d8, #3d2b21);
    --brand-fg: light-dark(#6b3420, #f6d3be);
    --on-brand: light-dark(#fff8f2, #1e1916);

    --amber: light-dark(#e9b65a, #eec46e);
    --sage: light-dark(#8fae8b, #a3c29f);
    --mauve: light-dark(#a07aa6, #b993bf);
    --sky: light-dark(#7fa3c4, #93b6d6);
    --coral: light-dark(#e07a52, #f0875f);
    --danger: light-dark(#c93c33, #e5645a);
    --ok: light-dark(#3f7a43, #a3c29f);
    --warn: light-dark(#9a6410, #eec46e);

    --shadow-c: light-dark(rgb(43 33 28 / 0.2), rgb(0 0 0 / 0.55));
    --shadow-sm: 0 1px 2px var(--shadow-c), 0 10px 26px -16px var(--shadow-c);
    --shadow-lg: 0 2px 6px -2px var(--shadow-c), 0 36px 70px -28px var(--shadow-c);
}

/* ---------- Grundlagen ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}
body {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img,
svg {
    display: block;
    max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
    margin: 0;
}
h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.12;
    text-wrap: balance;
}
p,
li {
    text-wrap: pretty;
}
a {
    color: var(--brand);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}
a:hover {
    text-decoration-thickness: 2px;
}
::selection {
    background: color-mix(in srgb, var(--brand-hi) 30%, transparent);
}
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 0.35rem;
}
.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    background: var(--brand);
    color: var(--on-brand);
    font-weight: 600;
    text-decoration: none;
}
.skip:focus {
    top: 1rem;
}
.wrap {
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
}
@media (min-width: 48rem) {
    .wrap {
        width: min(100% - 4rem, 72rem);
    }
}
.on-dark {
    color-scheme: dark;
    color: var(--ink);
}
.ico {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Kopfzeile ---------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg-2) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
}
.site-head__in {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 4rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.brand img {
    border-radius: 0.55rem;
}
.brand__name {
    color: var(--brand);
}
.brand__name b {
    color: var(--ink);
    font-weight: inherit;
}
.nav {
    display: none;
    margin-left: auto;
    gap: 0.15rem;
}
.nav a {
    padding: 0.5rem 0.8rem;
    border-radius: 0.55rem;
    color: var(--ink-2);
    font-size: 0.95rem;
    text-decoration: none;
}
.nav a:hover {
    color: var(--ink);
    background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.head-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}
.lang {
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--line-2);
    border-radius: 0.5rem;
    color: var(--ink-2);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
}
.lang:hover {
    color: var(--ink);
    border-color: var(--ink-2);
}
/* Too tight next to the brand on phones; there the footer carries the login link */
.head-login {
    display: none;
    color: var(--ink-2);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.head-login:hover {
    color: var(--ink);
}
@media (min-width: 36rem) {
    .head-login {
        display: inline;
    }
}
@media (min-width: 62rem) {
    .nav {
        display: flex;
    }
    .head-actions {
        margin-left: 0.5rem;
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0.65rem 1.3rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 600 0.975rem/1.1 var(--font-sans);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn .ico {
    width: 1.1em;
    height: 1.1em;
}
.btn--primary {
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--brand) 80%, transparent);
}
.btn--primary:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--brand) 88%, white);
    text-decoration: none;
}
.btn--ghost {
    border-color: var(--line-2);
    color: var(--ink);
}
.btn--ghost:hover {
    background: color-mix(in srgb, var(--ink) 7%, transparent);
    border-color: var(--ink-2);
    text-decoration: none;
}
.btn--sm {
    min-height: 2.25rem;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
}
.btn--lg {
    min-height: 3.25rem;
    padding-inline: 1.8rem;
    font-size: 1.05rem;
}

/* ---------- Dunkle Bänder mit Hintergrundbild ---------- */
.band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #120e0c;
    background-repeat: no-repeat;
    background-size: cover;
}
.band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
}
.band--hero {
    background-image: url('../img/bg-funkenflug.jpg');
    background-position: 62% 50%;
}
.band--hero::before {
    background:
        linear-gradient(95deg, rgb(18 14 12 / 0.96) 8%, rgb(18 14 12 / 0.78) 44%, rgb(18 14 12 / 0.28) 92%),
        linear-gradient(0deg, rgb(18 14 12 / 0.55), transparent 35%);
}
.band--ai {
    background-image: url('../img/bg-stroemung.jpg');
    background-position: 75% 50%;
}
.band--ai::before {
    background:
        linear-gradient(90deg, rgb(18 14 12 / 0.9) 5%, rgb(18 14 12 / 0.48) 60%, rgb(18 14 12 / 0.2)),
        linear-gradient(0deg, rgb(18 14 12 / 0.45), rgb(18 14 12 / 0.12));
}
.band--cta {
    background-image: url('../img/bg-herzfeuer.jpg');
    background-position: 50% 62%;
}
.band--cta::before {
    background: radial-gradient(ellipse at 50% 120%, rgb(18 14 12 / 0.05) 0, rgb(18 14 12 / 0.7) 70%), rgb(18 14 12 / 0.35);
}

/* ---------- Hero ---------- */
.hero {
    padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 6rem);
}
.hero__grid {
    display: grid;
    gap: 3.5rem;
    align-items: center;
}
@media (min-width: 62rem) {
    .hero__grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 4rem;
    }
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.38rem 0.95rem 0.38rem 0.8rem;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 45%, transparent);
    color: var(--ink-2);
    font-size: 0.86rem;
}
.eyebrow::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 25%, transparent);
}
.hero h1 {
    margin-block: 1.4rem 1.3rem;
    font-size: clamp(2.55rem, 5.4vw, 4.4rem);
    letter-spacing: -0.03em;
    line-height: 1.04;
}
.hero h1 em {
    color: var(--brand);
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.lead {
    max-width: 34rem;
    color: var(--ink-2);
    font-size: clamp(1.1rem, 1.5vw, 1.28rem);
    line-height: 1.6;
}
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}
.assure {
    display: grid;
    gap: 0.55rem;
    margin: 2.2rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--ink-2);
    font-size: 0.95rem;
}
.assure li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.assure .ico {
    color: var(--brand);
}
.hero__visual {
    position: relative;
}
.chip {
    position: absolute;
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--line-2);
    border-radius: 0.85rem;
    background: var(--card);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 500;
}
.chip--warn {
    left: 1.6rem;
    bottom: -1.5rem;
}
.chip--warn .ico {
    color: var(--danger);
}
.chip--tension {
    right: -1rem;
    top: -1.2rem;
}
.chip--tension .ico {
    color: var(--brand);
}
@media (min-width: 62rem) {
    .chip {
        display: flex;
    }
}

/* ---------- Abschnitte ---------- */
.section {
    padding-block: clamp(4rem, 9vw, 7rem);
}
.section--soft {
    background: var(--bg-2);
}
.section__head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.kicker {
    color: var(--brand);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.section__head h2 {
    margin-top: 0.7rem;
    font-size: clamp(1.9rem, 3.7vw, 2.9rem);
}
.section__head p:not(.kicker) {
    margin-top: 1rem;
    color: var(--ink-2);
    font-size: 1.15rem;
}

/* ---------- Karten ---------- */
.cards {
    display: grid;
    gap: 1rem;
}
@media (min-width: 40rem) {
    .cards--features,
    .cards--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 56rem) {
    .cards--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 62rem) {
    .cards--features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .cards--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.card {
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
    transform: translateY(-2px);
    border-color: var(--line-2);
}
.card__ico {
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    margin-bottom: 1.1rem;
    border-radius: 0.85rem;
    background: var(--brand-bg);
    color: var(--brand-fg);
}
.card__ico .ico {
    width: 1.4rem;
    height: 1.4rem;
}
.card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.22rem;
}
.card p {
    color: var(--ink-2);
    font-size: 1rem;
}
.card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}
.card__link .ico {
    transition: transform 0.2s;
}
.card__link:hover .ico {
    transform: translateX(3px);
}

/* ---------- Funktionen im Detail (Text + Bild) ---------- */
.show {
    display: grid;
    gap: 2.2rem 4rem;
    align-items: center;
    padding-block: clamp(2.2rem, 5.5vw, 4rem);
}
.show--flush {
    padding-block: 0;
}
@media (min-width: 62rem) {
    .show {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }
    .show--rev .show__text {
        order: 2;
    }
}
.show__text h3,
.show__text h2 {
    margin: 0.6rem 0 1rem;
    font-size: clamp(1.65rem, 2.9vw, 2.3rem);
}
.show__text > p:not(.kicker) {
    color: var(--ink-2);
    font-size: 1.1rem;
}
.show__visual {
    min-width: 0;
}
.ticks {
    display: grid;
    gap: 0.7rem;
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
}
.ticks li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--ink-2);
}
.ticks .ico {
    margin-top: 0.22em;
    color: var(--brand);
}
.ticks--row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem 2rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.duo {
    display: grid;
    gap: 3rem 2.5rem;
}
.duo__item {
    display: flex;
    flex-direction: column;
}
.duo__item > :first-child {
    flex: 1;
}
@media (min-width: 56rem) {
    /* both columns share three rows (mock-up, heading, text), so the headings line up */
    .duo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 0;
    }
    .duo__item {
        display: grid;
        grid-row: span 3;
        grid-template-rows: subgrid;
        row-gap: 0;
    }
}
.duo__item h3 {
    margin: 1.5rem 0 0.6rem;
    font-size: 1.4rem;
}
.duo__item > p {
    color: var(--ink-2);
}

/* ---------- Ausblick, FAQ, Abschluss ---------- */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font-size: 0.97rem;
}
.tag .ico {
    color: var(--brand);
}
.note {
    margin-top: 1.4rem;
    color: var(--ink-2);
    font-size: 0.95rem;
}
.split {
    display: grid;
    gap: 2rem 4rem;
}
@media (min-width: 62rem) {
    .split {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
        align-items: start;
    }
    .split .section__head {
        position: sticky;
        top: 6rem;
        margin-bottom: 0;
    }
}
.faq {
    display: grid;
    gap: 0.7rem;
}
.faq details {
    padding: 0 1.3rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--card);
}
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    cursor: pointer;
    font-size: 1.06rem;
    font-weight: 600;
    list-style: none;
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary .ico {
    color: var(--ink-2);
    transition: transform 0.2s;
}
.faq details[open] summary .ico {
    transform: rotate(180deg);
}
.faq details p {
    padding-bottom: 1.25rem;
    color: var(--ink-2);
}
.cta {
    text-align: center;
}
.cta h2 {
    font-size: clamp(2rem, 4.6vw, 3.5rem);
    letter-spacing: -0.03em;
}
.cta p {
    max-width: 34rem;
    margin: 1.1rem auto 2.2rem;
    color: var(--ink-2);
    font-size: 1.15rem;
}

/* ---------- Fußzeile ---------- */
.site-foot {
    padding-block: 3rem 2.5rem;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
}
.site-foot__in {
    display: grid;
    gap: 1.8rem 3rem;
}
.site-foot__tag {
    margin-top: 0.8rem;
    color: var(--ink-2);
    font-size: 0.95rem;
}
.site-foot__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.6rem;
}
.site-foot__nav a {
    color: var(--ink-2);
    font-size: 0.95rem;
}
.site-foot__nav a:hover {
    color: var(--ink);
}
.site-foot__copy {
    color: var(--ink-2);
    font-size: 0.88rem;
}
@media (min-width: 48rem) {
    .site-foot__in {
        grid-template-columns: 1fr auto;
        align-items: start;
    }
    .site-foot__copy {
        grid-column: 1 / -1;
    }
}

/* ---------- Impressum und Datenschutz ---------- */
.doc {
    max-width: 46rem;
    padding-block: clamp(3rem, 7vw, 5rem);
}
.doc h1 {
    margin-bottom: 1.6rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
}
.doc h2 {
    margin: 2.2rem 0 0.6rem;
    font-size: 1.3rem;
}
.doc p {
    color: var(--ink-2);
}
.doc p + p {
    margin-top: 0.8rem;
}
mark.todo {
    padding: 0.05em 0.35em;
    border-radius: 0.3em;
    background: #fff1a8;
    color: #3b2f00;
}

/* ---------- Bewegung (nur wo der Browser Scroll-Animationen kann) ---------- */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
}
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .reveal {
            animation: rise linear backwards;
            animation-timeline: view();
            animation-range: entry 0% entry 55%;
        }
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
@media print {
    .site-head,
    .band::before {
        display: none;
    }
    .reveal {
        animation: none !important;
    }
}
