/* SIGNALLABOR — Einleitungsseite (helles Thema wie die anderen Playground-Seiten) */
:root {
	--wand: #d9dcd3; --wand-tief: #c4c8bd; --tinte: #2a2622; --tinte-leise: #6b655d; --akzent: #1f6b5e; --papier: #fbf9f5;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 Georgia, "Times New Roman", serif; color: var(--tinte); background: var(--wand); }
.seite { max-width: 1140px; margin: 0 auto; padding-bottom: 3rem; }
header { padding: 2.2rem 2rem 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 2rem; }
header h1 { margin: 0; font-size: 2rem; font-weight: normal; letter-spacing: .01em; }
header p { margin: 0; color: var(--tinte-leise); flex: 1 1 300px; }
nav { padding: 1rem 2rem 0; display: flex; gap: .3rem; border-bottom: 1px solid var(--wand-tief); flex-wrap: wrap; }
nav button {
	font: inherit; font-size: 1rem; padding: .5rem 1rem; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0;
	background: none; color: var(--tinte-leise); cursor: pointer; border-radius: 6px 6px 0 0;
}
nav button[aria-selected=true] { background: var(--papier); color: var(--tinte); border-color: var(--wand-tief); }
nav button:focus-visible, a:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
section[role=tabpanel] {
	padding: 2rem; background: var(--papier); min-height: 60vh;
	border: 1px solid var(--wand-tief); border-top: 0; border-radius: 0 0 10px 10px;
}
section[hidden] { display: none; }
h2 { font-weight: normal; font-size: 1.35rem; margin: 2.6rem 0 .6rem; }
h2:first-child { margin-top: 0; }
p { margin: .6rem 0; max-width: 62rem; }
.einstieg { font-size: 1.05rem; margin-top: 0; }
a { color: var(--akzent); }
code, pre { font: .88em/1.5 ui-monospace, Menlo, Consolas, monospace; }
code { background: #efece6; padding: .1rem .3rem; border-radius: 3px; }
pre { background: #efece6; padding: 1rem 1.2rem; border-radius: 6px; overflow: auto; tab-size: 4; }
pre code { background: none; padding: 0; }
.tabelle { overflow-x: auto; }
table { border-collapse: collapse; }
td, th { text-align: left; vertical-align: top; padding: .4rem .8rem .4rem 0; border-bottom: 1px solid var(--wand-tief); }
th { font-weight: normal; color: var(--tinte-leise); }
td:first-child { white-space: nowrap; }
ul { padding-left: 1.2rem; max-width: 62rem; }
li { margin: .3rem 0; }

.taste {
	display: inline-block; font: inherit; font-size: .95rem; padding: .4rem .9rem; border: 1px solid var(--akzent);
	background: var(--akzent); color: #fff; border-radius: 6px; cursor: pointer; text-decoration: none;
}
.taste.gross { font-size: 1.05rem; padding: .55rem 1.2rem; }
.taste:hover { filter: brightness(1.12); }

.signallabor { margin: 1rem 0 0; }
.seite .signallabor.schmal { max-width: 460px; }

/* Beispiel-Kacheln (Links ins Labor) */
.kacheln { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 1.2rem; }
.kacheln a {
	display: block; padding: .8rem 1rem; background: #fff; border: 1px solid var(--wand-tief); border-radius: 8px;
	text-decoration: none; color: var(--tinte); transition: border-color .12s, transform .12s;
}
.kacheln a:hover { border-color: var(--akzent); transform: translateY(-1px); }
.kacheln b { display: block; font-weight: normal; font-size: 1.02rem; color: var(--akzent); }
.kacheln span { display: block; font-size: .86rem; color: var(--tinte-leise); margin-top: .2rem; line-height: 1.4; }

/* Modulliste */
.modgruppe { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tinte-leise); margin: 2rem 0 .4rem; }
details.mod { border-bottom: 1px solid var(--wand-tief); }
details.mod summary { cursor: pointer; padding: .5rem .6rem .5rem .2rem; display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; list-style: none; border-radius: 4px; }
details.mod summary::-webkit-details-marker { display: none; }
details.mod summary::before { content: "▸"; color: var(--akzent); flex: 0 0 .8rem; transition: transform .15s; }
details.mod[open] summary::before { transform: rotate(90deg); }
details.mod summary::after { content: "Parameter anzeigen"; font-size: .8rem; color: var(--akzent); white-space: nowrap; }
details.mod[open] summary::after { content: "schließen"; }
details.mod summary:hover { background: #efece6; }
details.mod[open] summary b { font-weight: bold; }
details.mod summary i { width: .7rem; height: .7rem; border-radius: 50%; flex: 0 0 auto; align-self: baseline; }
details.mod summary b { font-weight: normal; font-size: 1.05rem; }
details.mod summary span { color: var(--tinte-leise); font-size: .9rem; flex: 1 1 300px; }
details.mod .innen { padding: 0 0 1rem 1.8rem; }
details.mod table { font-size: .92rem; }

.versionen h3 { font-weight: normal; font-size: 1.25rem; margin: 0 0 .2rem; }
.versionen h3 small { color: var(--tinte-leise); font-size: .85rem; margin-left: .6rem; }
footer { padding: 1.2rem 2rem 0; display: flex; flex-wrap: wrap; gap: .4rem 2rem; justify-content: space-between; color: var(--tinte-leise); font-size: .9rem; }

.knopf { font: inherit; font-size: .92rem; padding: .35rem .8rem; border: 1px solid var(--wand-tief); border-radius: 5px; background: var(--papier); color: var(--tinte); cursor: pointer; }
.knopf:hover { border-color: var(--akzent); color: var(--akzent); }
.knopf:disabled { opacity: .6; cursor: default; }
.leise { color: var(--tinte-leise); font-size: .9rem; }
