/* Katzer Steuerberatungsgesellschaft mbH — site stylesheet
   Hand-written, no build step. Reproduces the site's existing visual
   design (colors, layout, header/nav/hero/dropdown/offcanvas behavior)
   without the legacy Bootstrap/UIkit/jQuery theme it replaces. */

/* ---------- Custom properties ---------- */
:root {
	--color-primary: #1e58a5;
	--color-primary-dark: #1a4c8f;
	--color-accent: #4b8ade;
	--color-navy: #253946;
	--color-offcanvas: #465158;
	--color-text: #555555;
	--color-panel-bg: #f7f7f7;
	--container-max: 980px;
	--container-max-wide: 1200px;
	--container-pad: 25px;
	--container-pad-wide: 35px;
	--nav-breakpoint: 768px;
	--slant: clamp(14px, 2.5vw, 34px);
}

/* ---------- Fonts ---------- */
@font-face {
	font-family: 'Source Sans Pro';
	font-style: normal;
	font-weight: 300;
	src: url('../fonts/source-sans-pro-300.woff2') format('woff2');
	font-display: swap;
}
@font-face {
	font-family: 'Source Sans Pro';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/source-sans-pro-400.woff2') format('woff2');
	font-display: swap;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after {
	box-sizing: border-box;
}
body {
	margin: 0;
	font-family: 'Source Sans Pro', Arial, sans-serif;
	font-weight: 400;
	color: var(--color-text);
	background: #ffffff;
	line-height: 1.5;
}
img {
	max-width: 100%;
	display: block;
}
a {
	color: var(--color-primary);
}
h1, h2, h3, h4 {
	font-weight: 300;
	color: #333333;
	line-height: 1.3;
}
h2 { margin-top: 35px; }
h3, h4 { margin-top: 25px; }
p { margin: 0 0 15px; }

.uk-container {
	box-sizing: border-box;
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding: 0 var(--container-pad);
}
@media (min-width: 1220px) {
	.uk-container {
		max-width: var(--container-max-wide);
		padding: 0 var(--container-pad-wide);
	}
}

/* ---------- Header bar ---------- */
.tm-headerbar {
	position: relative;
	background: #ffffff;
	z-index: 1;
}
.tm-headerbar .uk-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 90px;
}
.uk-navbar-brand img {
	height: 48px;
	width: auto;
}
.uk-navbar-brand.uk-hidden-small {
	display: none;
}
@media (min-width: 768px) {
	.uk-navbar-brand.uk-hidden-small {
		display: block;
	}
}

.uk-navbar-nav {
	display: none;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.uk-navbar-nav {
		display: flex;
		align-items: center;
		gap: 4px;
	}
}
.uk-navbar-nav > li {
	position: relative;
}
.uk-navbar-nav > li > a,
.uk-navbar-nav > li > details > summary {
	display: block;
	padding: 10px 14px;
	text-decoration: none;
	color: var(--color-text);
	font-size: 15px;
	cursor: pointer;
	list-style: none;
}
.uk-navbar-nav > li > details > summary::-webkit-details-marker {
	display: none;
}
.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li > a:focus,
.uk-navbar-nav > li > details > summary:hover {
	color: var(--color-navy);
	outline: none;
}
.uk-navbar-nav > li > a:active,
.uk-navbar-nav > li.uk-active > a {
	color: var(--color-primary);
}

/* Leistungen dropdown, native <details>/<summary> */
.uk-navbar-nav .uk-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1020;
	margin-top: 5px;
	width: 260px;
	padding: 16px 0;
	background: var(--color-primary);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.uk-nav-navbar {
	margin: 0;
	padding: 0;
	list-style: none;
}
.uk-nav-navbar > li > a {
	display: block;
	padding: 8px 20px;
	text-decoration: none;
	color: var(--color-accent);
	border-left: 3px solid transparent;
}
.uk-nav-navbar > li > a:hover,
.uk-nav-navbar > li > a:focus {
	color: #ffffff;
	background: var(--color-primary-dark);
	border-left-color: #ffffff;
}

/* Mobile nav toggle */
.uk-navbar-toggle {
	order: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--color-navy);
	text-decoration: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
@media (min-width: 768px) {
	.uk-navbar-toggle,
	.uk-navbar-brand.uk-visible-small {
		display: none;
	}
}
.uk-navbar-brand.uk-visible-small img {
	height: 40px;
}

/* ---------- Hero band ---------- */
/* The header and content-block slants are painted overlay wedges (not a
   clip-path on the hero itself), so they render correctly regardless of
   what the hero contains - including an <iframe> (impressum's map), which
   gets its own compositing layer and does not reliably respect clip-path
   applied via a negative-margin overlap trick. */
.tm-headerbar::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: var(--slant);
	background: #ffffff;
	clip-path: polygon(0 0, 100% 0, 0 100%);
	z-index: 2;
	pointer-events: none;
}
.tm-hero {
	position: relative;
	background: var(--color-navy);
}
.top-parallax {
	min-height: 70px;
	background: var(--color-navy);
	overflow: hidden;
}
.top-parallax img {
	width: 100%;
	height: auto;
}

/* ---------- Main content ---------- */
.tm-content-block {
	position: relative;
	padding-top: calc(var(--slant) + 25px);
	padding-bottom: 40px;
}
.tm-content-block::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 0;
	right: 0;
	height: var(--slant);
	background: #ffffff;
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	z-index: 2;
	pointer-events: none;
}
.uk-article-title {
	margin-top: 0;
	font-size: 40px;
	line-height: 1.2;
	font-weight: 300;
	hyphens: auto;
}
.uk-article ul, .uk-article ol {
	padding-left: 20px;
}

footer.tm-footer {
	padding: 15px 0 30px;
}
footer.tm-footer .uk-container {
	text-align: right;
}
footer.tm-footer a {
	color: var(--color-text);
}

/* ---------- Grid ---------- */
.uk-grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
}
.uk-grid > * {
	box-sizing: border-box;
	padding: 0 15px;
	width: 100%;
}
.uk-width-medium-1-2 {
	width: 100%;
}
@media (min-width: 768px) {
	.uk-width-medium-1-2 {
		width: 50%;
	}
}

/* ---------- Panels ---------- */
.uk-panel-box {
	padding: 35px;
	background: var(--color-panel-bg);
	color: var(--color-text);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
	margin-bottom: 25px;
}
.uk-panel-title {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 22px;
	line-height: 1.4;
	font-weight: 300;
}

/* ---------- Lists ---------- */
.uk-list {
	padding: 0;
	margin: 0;
	list-style: none;
}
.uk-list > li {
	padding: 4px 0;
}
.uk-icon-play {
	display: inline-block;
	font-style: normal;
	width: 0;
	height: 0;
	margin-right: 8px;
	vertical-align: middle;
	border-style: solid;
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent currentColor;
}

/* ---------- Description list ---------- */
.uk-description-list-horizontal dt {
	font-weight: 400;
	color: #333333;
}
.uk-description-list-horizontal dd {
	margin: 0 0 10px;
}
@media (min-width: 768px) {
	.uk-description-list-horizontal {
		overflow: hidden;
	}
	.uk-description-list-horizontal > dt {
		width: 160px;
		float: left;
		clear: both;
	}
	.uk-description-list-horizontal > dd {
		margin-left: 180px;
	}
}

/* ---------- Offcanvas ---------- */
#offcanvas {
	position: fixed;
	inset: 0;
	z-index: 1000;
}
#offcanvas[hidden] {
	display: none;
}
.uk-offcanvas-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}
.uk-offcanvas-bar {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 270px;
	max-width: 85%;
	background: var(--color-offcanvas);
	overflow-y: auto;
	padding: 20px 0;
}
.uk-nav-offcanvas {
	margin: 0;
	padding: 0;
	list-style: none;
}
.uk-nav-offcanvas li > a {
	display: block;
	padding: 10px 20px;
	color: #d5dde1;
	text-decoration: none;
}
.uk-nav-offcanvas li > a:hover,
.uk-nav-offcanvas li > a:focus {
	color: #ffffff;
}
.uk-nav-offcanvas li.uk-active > a {
	color: #ffffff;
	font-weight: 400;
}
.uk-nav-header {
	padding: 10px 20px;
	margin-top: 10px;
	text-transform: uppercase;
	font-size: 14px;
	color: #9ebacc;
}
.uk-nav-sub {
	margin: 0;
	padding: 0 0 0 20px;
	list-style: none;
}
.uk-nav-sub li > a {
	padding: 6px 20px;
}

@media (min-width: 768px) {
	#offcanvas {
		display: none;
	}
}

/* ---------- Utilities ---------- */
.uk-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
