@charset "UTF-8";

/* =====================================================
   GLOBAL
   ===================================================== */

html {
  scroll-behavior: smooth;
}

/* CHANGED: Merged two separate body {} blocks into one.
   REMOVED: -moz-font-smoothing and -o-font-smoothing — these are
   non-standard and have no effect in any browser. Only
   -webkit-font-smoothing is respected (by WebKit/Blink). */
body {
  overflow-x: hidden !important;
  font-family: 'Noticia Text', serif;
  color: #121212;
  background-color: #fff;
  background-image: url("../images/seitenrand.gif");
  background-repeat: repeat-y;
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-style: normal;
  font-weight: normal;
  line-height: 1.7em;
  -webkit-font-smoothing: antialiased;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

/* Content headline (large) */
h1 {
  max-width: 90%;
  font-family: 'Oswald', sans-serif;
  font-size: 2em;
  font-style: normal;
  font-weight: normal;
  line-height: 1.4em;
  hyphens: none;
  padding: 0;
}

/* Card / section headline */
h2 {
  color: #000;
  font-family: 'Oswald', sans-serif;
  font-size: 1.65em;
  font-style: normal;
  font-weight: normal;
  line-height: 2.25em;
  text-align: center;
}

/* Footer banner headline */
h3 {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5em;
  font-style: normal;
  font-weight: normal;
  line-height: 2.25em;
  margin-top: 0px;
  margin-bottom: 10px;
}

/* In-line / sub-section headline */
h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1em;
  font-style: normal;
  font-weight: normal;
  line-height: 1.7em;
  text-align: left;
}

p, li {
  color: #666;
  font-family: 'Noticia Text', serif;
  font-size: 1em;
  font-style: normal;
  font-weight: normal;
  line-height: 1.7em;
  hyphens: auto;
  padding: 0;
  text-align: left;
}

p {
  margin: 0 0 1.7em 0;
}

/* =====================================================
   LINKS & LISTS
   ===================================================== */

.text ul,
.text_column ul,
.footer_column ul {
  padding: 0 0 0.6em 1em;
}

.text a,
.text_column a,
.footer_column a {
  color: #e30613;
  font-family: 'Noticia Text', serif;
  font-size: 1em;
  font-style: normal;
  font-weight: bold;
  hyphens: manual;
  line-height: 1.7em;
  text-align: left;
  text-decoration: none;
  padding: 0 0.15em;
}

.text a:hover,
.text_column a:hover,
.footer_column a:hover {
  color: #fff;
  background: #e30613;
}

/* =====================================================
   FOOTER BANNER (Impressum)
   ===================================================== */

.footer_banner p {
  color: #fff;
  line-height: 1.5em;
}

.footer_banner a {
  color: #fff;
  font-style: italic;
  font-weight: normal;
  text-decoration: none;
}

.footer_banner a:hover {
  background: #e30613;
}

/* =====================================================
   GO-TO-TOP BUTTON
   ===================================================== */

#myBtn {
  font-family: Arial, sans-serif;
  position: fixed;
  bottom: 20px;
  right: 0px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #e30613;
  color: white;
  cursor: pointer;
  padding: 8px 10px 4px 10px;
  border-radius: 8px 0 0 8px;
  font-size: 18px;
}

#myBtn a {
  color: #fff;
}

#myBtn:hover {
  background-color: #5a6066;
}

/* =====================================================
   VERSANDKOSTEN OVERLAY (CSS-only modal)
   ===================================================== */

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 25px auto;
  padding: 5px 25px;
  background: #fff;
  border-radius: 5px;
  width: 30%;
  position: relative;
  transition: all 5s ease-in-out;
}

.popup .close {
  position: absolute;
  top: 20px;
  right: 25px;
  transition: all 200ms;
  font-size: 1.7em;
  padding: 0;
  text-decoration: none;
  color: #5a6066;
}

.popup .close:hover {
  color: #e30613;
  background: #fff;
}

.popup .content {
  max-height: 30%;
  overflow: auto;
}

@media screen and (max-width: 700px) {
  .popup {
    width: 70%;
  }
}

/* =====================================================
   LAYOUT — CONTAINER
   ===================================================== */

.container {
  overflow: hidden;
  min-height: 1000px;
  margin: 0 5%;
  padding-left: 3px;
  padding-right: 0;
  background-color: #fff;
}

/* =====================================================
   NAVIGATION / HEADER
   ===================================================== */

header {
  font-family: 'Oswald', sans-serif;
  width: 100%;
  height: 50px;
  background-color: #5a6066;
  border-bottom: 2px solid #fff;
}

.logo {
  color: #fff;
  font-weight: normal;
  text-align: left;
  font-size: 1.3em;
  float: left;
  margin-top: 8px;
  margin-left: 35px;
  letter-spacing: 0.5px;
}

nav {
  font-family: 'Noticia Text', serif;
  float: right;
  width: auto;
  text-align: right;
  margin-right: 25px;
}

header nav ul {
  list-style: none;
  float: right;
}

nav ul li {
  float: left;
  color: #fff;
  font-size: 0.88em;
  text-align: left;
  letter-spacing: 0.3px;
  font-weight: normal;
  transition: all 0.3s linear;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0 4px;
  margin-left: 8px;
  margin-right: 8px;
}

nav ul li:hover a {
  color: #fff;
  background: #e30613;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
  height: 35%;
  width: 100%;
  background-image: url("../images/titel_autobahn.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 20%;
  padding: 6% 0 10% 0;
}

/* Logo image shown inside the hero */
.sticker {
  height: 240px;
  background-image: url("../images/tempoherz_logo.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: block;
  margin: auto;
}

.hero_header {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: normal;
  font-size: 7vw;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
  line-height: normal;
  text-align: center;
  margin: 0 25px 5px 25px;
  letter-spacing: 0.3px;
}

.tagline {
  text-align: center;
  text-shadow: 0 0 7px rgba(0, 0, 0, 0.9);
  color: #fff;
  margin: 4px auto;
  font-weight: bold;
  font-size: 1.5em;
  letter-spacing: 0.5px;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.accent {
  color: #7B0727;
}

.smaller {
  font-size: smaller;
}

/* REMOVED: .hidden { display: none; } — defined but never used in the HTML */

/* =====================================================
   ABOUT SECTION
   ===================================================== */

/* Multi-column text layout */
.text_column {
  column-width: 350px;
  column-gap: 30px;
  page-break-inside: avoid;
  column-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  break-inside: avoid;
}

.text,
.text_column {
  max-width: 95%;
}

/* Custom bullet images */
.text ul li {
  font-size: 1em;
  list-style-image: url(../images/bullet1.gif);
}

.text ul li ul li {
  font-size: 1em;
  list-style-image: url(../images/bullet2.gif);
}

.footer_column ul li {
  font-size: 1em;
  list-style-image: url(../images/bullet1.gif);
}

.footer_column ul li ul li {
  font-size: 1em;
  list-style-image: url(../images/bullet2.gif);
}

.about {
  padding: 0 25px;
  background-color: #fff;
  margin-top: 0px;
}

hr {
  width: 33%;
  background: #e30613;
  height: 8px;
  border: none;
  margin-top: 40px;
}

/* =====================================================
   FOOTER (Sticker / Bestellung columns)
   ===================================================== */

footer {
  width: 100%;
  padding: 0 25px;
  display: inline-block;
}

.footer_column {
  font-size: inherit;
  width: 45%;
  max-width: 550px;
  padding-top: 10px;
  margin-right: 25px;
  float: left;
}

footer .footer_column ul,
li {
  list-style-position: outside;
}

.cards {
  width: 100%;
  max-width: 550px;
  height: auto;
  padding-bottom: 1.7em;
}

/* =====================================================
   COPYRIGHT BAR
   ===================================================== */

.copyright {
  font-size: smaller;
  text-align: center;
  padding: 20px;
  background-color: #000;
  color: #83888c;
  font-weight: normal;
  letter-spacing: 0.5px;
}

/* =====================================================
   FOOTER BANNER (Impressum background)
   ===================================================== */

.footer_banner {
  height: auto;
  background-color: #5a6066;
  padding: 15px 25px;
}

/* =====================================================
   GALLERY
   ===================================================== */

.gallery {
  margin: 0 0 45px 0;
  max-width: 1200px;
  padding: 0;
}

.responsive-image {
  max-width: 100%;
}

.cell {
  margin: 0.5rem;
}

.cell img {
  display: block;
}

@media screen and (min-width: 600px) {
  .grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .cell {
    width: calc(50% - 2rem);
  }
}

@media screen and (min-width: 1000px) {
  .cell {
    width: calc(33.3333% - 2rem);
  }
}

/* =====================================================
   RESPONSIVE — Mobile (max 320px)
   ===================================================== */

@media (max-width: 320px) {
  /* REMOVED: -webkit-text-size-adjust: none — this was preventing
     the browser from adjusting font sizes on zoom, which hurts
     accessibility. Removing it is the correct modern approach. */

  .logo {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px #fff solid;
  }

  .container {
    padding-right: 3px;
    margin-right: 0;
  }

  .container header nav {
    margin: 0 0 25px -20px;
    padding-right: 20px;
    width: 100%;
    float: left;
    background: #5a6066;
  }

  /* FIXED: was "sticker" (missing dot), which matched an HTML element
     that doesn't exist. Changed to ".sticker" to target the correct class. */
  .sticker {
    height: 150px;
  }

  nav ul li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .footer_column {
    width: 95%;
    margin-top: 0px;
    padding-right: 15px;
  }

  /* REMOVED: .banner rule — class "banner" is never used in the HTML */

  .tagline {
    font-size: 1em;
    margin-top: 20px;
    line-height: 22px;
  }

  .hero {
    height: 31%;
  }

  .hero_header {
    margin: auto;
    padding: 0 8px 0 20px;
    line-height: 1.4em;
    text-align: center;
  }

  .sticker {
    height: 96px;
    margin-top: 150px;
  }
}

/* =====================================================
   RESPONSIVE — Small Tablets (321px–767px)
   ===================================================== */

@media (min-width: 321px) and (max-width: 767px) {
  /* REMOVED: -webkit-text-size-adjust: none — see note above */

  .hero {
    padding-top: 180px;
    height: 32%;
  }

  .logo {
    width: 100%;
    text-align: center;
    margin: 8px 0;
    color: #fff;
    height: auto;
  }

  .sticker {
    height: 180px;
  }

  .tagline {
    font-size: 1.5em;
  }

  .container {
    padding-right: 3px;
    margin-right: 0;
  }

  .container header nav {
    margin: 0;
    width: 100%;
    float: none;
    overflow: auto;
    display: inline-block;
    background: #5a6066;
  }

  header nav ul {
    /* CHANGED: was "padding: 0px" — using 0 without unit is cleaner */
    padding: 0;
    float: none;
  }

  nav ul li {
    margin: 0;
    width: 100%;
    text-align: center;
    padding-top: 0px;
    padding-bottom: 10px;
    line-height: 1.3em;
  }

  .footer_column {
    width: 90%;
    margin-top: 0px;
  }

  /* REMOVED: .banner rule — class "banner" is never used in the HTML */
}

/* =====================================================
   RESPONSIVE — Small Desktops (768px–1096px)
   ===================================================== */

@media (min-width: 768px) and (max-width: 1096px) {
  .hero_header {
    font-size: 4em;
  }

  .sticker {
    height: 210px;
  }
}
