/*
	NG Hoorig – Layout-Overrides (wird nach main.css geladen)
	Webkultur GmbH, 2026
*/

:root {
	--h-red: #c8161d;
	--h-red-dark: #9e0f15;
	--h-ink: #2b2522;
	--h-text: #5a524d;
	--h-muted: #8a817b;
	--h-bg: #f5f1ea;
	--h-card: #ffffff;
	--h-line: #e8e1d7;
	--h-radius: 14px;
	--h-shadow: 0 1px 2px rgba(43, 37, 34, .06), 0 8px 24px rgba(43, 37, 34, .07);
	--h-header-h: 92px;
	--h-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Basis ---------- */

html { scroll-behavior: smooth; }

body {
	background: var(--h-bg);
	font-family: var(--h-font);
	color: var(--h-text);
	font-weight: 400;
	line-height: 1.75;
	-webkit-text-size-adjust: 100%;
}

input, select, textarea, button { font-family: var(--h-font); }

a { color: var(--h-red); transition: color .2s ease; }
a:hover { color: var(--h-red-dark); }

h1, h2, h3, h4, h5, h6 { color: var(--h-ink); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 2em; line-height: 1.2; margin: 0 0 .75em 0; }
h3 { font-size: 1.25em; line-height: 1.35; margin: 1.5em 0 .6em 0; }
#content h3:first-child, #sidebar h3:first-child, .widget h3 { margin-top: 0; }
b, strong { color: var(--h-ink); font-weight: 700; }

/* ---------- Header ---------- */

#header-wrapper {
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: 0;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(1.4) blur(8px);
	backdrop-filter: saturate(1.4) blur(8px);
	box-shadow: 0 1px 0 var(--h-line), 0 4px 18px rgba(43, 37, 34, .05);
}

#header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5em;
	min-height: var(--h-header-h);
}

#logo { margin: 0; flex: 0 0 auto; line-height: 0; }
#logo img { display: block; height: 68px; width: auto; }

#nav {
	position: static;
	display: flex;
	align-items: center;
	font-size: .92em;
}

#nav > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25em; }

#nav ul li { float: none; padding: 0; line-height: 1; }

#nav ul li a, #nav ul li span {
	display: inline-block;
	padding: .8em 1em;
	border-radius: 999px;
	color: var(--h-ink);
	font-weight: 600;
	letter-spacing: .01em;
	transition: background-color .2s ease, color .2s ease;
}

#nav ul li:hover a, #nav ul li:hover span, #nav ul li.active a { background: #f3ece4; }

#nav ul li.current a, #nav ul li.current:hover a { background: var(--h-red); color: #fff; }

/* Dropdown */
.dropotron {
	background: #fff;
	border-radius: 12px;
	padding: .5em;
	min-width: 14em;
	box-shadow: 0 0 0 1px rgba(43, 37, 34, .06), 0 12px 32px rgba(43, 37, 34, .14);
	font-family: var(--h-font);
}
.dropotron.level-0 { margin-top: .6em; margin-left: 0; font-size: .9em; }
.dropotron.level-0:before { display: none; }
.dropotron li { border-top: 0; line-height: 1; }
.dropotron li > a, .dropotron li > span {
	padding: .8em 1em;
	border-radius: 8px;
	color: var(--h-ink);
	font-weight: 500;
}
.dropotron li > a:hover, .dropotron li.active > a { background: #f6efe7; color: var(--h-red); }

/* ---------- Banner / Slider ---------- */

#banner-wrapper { padding: 1.75em 0 0 0; }

.rslides {
	border-radius: var(--h-radius);
	box-shadow: var(--h-shadow);
	background: #ddd;
}

#banner-wrapper .rslides img {
	border: 0;
	width: 100%;
	aspect-ratio: 1150 / 339;
	height: auto;
	object-fit: cover;
}

/* ---------- Hauptbereich ---------- */

#main-wrapper {
	background: transparent;
	box-shadow: none;
	padding: 2.5em 0 4em 0;
}

#content {
	background: var(--h-card);
	border-radius: var(--h-radius);
	box-shadow: var(--h-shadow);
	padding: 2.5em 2.75em;
	overflow-wrap: break-word;
}

#sidebar > section, #sidebar > .widget {
	background: var(--h-card);
	border-radius: var(--h-radius);
	box-shadow: var(--h-shadow);
	padding: 1.75em 1.75em;
}

#sidebar p a { display: inline-block; padding: .1em 0; font-weight: 500; }

/* Medien im Inhalt nie breiter als die Spalte */
#content img, #sidebar img { max-width: 100%; height: auto; border-radius: 8px; }

#content iframe {
	display: block;
	width: 100%;
	max-width: 760px;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 10px;
	margin: 0 0 1.25em 0;
	background: #000;
}

#content table { width: 100%; border-collapse: collapse; font-size: .95em; }
#content td, #content th { padding: .55em .6em; border-bottom: 1px solid var(--h-line); }

/* Buttons */
.button, input[type="submit"], input[type="button"], button {
	background: var(--h-red);
	border-radius: 999px;
	font-weight: 600;
	transition: background-color .2s ease, transform .2s ease;
}
.button:hover, input[type="submit"]:hover, input[type="button"]:hover, button:hover {
	background: var(--h-red-dark);
}

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
	border-radius: 8px;
}

/* ---------- Startseite ---------- */

.hoorig-welcome .eyebrow {
	display: inline-block;
	font-size: .8em;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--h-red);
	margin-bottom: .75em;
}

.hoorig-welcome h2 { font-size: 2.2em; margin-bottom: .4em; }

.hoorig-welcome .lead { font-size: 1.15em; color: var(--h-ink); margin: 0 0 1.5em 0; }

.hoorig-welcome .jubilaeum {
	display: flex;
	align-items: center;
	gap: 1em;
	padding: 1.1em 1.25em;
	background: #fbf6ef;
	border: 1px solid var(--h-line);
	border-radius: 12px;
	margin: 0 0 1.75em 0;
}

.hoorig-welcome .jubilaeum .zahl {
	flex: 0 0 auto;
	font-size: 2.4em;
	font-weight: 800;
	line-height: 1;
	color: var(--h-red);
}

.hoorig-welcome .jubilaeum .text { line-height: 1.4; }
.hoorig-welcome .jubilaeum .text strong { display: block; }

.hoorig-quicklinks {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .75em;
	margin: 0;
	padding: 0 !important;
	list-style: none !important;
}

.hoorig-quicklinks a {
	display: flex;
	align-items: center;
	gap: .6em;
	padding: .9em 1em;
	border-radius: 10px;
	border: 1px solid var(--h-line);
	color: var(--h-ink);
	font-weight: 600;
	line-height: 1.2;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.hoorig-quicklinks a:hover { border-color: var(--h-red); background: #fff7f5; color: var(--h-red); }
.hoorig-quicklinks .fa { color: var(--h-red); font-size: 1.15em; width: 1.2em; text-align: center; }

/* Veranstaltungs-Kacheln */
.hoorig-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .9em;
}

.hoorig-tiles a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 4 / 3;
	background: #ccc;
}

.hoorig-tiles img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.hoorig-tiles a:hover img { transform: scale(1.05); }

.hoorig-tiles span {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 1.6em .8em .6em;
	background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
	color: #fff;
	font-weight: 700;
	font-size: .92em;
	line-height: 1.2;
}

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

#footer-wrapper {
	position: relative;
	padding: 4.5em 0 2em 0;
	background:
		linear-gradient(rgba(20, 12, 10, .86), rgba(20, 12, 10, .93)),
		#140c0a url("/assets/css/images/bg_main.png") center / cover no-repeat;
	color: rgba(255, 255, 255, .78) !important;
}

#footer-wrapper h3 {
	color: #fff !important;
	font-size: 1em;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 1em;
}

#footer a { color: rgba(255, 255, 255, .85); }
#footer a:hover { color: #fff; }
#footer ul.style2 li { border-top: 1px solid rgba(255, 255, 255, .1); padding: .45em 0; line-height: 1.5; }
#footer ul.style2 li:first-child { border-top: 0; padding-top: 0; }
#footer .widget.contact p { line-height: 1.9; }

.widget.contact ul { margin-top: 1em; }
.widget.contact ul li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6em;
	height: 2.6em;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
}
.widget.contact ul li a:hover { background: var(--h-red); }
.widget.contact ul li a:before { font-size: 1.2em; }

#copyright {
	margin-top: 3em;
	padding: 1.5em 0 0 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
	color: rgba(255, 255, 255, .6);
	font-size: .9em;
}
#copyright ul.menu li { border-left-color: rgba(255, 255, 255, .2); }

/* ---------- Breakpoints ---------- */

/* Large: Navigation enger, damit sie nicht in das Logo laeuft */
@media screen and (max-width: 1280px) {
	#logo img { height: 58px; }
	#nav { font-size: .88em; }
	#nav ul li a, #nav ul li span { padding: .75em .75em; }
	#content { padding: 2em 2.25em; }
}

@media screen and (max-width: 1100px) {
	#nav ul li a, #nav ul li span { padding: .7em .6em; }
}

/* Medium: Off-Canvas-Navigation, Header als feste Leiste */
@media screen and (max-width: 980px) {
	:root { --h-header-h: 64px; }

	#header-wrapper { padding: 0; text-align: left; }
	#header { justify-content: center; min-height: var(--h-header-h); }
	#nav { display: none; }
	#logo img { height: 46px; }

	#navToggle { height: var(--h-header-h); width: auto; right: auto; }
	#navToggle .toggle { display: block; width: var(--h-header-h); height: var(--h-header-h); opacity: 1; }
	#navToggle .toggle:before {
		left: 10px;
		top: 10px;
		width: 44px;
		height: 44px;
		line-height: 44px;
		border-radius: 10px;
		background: var(--h-red);
		font-size: 20px;
	}

	#navPanel { background: #fff; box-shadow: 4px 0 24px rgba(0, 0, 0, .15); padding: 1em 20px; }
	#navPanel .link { color: var(--h-text); border-top-color: #f0ebe4; height: 50px; line-height: 50px; }
	#navPanel .depth-0 { color: var(--h-ink); font-weight: 700; }
	#navPanel .link:active { color: var(--h-red); }

	#banner-wrapper { padding-top: 1.25em; }

	#main-wrapper { padding: 1.75em 0 3em 0; }

	#content { border-bottom: 0; padding: 2em 1.75em; margin-bottom: 0 !important; }

	.hoorig-welcome h2 { font-size: 1.8em; }
}

/* Small: Smartphone */
@media screen and (max-width: 736px) {
	body { line-height: 1.7; }

	.container { padding-left: 16px !important; padding-right: 16px !important; }

	#header-wrapper { padding: 0; }

	#banner-wrapper { padding: 1em 0 0 0; }
	.rslides { border-radius: 10px; }
	#banner-wrapper .rslides img { aspect-ratio: 16 / 9; }

	#main-wrapper { padding: 1.25em 0 2em 0; }
	#main-wrapper .container { width: 100% !important; }

	#content { padding: 1.5em 1.25em; border-radius: 12px; }
	#sidebar > section, #sidebar > .widget { padding: 1.5em 1.25em; border-radius: 12px; }

	h2, .hoorig-welcome h2 { font-size: 1.55em; line-height: 1.25; margin: 0 0 .6em 0; }
	h3 { font-size: 1.15em; margin: 1.25em 0 .5em 0; }

	/* Floats im Altinhalt aufloesen */
	#content img[style*="float"] { float: none !important; display: block; margin: 0 0 1em 0 !important; width: 100%; }

	/* breite Tabellen horizontal scrollbar */
	#content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }

	.hoorig-quicklinks { grid-template-columns: 1fr; }
	.hoorig-welcome .jubilaeum .zahl { font-size: 2em; }

	#footer-wrapper { padding: 2.5em 0 1.5em 0 !important; }
	#footer section { border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 1.75em; margin-bottom: 1.75em !important; }
	#footer .row > div:last-child section { border-bottom: 0; margin-bottom: 0 !important; padding-bottom: 0; }
	#copyright { margin-top: 1.5em; text-align: left; }
}

/* ungerade Kachelanzahl: letzte Kachel ueber volle Breite */
.hoorig-tiles a:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 8 / 3; }

#nav > ul { align-items: center; margin: 0; }
#nav ul li a, #nav ul li span { line-height: 1.2; }

/* Bilder mit Inline-Float im Altinhalt: auf Desktop hoechstens halbe Spaltenbreite */
#content img[style*="float"] { max-width: 45%; }

/* ---------- Barrierefreiheit ---------- */

.skip-link {
	position: absolute;
	left: 1em;
	top: -4em;
	z-index: 10001;
	padding: .7em 1.1em;
	border-radius: 0 0 10px 10px;
	background: var(--h-red);
	color: #fff !important;
	font-weight: 700;
	transition: top .2s ease;
}
.skip-link:focus { top: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 3px solid rgba(200, 22, 29, .45);
	outline-offset: 2px;
}

/* ---------- Startseite: Aus der Galerie ---------- */

.hoorig-latest { margin-top: 2.25em; }
.hoorig-latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; margin-bottom: .9em; }
.hoorig-latest-head h3 { margin: 0; }
.hoorig-latest-head a { font-weight: 600; white-space: nowrap; }

.hoorig-latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; }
.hoorig-latest-grid a {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background: #efe8df;
	color: #fff;
}
#content .hoorig-latest-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; transition: transform .4s ease; }
.hoorig-latest-grid a:hover img { transform: scale(1.05); }
.hoorig-latest-grid span {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	display: flex;
	flex-direction: column;
	padding: 2em .85em .7em;
	background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
	line-height: 1.25;
}
.hoorig-latest-grid strong { color: #fff; font-size: .95em; }
.hoorig-latest-grid small { color: rgba(255, 255, 255, .8); font-size: .78em; }

@media screen and (max-width: 736px) {
	.hoorig-latest-grid { grid-template-columns: 1fr 1fr; }
	.hoorig-latest-grid a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
