/* HTK Portal-Elemente – Erscheinungsbild angelehnt an www.holztechnikum.at
   Farben bei Bedarf nur hier oben ändern. */
:root {
	--htk-blau: #014a99;
	--htk-blau-hell: #eaf1fa;
	--htk-flaeche: #f3f7fc;
	--htk-text: #1f2933;
	--htk-grau: #6b7480;
	--htk-linie: #e2e6eb;
	--htk-abstand: 30px;
}

/* ---------- Zeile mit Inhaltsverzeichnis: heller Hintergrund, linke Spalte läuft mit ---------- */
.vc_row:has(.htk-toc) {
	background: var(--htk-flaeche);
	border-radius: 10px;
	padding-top: 30px;
	padding-bottom: 10px;
	display: flex;
	flex-wrap: wrap;
}
.vc_row:has(.htk-toc)::before,
.vc_row:has(.htk-toc)::after { display: none; }
.vc_row:has(.htk-toc) > .vc_column_container { float: none; }
.vc_column_container:has(.htk-toc) > .vc_column-inner,
.vc_column_container:has(.htk-toc) > .vc_column-inner > .wpb_wrapper { height: 100%; }

/* ---------- Inhaltsverzeichnis ---------- */
.htk-toc {
	position: relative;
	box-sizing: border-box;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(1, 74, 153, .08);
	padding: 18px 10px 12px;
	margin-bottom: 22px;
}
.htk-toc-titel {
	font-size: .8em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--htk-grau); margin: 0 0 8px 12px !important;
}
.htk-toc.htk-fest { z-index: 50; overflow-y: auto; margin-bottom: 0; transition: top .2s ease; }
ul.htk-toc-liste { list-style: none; margin: 0 !important; padding: 0 !important; }
ul.htk-toc-liste li { margin: 0 !important; padding: 0 !important; background: none !important; }
ul.htk-toc-liste li::before { display: none !important; }
ul.htk-toc-liste a {
	display: block; padding: 7px 12px; border-radius: 5px;
	color: var(--htk-text); text-decoration: none; font-size: .98em; line-height: 1.3;
}
ul.htk-toc-liste a:hover,
ul.htk-toc-liste a:focus,
ul.htk-toc-liste a.htk-aktiv { background: var(--htk-blau-hell); color: var(--htk-blau); }
ul.htk-toc-liste a.htk-aktiv { font-weight: 600; }

/* ---------- Kategorie ---------- */
.htk-kat {
	background: #fff;
	border-top: 4px solid var(--htk-blau);
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(1, 74, 153, .08);
	padding: 6px 28px 18px;
	margin: 0 0 22px;
	color: var(--htk-text);
	scroll-margin-top: var(--htk-abstand);
}
.htk-kat h2.htk-kat-titel {
	color: var(--htk-blau); text-transform: uppercase; font-weight: 600;
	font-size: 1.45em; letter-spacing: .02em; line-height: 1.25; margin: .6em 0 .5em;
}
.htk-kat h3,
.htk-kat .htk-liste-titel {
	color: var(--htk-blau); opacity: .8; text-transform: uppercase; font-weight: 600;
	font-size: .85em; letter-spacing: .08em; margin: 1.4em 0 .5em;
}
.htk-kat p { margin: 0 0 .8em; }
.htk-kat a { color: var(--htk-blau); }
.htk-kat .wpb_content_element { margin-bottom: 12px; }
.htk-liste { margin-bottom: 12px; }

/* ---------- Linklisten: Dateityp wird automatisch angezeigt ---------- */
ul.htk-links { list-style: none; margin: 0 0 .5em !important; padding: 0 !important; border-top: 1px solid var(--htk-linie); }
ul.htk-links li { margin: 0 !important; padding: 0 !important; border-bottom: 1px solid var(--htk-linie); background: none !important; }
ul.htk-links li::before { display: none !important; }
ul.htk-links a {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 10px 6px; text-decoration: none; color: var(--htk-text);
}
ul.htk-links a:hover { background: var(--htk-blau-hell); color: var(--htk-blau); }
ul.htk-links a::after {
	content: "Link ↗"; flex: none;
	font-size: .72em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
	color: var(--htk-grau); background: #f1f3f5; border-radius: 3px; padding: 1px 7px;
}
ul.htk-links a[href$=".pdf" i]::after  { content: "PDF";  color: var(--htk-blau); background: var(--htk-blau-hell); }
ul.htk-links a[href$=".docx" i]::after,
ul.htk-links a[href$=".doc" i]::after  { content: "Word"; color: var(--htk-blau); background: var(--htk-blau-hell); }
ul.htk-links a[href*="docs.google.com"]::after,
ul.htk-links a[href*="sites.google.com"]::after { content: "Google ↗"; }
ul.htk-links a[href^="mailto:"]::after { content: "E-Mail"; }
ul.htk-links a:not([href^="http"]):not([href^="mailto:"])::after { content: "Link"; }

/* ---------- Anleitungen (aufklappbar) ---------- */
details.htk-auf { margin: 6px 0 10px; border-radius: 6px; scroll-margin-top: var(--htk-abstand); }
details.htk-auf > summary {
	list-style: none; cursor: pointer; position: relative;
	background: var(--htk-blau-hell); color: var(--htk-blau); font-weight: 600;
	padding: 12px 44px 12px 16px; border-radius: 6px;
}
details.htk-auf > summary::-webkit-details-marker { display: none; }
details.htk-auf > summary::after {
	content: ""; position: absolute; right: 18px; top: 50%;
	width: 8px; height: 8px; margin-top: -6px;
	border-right: 2px solid var(--htk-blau); border-bottom: 2px solid var(--htk-blau);
	transform: rotate(45deg); transition: transform .2s;
}
details.htk-auf[open] > summary { border-radius: 6px 6px 0 0; }
details.htk-auf[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.htk-auf > summary:hover { background: #dce8f6; }
.htk-auf-inhalt {
	border: 1px solid var(--htk-blau-hell); border-top: 0; border-radius: 0 0 6px 6px;
	padding: 14px 18px 6px;
}
.htk-auf-inhalt h4 { color: var(--htk-blau); font-size: 1em; font-weight: 600; margin: .4em 0 .6em; }
.htk-auf-inhalt ul { margin: 0 0 .8em 1.2em; }

/* Nummerierte Schritte: jede normale Nummernliste in einer Anleitung */
.htk-auf-inhalt ol { list-style: none; counter-reset: htk-schritt; margin: 0 0 .8em !important; padding: 0 !important; }
.htk-auf-inhalt ol > li { counter-increment: htk-schritt; position: relative; padding: 2px 0 12px 42px; margin: 0; }
.htk-auf-inhalt ol > li::before {
	content: counter(htk-schritt); position: absolute; left: 0; top: 0;
	width: 26px; height: 26px; box-sizing: border-box; border-radius: 50%;
	background: var(--htk-blau); color: #fff;
	font-weight: 600; font-size: .9em; text-align: center; line-height: 26px;
}

/* ---------- Tabellen in Textblöcken einer Kategorie ---------- */
.htk-kat table { width: 100%; border-collapse: collapse; margin: .3em 0 1em; }
.htk-kat table th, .htk-kat table td { text-align: left; vertical-align: top; padding: 9px 8px; border: 0; border-bottom: 1px solid var(--htk-linie); }
.htk-kat table th { color: var(--htk-grau); font-size: .8em; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; border-bottom: 2px solid var(--htk-blau); background: none; }
.htk-kat table td:first-child { width: 40%; }

/* ---------- Handy ---------- */
@media (max-width: 767px) {
	.vc_row:has(.htk-toc) > .vc_column_container { width: 100%; }
	.htk-toc { position: static; }
	.htk-toc-titel { margin-left: 0 !important; }
	ul.htk-toc-liste { display: flex; flex-wrap: wrap; gap: 6px; }
	ul.htk-toc-liste a { border: 1px solid var(--htk-linie); padding: 5px 10px; font-size: .9em; }
	.htk-kat { padding: 4px 16px 14px; }
	.htk-kat table td:first-child { width: auto; }
}
