/* Author: Lucas Abdulwahed */
/* iDrawArch – Website. Große Überschriften, viel Raum, das Produkt im Mittelpunkt.
   Systemschrift, ein Akzent, kein JavaScript, kein Tracking. Hell mit automatischem
   Dunkelmodus; die Aufnahmen tragen ihren Fensterschatten selbst. */

:root {
    --bg: #ffffff;
    --gray: #f5f5f7;
    --tile: #f5f5f7;
    --tile-on-gray: #ffffff;
    --text: #1d1d1f;
    --dim: #6e6e73;
    --line: rgba(0, 0, 0, 0.08);
    --accent: #0071e3;
    --nav: rgba(255, 255, 255, 0.72);
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --gray: #101012;
        --tile: #1c1c1e;
        --tile-on-gray: #1c1c1e;
        --text: #f5f5f7;
        --dim: #86868b;
        --line: rgba(255, 255, 255, 0.12);
        --accent: #2997ff;
        --nav: rgba(22, 22, 23, 0.72);
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-padding-top: 64px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1024px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }

/* Navigation: schmal und durchscheinend, rechts der Knopf zum Laden */
nav.site {
    position: sticky; top: 0; z-index: 10; height: 52px;
    background: var(--nav);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}
nav.site .wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
nav.site .brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
nav.site .brand img { width: 22px; height: 22px; border-radius: 5px; }
nav.site .brand:hover { text-decoration: none; }
nav.site .links { margin-left: auto; display: flex; gap: 22px; font-size: 12px; letter-spacing: -0.01em; }
nav.site .links a { color: var(--text); opacity: 0.8; }
nav.site .links a:hover, nav.site .links a[aria-current] { opacity: 1; text-decoration: none; }
nav.site .buy {
    background: var(--accent); color: #fff; border-radius: 980px;
    font-size: 12px; padding: 4px 12px; letter-spacing: -0.01em;
}
nav.site .buy:hover { text-decoration: none; filter: brightness(1.1); }

/* Einstieg */
.hero { text-align: center; padding-top: 72px; }
.hero .eyebrow { font-size: 21px; font-weight: 600; letter-spacing: 0.01em; }
.hero h1 {
    font-size: clamp(44px, 7.4vw, 80px); font-weight: 700;
    letter-spacing: -0.015em; line-height: 1.05; margin-top: 8px;
}
.sub { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.2; letter-spacing: 0.004em; color: var(--dim); margin: 18px auto 0; max-width: 720px; }
.ctas { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.button {
    display: inline-block; background: var(--accent); color: #fff;
    border-radius: 980px; padding: 11px 22px; font-size: 17px;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.more { font-size: 17px; }
.more::after { content: " ›"; }
.meta { font-size: 14px; color: var(--dim); margin-top: 16px; }
.hero .shot { margin-top: 48px; }

.shot { max-width: 1100px; margin: 0 auto; padding: 0 12px; }
.shot img { margin: 0 auto; }

/* Flächen im Wechsel */
.band { text-align: center; padding-top: 110px; padding-bottom: 100px; overflow: hidden; }
.band.gray { background: var(--gray); }
.band.black { background: #000; color: #f5f5f7; }
.band.black .sub { color: #86868b; }
.band .eyebrow { font-size: 17px; font-weight: 600; color: var(--dim); }
.band.black .eyebrow { color: #86868b; }
.band h2 {
    font-size: clamp(36px, 5.4vw, 56px); font-weight: 700;
    letter-spacing: -0.005em; line-height: 1.07; margin-top: 6px;
}
.band .shot { margin-top: 56px; }

/* Kacheln */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; text-align: left; }
.tile { background: var(--tile); border-radius: 28px; padding: 36px 32px; min-height: 230px; display: flex; flex-direction: column; }
.tile.wide { grid-column: span 2; }
/* Auf grauer Fläche hebt sich die Kachel sonst nicht ab (hell sind beide gleich). */
.band.gray .tile { background: var(--tile-on-gray); }
.tile .big {
    font-size: clamp(44px, 5.6vw, 64px); font-weight: 700; letter-spacing: -0.02em; line-height: 1;
    color: var(--accent);
}
.tile h3 { font-size: 21px; font-weight: 600; letter-spacing: 0.01em; margin-top: auto; padding-top: 28px; }
.tile p { color: var(--dim); margin-top: 6px; }

/* Anleitung, Support, Datenschutz */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 64px; padding-bottom: 110px; }
.toc { position: sticky; top: 80px; align-self: start; font-size: 14px; }
.toc p { font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 4px 0 4px 14px; color: var(--dim); }
.toc li a:hover { color: var(--text); text-decoration: none; }

.doc { max-width: 720px; }
.single { max-width: 720px; margin: 0 auto; padding-top: 64px; padding-bottom: 110px; }
.doc h1, .single h1 { font-size: clamp(36px, 5vw, 48px); letter-spacing: -0.005em; line-height: 1.08; }
.doc .lead, .single .lead { color: var(--dim); font-size: 21px; line-height: 1.3; margin-top: 12px; }
.doc h2, .single h2 { font-size: 28px; letter-spacing: 0.004em; margin-top: 56px; }
.doc h3, .single h3 { font-size: 19px; margin-top: 26px; }
.doc p, .single p { margin-top: 12px; }
.doc ul, .doc ol, .single ul { padding-left: 22px; margin-top: 12px; }
.doc li, .single li { margin: 6px 0; }
.doc strong, .single strong { font-weight: 600; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 14px; }
summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--accent); font-weight: 400; font-size: 22px; }
details[open] summary::after { content: "−"; }
details > *:not(summary) { margin-bottom: 16px; }
details p:first-of-type { margin-top: 0; }

kbd {
    background: var(--gray); border: 1px solid var(--line); border-radius: 6px;
    padding: 1px 6px; font-size: 0.85em;
    font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--text);
}
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; }
pre { background: var(--gray); border-radius: 12px; padding: 14px 16px; margin-top: 12px; overflow-x: auto; line-height: 1.5; letter-spacing: 0; }
table { border-collapse: collapse; width: 100%; margin-top: 16px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
th { font-weight: 600; }
td { color: var(--dim); }

/* Fuß */
footer.site { background: var(--gray); color: var(--dim); font-size: 12px; letter-spacing: -0.01em; padding: 22px 0 40px; }
footer.site .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--dim); }
footer.site a:hover { color: var(--text); }

@media (max-width: 834px) {
    nav.site .links a:not(.lang) { display: none; }
    .hero { padding-top: 52px; }
    .band { padding-top: 72px; padding-bottom: 64px; }
    .bento { grid-template-columns: 1fr; }
    .tile.wide { grid-column: auto; }
    .tile { min-height: 0; }
    .docs { grid-template-columns: 1fr; gap: 0; padding-top: 36px; }
    .toc { position: static; margin-bottom: 8px; }
    .toc ol { columns: 2; border-left: none; }
    .toc li a { padding-left: 0; }
}
