/* Ergänzungen der Dev-Page zum Stylesheet der Projektseiten (/projekte/style.css) */
:root { --brand: #c9a14a; --brand-2: #e07a3c; --term-bg: #0d0e11; --term-text: #d7d4cd; }

/* Kopfzeile */
.top .nav a::before { display: none; }
.brand { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand .mono svg { width: 26px; height: 26px; display: block; color: var(--brand); }

/* Einstieg */
.intro { position: relative; overflow: hidden; padding: 56px 0 8px; border-bottom: 1px solid var(--line); }
.intro .glow { position: absolute; inset: -40% -10% auto; height: 120%; pointer-events: none; opacity: 0.55; filter: blur(70px);
  background: radial-gradient(28% 40% at 12% 30%, color-mix(in srgb, #3b82f6 45%, transparent), transparent 70%),
              radial-gradient(26% 38% at 42% 10%, color-mix(in srgb, #c9a14a 50%, transparent), transparent 70%),
              radial-gradient(24% 36% at 70% 35%, color-mix(in srgb, #8b7cf6 45%, transparent), transparent 70%),
              radial-gradient(26% 40% at 92% 15%, color-mix(in srgb, #e07a3c 40%, transparent), transparent 70%),
              radial-gradient(22% 30% at 60% 80%, color-mix(in srgb, #14a38b 35%, transparent), transparent 70%); }
.intro .wrap { position: relative; }
.intro-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 920px) { .intro-grid { grid-template-columns: 1.12fr 0.88fr; } }
.intro h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); line-height: 1.05; letter-spacing: -0.035em; margin: 10px 0 16px; }
.intro h1 .name { background: linear-gradient(100deg, var(--brand), var(--brand-2) 55%, #c0392b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro .lead { font-size: 1.2rem; margin: 0 0 12px; max-width: 34em; }
.intro .sub { color: var(--muted); margin: 0 0 22px; max-width: 36em; }
.intro .eyebrow { color: var(--brand); }
.intro .btn.primary { background: var(--brand); border-color: var(--brand); color: #1d1c1a; }
.btn.ghost { background: transparent; }
.btn.iconbtn { padding-inline: 13px; }
.btn.iconbtn svg { margin: 0; vertical-align: -4px; }
.intro .actions { align-items: center; }
.btn svg { vertical-align: -3px; margin-right: 4px; }

/* Terminal */
.term { border-radius: 14px; background: var(--term-bg); color: var(--term-text); border: 1px solid #262930; box-shadow: 0 20px 50px rgb(0 0 0 / 35%); overflow: hidden; font: 0.86rem/1.75 ui-monospace, "Cascadia Mono", Consolas, monospace; transform: rotate(-0.6deg); }
.tbar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #16181d; border-bottom: 1px solid #262930; }
.tbar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3d45; }
.tbar i:nth-child(1) { background: #e5534b; } .tbar i:nth-child(2) { background: #c69026; } .tbar i:nth-child(3) { background: #57ab5a; }
.tbar span { margin-left: 8px; color: #8b8d93; font-size: 0.78rem; }
.tbody { padding: 14px 18px 18px; }
.tl { display: flex; align-items: center; gap: 8px; white-space: nowrap; opacity: 0; animation: tin 0.35s ease forwards; }
.tl .pr { color: var(--brand); } .tl .cm { color: #7f8288; }
.tl .ok { color: #57ab5a; } .tl .svc { min-width: 15ch; } .tl .st { color: #7f8288; }
.tl .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--term-text); margin-left: 4px; animation: blink 1s steps(1) infinite; vertical-align: -2px; }
.tbody .tl:nth-child(1) { animation-delay: 0.1s } .tbody .tl:nth-child(2) { animation-delay: 0.45s } .tbody .tl:nth-child(3) { animation-delay: 0.6s }
.tbody .tl:nth-child(4) { animation-delay: 0.75s } .tbody .tl:nth-child(5) { animation-delay: 0.9s } .tbody .tl:nth-child(6) { animation-delay: 1.05s }
.tbody .tl:nth-child(7) { animation-delay: 1.2s } .tbody .tl:nth-child(8) { animation-delay: 1.5s }
@keyframes tin { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tl { animation: none; opacity: 1; } .cursor { animation: none; } }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 40px 0 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; overflow: hidden; background: var(--line); }
.stat { background: color-mix(in srgb, var(--surface) 88%, transparent); padding: 16px 18px; display: flex; flex-direction: column; }
.stat strong { font-size: 1.55rem; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.88rem; }

/* Abschnitte */
.sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.sechead h2 { margin-bottom: 0; }
.sechead a { font-size: 0.95rem; text-decoration: none; color: var(--brand); }
.wgrid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.why .wicon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 16%, var(--surface)); color: var(--brand); margin-bottom: 6px; }
.why .wicon svg { width: 22px; height: 22px; }
.why h3 { margin: 4px 0; } .why p { margin: 0; color: var(--muted); }
#familie .diagram { margin: 18px 0 8px; }

.pgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 16px; }
.pcard { text-decoration: none; color: inherit; padding: 0; overflow: hidden; border-top: 4px solid var(--c); display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgb(0 0 0 / 18%); }
.pcard img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; border-bottom: 1px solid var(--line); }
.pcard .pbody { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard h3, .mcard h3 { margin: 0; }
.pcard p, .mcard p { margin: 0; color: var(--muted); }
.pcard .more { margin-top: auto; padding-top: 6px; color: var(--c); font-weight: 600; font-size: 0.92rem; }

.mgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-top: 16px; }
.mcard { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: border-color 0.15s ease; }
.mcard:hover { border-color: var(--brand); }
.mtag { align-self: flex-start; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

.docband { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }

/* 3D-Modelle */
.mwgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); margin-top: 16px; }
.mwcard { text-decoration: none; color: inherit; padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s ease, border-color 0.15s ease; }
.mwcard:hover { transform: translateY(-2px); border-color: var(--brand); }
.mwcard img { aspect-ratio: 1; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.mwcard h3 { margin: 0; padding: 12px 14px; font-size: 0.98rem; line-height: 1.35; }
.mwmore { margin-top: 14px; }
.mwmore summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: 8px 0; }
.mwlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px; margin-top: 8px; }
.mwsmall { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; font-size: 0.92rem; line-height: 1.3; }
.mwsmall:hover { border-color: var(--brand); }
.mwsmall img { width: 52px; height: 52px; object-fit: cover; border-radius: 7px; flex: none; }

/* Suche in den Handbüchern */
.dsearch { position: relative; }
.dsearch input { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.dsearch input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 1px; }
.dsearch.big { margin-top: 14px; max-width: 640px; }
.dsearch.big input { padding: 13px 16px; font-size: 1.02rem; }
.dresults { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); max-height: 60vh; overflow: auto; position: relative; z-index: 3; }
.docnav .dresults { position: absolute; left: 0; right: 0; width: min(420px, 90vw); }
.dresults li + li { border-top: 1px solid var(--line); }
.dresults a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; text-decoration: none; color: var(--text); }
.dresults a:hover, .dresults a:focus { background: var(--surface-2); }
.dresults .rmeta { font-size: 0.76rem; color: var(--c, var(--muted)); font-weight: 600; }
.dresults .rsnip { font-size: 0.86rem; color: var(--muted); }
.dresults mark { background: color-mix(in srgb, var(--brand) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.dresults .none { padding: 10px 14px; color: var(--muted); }

/* Handbuch-Seiten */
.dgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.dcard { border-top: 4px solid var(--c); }
.dcard h3 { margin: 0 0 6px; } .dcard ul { margin: 0; padding-left: 18px; }
.dlang { font-size: 0.7rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; vertical-align: 1px; }
.docwrap { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 20px; }
@media (min-width: 960px) { .docwrap { grid-template-columns: 260px minmax(0, 1fr); } .docnav { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; } }
.docnav { font-size: 0.92rem; }
.docnav .back { display: inline-block; margin-bottom: 12px; text-decoration: none; color: var(--muted); }
.docnav .dproj { font-weight: 700; margin: 18px 0 6px; color: var(--c); }
.docnav ul { list-style: none; margin: 0; padding: 0; }
.docnav .dlist a { display: block; padding: 5px 10px; border-radius: 8px; text-decoration: none; color: var(--text); }
.docnav .dlist a[aria-current="page"] { background: var(--surface-2); font-weight: 600; }
.docnav .dhead { margin: 18px 0 6px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.docnav .dtoc a { display: block; padding: 3px 10px; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); }
.docnav .dtoc a:hover { color: var(--text); border-left-color: var(--accent); }
.docnav .dtoc .d3 a { padding-left: 22px; font-size: 0.86rem; }
.doc { min-width: 0; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 6px 0 18px; }
.doc h2 { margin-top: 2em; padding-top: 0.4em; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 1.6em; }
.doc h2, .doc h3, .doc h4 { scroll-margin-top: 76px; position: relative; }
.doc .anchor { position: absolute; left: -1em; color: var(--muted); text-decoration: none; opacity: 0; }
.doc :is(h2, h3, h4):hover .anchor { opacity: 1; }
.doc pre { margin: 12px 0; }
.doc blockquote { margin: 14px 0; padding: 8px 16px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.doc .tablewrap { margin: 14px 0; }
/* Code in Tabellen darf an den <wbr>-Stellen (nach _ . / -) umbrechen */
.doc td code, .doc th code { white-space: normal; }
.doc img { border-radius: 10px; }
.doc .dfoot { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.eyebrow.c-proxy, .eyebrow.c-bilder, .eyebrow.c-facerec, .eyebrow.c-whisper, .eyebrow.c-basalt, .eyebrow.c-dnd { color: var(--c); }

/* Fußzeile */
.footlinks { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.footlinks a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footlinks a:hover { color: var(--text); }
.legal .prose { max-width: 72ch; }

/* Schmale Bildschirme: Abschnitts-Links ausblenden, damit der Sprachumschalter sichtbar bleibt */
@media (max-width: 640px) {
  .top .nav { display: none; }
  .top .lang { margin-left: auto; }
  .term { transform: none; font-size: 0.78rem; }
  .intro { padding-top: 36px; }
}
