@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/SpaceMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/assets/fonts/SpaceMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* Weiß, schlicht, 1000px mittig (Airbnb-Anmutung). Markenfarben nur als Akzent. */
:root {
  --navy: #1a2438;
  --blue: #1e9be9;
  --blue-dark: #1478b8;
  --red: #c8232c;
  --brand: #e63b37;       /* Rot aus dem Logo (J-Kreis) */
  --brand-dark: #cc2f2c;
  --bg: #fff;
  --soft: #f7f7f7;
  --text: #222;
  --muted: #717171;
  --border: #ebebeb;
  --border-strong: #dddddd;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Space Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.5; display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.015em; line-height: 1.2; color: var(--text); }
.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 460px; }
.container-prose { max-width: 760px; }
.mono { font-family: var(--mono); }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.accent { color: var(--brand); }
.accent-red { color: var(--red); }
.center { text-align: center; }
.is-disabled { opacity: .45; pointer-events: none; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Header / Footer ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: block; flex: none; } .brand:hover { text-decoration: none; }
.logo { display: block; height: var(--logo-size, 1.6rem); width: auto; max-width: 100%; object-fit: contain; }
.logo-md { --logo-size: 1.4rem; } .logo-lg { --logo-size: 2.4rem; } .logo-xl { --logo-size: 3.2rem; }
.brand .logo { --logo-size: 2rem; }
.main-nav { display: flex; gap: 1.5rem; align-items: center; font-weight: 500; font-size: .95rem; }
.main-nav a { color: var(--text); } .main-nav a:hover { text-decoration: none; color: var(--muted); }
.main-nav a.active { font-weight: 700; }
.main-nav .btn { padding: .5rem 1rem; font-size: .9rem; }
.main-nav .btn-primary, .main-nav .btn-primary:hover { color: #fff; }
.nav-search input { padding: .5rem .9rem; border: 1px solid var(--border-strong); border-radius: 0; font: inherit; font-size: .9rem; width: 170px; background: #fff; }
.nav-search input:focus { outline: none; border-color: var(--text); }
.main-nav a.active { color: var(--brand); }

.site-footer { background: var(--soft); border-top: 1px solid var(--border); padding: 2.5rem 0 2rem; margin-top: 4rem; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 3rem; align-items: start; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; } .footer-brand .mono { color: var(--muted); font-size: .8rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-footer a { color: var(--text); }
.muted-dark { color: var(--muted); grid-column: 1 / -1; }

/* ---------- Buttons, Chips ---------- */
.btn { display: inline-block; padding: .7rem 1.3rem; border-radius: 0; font-weight: 600; border: 1px solid transparent; font-size: .95rem; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); } .btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline, .btn-ghost { background: #fff; border-color: var(--text); color: var(--text); } .btn-outline:hover, .btn-ghost:hover { background: var(--soft); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; } .btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .9rem; border: 1px solid var(--border-strong); background: #fff; color: var(--text); font-weight: 500; font-size: .9rem; }
.chip:hover { border-color: var(--text); text-decoration: none; } .chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.chip .mono { color: var(--muted); font-size: .75rem; } .chip.active .mono { color: #ccc; }
.chips-sm .chip { padding: .3rem .75rem; font-size: .85rem; }
.eyebrow { color: var(--muted); font-size: .8rem; margin: 0 0 .75rem; }
.breadcrumbs a { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 44rem; margin: 0 0 1.5rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Sektionen ---------- */
.section { padding: 3rem 0; }
.section-alt { border-top: 1px solid var(--border); }
.section-title { font-size: 1.4rem; margin: 0 0 1.25rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.page-header, .bp-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); }
.page-header h1, .bp-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 .6rem; }
.page-header .lead, .bp-header .lead { margin-bottom: 1rem; }
.hero { padding: 3rem 0; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 1rem; }
.hero-narrow { padding: 3rem 0 4rem; }

/* Startseite */
.intro { padding: 3.5rem 0 1.5rem; }
.intro h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .4rem; }
.intro h1 .red { color: var(--brand); }
.intro .lead { font-size: 1.3rem; color: var(--text); font-weight: 500; margin-bottom: 1.75rem; }
.section-blueprints { padding-bottom: 2rem; }
.more { margin-top: 2.5rem; }

/* ---------- Workflow-Zeile (Skizze: Text links, „entwickelt von“ unter dem Text, Video rechts, Schritte darunter) ---------- */
.rows-bp { display: flex; flex-direction: column; }
.wf { display: grid; grid-template-columns: minmax(0, 1fr) 260px; grid-template-areas: "main side" "btns btns"; gap: 1.25rem 2rem; padding: 2.25rem 0; border-top: 1px solid var(--border); }
.rows-bp > .wf:last-child { border-bottom: 1px solid var(--border); }
.wf-main { grid-area: main; min-width: 0; }
.wf-kicker { font-family: var(--mono); font-size: .75rem; color: var(--brand); margin: 0 0 .4rem; letter-spacing: .02em; }
.wf h3 { font-size: 1.5rem; margin: 0 0 .6rem; }
.wf h3 a { color: var(--text); } .wf h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wf-text { margin: 0 0 .75rem; color: var(--muted); font-size: 1rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wf-side { grid-area: side; display: flex; flex-direction: column; gap: .6rem; }
.wf-video { position: relative; display: block; aspect-ratio: 16/10; background: var(--soft); border: 1px solid var(--border); overflow: hidden; }
.wf-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wf-play { position: absolute; right: .6rem; bottom: .6rem; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: .8rem; padding-left: 3px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.wf-type { color: var(--text); font-weight: 700; } .wf-type::before { content: "·"; color: var(--muted); margin: 0 .5em; font-weight: 400; }
.wf-master { display: flex; width: fit-content; align-items: baseline; gap: .35rem; margin: 0 0 .75rem; color: var(--text); } .wf-master:hover { text-decoration: none; }
.wf-master-label { font-size: .9rem; color: var(--muted); }
.wf-master-name { font-weight: 600; font-size: .95rem; } .wf-master:hover .wf-master-name { text-decoration: underline; }

/* Level-Badge (1–3 Punkte), auf dem Video oben links bzw. im Kicker der Detailseite */
.lvl { display: inline-flex; align-items: center; gap: 3px; padding: .2rem .5rem; border-radius: 999px; background: #fff; color: var(--text); font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; box-shadow: 0 1px 6px rgba(0,0,0,.14); vertical-align: middle; }
.lvl i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); } .lvl i.on { background: var(--brand); }
.lvl i:last-of-type { margin-right: .25rem; }
.wf-video .lvl { position: absolute; right: .6rem; top: .6rem; }
.bp-header .wf-kicker .lvl { margin-left: .75rem; box-shadow: none; border: 1px solid var(--border-strong); }

/* Vier Selbermach-Schritte; Schritt 3 („Mit KI selber bauen“) ist der Kern */
.wf-steps { grid-area: btns; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.step > a, .step > span { position: relative; display: flex; align-items: center; gap: .6rem; height: 100%; padding: .6rem .75rem; border: 1px solid var(--border-strong); background: #fff; color: var(--text); }
.step > a:hover { border-color: var(--text); text-decoration: none; }
.step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--text); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: .8rem; }
.step-txt { display: flex; flex-direction: column; min-width: 0; }
.step-t { font-weight: 600; font-size: .88rem; line-height: 1.25; }
.step-s { font-size: .75rem; color: var(--muted); }
.step.is-core > a { border: 1.5px solid var(--brand); background: #fff5f5; }
.step.is-core > a:hover { background: #ffecec; }
.step.is-core .step-n { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.is-core .step-t { color: var(--brand-dark); }
.step.is-off > span { border-style: dashed; color: #a8a8a8; } .step.is-off .step-n { border-color: #c8c8c8; } .step.is-off .step-s { color: #b5b5b5; }
.bp-header .wf-steps { margin-top: 1.5rem; }

/* Startseite (Skizze IMG_0798): schmaler, Bild links mit Rahmen-Padding + „entwickelt von“ darunter, rechts Titel/Text, Schritte untereinander */
.is-home .container { max-width: 840px; }
.wf-home { grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "side main" "side btns"; grid-template-rows: auto 1fr; gap: .9rem 2.25rem; }
.wf-home .wf-video { aspect-ratio: 1/1; padding: .6rem; background: #fff; border-color: var(--border-strong); }
.wf-home .wf-video img { background: var(--soft); }
.wf-home .wf-video .lvl { right: 1.1rem; top: 1.1rem; }
.wf-home .wf-play { right: 1.1rem; bottom: 1.1rem; }
.wf-home .wf-master { flex-direction: column; gap: .1rem; margin: .2rem 0 0; }
.wf-home .wf-text { margin-bottom: 0; }
.wf-home .wf-steps { grid-template-columns: 1fr; gap: .45rem; align-content: start; }
.wf-home .step > a, .wf-home .step > span { padding: .5rem .75rem; }
.wf-home .step-txt { flex-direction: row; align-items: baseline; justify-content: space-between; gap: .75rem; flex: 1; }

/* Startseite: so funktioniert ki-it-yourself */
.diy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; margin: 0 0 1.75rem; padding: 1.25rem 1.5rem; background: var(--soft); }
.diy p { margin: 0; color: var(--text); line-height: 1.6; }
.diy-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; max-width: 300px; gap: .4rem .5rem; font-size: .85rem; font-weight: 600; }
.diy-flow li { display: inline-flex; align-items: center; gap: .35rem; }
.diy-flow li + li::before { content: "→"; color: var(--muted); font-weight: 400; margin-right: .15rem; }
.diy-flow b { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--text); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .7rem; }
.diy-flow .is-core { color: var(--brand-dark); } .diy-flow .is-core b { background: var(--brand); border-color: var(--brand); color: #fff; }

.sponsor-badge { display: inline-block; padding: .15rem .5rem; border: 1px solid var(--border-strong); color: var(--muted); font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.sponsor-badge:hover { color: var(--text); border-color: var(--text); text-decoration: none; }

/* Kacheln (falls noch genutzt) */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card-bp { border: 1px solid var(--border); display: flex; flex-direction: column; }
.card-bp-media { position: relative; aspect-ratio: 16/9; background: var(--soft); display: block; overflow: hidden; }
.card-bp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-bp-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 2rem; }
.card-bp-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-bp-meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .8rem; }
.card-bp h3 { margin: 0; font-size: 1.1rem; } .card-bp p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-bp-author { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .6rem; font-size: .85rem; font-weight: 600; }
.play-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(255,255,255,.95); color: var(--text); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; padding-left: 3px; }
.diff { padding: .1rem .5rem; background: var(--soft); }
.tool { padding: .1rem .5rem; background: var(--soft); color: var(--text); }

/* Avatare (bleiben rund) */
.card-bp-author img, .avatar-fallback { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--soft); color: var(--text); font-weight: 700; border: 1px solid var(--border); }
.avatar-md { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; font-size: 1.3rem; flex: none; }
.avatar-xl { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; font-size: 3rem; flex: none; }

/* JackMaster */
.grid-authors { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.card-author { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--border); padding: 1rem 1.25rem; color: var(--text); }
.card-author:hover { text-decoration: none; border-color: var(--text); }
.card-author div { display: flex; flex-direction: column; gap: .1rem; } .card-author strong { font-weight: 700; }
.author-hero { display: flex; gap: 2rem; align-items: center; }
.author-header { padding-bottom: 2.5rem; }

/* Liste mit Sidebar */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.sidebar h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.5rem 0 .6rem; font-weight: 600; } .sidebar h3:first-child { margin-top: 0; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list a { display: flex; justify-content: space-between; padding: .45rem .6rem; color: var(--text); }
.sidebar-list a:hover { background: var(--soft); text-decoration: none; } .sidebar-list a.active { background: var(--text); color: #fff; } .sidebar-list a.active .muted { color: #ccc; }
.pagination { display: flex; gap: 1.5rem; justify-content: center; margin-top: 2.5rem; }
.layout-sidebar .wf { grid-template-columns: minmax(0, 1fr) 240px; gap: 1rem 2rem; }

/* Detailseite */
.bp-meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; color: var(--muted); }
.bp-body { padding: 2.5rem 1.5rem; }
.preview-bar { background: var(--red); color: #fff; text-align: center; padding: .5rem; font-size: .85rem; } .preview-bar a { color: #fff; text-decoration: underline; }
.gallery { margin-bottom: 2.5rem; }
.gallery-stage { aspect-ratio: 16/9; background: #111; overflow: hidden; position: relative; }
.gallery-stage img, .gallery-stage iframe { width: 100%; height: 100%; object-fit: contain; display: block; border: 0; }
.yt-poster { width: 100%; height: 100%; border: 0; background-size: cover; background-position: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: #fff; }
.yt-play { width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; padding-left: 5px; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.yt-hint { background: rgba(0,0,0,.65); padding: .3rem .7rem; }
.gallery-caption { margin: .5rem 0 0; min-height: 1.2em; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.gallery-thumb { position: relative; flex: none; width: 110px; aspect-ratio: 16/10; border: 2px solid transparent; overflow: hidden; padding: 0; background: var(--soft); cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .gallery-thumb.active { border-color: var(--text); }
.gallery-thumb .play-badge { width: 26px; height: 26px; font-size: .65rem; }
.bp-tags { margin-top: 2rem; }
.download-box, .author-box, .sponsor-box { border: 1px solid var(--border-strong); padding: 1.25rem; margin-bottom: 1rem; }
.download-box h3, .sidebar .download-box h3 { margin: 0 0 .6rem; font-size: 1.05rem; text-transform: none; letter-spacing: -.01em; color: var(--text); font-weight: 700; } .download-box .btn { margin: .75rem 0 .5rem; }
.download-box details { margin-top: .5rem; } .download-box summary { cursor: pointer; color: var(--muted); }
.author-box { display: flex; gap: 1rem; align-items: center; } .author-box div { display: flex; flex-direction: column; gap: .15rem; } .author-box a { text-decoration: underline; }
.sponsor-box { display: flex; flex-direction: column; gap: .4rem; }
.sponsor-box .sponsor-logo img { max-width: 100%; max-height: 72px; width: auto; height: auto; display: block; margin: .3rem 0; }
.sponsor-box p { margin: 0; } .sponsor-links { display: flex; flex-direction: column; gap: .2rem; margin-top: .3rem; } .sponsor-links a { text-decoration: underline; }
.sponsor-head { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; } .sponsor-head h1 { margin: 0 0 .3rem; }
.sponsor-head-logo { max-width: 220px; max-height: 110px; width: auto; height: auto; border: 1px solid var(--border); padding: .75rem; }
.sponsor-desc { max-width: 44rem; margin-top: 1rem; }
.side-stats { text-align: center; }

.prose { font-size: 1.05rem; line-height: 1.7; } .prose-sm { font-size: .95rem; }
.prose a { color: var(--brand-dark); text-decoration: underline; }
.prose h1, .prose h2, .prose h3 { margin: 1.8em 0 .6em; } .prose h2 { font-size: 1.45rem; } .prose h3 { font-size: 1.2rem; }
.prose pre { background: #1d1f21; color: #eee; padding: 1rem 1.25rem; overflow: auto; font-size: .9rem; line-height: 1.5; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: .1em .35em; } .prose pre code { background: none; padding: 0; }
.prose img { max-width: 100%; } .prose blockquote { border-left: 3px solid var(--border-strong); margin: 1.5em 0; padding: .3em 1.2em; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; } .prose th, .prose td { border: 1px solid var(--border); padding: .5rem .7rem; text-align: left; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.search-form { display: flex; gap: .5rem; max-width: 560px; margin-top: 1rem; } .search-form input { flex: 1; padding: .75rem 1rem; border: 1px solid var(--border-strong); font: inherit; } .search-form .btn { font: inherit; }

/* ---------- Formulare, Konto ---------- */
.card { background: #fff; border: 1px solid var(--border-strong); padding: 1.5rem; margin-bottom: 1rem; }
.card-danger { border-color: #f3b4b8; }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem; border: 1px solid var(--border-strong); border-radius: 0; font: inherit; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--text); }
.form .btn { width: 100%; font: inherit; font-weight: 600; }
.form label.check { display: flex; align-items: flex-start; gap: .5rem; font-weight: 400; }
.form label.check input { width: auto; margin-top: .3rem; }
.form h3 { margin-top: 0; }
.flashes { margin-bottom: 1rem; } .flashes-top { padding-top: 1rem; }
.flash { padding: .7rem 1rem; margin-bottom: .5rem; font-weight: 600; }
.flash-success { background: #e8f6ec; color: #1c6b31; } .flash-error { background: #fdecee; color: #8a1c24; } .flash-info { background: #eaf4fb; color: #0f4f7a; }
.row-2 { display: grid; grid-template-columns: 1fr 2fr; gap: .75rem; }
.subnav { display: flex; gap: 1.25rem; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; }
.subnav a { padding: .7rem 0; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a.active { color: var(--text); border-bottom-color: var(--text); } .subnav a:hover { text-decoration: none; color: var(--text); }
.subnav-logout { margin-left: auto; } .subnav-logout .link, .notice .link, button.link { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; font: inherit; cursor: pointer; }
.notice { background: #fff8e1; color: #7a5b00; padding: .8rem 1rem; margin-bottom: 1.5rem; }
.notice-info { background: #eaf4fb; color: #0f4f7a; } .notice-info a { color: #0f4f7a; font-weight: 700; }
.notice form.inline { display: inline; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.tile { border: 1px solid var(--border); padding: 1rem; display: flex; flex-direction: column; }
.tile-num { font-size: 1.7rem; font-weight: 700; font-family: var(--mono); } .tile-num.mono-sm { font-size: 1.1rem; }
.tile span:last-child { color: var(--muted); font-size: .85rem; }
.list-plain { list-style: none; padding: 0; margin: 0 0 1rem; } .list-plain li { padding: .6rem 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); }
.table th, .table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--border); } .table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--soft); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .layout-sidebar, .grid-2, .row-2 { grid-template-columns: 1fr; }
  .nav-search { display: none; }
  .author-hero { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section { padding: 2.5rem 0; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 60px; flex-wrap: wrap; justify-content: center; padding-top: .7rem; padding-bottom: .7rem; gap: .6rem; }
  .main-nav { gap: 1rem; font-size: .9rem; width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .intro { padding: 2.25rem 0 1rem; }
  .wf, .layout-sidebar .wf { grid-template-columns: 1fr; grid-template-areas: "side" "main" "btns"; gap: 1rem; padding: 1.75rem 0; }
  .wf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-home { grid-template-columns: 1fr; grid-template-areas: "side" "main" "btns"; grid-template-rows: none; }
  .wf-home .wf-video { aspect-ratio: 16/10; }
  .wf-home .wf-steps { grid-template-columns: 1fr; }
  .diy { grid-template-columns: 1fr; gap: 1rem; padding: 1rem 1.1rem; }
}

/* KI-Bauplan als Text (Detailseite, #bauplan) */
.bauplan-text { margin: 2.5rem 0 1.5rem; border-top: 1px solid var(--border-strong); padding-top: 1.25rem; }
.bauplan-text h2 { margin: 0 0 .6rem; font-size: 1.45rem; }
.bauplan-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.bauplan-text pre { background: #1d1f21; color: #eee; padding: 1rem 1.25rem; overflow: auto; max-height: 70vh; font-family: var(--mono); font-size: .88rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; margin: 0; }
