/*
blau: #0000fe  0 0 254
grau mittel: #b2b2b2  178 178 178
grau hell: #dddddd  221 221 221
*/

/* Dynamische Schriftgroessen
- rem: richtet sich nach der Schriftgroesse, die Nutzer im Browser eingestellt haben
- clamp(min, bevorzugt, max): waechst stufenlos mit der Bildschirmbreite,
bleibt aber zwischen Minimum (Handy) und Maximum (Desktop) */
:root
{
	--fs-h1:    clamp(1.25rem,   1.1rem   + 0.6vw,  1.5rem);    /* 20 - 24 px */
	--fs-h2:    clamp(1.0625rem, 1rem     + 0.3vw,  1.1875rem); /* 17 - 19 px */
	--fs-title: clamp(1rem,      0.95rem  + 0.2vw,  1.0625rem); /* 16 - 17 px */
	--fs-text:  clamp(0.9375rem, 0.875rem + 0.25vw, 1rem);      /* 15 - 16 px */
	--fs-small: clamp(0.875rem,  0.82rem  + 0.2vw,  0.9375rem); /* 14 - 15 px */
	--fs-nav:   0.8125rem;                                       /* 13 px */
	--fs-mini:  0.8125rem;                                       /* 13 px */
	--focus:    #3d577a;
}

html, body{
	margin:0;
	padding:0;
	font-family: Verdana, Arial, Sans-Serif;
	background-color: #e3e6eb;
	background-image:url(../images/bodyhg.jpg);
	background-repeat: repeat-x;
	background-position: left top;
	font-size: 101.01%;
	height: 100.1%;
	text-align: center;
}

#pagewidth
{
	position: relative;
	width: 1020px;
	margin: 0 auto 0 auto;
	text-align: left;
}

#header
{
	width: 100%;
	background-color:#ffffff;
}

#header #logo
{
	padding: 20px;
	padding-top: 40px;
}

#navigation
{
	clear: both;
	margin-top: 20px;
	width: 980px;
	padding: 20px;
	background-color: #ffffff;
}

.clear
{
	clear:both;
}


#wrapper
{
	clear:both;
	padding: 0;
	margin: 0;
	margin-top: 20px;
	width:100%;
}

#maincol .hg
{
	background-color: #f1e2ca;
	padding: 20px;
}

#maincol
{
	float: left;
	position: relative;
	padding: 20px;
	width:590px;
	background: #ffffff;
}

#maincol h1
{
	font-size: var(--fs-h1);
	color: #3d577a;
	line-height:1.5em;
	margin:0;
	margin-bottom: 1.0em;
}

#maincol h2
{
	font-size: var(--fs-h2);
	color: #3d577a;
	margin-top:2.0em;
	line-height:1.5em;
}

#maincol h2.boxtitel
{
	font-size: var(--fs-text);
	font-weight: bold;
	color: #ffffff;
	margin: 0;
	margin-top: 20px;
	padding: 10px;
	padding-left: 20px;
	background-color: #8f2831;
	border-bottom: 0;
}
#maincol h3
{
	font-size: var(--fs-text);
	color: #000;
	margin-top:2.0em;
	line-height:1.5em;
}

#maincol p, iframe
{
	font-size: var(--fs-text);
	line-height: 140%;
	margin:0;
	margin-bottom: 0.8em;
}

#maincol .tklein
{
	font-size: var(--fs-small);
	line-height:1.5em;
}

#maincol a
{
	color: #000000;
	text-decoration:underline;
}

#maincol a:hover, #maincol a:active
{
	color: #da251d;
	text-decoration:underline;
}

#maincol li
{
	font-size: var(--fs-text);
	line-height: 1.5em;
	padding-top: 6px;
}

#maincol ul#linksammlung, #maincol ul#rss
{
	list-style-type: none;
	margin: 0;
	padding: 0;
}

#maincol ul#linksammlung h2, #maincol ul#rss h2
{
	margin: 0;
	font-size: var(--fs-title);
	color: #000000;
}

#maincol ul#linksammlung h2 a, #maincol ul#rss h2 a
{
	margin: 0;
	text-decoration: none;
}

#maincol ul#linksammlung p, #maincol ul#rss p
{
	font-size: var(--fs-small);
	line-height: 140%;
	margin: 0;
}

#maincol ul#linksammlung li, #maincol ul#rss li
{
	margin: 0;
	margin-bottom: 3px;
}

/* Zebra-Streifen per CSS (ersetzt striper.js); .first/.second bleiben als Fallback */
#maincol ul#linksammlung > li:nth-child(odd), #maincol ul#rss > li:nth-child(odd),
#maincol ul#linksammlung li.first, #maincol ul#rss li.first
{
	background: #F1E2CA;
	padding: 10px;
	padding-left: 20px;
	padding-right: 20px;
}

#maincol ul#linksammlung > li:nth-child(even), #maincol ul#rss > li:nth-child(even),
#maincol ul#linksammlung li.second, #maincol ul#rss li.second
{
	background: #E3E6EB;
	padding: 10px;
	padding-left: 20px;
	padding-right: 20px;
}

ul#rss img
{
	display: none;
}

/* rechte Spalte */
#rightcol
{
	float: right;
	position: relative;
	text-align: left;
	width: 370px;
	margin: 0px;
}

#rightcol .hg
{
	background-color: #f1e2ca;
	padding: 20px;
	border: 20px solid #ffffff;
}

#rightcol h2.boxtitel
{
	font-size: var(--fs-text);
	font-weight: bold;
	color: #ffffff;
	margin: 0;
	margin-top: 20px;
	padding: 10px;
	padding-left: 20px;
	background-color: #8f2831;
	border: 20px solid #ffffff;
	border-bottom: 0;
}

#rightcol h2
{
	font-size: var(--fs-h2);
	font-weight: bold;
	color: #000000;
	margin: 0;
	line-height: 1.5em;
	margin-bottom: 0.8em;
	border-bottom: 0;
}



#rightcol p
{
	font-size: var(--fs-small);
	line-height: 140%;
	margin: 0;
	margin-bottom: 0.8em;
}

#rightcol .tklein
{
	text-align:left;
	font-size: var(--fs-small);
	line-height:1.5em;
}

#rightcol a
{
	color: #000000;
	text-decoration:underline;
}

#rightcol a:hover, #rightcol a:active
{
	color: #da251d;
	text-decoration:underline;
}

#rightcol ul#links
{
	list-style-type: none;
	margin: 0;
	padding: 0;
}

#rightcol ul#links h2
{
	margin: 0;
	font-size: var(--fs-text);
	color: #000000;
}

#rightcol ul#links h2 a
{
	margin: 0;
	text-decoration: none;
}

#rightcol ul#links p
{
	font-size: var(--fs-small);
	line-height: 140%;
	margin: 0;
}

#rightcol ul#links li
{
	margin: 0;
	padding-top: 6px;
	padding-bottom: 6px;
}

#rightcol ul#links li.first
{
	background: #F1E2CA;
}

#rightcol ul#links li.second
{
	border-bottom: 1px solid #ffffff;
	border-top: 1px solid #ffffff;
	background: #F1E2CA;
}

/* Beginn Fuss-Bereich */

#footer
{
	clear:both;
	margin-top: 10px;
	padding: 20px;
	background-color: #ffffff;
	color: #ffdeb3;
}

#footer .hg
{
	background-color: #8f2831;
	height: 30px;
}

#footer .ews
{
	float: left;
	width: 250px;
	margin: 0;
	margin-left: 20px;
	height: 30px;
	line-height: 30px;
}


#footer a
{
	text-decoration:none;
	font-size: var(--fs-nav);
	font-weight:normal;
	color: #ffffff;
}

#footer a:hover
{
	text-decoration: none;
	font-size: var(--fs-nav);
	font-weight:normal;
	color: #e3e6eb;
}



/* Ende Fuss-Bereich */

/* Kennzeichnung externer Links */
.exlink {
	position: relative;
	top: 0px;
	left: 0px;
}


a.exlink span {
	display: none;
}

a:hover.exlink span {
	display: block;
	position: absolute;
	top: 25px;
	left: 0;
	margin: 0px;
	background-color: #fff7d7;
	padding: 5px;
	border: 1px solid #a28c3c;
	color: #000000;
	border: 1px solid #666666;
	font: 0.75rem Verdana, Arial, Helvetica, sans-serif;
	font-weight:normal;
	text-decoration: none;
	z-index: 100;
}

a:hover.exlink {
	color: #000000;
	border: 0px;
	font-weight:normal;
	text-decoration: none;
	z-index: 200;
}

/* Ende exlink */


/* *** Float containers fix:
http://www.csscreator.com/attributes/containedfloat.php *** */
.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.clearfix{display: block;}



/*printer styles*/
@media print{
	/*hide the left column when printing*/
	#leftcol{display:none;}

	/*hide the right column when printing*/
	#rightcol{display:none;}
	#twocols, #maincol{width:100%; float:none;}
	/* fixierte Navigation beim Drucken nicht wiederholen */
	#navigation{position:static;}
}


/* ==========================================================
RESPONSIVE ERGAENZUNGEN
Desktop-Darstellung (ab 1041px) bleibt unveraendert,
bis auf die beim Scrollen fixierte Navigation.
Voraussetzung: <meta name="viewport" content="width=device-width, initial-scale=1">
========================================================== */

/* Text nur fuer Screenreader (unsichtbar, aber vorgelesen) */
/* !important, damit Label-Regeln aus anderen Dateien (z. B. kontakt.css) nicht greifen */
.visually-hidden, #rightcol label.visually-hidden
{
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
	float: none !important;
}

/* Inline-Schriftgroesse 11px (Formularhinweise) ueberschreiben */
#rightcol p[style*="font-size"]
{
	font-size: var(--fs-mini) !important;
}

/* ---------- Tastatur-Fokus sichtbar machen ---------- */
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible
{
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

/* auf roten Flaechen weisse Markierung, nach innen versetzt */
#footer a:focus-visible,
h2.boxtitel a:focus-visible
{
	outline: 2px solid #ffffff;
	outline-offset: -4px;
}

/* ---------- Suchbox ---------- */
#rightcol div[role="search"] form
{
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin: 0;
}

#rightcol div[role="search"] #suchbegriff,
#rightcol div[role="search"] input.form2
{
	box-sizing: border-box;
	height: 36px;
	margin: 0;
	font-family: Verdana, Arial, Sans-Serif;
	font-size: 14px;
	line-height: normal;
	vertical-align: top;
}

#rightcol div[role="search"] #suchbegriff
{
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	padding: 0 10px;
	font-weight: normal;
	color: #000000;
	background-color: #ffffff;
	border: 1px solid #b2b2b2;
	border-radius: 0;
	box-shadow: none;
}

/* kein roter Rahmen, solange das (Pflicht-)Feld nur leer ist */
#rightcol div[role="search"] #suchbegriff:invalid,
#rightcol div[role="search"] #suchbegriff:required
{
	border-color: #b2b2b2;
	box-shadow: none;
}

#rightcol div[role="search"] #suchbegriff::placeholder
{
	color: #767676;
	font-weight: normal;
	font-style: normal;
	opacity: 1;
}

#rightcol div[role="search"] #suchbegriff:focus
{
	border-color: #3d577a;
	outline: 2px solid #3d577a;
	outline-offset: 0;
}

#rightcol div[role="search"] input.form2
{
	flex: 0 0 auto;
	width: auto;
	padding: 0 16px;
	font-weight: normal;
	color: #ffffff;
	background-color: #8f2831;
	border: 1px solid #8f2831;
	border-radius: 0;
	cursor: pointer;
}

#rightcol div[role="search"] input.form2:hover,
#rightcol div[role="search"] input.form2:focus
{
	background-color: #6e1f26;
	border-color: #6e1f26;
}

#rightcol div[role="search"] input.form2:focus-visible
{
	outline: 2px solid #3d577a;
	outline-offset: 2px;
}

/* Navigation beim Scrollen oben fixieren (alle Bildschirmgroessen) */
@media screen
{
	#navigation
	{
		position: -webkit-sticky;
		position: sticky;
		top: 0;
		z-index: 1000;
	}
}

/* ---------- Tablet / kleine Desktops: bis 1040px ---------- */
@media screen and (max-width: 1040px)
{
	#pagewidth
	{
		width: auto;
		max-width: 1020px;
	}

	#header #logo
	{
		box-sizing: border-box;
		width: 100%;
		height: auto;
	}

	#navigation
	{
		width: auto;
	}

	#maincol
	{
		box-sizing: border-box;
		width: calc(100% - 390px);
	}

	#maincol, #rightcol
	{
		overflow-wrap: break-word;
		word-wrap: break-word;
	}

	#maincol img, #rightcol img
	{
		max-width: 100%;
		height: auto;
	}
}

/* ---------- Smartphones / Tablets hochkant: bis 800px ---------- */
@media screen and (max-width: 800px)
{
	html, body
	{
		background-image: none;
	}

	#header #logo
	{
		padding: 10px;
	}

	#navigation
	{
		margin-top: 0;
		padding: 10px;
	}

	#wrapper
	{
		margin-top: 10px;
	}

	/* Spalten untereinander statt nebeneinander */
	#maincol
	{
		float: none;
		width: auto;
		padding: 15px;
	}

	#rightcol
	{
		float: none;
		width: auto;
		margin-top: 10px;
	}

	/* weisser Rahmen der Boxen schmaler */
	#rightcol .hg
	{
		border-width: 10px;
		padding: 15px;
	}

	#rightcol h2.boxtitel
	{
		border-width: 10px;
		border-bottom: 0;
		padding-left: 15px;
	}

	#maincol h2.boxtitel
	{
		padding-left: 15px;
	}

	#maincol ul#linksammlung li.first, #maincol ul#rss li.first,
	#maincol ul#linksammlung li.second, #maincol ul#rss li.second
	{
		padding: 12px 15px;
	}

	/* Formulare: volle Breite, 16px verhindert das Auto-Zoomen auf iOS */
	#rightcol input[type="text"],
	#rightcol input[type="email"],
	#rightcol input[type="url"],
	#rightcol select,
	#rightcol textarea
	{
		box-sizing: border-box;
		max-width: 100%;
		font-size: 16px;
	}

	#rightcol input.form,
	#rightcol select
	{
		width: 100%;
	}

	#rightcol textarea
	{
		width: 100% !important; /* ueberschreibt Inline-Breite 290px */
	}

	/* Suchbox: groessere Tippflaeche, 16px gegen iOS-Zoom */
	#rightcol div[role="search"] #suchbegriff,
	#rightcol div[role="search"] input.form2
	{
		height: 44px;
		font-size: 16px;
	}

	#rightcol input.form2
	{
		font-size: 16px;
	}

	/* Fussbereich */
	#footer
	{
		margin-top: 10px;
		padding: 10px;
	}

	#footer .hg
	{
		height: auto;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}

	#footer .ews
	{
		float: none;
		width: auto;
		height: auto;
		line-height: 44px;
		margin: 0;
		padding: 0 15px;
	}

	#footer .ews a
	{
		display: inline-block;
		min-height: 44px;
	}
}

/* ---------- sehr schmale Geraete: bis 400px ---------- */
@media screen and (max-width: 400px)
{
	#maincol
	{
		padding: 10px;
	}

	/* Platz fuer das Cloudflare-Turnstile-Widget (min. 300px breit) */
	#rightcol .hg
	{
		border-width: 0;
		padding: 10px;
	}

	#rightcol h2.boxtitel
	{
		border-width: 0;
	}
}