@charset "ISO-8859-1";

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
	--ff-rot: #c30000;
	--ff-rot-dunkel: #8f0000;
	--ff-rot-soft: #fde8e8;
	--text: #1a1a1a;
	--text-muted: #5c5c5c;
	--bg-seite: #e8e8e8;
	--bg-inhalt: #ffffff;
	--linie: #d8d8d8;
	--linie-nav: #e4e4e4;
	--abstand: clamp(0.75rem, 2.8vw, 1.75rem);
	--abstand-innen: clamp(1rem, 4.5vw, 2.5rem);
	--schatten-karte: 0 2px 12px rgba(0, 0, 0, 0.07);
	--schatten-menue: 0 8px 32px rgba(0, 0, 0, 0.12);
	--radius: 3px;
}

html {
	scroll-padding-top: 4rem;
}

/* Stylesheet f�r die Projektarbeit des Sommersemesters 2017 der VAWI zum Webtechnologien*/
/* Das Stylesheet wurde f�r das Projekt "Freiwillige Feuerwehr Zeiling entwickelt*/
/* Autor: Georg Reindl, 15.05.2017 */

/* -------------------- Seitenlayout --------------------*/
body {
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	background-color: var(--bg-seite);
	color: var(--text);
	margin: 0;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.home {
	width: 100%;
	max-width: min(1180px, 100%);
	margin: clamp(0.5rem, 2vw, 1.25rem) auto clamp(1.25rem, 4vw, 2.5rem);
	background-color: var(--bg-inhalt);
	border: 1px solid var(--linie);
	box-shadow: var(--schatten-karte);
	box-sizing: border-box;
	overflow-x: clip;
}

.head_pic {
	position: relative;
	width: 100%;
	height: clamp(130px, 24vw, 200px);
	overflow: hidden;
}

nav {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 0.5rem;
	row-gap: 0.35rem;
	width: 100%;
	max-width: 100%;
	padding: 0.5rem var(--abstand-innen);
	margin: 0;
	background-color: var(--bg-inhalt);
	border-bottom: 1px solid var(--linie-nav);
	float: none;
	box-sizing: border-box;
}

/* Logo in der Nav (Aktuelles, Termine, …): eigene Zeile; nicht wie .logo im Banner position:absolute */
nav > .logo {
	flex: 1 1 100%;
	min-width: 0;
	position: static;
	left: auto;
	top: auto;
	bottom: auto;
	width: 100%;
	max-width: 100%;
	display: flex;
	align-items: center;
}

nav .logo a {
	display: flex;
	align-items: center;
	min-height: 3rem;
	text-decoration: none;
	line-height: 0;
}

.nav-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(0 0 0 0);
	overflow: hidden;
	white-space: nowrap;
	opacity: 0;
}

nav > a,
nav > .menu-toggle-label,
nav > .menu-toggle-btn {
	flex: 0 0 auto;
}

.clearfix {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp(1rem, 3vw, 2rem);
	box-sizing: border-box;
}

.clearfix > .main_section {
	float: none;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
	padding: clamp(1.25rem, 3.5vw, 2.25rem) var(--abstand-innen)
		clamp(1.5rem, 4vw, 3rem);
}

.clearfix > .main_section:only-child {
	flex: 1 1 100%;
}

aside {
	float: none;
	flex: 0 1 200px;
	min-width: min(200px, 100%);
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
	padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(1rem, 3vw, 1.75rem)
		var(--abstand-innen);
}

aside ul {
	padding-left: 1.15rem;
	margin: 0 0 0.75rem;
}

.footer {
	border-top: 1px solid var(--linie);
	padding: clamp(1rem, 3vw, 1.5rem) var(--abstand-innen);
	margin: 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--text-muted);
	background-color: var(--bg-inhalt);
}

.logo {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	width: auto;
	max-width: 42%;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

#header {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.head_pic .logo a {
	display: flex;
	align-items: center;
	height: 100%;
	max-height: 100%;
	text-decoration: none;
	line-height: 0;
}

#logo {
	display: block;
	margin: 0;
	width: auto;
	height: auto;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
	border: 1px solid var(--linie);
	box-sizing: border-box;
}

/* .clearfix: Layout über Flex (kein Float-Clear nötig) */

/* -------------------- Menu -------------------- */
/* Hauptmenü nur aufklappbar (Hamburger/Checkbox/Button), nicht als permanente Leiste */
#menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	z-index: 500;
	background-color: var(--bg-inhalt);
	border: 1px solid var(--linie);
	border-top: none;
	box-shadow: var(--schatten-menue);
}

#nav-toggle:checked ~ #menu,
nav.nav-menu-open #menu {
	display: block;
}

#menu ul {
	list-style-type: none;
	list-style-image: none;
	margin: 0;
	padding: 0;
}

#menu > ul {
	margin-left: 0;
}

#menu li.topmenu {
	float: none;
	clear: both;
	width: 100%;
	display: block;
	position: relative;
}

.topmenu > a {
	float: none;
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.65rem 0.85rem;
	line-height: 1.35;
	word-wrap: break-word;
	border-bottom: 1px solid #c8c8c8;
	box-sizing: border-box;
}

.topmenu a,
.submenu a {
	border: none;
	border-bottom: 1px solid var(--linie-nav);
	color: var(--ff-rot);
	text-decoration: none;
	background-color: #f7f7f7;
	margin: 0;
}

.submenu a {
	display: block;
	width: 100%;
	padding: 0.5rem 0.85rem 0.5rem 1.75rem;
	position: relative;
	clear: both;
	box-sizing: border-box;
}

.topmenu ul {
	display: none;
	position: static;
	margin: 0;
	padding: 0;
	background-color: #efefef;
}

.topmenu:hover ul,
.topmenu:focus-within ul {
	display: block;
	z-index: 501;
}

#menu a:hover,
.topmenu.on a {
	color: var(--ff-rot-dunkel);
	font-weight: 600;
	background-color: var(--ff-rot-soft);
}

#menu_logo {
	display: inline-block !important;
	vertical-align: middle;
	width: 28px;
	height: auto;
	padding: 0.2rem 0;
	margin: 0;
	border: 0;
	box-sizing: content-box;
	pointer-events: none;
}
	
	
#submenu{
	margin: 0px;
	padding: 0px;
	display:none;
}

#submenu li {
	padding: 0px 0px 0px 30px;
}

.menu li{
	position: relative;
}

#submenu li{
	position: absolute;
	  float: none;
  display: block;
}
	
#menu_div .menu {
	list-style-type: none;
	color: var(--ff-rot);
	font-size: 0.9375rem;
	font-weight: 500;
}

#menu_div ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0 1.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

#menu_div {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	margin: 0 0 0 auto;
	background-color: transparent;
	padding: 0;
	text-align: right;
}

#menu_div .menu li {
	margin: 0;
	display: block;
}


/* Beim Verkleinern des Fensterbereichs wird das horizontale Men� in ein vertikales Men� umgewandelt*/
@media (max-width: 950px) {
	nav {
		margin: 0;
		padding: 0.45rem var(--abstand-innen);
	}
	
	.main_section { width: 100%;}
	
	#menu_logo {
		padding: 5px 0 0 5px;
		margin-left: -5px;
	}
	
	#menu_div .menu {
		list-style-type: none;
		color: red;
	}

	#menu_div ul {
		padding: 0;
		gap: 0 1.35rem;
		justify-content: flex-end;
	}

	#menu_div li {
		display: block;
		margin: 0;
	}

	#menu_div {
		width: auto;
		max-width: 100%;
		margin: 0 0 0 auto;
		padding: 0;
		background-color: transparent;
		text-align: right;
	}
}


/*-----------------Elemente ------------------------*/

article ul {
	padding: 0.35rem 0 1.25rem clamp(1.25rem, 4vw, 2.25rem);
	margin: 0;
}

nav li {
	color: red;
	display: inline;
}

#menu li {
	display: block;
}

nav ul {
	padding: 5px 5px 5px 0px;
	margin-top:5px;
	margin-bottom:5px;
}

nav a:link,
#menu_div a:link {
	color: var(--ff-rot);
	text-decoration: none;
}

nav a:visited,
#menu_div a:visited {
	color: var(--ff-rot-dunkel);
	text-decoration: none;
}

a:link {
	color: var(--ff-rot);
}

a:hover {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

nav a:hover,
#menu_div a:hover {
	font-weight: 600;
	text-decoration: none;
}

a:visited {
	color: var(--ff-rot-dunkel);
}

.aside_pic {
	width: 100%;
	max-width: 100%;
	margin: 0.5rem 0 1rem;
	padding: 0;
	box-sizing: border-box;
}


article {
	padding: 0 0 clamp(0.75rem, 2vw, 1.25rem);
	margin: 0;
	text-align: left;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	font-size: clamp(1rem, 2.5vw, 1.0625rem);
}

article p {
	margin: 0 0 1rem;
}

/* Bilder und eingebettete Medien: nie breiter als der Textbereich */
article img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

article video,
article iframe {
	max-width: 100%;
	height: auto;
}

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

article table {
	max-width: 100%;
	box-sizing: border-box;
}

/* Vorstand o. ä.: keine festen Pixelbreiten, mobil nutzbar */
article table.vorstand-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin: 0.75rem 0 1rem;
}

article table.vorstand-table td {
	word-break: break-word;
	overflow-wrap: anywhere;
	padding: 0.4rem 0.75rem 0.4rem 0;
	vertical-align: top;
	border: none;
}

@media (max-width: 520px) {
	article table.vorstand-table tr {
		display: flex;
		flex-wrap: wrap;
		gap: 0.25rem 1rem;
		width: 100%;
	}

	article table.vorstand-table td {
		flex: 1 1 calc(50% - 0.5rem);
		min-width: 0;
		padding: 0.35rem 0;
	}
}

@media (max-width: 380px) {
	article table.vorstand-table td {
		flex: 1 1 100%;
	}
}

/* Galerie-Tabellen (Fahrzeug, Gerätehaus): umbrechen, Bilder stapeln wenn zu schmal */
article table:has(.pic_gallery) {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

article table:has(.pic_gallery) tbody {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	justify-content: center;
	align-items: flex-start;
	width: 100%;
	box-sizing: border-box;
}

article table:has(.pic_gallery) tr {
	display: contents;
}

article table:has(.pic_gallery) td {
	display: block;
	flex: 1 1 160px;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	text-align: center;
	padding: 0.25rem;
	vertical-align: top;
}

article table:has(.pic_gallery) td a {
	display: block;
	max-width: 100%;
}

h1,
h2,
h3 {
	font-family: "Poppins", system-ui, sans-serif;
	font-weight: 700;
	text-align: left;
	color: var(--ff-rot);
	line-height: 1.25;
	letter-spacing: -0.02em;
}

h2 {
	font-size: clamp(1.35rem, 3.5vw, 1.75rem);
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--linie-nav);
}

h1 {
	font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
	font-size: clamp(1.1rem, 2.5vw, 1.25rem);
	border-bottom: none;
	padding-bottom: 0;
}

mark {
	font-weight: 600;
	background-color: var(--ff-rot-soft);
	color: var(--ff-rot-dunkel);
	padding: 0.05em 0.2em;
	border-radius: 2px;
}

figure {
	align-items: center;
	justify-content: center;
	margin: 1rem 0 1.5rem;
	padding: 0;
}

figure img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
	width: auto;
}

figcaption {
	font-size: 0.8125rem;
	color: var(--text-muted);
	margin-top: 0.5rem;
	line-height: 1.4;
}

.pic_gallery {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.einrueckung {
	display: block;
	padding-left: clamp(1rem, 4vw, 2.5rem);
	border-left: 3px solid var(--linie-nav);
	margin: 0.5rem 0 1rem;
}

video {
	max-width: 100%;
	width: min(470px, 100%);
	height: auto;
}

.center {
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
	text-align: center;
	box-sizing: border-box;
}

.center img {
	max-width: 100%;
	height: auto;
	display: inline-block;
	vertical-align: middle;
}

.data_table {
	border-collapse: collapse;
	width: 100%;
	max-width: 100%;
	table-layout: fixed;
	box-sizing: border-box;
}

.data_table td {
	padding: 0.65rem 0.75rem;
	border-style: solid;
	border-width: 1px;
	overflow: visible;
	word-break: break-word;
	overflow-wrap: anywhere;
	min-width: 0;
	vertical-align: top;
	border-color: var(--linie);
	color: var(--text);
	background-color: var(--bg-inhalt);
}

.data_table th {
	text-align: center;
	padding: 0.65rem 0.75rem;
	border-style: solid;
	border-width: 1px;
	overflow: visible;
	word-break: break-word;
	overflow-wrap: anywhere;
	min-width: 0;
	vertical-align: top;
	border-color: var(--linie);
	color: var(--ff-rot);
	background-color: #f3f3f3;
	font-weight: 600;
	font-size: 0.9rem;
}

/* Kontakt: Spaltenanteile, lange E-Mail-Adressen umbrechen */
article .data_table.kontakt-table th#name {
	width: 24%;
}

article .data_table.kontakt-table th#position {
	width: 22%;
}

article .data_table.kontakt-table th#phone {
	width: 54%;
}

article .data_table.kontakt-table th#phone,
article .data_table.kontakt-table td:nth-child(3) {
	text-align: left;
}

/* Schmale Ansicht: Zeilen als Karten untereinander */
@media (max-width: 560px) {
	article .data_table.kontakt-table,
	article .data_table.kontakt-table tbody,
	article .data_table.kontakt-table tr,
	article .data_table.kontakt-table td,
	article .data_table.kontakt-table th {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	article .data_table.kontakt-table tr:first-child {
		display: none;
	}

	article .data_table.kontakt-table tr:not(:first-child) {
		margin-bottom: 1rem;
		border: 1px solid grey;
		padding: 0.35rem 0.5rem 0.5rem;
		background-color: white;
	}

	article .data_table.kontakt-table tr:not(:first-child) td {
		border: none;
		border-bottom: 1px solid #ddd;
		padding: 0.4rem 0;
		text-align: left;
	}

	article .data_table.kontakt-table tr:not(:first-child) td:last-child {
		border-bottom: none;
	}

	article .data_table.kontakt-table td:nth-child(1)::before {
		content: "Name: ";
		font-weight: bold;
		display: inline-block;
		min-width: 5.5rem;
	}

	article .data_table.kontakt-table td:nth-child(2)::before {
		content: "Funktion: ";
		font-weight: bold;
		display: inline-block;
		min-width: 5.5rem;
	}

	article .data_table.kontakt-table td:nth-child(3)::before {
		content: "E-Mail: ";
		font-weight: bold;
		display: inline-block;
		min-width: 5.5rem;
	}
}

