/* STK Ústí – modern design */

:root {
	--green-800: #175f24;
	--green-700: #1f7a2e;
	--green-600: #2e9e3e;
	--green-100: #dcf0df;
	--green-50: #f0f8f1;
	--ink: #15191c;
	--ink-2: #2a3036;
	--muted: #5b6670;
	--line: #e2e6e9;
	--bg: #ffffff;
	--bg-alt: #f5f7f6;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 8px 24px rgba(16, 24, 32, .06);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 72px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	font: 17px/1.6 var(--font);
	color: var(--ink);
	background: var(--bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-800); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.skip {
	position: absolute; left: -9999px; top: 8px; z-index: 100;
	background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; border-radius: 4px; }

svg { width: 1em; height: 1em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .65em 1.15em; border-radius: 999px;
	font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
	border: 2px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-lg { font-size: 1.05rem; padding: .8em 1.4em; }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--green-50); color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--green-600); color: var(--green-700); }
.btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { color: var(--muted); font-size: .8rem; }

.nav { margin-left: auto; }
.nav-list, .nav-list ul { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list a {
	display: flex; align-items: center; gap: 4px;
	padding: 10px 12px; border-radius: var(--radius-sm);
	color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.nav-list a:hover { background: var(--green-50); color: var(--green-800); }
.nav-list > li > a[aria-current] { color: var(--green-700); }
.nav-list > li > a[aria-current]::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
	height: 2px; background: var(--green-600); border-radius: 2px;
}
.chev { width: 12px; height: 12px; opacity: .6; transition: transform .15s; }

.sub {
	position: absolute; left: 0; top: 100%; min-width: 250px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 6px;
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .chev { transform: rotate(180deg); }
.sub a { font-weight: 500; }
.sub a[aria-current] { background: var(--green-50); color: var(--green-800); }

.nav-toggle { display: none; }

.header-call svg { width: 18px; height: 18px; }

/* ---------- Homepage ---------- */
.hero {
	background:
		radial-gradient(1200px 400px at 85% -10%, rgba(255, 255, 255, .12), transparent 60%),
		linear-gradient(135deg, var(--green-800), var(--green-600));
	color: #fff;
	padding: 64px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--green-100); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; margin-bottom: .4em; }
.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .9); max-width: 36em; margin: 0 0 28px; }
.today {
	margin: 22px 0 0; display: inline-flex; align-items: center; gap: 8px;
	background: rgba(0, 0, 0, .18); padding: 6px 14px; border-radius: 999px; font-size: .95rem;
}
.today::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7ee28d; }
.today.closed::before { background: #ffb4a8; }
.hero-photo img {
	display: block; width: 100%; border-radius: var(--radius);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3); aspect-ratio: 625 / 420; object-fit: cover;
}

.eyebrow {
	text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700;
	color: var(--green-700); margin: 0 0 10px;
}

.facts { margin-top: -36px; position: relative; }
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }.fact {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 24px;
}
.fact h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact p { margin: 0 0 10px; }
.big-link { font-size: 1.35rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.big-link:hover { color: var(--green-700); }
.muted { color: var(--muted); font-size: .95rem; }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2, .split h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
	display: flex; flex-direction: column;
	padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
	text-decoration: none; color: var(--ink); background: #fff;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.service:hover { border-color: var(--green-600); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.service h3 { font-size: 1.1rem; }
.service p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--green-700); font-weight: 600; font-size: .9rem; }

.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.link-list { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.link-list a {
	display: flex; justify-content: space-between; padding: 14px 4px;
	border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink);
}
.link-list a::after { content: "→"; color: var(--green-600); }
.link-list a:hover { color: var(--green-700); }
.photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-strip img { display: block; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo-more { grid-column: 1 / -1; font-weight: 600; }

/* ---------- Inner pages ---------- */
.page-hero {
	background: linear-gradient(135deg, var(--green-800), var(--green-600));
	color: #fff; padding: 44px 0 40px;
}
.page-hero .eyebrow { color: var(--green-100); }
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; margin: 0; max-width: 24em; }

.page-grid {
	display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px;
	padding-top: 44px; padding-bottom: 72px; align-items: start;
}

.prose { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose h2 {
	font-size: 1.45rem; margin: 1.8em 0 .7em; padding-left: 14px;
	border-left: 4px solid var(--green-600);
}
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--green-600); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { border-radius: var(--radius-sm); }

.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child > * { border-bottom: 0; }
.prose th { background: var(--green-50); font-weight: 700; color: var(--ink-2); }
.prose tbody tr:nth-child(even) td { background: #fafbfb; }
.prose .c { text-align: center; }
.prose td.c { white-space: nowrap; }

/* label/value tables (e.g. documents, routes) look like plain text */
.table-wrap:has(table.stack) { border: 0; border-radius: 0; }
.prose table.stack td { border: 0; padding: 4px 16px 4px 0; background: none !important; }
.prose table.stack td.label { font-weight: 600; width: 34%; }

.gallery {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px; margin: 0 0 1.5em;
}
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery img {
	display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
	border-radius: 0; transition: transform .25s;
}
.gallery a:hover img { transform: scale(1.04); }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 14px; }
.card-title svg { width: 20px; height: 20px; fill: none; stroke: var(--green-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-lines { margin: 0 0 8px; }
.card .muted { margin: 0 0 16px; }

.hours { border-collapse: collapse; width: 100%; font-size: .95rem; }
.hours th, .hours td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child > * { border-bottom: 0; color: var(--muted); }
.hours tr.is-today > * { font-weight: 700; color: var(--green-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d0d5; padding: 56px 0 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 40px; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.15rem; }
.footer-head { font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.site-footer .hours th, .site-footer .hours td { border-color: rgba(255, 255, 255, .1); color: #c9d0d5; }
.site-footer .hours tr.is-today > * { color: #7ee28d; }
.footer-links { list-style: none; padding: 0; margin: 0 0 20px; }
.footer-links li { margin: 6px 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.dekra { display: inline-block; background: #fff; padding: 8px 12px; border-radius: var(--radius-sm); }
.dekra img { display: block; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 24px; font-size: .85rem; color: #8d979f; }
.footer-bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
#lb {
	position: fixed; inset: 0; z-index: 1000; display: none;
	align-items: center; justify-content: center; flex-direction: column;
	background: rgba(10, 12, 14, .92); color: #fff;
}
#lb.open { display: flex; }
#lb img { max-width: 92vw; max-height: 80vh; border-radius: var(--radius-sm); }
#lb .cap { margin-top: 12px; text-align: center; max-width: 90vw; font-size: .95rem; }
#lb button {
	position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff;
	width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer;
}
#lb button:hover { background: rgba(255, 255, 255, .2); }
#lb .close { top: 16px; right: 16px; }
#lb .prev { left: 16px; top: calc(50% - 24px); }
#lb .next { right: 16px; top: calc(50% - 24px); }

/* ---------- Notice: changed opening hours ---------- */
.notice { background: #fff6dc; border-bottom: 1px solid #f0d98a; color: #3d2f00; }
.notice-inner { display: flex; gap: 14px; align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
.notice-icon {
	width: 26px; height: 26px; margin-top: 2px; color: #a06b00;
	fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.notice-body { flex: 1; min-width: 0; }
.notice-body p { margin: 0; }
.notice-title strong { text-transform: uppercase; letter-spacing: .03em; margin-right: .4em; }
.notice-days { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.notice-days li {
	display: inline-flex; gap: 8px; align-items: baseline;
	background: #fff; border: 1px solid #f0d98a; border-radius: 999px; padding: 3px 12px;
	font-variant-numeric: tabular-nums;
}
.notice-days li.closed strong { color: #b42318; text-transform: uppercase; }
.notice-note { font-size: .95rem; color: #5c4a10; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
	.header-call { display: none; }
	.services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	:root { --header-h: 64px; }
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
		background: none; border: 1px solid var(--line); border-radius: 999px;
		padding: 8px 14px; font: 600 .95rem var(--font); color: var(--ink); cursor: pointer;
	}
	.nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
	.nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.nav.open { display: block; }
	.nav-list { flex-direction: column; padding: 8px 12px 16px; gap: 0; }
	.nav-list a { padding: 12px; font-size: 1.05rem; }
	.nav-list > li > a[aria-current]::after { display: none; }
	.chev { display: none; }
	.sub {
		position: static; opacity: 1; visibility: visible; transform: none;
		border: 0; box-shadow: none; padding: 0 0 6px 12px; min-width: 0;
	}
	.sub a { font-size: 1rem; color: var(--muted); padding: 9px 12px; }

	.hero { padding: 40px 0 64px; }
	.hero-grid, .split, .page-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.facts-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: static; }
	.page-grid { padding-top: 32px; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.services { grid-template-columns: 1fr; }
	.hero .btn-row .btn { width: 100%; justify-content: center; }
	.brand-text small { display: none; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.prose table.stack, .prose table.stack tbody, .prose table.stack tr, .prose table.stack td, .prose table.stack td.label { display: block; width: auto; }
	.prose table.stack td:empty { display: none; }
	.prose table.stack td.label { padding-top: 12px; }
	.prose table.stack td + td { padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
