/* ==========================================================
   westmc-x_v3 – Gaming-PC Infoseite (Layout „Kacheln“)
   ========================================================== */

/* Open Sans selbst gehostet (variable Schrift, 300–800).
   Liegt die Datei nicht vor, greift die Systemschrift. */
@font-face {
	font-family: "Open Sans";
	src: local("Open Sans"),
	     url("../fonts/open-sans/OpenSans-Variable.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--accent: #FFCC00;
	--bg: #26282B;
	--card: #FFFFFF;
	--tile: #F6F7F8;
	--line: #E3E5E8;
	--text: #1E2023;
	--text-2: #50555B;
	--muted: #6A7077;
	--footer: #A9AEB4;
	--link-hover: #8A6A00;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
	line-height: 1.5;
}

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

a:hover {
	color: var(--link-hover);
}

h1,
h2 {
	margin: 0;
}

/* ---------- Rahmen ---------- */

.page {
	min-height: 100vh;
	padding: 48px 16px;
}

.shell {
	display: block;
	max-width: 1040px;
	margin: 0 auto;
	background: var(--card);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
	animation: up .8s var(--ease) both;
}

/* ---------- Header: Wappen ragt in die Karte ---------- */

.site-header {
	position: relative;
	height: 140px;
	background: #3A3D41;
	border-bottom: 4px solid var(--accent);
}

.domain {
	position: absolute;
	top: 0;
	height: 140px;
	display: flex;
	align-items: center;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #D7DADE;
	transition: color .2s ease;
}

.domain:hover {
	color: var(--accent);
}

.domain-left  { left: 40px; }
.domain-right { right: 40px; }

.badge {
	position: absolute;
	z-index: 1;
	left: 50%;
	top: 28px;
	width: 260px;
	height: 180px;
	margin-left: -110px;
	animation: drop .8s var(--ease) .15s both;
}

.badge img {
	position: absolute;
	width: auto;
}

.badge-ksk {
	left: 0;
	top: 0;
	height: 180px;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)) drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
}

.badge-gs {
	left: 118px;
	top: 104px;
	height: 80px;
	filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .30)) drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}

.content {
	padding: 116px 36px 36px;
}

/* ---------- Begrüßung ---------- */

.intro {
	text-align: center;
	margin-bottom: 28px;
}

.intro h1 {
	font-weight: 800;
	font-size: clamp(24px, 3.4vw, 34px);
	line-height: 1.2;
	letter-spacing: -.015em;
}

.intro p {
	margin: 10px 0 0;
	font-size: 15px;
	color: var(--text-2);
}

.intro a {
	font-weight: 700;
	border-bottom: 2px solid var(--accent);
	overflow-wrap: anywhere;
}

/* ---------- Kachel-Raster ---------- */

.grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }

.tile {
	min-width: 0;
	background: var(--tile);
	border-radius: 12px;
	padding: 20px 22px;
	animation: up .6s var(--ease) both;
	animation-delay: var(--d, 0s);
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.tile:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, .10);
	background: #FFFFFF;
}

.label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}

.big {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	margin-top: 8px;
}

.mid {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	margin-top: 10px;
}

.sub {
	font-size: 13px;
	color: var(--text-2);
	margin-top: 4px;
}

.num {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	margin-top: 6px;
	font-variant-numeric: tabular-nums;
}

.num small {
	font-size: 16px;
	font-weight: 700;
	color: var(--text-2);
}

.num-sm {
	font-size: 28px;
	margin-top: 0;
}

.num-sm small {
	font-size: 15px;
}

.num-dsl {
	font-size: 30px;
	line-height: 1;
	margin-top: 0;
}

/* ---------- Speicher ---------- */

.tile-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

.storage-bar {
	display: flex;
	gap: 2px;
	height: 16px;
	margin: 14px 0 16px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--line);
}

.seg {
	display: block;
	transform-origin: left;
	animation: grow 1s var(--ease) both;
	animation-delay: var(--d, 0s);
}

.c1 { background: #7A5E00; }
.c2 { background: #B38A00; }
.c3 { background: #FFCC00; }
.c4 { background: #FFE68A; }

.legend {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 8px 20px;
	font-size: 14px;
}

.legend li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.legend-title {
	margin-top: 18px;
	margin-bottom: 10px;
}

.legend strong {
	white-space: nowrap;
}

.dot {
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 3px;
}

/* ---------- DSL ---------- */

.dsl {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin-top: 14px;
}

.dsl-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dsl-item .sub {
	font-size: 12px;
	color: var(--muted);
	margin-top: 2px;
}

/* ---------- Webseiten ---------- */

.links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 10px;
	margin-top: 8px;
}

.links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 44px;
	padding: 0 10px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	transition: background .2s ease, transform .2s ease;
}

.links a:hover {
	background: #FFFFFF;
	transform: translateX(3px);
}

.links svg {
	flex: none;
}

/* ---------- Installierte Software (Testserver) ---------- */

.cms {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 8px 14px;
	margin-top: 12px;
}

.cms-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 52px;
	padding: 6px 8px 6px 14px;
	background: #FFFFFF;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.cms-name {
	font-size: 14px;
	font-weight: 700;
}

.cms-links {
	display: flex;
	gap: 6px;
}

.cms-links a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	transition: border-color .2s ease, background .2s ease;
}

.cms-links a:hover {
	border-color: var(--accent);
	background: #FFF8D6;
}

/* ---------- Footer ---------- */

.footer {
	text-align: center;
	margin-top: 36px;
}

.footer a {
	font-size: 12px;
	letter-spacing: .12em;
	color: var(--footer);
}

.footer a:hover {
	color: var(--accent);
}

/* ---------- Animationen ---------- */

@keyframes up {
	from { opacity: 0; transform: translateY(20px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

@keyframes fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes drop {
	from { opacity: 0; transform: translateY(-16px) scale(.94); }
	to   { opacity: 1; transform: none; }
}

@keyframes grow {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

/* ---------- Responsive ---------- */

/* Tablet: 2 Spalten */
@media (max-width: 900px) {
	.domain {
		display: none;
	}

	.grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.span-2,
	.span-4 {
		grid-column: span 2;
	}
}

/* Handy: 1 Spalte */
@media (max-width: 600px) {
	.page {
		padding: 16px 10px 32px;
	}

	.shell {
		border-radius: 10px;
	}

	.site-header {
		height: 104px;
	}

	.badge {
		top: 22px;
		width: 170px;
		height: 126px;
		margin-left: -72px;
	}

	.badge-ksk {
		height: 126px;
	}

	.badge-gs {
		left: 82px;
		top: 74px;
		height: 56px;
	}

	.content {
		padding: 80px 16px 20px;
	}

	.grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.span-2,
	.span-4 {
		grid-column: auto;
	}

	.tile {
		padding: 18px;
	}

	.legend {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 400px) {
	.links {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Weniger Bewegung, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
	.shell,
	.badge,
	.tile,
	.seg {
		animation: none;
	}

	.tile:hover,
	.links a:hover {
		transform: none;
	}
}
