/* ============================================================
   KI-Workshop · 5.–8. Schulstufe
   Gemeinsames Stylesheet im Stil von alf.schule
   ============================================================ */

:root {
	--bg: #f6f7fb;
	--card: #ffffff;
	--ink: #1d2433;
	--muted: #5b6478;
	--line: #e4e7ef;
	--brand: #5b4be3; /* Indigo/Violett – KI-Thema */
	--brand-2: #11a7a0; /* Teal */
	--accent: #ff7a59; /* warmer Akzent */
	--soft: #eef0fb; /* helles Brand-Feld */
	--soft-teal: #e4f5f4;
	--soft-warn: #fff2ec;
	--good: #1f9d6b;
	--warn: #e0a800;
	--bad: #e0533d;
	--radius: 18px;
	--radius-sm: 11px;
	--shadow: 0 1px 2px rgba(20, 25, 45, 0.04), 0 8px 24px rgba(20, 25, 45, 0.06);
	--maxw: 880px;
	--font:
		"Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Kopf / Banner ---------- */
.site-header {
	background:
		radial-gradient(
			1200px 400px at 85% -10%,
			rgba(17, 167, 160, 0.25),
			transparent 60%
		), linear-gradient(135deg, #4a3bd0 0%, #5b4be3 45%, #7a5bf0 100%);
	color: #fff;
	position: relative;
	overflow: hidden;
}
.site-header .wrap {
	padding-top: 34px;
	padding-bottom: 38px;
	position: relative;
	z-index: 2;
}

.brandbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
}
.brandbar .kicker {
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	opacity: 0.85;
}
.logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.25);
	padding: 7px 13px;
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	backdrop-filter: blur(4px);
}
.logo:hover {
	background: rgba(255, 255, 255, 0.22);
}

.hero {
	display: flex;
	align-items: center;
	gap: 22px;
}
.hero-emoji {
	font-size: 56px;
	line-height: 1;
	flex: none;
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}
.hero h1 {
	margin: 0 0 6px;
	font-size: clamp(26px, 4.5vw, 40px);
	font-weight: 800;
	letter-spacing: -0.01em;
}
.hero .sub {
	margin: 0;
	font-size: 17px;
	opacity: 0.92;
	max-width: 56ch;
}

.site-header::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -80px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	z-index: 1;
}

/* ---------- Meta-Leiste ---------- */
.metabar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}
.metabar .chip {
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 13.5px;
	font-weight: 600;
}

/* ---------- Sektionen ---------- */
main {
	padding: 34px 0 60px;
}
section {
	margin-bottom: 26px;
}

h2 {
	font-size: 22px;
	font-weight: 800;
	margin: 8px 0 14px;
	letter-spacing: -0.01em;
	display: flex;
	align-items: center;
	gap: 10px;
}
h2 .num {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: var(--brand);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
}
h3 {
	font-size: 17px;
	font-weight: 700;
	margin: 22px 0 10px;
}

p {
	margin: 0 0 12px;
}
.lead {
	font-size: 17px;
	color: var(--muted);
}

/* ---------- Karten ---------- */
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px 24px;
	box-shadow: var(--shadow);
	margin-bottom: 16px;
}
.card > :first-child {
	margin-top: 0;
}
.card > :last-child {
	margin-bottom: 0;
}

/* Spezial-Boxen */
.box {
	border-radius: var(--radius);
	padding: 18px 20px 18px 22px;
	border: 1px solid var(--line);
	position: relative;
	margin-bottom: 16px;
}
.box .box-title {
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.box.input {
	background: var(--soft);
	border-color: #d9d9f7;
}
.box.input .box-title {
	color: var(--brand);
}
.box.do {
	background: var(--soft-teal);
	border-color: #c4e9e7;
}
.box.do .box-title {
	color: #0c8079;
}
.box.tip {
	background: var(--soft-warn);
	border-color: #ffd9c9;
}
.box.tip .box-title {
	color: #c4502f;
}
.box.note {
	background: #f3f4f8;
	border-color: var(--line);
}
.box.note .box-title {
	color: var(--muted);
}
.box > :last-child {
	margin-bottom: 0;
}

/* ---------- Pills / Tags ---------- */
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 16px;
}
.tag {
	background: var(--soft);
	color: var(--brand);
	border: 1px solid #d9d9f7;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
}
.tag.teal {
	background: var(--soft-teal);
	color: #0c8079;
	border-color: #c4e9e7;
}
.tag.warm {
	background: var(--soft-warn);
	color: #c4502f;
	border-color: #ffd9c9;
}

/* ---------- Modul-Navigation (Index) ---------- */
.modgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 14px;
}
.modcard {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 18px 16px;
	box-shadow: var(--shadow);
	transition:
		transform 0.12s ease,
		box-shadow 0.12s ease,
		border-color 0.12s ease;
}
.modcard:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(20, 25, 45, 0.1);
	border-color: #cdd0e6;
}
.modcard .mnum {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 11px;
	font-size: 22px;
	background: var(--soft);
	margin-bottom: 10px;
}
.modcard h3 {
	margin: 0 0 4px;
	font-size: 16px;
}
.modcard p {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}
.modcard .time {
	display: inline-block;
	margin-top: 10px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--brand);
	background: var(--soft);
	padding: 3px 10px;
	border-radius: 999px;
}

/* ---------- Listen ---------- */
ol.steps {
	counter-reset: step;
	list-style: none;
	padding: 0;
	margin: 0;
}
ol.steps > li {
	position: relative;
	padding: 4px 0 14px 44px;
	margin: 0;
}
ol.steps > li::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	left: 0;
	top: 2px;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: var(--brand-2);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	display: grid;
	place-items: center;
}
ol.steps > li:last-child {
	padding-bottom: 0;
}

ul.clean {
	list-style: none;
	padding: 0;
	margin: 0 0 12px;
}
ul.clean > li {
	position: relative;
	padding: 4px 0 4px 26px;
}
ul.clean > li::before {
	content: "▸";
	color: var(--brand);
	position: absolute;
	left: 4px;
	top: 4px;
	font-weight: 700;
}

ul.check {
	list-style: none;
	padding: 0;
	margin: 0 0 12px;
}
ul.check > li {
	position: relative;
	padding: 4px 0 4px 30px;
}
ul.check > li::before {
	content: "✓";
	color: var(--good);
	position: absolute;
	left: 4px;
	top: 4px;
	font-weight: 800;
}

/* ---------- Tabellen ---------- */
table {
	width: 100%;
	border-collapse: collapse;
	margin: 6px 0 16px;
	font-size: 15px;
	background: var(--card);
	border-radius: 12px;
	overflow: hidden;
}
th,
td {
	text-align: left;
	padding: 10px 13px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}
thead th {
	background: var(--soft);
	color: var(--ink);
	font-weight: 700;
	font-size: 14px;
}
tbody tr:last-child td {
	border-bottom: none;
}
tbody tr:nth-child(even) td {
	background: #fafbfe;
}

/* ---------- Ampel / Status ---------- */
.dot {
	display: inline-block;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	vertical-align: -1px;
	margin-right: 7px;
}
.dot.green {
	background: var(--good);
}
.dot.yellow {
	background: var(--warn);
}
.dot.red {
	background: var(--bad);
}

/* ---------- Code ---------- */
code,
.mono {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	background: #eef0f6;
	padding: 2px 6px;
	border-radius: 6px;
	font-size: 0.92em;
}
.prompt {
	background: #1e2233;
	color: #e8ebf5;
	border-radius: 12px;
	padding: 14px 16px;
	font-family: "SFMono-Regular", Consolas, monospace;
	font-size: 14px;
	line-height: 1.5;
	margin: 6px 0 14px;
	white-space: pre-wrap;
}
.prompt .pl {
	color: #7fd6cf;
}

/* ---------- Goal / Zeit-Badge oben im Modul ---------- */
.goalbar {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 20px;
	box-shadow: var(--shadow);
	margin-bottom: 22px;
}
.goalbar .gi {
	font-size: 14px;
}
.goalbar .gi b {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	font-weight: 700;
	margin-bottom: 1px;
}

/* ---------- Footer / Navigation ---------- */
.pagenav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 34px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 700;
	font-size: 15px;
	border: 1px solid var(--line);
	color: var(--ink);
	background: var(--card);
	transition:
		background 0.12s ease,
		border-color 0.12s ease,
		transform 0.12s ease;
}
.btn:hover {
	transform: translateY(-1px);
	border-color: #cdd0e6;
}
.btn.primary {
	background: var(--brand);
	color: #fff;
	border-color: var(--brand);
}
.btn.primary:hover {
	background: #4a3bd0;
}
.btn.ghost {
	background: transparent;
}
.btn .arrow {
	font-size: 17px;
}

.sitefoot {
	text-align: center;
	color: var(--muted);
	font-size: 13.5px;
	padding: 26px 0 36px;
	border-top: 1px solid var(--line);
	margin-top: 30px;
}

/* ---------- Hilfsklassen ---------- */
.muted {
	color: var(--muted);
}
.small {
	font-size: 13.5px;
}
.grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.center {
	text-align: center;
}
hr {
	border: none;
	border-top: 1px solid var(--line);
	margin: 24px 0;
}

@media (max-width: 620px) {
	.hero {
		flex-direction: row;
	}
	.hero-emoji {
		font-size: 42px;
	}
	.grid2 {
		grid-template-columns: 1fr;
	}
	.pagenav {
		flex-wrap: wrap;
	}
}

/* ---------- Druck ---------- */
@media print {
	body {
		background: #fff;
	}
	.site-header {
		background: #4a3bd0 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
	.modcard:hover,
	.btn:hover {
		transform: none;
	}
	.pagenav {
		display: none;
	}
	.card,
	.box,
	.goalbar {
		box-shadow: none;
	}
}
.bold {
	font-weight: 700;
}
.img100 {
	width: 100px;
	cursor: pointer;
}
.img200 {
	width: 200px;
}
.img300 {
	width: 300px;
}
.img400 {
	width: 400px;
}
.imgfull {
	width: 100%;
}

.btn {
	border: none;
	padding: 8px 20px;
	font-size: 14px;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
	margin-left: 10px;
}

.btn-primary {
	background-color: #0c6696;
	color: #ffffff;
}

.btn-primary:hover {
	background-color: #095277; /* slightly darker */
}

.btn-primary:active {
	transform: scale(0.98);
}

.btn-secondary {
	background-color: #ffffff;
	color: #666;
}

.btn-secondary:hover {
	background-color: #ddd; /* slightly darker */
}

.btn-secondary:active {
	transform: scale(0.98);
}
