/* www.mariga.ch – mobile-first, ohne Framework. Immer dunkel.
   Aufbau: Basis (Handy) → @media (min-width) für grössere Bildschirme */

@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
    color-scheme: dark;
    --bg: #0c0c0d;          /* fast schwarz */
    --bg-2: #131315;
    --bg-3: #1a1a1d;
    --line: #26262a;
    --text: #f2f2ef;
    --text-soft: #c4c4bf;
    --muted: #8d8d88;
    --accent: #d4f25c;
    --accent-fg: #0c0c0d;
    --danger: #ff7a6b;
    --success: #9be37b;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 14px;
    --gutter: 16px;
    --header-h: 64px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
body {
    margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg);
    display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 7.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 680px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--text-soft); max-width: 62ch; }
.eyebrow { margin: 0 0 1em; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-fg); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.3em;
    border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text);
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--text-soft); }
.btn--primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn .icon { transition: transform .15s; }
.btn:hover .icon { transform: translateX(3px); }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.wordmark { font-weight: 800; font-size: 1.3rem; letter-spacing: .16em; text-decoration: none; color: var(--text); }
.wordmark:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav li:not(.nav__cta) { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--text-soft); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.nav__cta a { border: 1px solid var(--line); color: var(--text); }
.nav__cta a:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 10vw, 120px) 0 clamp(56px, 10vw, 110px); overflow: hidden; }
.hero__brand {
    margin: 0 0 clamp(24px, 4vw, 40px); font-weight: 800; line-height: .85; letter-spacing: -.035em;
    font-size: clamp(4.2rem, 22vw, 14rem); color: var(--text);
}
.hero__brand::after { content: "."; color: var(--accent); }
.hero__title { max-width: 18ch; }
.hero__text { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--text-soft); max-width: 58ch; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--line { border-top: 1px solid var(--line); }
.section__head { margin-bottom: clamp(28px, 5vw, 48px); }
.section__head h2 { max-width: 20ch; }

.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--bg); padding: 28px 24px; }
.card p { color: var(--text-soft); margin: 0; }
.card__icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.chips li { padding: .55em 1.1em; border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); background: var(--bg-2); }

.steps { display: grid; gap: 28px; counter-reset: step; }
.step { padding-top: 20px; border-top: 1px solid var(--line); }
.step__num { display: block; margin-bottom: 14px; font-size: .85rem; font-weight: 600; letter-spacing: .1em; color: var(--accent); font-variant-numeric: tabular-nums; }
.step p { color: var(--text-soft); margin: 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 40px; }

.form { display: grid; gap: 18px; padding: clamp(20px, 4vw, 32px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: grid; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--text-soft); }
.field i { font-style: normal; color: var(--accent); }
input, select, textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--text);
    background: var(--bg); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s;
}
textarea { resize: vertical; min-height: 140px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.form__actions { display: flex; }
.form .muted { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 14px 16px; border-radius: 10px; border: 1px solid; }
.flash--success { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); background: color-mix(in srgb, var(--success) 8%, transparent); }
.flash--error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }

/* ---------- Rechtliches ---------- */
.page h1 { margin-bottom: .4em; }
.legal { max-width: 800px; }
.legal__list { display: grid; gap: 0; margin-bottom: 40px; }
.legal__list > li { padding: 24px 0; border-top: 1px solid var(--line); }
.legal__list h2 { font-size: 1.15rem; margin-bottom: .7em; }
.legal__list p, .legal__list .list { color: var(--text-soft); }
.legal__list p:last-child { margin-bottom: 0; }
.legal__list--num { counter-reset: abschnitt; }
.legal__list--num > li { counter-increment: abschnitt; }
.legal__list--num h2::before { content: counter(abschnitt) ". "; color: var(--muted); font-variant-numeric: tabular-nums; }
.legal__list .is-key { padding-left: 18px; border-left: 2px solid var(--accent); }
.legal__list .is-key p { color: var(--text); font-weight: 500; }
.list { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.list li { margin-bottom: .4em; }
.legal__card { padding: 24px; margin-bottom: 40px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.facts { display: grid; gap: 10px; margin: 0; }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 24px; color: var(--text-soft); font-size: .95rem; }
.footer__grid { display: grid; gap: 28px; }
.wordmark--footer { display: inline-block; margin-bottom: 10px; }
.footer__links { display: grid; gap: 8px; }
.footer__links a { color: var(--text-soft); text-decoration: none; }
.footer__links a:hover { color: var(--text); }
.footer__meta { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* ---------- Grössere Bildschirme ---------- */
@media (min-width: 640px) {
    :root { --gutter: 24px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .form { grid-template-columns: 1fr 1fr; }
    .span-2 { grid-column: 1 / -1; }
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 900px) {
    :root { --header-h: 72px; }
    .nav li:not(.nav__cta) { display: block; }
    .cards { grid-template-columns: repeat(3, 1fr); }
    .card { padding: 36px 32px; }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
    .split .section__head { margin-bottom: 0; }
    .contact { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
