/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}



/* ################################################################################## */

html {
  font-size: 10px;
  scroll-behavior: smooth;
  --border-size: 3px;
  --fw-red: #DB0808;
}
@media only screen and (min-width: 500px) {
  html {
    font-size: 10px;
  }
}
@media only screen and (min-width: 600px) {
  html {
    font-size: 10px;
  }
}
@media only screen and (min-width: 800px) {
  html {
    font-size: 12px;
  }
  .pg_wrapper {
    max-width: 90em; /*1440px*/
  }
}
@media only screen and (min-width: 1100px) {
  html {
    font-size: 12px;
  }
  .pg_wrapper {
    max-width: 90em; /*1440px*/
  }
}
@media only screen and (min-width: 1930px) {
  html {
    font-size: 16px;
  }
  .pg_wrapper {
    max-width: 90em; /*1440px*/
  }
}
body {
  background: #EFE8E3;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", "Mulish", sans-serif;
}

.pg_wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  border-left: var(--border-size) solid var(--fw-red);
  border-right: var(--border-size) solid var(--fw-red);
  background-color: #fff;/*#f0f0f0;*/
  box-shadow: 0px 0px 15px 4px rgba(0,0,0,.2);
}
.pg_wrapper > div:nth-child(2n+3) {
  background-color: #fff;
}

#pg_header {
	display: contents;
}

/* ----- Header Soziale Medien ----- */
#pg_header_social {
  border-top: var(--border-size) solid var(--fw-red);
  flex-grow: 1;
  display: flex;
  justify-content: right;
  padding: 0 1rem;
  height: 3rem;
  align-items: center;
}
#pg_header_social a {
  color: var(--fw-red);
  text-decoration: none;
}
#pg_header_social a svg {
  height: 2em;
}

/* ----- Header Navigation ----- */
#pg_header_navWrapper {
  background-color: var(--fw-red);
  /*justify-content: center;*/
  height: 7.6rem;
  display: flex;
  position: sticky;
  top: 0;
  overflow: hidden;
  box-shadow: 0px 0px 15px 4px rgba(0,0,0,.2);
  z-index: 99;
}
#pg_header_navWrapper ul {
  flex-wrap: wrap;
}
#pg_header_nav ul {
  display: flex;
  margin: 0;
  padding: 0;
}
#pg_header_nav li {
  list-style: none;
  position: relative;
}
#pg_header_nav li img {
  height: 2.5em;
}
#pg_header_nav li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(45deg,rgba(132,0,0,0.8) 0%,rgba(0,0,0,0) 100%);
  z-index: 1;
  transform: skew(-16deg);
}
#pg_header_nav li:first-child::before {
  left: -10px;
}
#pg_header_nav li.active::before {
   background: linear-gradient(45deg,rgba(132,0,0,1) 0%,rgba(132,0,0,1) 100%);
}
#pg_header_nav li:hover::before {
  background: linear-gradient(45deg,rgba(132,0,0,1) 0%,rgba(132,0,0,1) 100%);
}
#pg_header_nav li a {
  display: block;
  font-size: 1.25rem;
  color: #fff;
  padding: 1rem 1rem;
  z-index: 10;
  position: inherit;
  user-select: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}
section {
	scroll-margin-top: 7.6rem;
	border-bottom: var(--border-size) solid var(--fw-red);
  color: #333333;
}
section h1 {
  text-align: left;
  margin-top: 2.5rem;
  margin-left: 3rem;
  margin-bottom: .5em;
  font-size: 2em;
}
section h2 {
  text-align: center;
  margin-top: 2.5rem;
  margin-left: 3rem;
  margin-bottom: 1.5em;
  font-size: 1.8em;
}
.pg_text_wrapper {
  margin: 1.5rem 3rem 3rem 3rem;
  font-size: 1.2em;
}
@media only screen and (min-width: 550px) {
  #pg_header_nav {
    margin-right: 3rem;
  }
  #pg_header_navWrapper {
    height: 3.8rem;
  }
  #pg_header_navWrapper ul {
    flex-wrap: nowrap;
  }
  section {
    scroll-margin-top: 3.7rem;
  }
}

/* ----- Logo ----- */
#pg_start_logo {
  margin-top: 5rem;
  padding-bottom: 3rem;
  width: 100%;
  position: relative;
}
#pg_start_logo img {
  width: 100%;
  height: auto;
}

/* Daxenfeuer */
@keyframes scaleUpDown {
  0%,
  100% {
    transform: scaleY(1) scaleX(1);
  }
  50%,
  90% {
    transform: scaleY(1.1);
  }
  75% {
    transform: scaleY(0.95);
  }
  80% {
    transform: scaleX(0.95);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: skewX(0) scale(1);
  }
  50% {
    transform: skewX(5deg) scale(0.9);
  }
}
@keyframes particleUp {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: -100%;
    transform: scale(0.5);
  }
}
@keyframes glow {
  0%,
  100% {
    background-color: #ef5a00;
  }
  50% {
    background-color: #ff7800;
  }
}
.fire {
  position: absolute;
  top: 26%;
  left: 10%;
  width: 4em;
  height: 4em;
  background-color: transparent;
  margin-left: auto;
  margin-right: auto;
}
.fire-center {
  position: absolute;
  height: 100%;
  width: 100%;
  animation: scaleUpDown 3s ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
.fire-center .main-fire {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    farthest-corner at 10px 0,
    #d43300 0%,
    #ef5a00 95%
  );
  transform: scaleX(0.8) rotate(45deg);
  border-radius: 0 40% 60% 40%;
  filter: drop-shadow(0 0 10px #d43322);
}
.fire-center .particle-fire {
  position: absolute;
  top: 60%;
  left: 45%;
  width: 10px;
  height: 10px;
  background-color: #ef5a00;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px #d43322);
  animation: particleUp 2s ease-out 0;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
.fire-right {
  height: 100%;
  width: 100%;
  position: absolute;
  animation: shake 2s ease-out 0;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
.fire-right  .main-fire {
  position: absolute;
  top: 15%;
  right: -25%;
  width: 80%;
  height: 80%;
  background-color: #ef5a00;
  transform: scaleX(0.8) rotate(45deg);
  border-radius: 0 40% 60% 40%;
  filter: drop-shadow(0 0 10px #d43322);
}
.fire-right  .particle-fire {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 15px;
  height: 15px;
  background-color: #ef5a00;
  transform: scaleX(0.8) rotate(45deg);
  border-radius: 50%;
  filter: drop-shadow(0 0 10px #d43322);
  animation: particleUp 2s ease-out 0;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
.fire-left {
  position: absolute;
  height: 100%;
  width: 100%;
  animation: shake 3s ease-out 0;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
.fire-left .main-fire {
  position: absolute;
  top: 15%;
  left: -20%;
  width: 80%;
  height: 80%;
  background-color: #ef5a00;
  transform: scaleX(0.8) rotate(45deg);
  border-radius: 0 40% 60% 40%;
  filter: drop-shadow(0 0 10px #d43322);
}
.fire-left .particle-fire {
  position: absolute;
  top: 10%;
  left: 20%;
  width: 10%;
  height: 10%;
  background-color: #ef5a00;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px #d43322);
  animation: particleUp 3s infinite ease-out 0;
  animation-fill-mode: both;
}
.fire-bottom .main-fire {
  position: absolute;
  top: 30%;
  left: 20%;
  width: 75%;
  height: 75%;
  background-color: #ff7800;
  transform: scaleX(0.8) rotate(45deg);
  border-radius: 0 40% 100% 40%;
  filter: blur(10px);
  animation: glow 2s ease-out 0;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
.fire .infotext {
	margin-left: 6em;
}
.fire .infotext a {
	text-transform: uppercase;
	font-weight: 600;
	padding: 14px 24px !important;
	text-decoration: none;
	display: inline-block;
	margin-top: 16px;
	position: relative;
	z-index: 1;
	color: #fff;
	margin-left: 8px;
}
.fire .infotext a::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border: 2px solid var(--fw-red);
	background: var(--fw-red);
	transform: skewX(-16deg);
	z-index: -1;
	transition: all 0.5s ease;
}
.fire .infotext a:hover::after {
	border: 2px solid #A60404;
	background: #A60404;
}
@media only screen and (max-width: 900px) {
	.fire {
		  position: relative;
		  top: 0;
		  left: 0;
		  margin: 4em 0 0em 3em;
	}
	.fire .infotext {
		margin-left: 6em;
		transform: translateY(-2em);
	}
}

/* ----- Kontakt ----- */
span.blockspam {
  display: none;
}
#pg_kontakt_emails {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  row-gap: 0.5rem;
}

/* ----- Fördermitglied ----- */
#pg_foerdermitglied a {
	text-transform: uppercase;
	font-weight: 600;
	padding: 14px 24px !important;
	text-decoration: none;
	display: inline-block;
	margin-top: 16px;
	position: relative;
	z-index: 1;
	color: #fff;
	margin-left: 8px;
}
#pg_foerdermitglied a::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border: 2px solid var(--fw-red);
	background: var(--fw-red);
	transform: skewX(-16deg);
	z-index: -1;
	transition: all 0.5s ease;
}
#pg_foerdermitglied a:hover::after {
  border: 2px solid #A60404;
  background: #A60404;
}

/* ----- Fahrzeuge ------ */
#pg_fahrzeuge .pg_text_wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
}
.pg_fahrzeuge_car {
  display: flex;
  max-width: 100%;
  min-width: 100%;
}
@media only screen and (min-width: 1300px) {
  .pg_fahrzeuge_car {
    max-width: 48%;
    min-width: 10%;
  }
}
.pg_fahrzeuge_car .car_img {
  max-width: 50%;
  margin-right: 2rem;
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: center;
  gap: 0.2rem;
}
.pg_fahrzeuge_car .car_img img {
  /* border: 3px solid var(--fw-red); */
  width: 100%;
  height: auto;
  /* cursor: pointer; */
}
.pg_fahrzeuge_car .car_img a {
  border: 3px solid var(--fw-red);
}
.pg_fahrzeuge_car .car_img a:nth-child(n+2) {
  /* border: 3px solid var(--fw-red); */
  max-width: calc(50% - 8px);
  border-style: inset;
  height: auto;
}
.pg_fahrzeuge_car .car_details {
  flex-grow: 1;
}
.pg_fahrzeuge_car .car_details h2 {
  margin-top: 0;
}
.pg_fahrzeuge_car .car_details ul {
  padding-left: 1rem;
}
.pg_fahrzeuge_car .car_details li::marker {
  color: var(--fw-red);
}

/* ----- Einsatzstaatistik ----- */
#pg_statistik_wrapper {
  display: flex;
  flex-direction: column;
}
#pg_statistik_wrapper div {
  width: 100%;
  flex-grow: 1;
}
#pg_statisitk_chart {
  width: 100%;
}
@media only screen and (min-width: 900px) {
  #pg_statistik_wrapper {
    flex-direction: row;
  }
  #pg_statistik_wrapper div {
    padding-left: 2em;
  }
}


/* ----- Wehrgebiet ----- */
#pg_wehrgebiet .pg_map_wrapper {
	padding: 20%;
	box-sizing: border-box;
	position: relative;
}
#pg_wehrgebiet .map {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
    border: 3px solid var(--fw-red);
}
.btn-mapFit {
	top: 4em;
	left: .5em;
  }

/* ----- Geschichte ----- */
#timeline-content {
  margin-top: 0;
  text-align: center;
}
/* Timeline */
.timeline {
  border-left: 4px solid var(--fw-red);
  border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;
  /* background: rgba(255, 255, 255, 0.03); */
  color: #000;
  letter-spacing: 0.5px;
  position: relative;
  line-height: 1.4em;
  font-size: 1.03em;
  padding: 0 50px;
  margin: 0 0 0 8rem;
  list-style: none;
  text-align: left;
  /* font-weight: 100; */

}
.timeline h2,
.timeline h3 {
  font-family: 'Saira', sans-serif;
  letter-spacing: 1.5px;
  font-weight: 400;
  font-size: 1.4em;
}
.timeline .event {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 25px;
  margin-bottom: 50px;
  position: relative;
}
.timeline .event:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border: none;
}
.timeline .event:before,
.timeline .event:after {
  position: absolute;
  display: block;
  top: 0;
}
.timeline .event:before {
  left: -217.5px;
  color: #000;
  content: attr(data-date);
  text-align: right;
  /* font-weight: 100; */
  font-size: 0.9em;
  min-width: 120px;
}
.timeline .event:after {
  box-shadow: 0 0 0 4px var(--fw-red);
  left: -57.85px;
  background: #fff;
  border-radius: 50%;
  height: 11px;
  width: 11px;
  content: "";
  top: 5px;
}


/* ----- Footer ----- */
#pg_footer {
  background-color: var(--fw-red);
  color: #fff;
}
#pg_footer .pg_text_wrapper {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
#pg_footer a {
  text-decoration: none;
  color: #fff;
}

/* ----- Back top Top Button ----- */
#btn_to_top {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: var(--fw-red); /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
  box-shadow: 0px 0px 15px 4px rgba(0,0,0,.2);
}
#btn_to_top:hover {
  background-color: #c93c43; /* Add a dark-grey background on hover */
}
.arrow-up {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid #fff;
}



/* ---- Impressum und Daatenschutz ---- */

#pg_impressum h2, #pg_datenschutz h2 {
  text-align: left;
  margin-left: 0;
}