:root {
  --rot: #e4000f;
  --dunkelblau: #032b44;
  --hellgrau: #f3f3f3;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--hellgrau);
  color: var(--dunkelblau);
}

h1 {
  font-size: 46px;
  font-weight: bold;
  margin-bottom: 15px;
  margin-top: 15px;
  text-decoration: none;
  color: var(--dunkelblau)
}

h2 {
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 10px;
  text-decoration: none;
  color: var(--dunkelblau)
}

h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 5px;
  margin-top: 5px;
  text-decoration: none;
  color: var(--dunkelblau)
}

p {
  font-size: 20px;
  line-height: 25px;
  text-decoration: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.button {
  display: inline-block;
  margin: 20px 20px 20px 0px;
  background-color: var(--rot);
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.7);
  text-decoration: underline;
  background-color: var(--rot);
  color: rgba(255, 255, 255, 0.85);
  opacity: 1 !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header {
  position: relative;
}

.banner {
  position: relative;
  height: 270px;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo {
  position: absolute;
  left: 15px;
  top: 170px;
  z-index: 10;
}

.logo img {
  height: 200px;
  filter: drop-shadow(0 0 0.8px rgb(200, 200, 200));
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.menu {
  display: none;
  cursor: pointer;
}

.side-menu {
  display: none;
}

.menu {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: white;
  z-index: 1001;
  cursor: pointer;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100%;
  background-color: var(--dunkelblau);
  padding: 80px 20px;
  transition: right 0.3s ease;
  z-index: 1000;
}

.side-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-menu a {
  color: white;
  font-size: 20px;
}

.side-menu.active {
  right: 0;
}

.navigation {
  filter:
    drop-shadow(-15px 8px 0 rgb(130,130,130)) drop-shadow(20px 0px 0 rgb(130,130,130));
  position: absolute;
  top: 230px;
  right: 0px;
  z-index: 5;
}

.navigation-inner {
  background-color: var(--rot);
  padding: 25px 40px;
  clip-path: polygon(50px 0, 100% 0, 100% 100%, 0% 100%);
}

.navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navigation a {
  color: white;
  font-size: 20px;
}

.navigation a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.content {
  max-width: 1500px;
  margin:100px auto 40px 40px;
  padding: 20px;
}

section {
  margin: 40px auto;
}

.stats-container {
  background: linear-gradient(20deg, var(--dunkelblau), #072c67);
  color: white;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 2px 50px;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
}

.stat h2 {
  color:white;
  font-size: 40px;
  margin-bottom: 3px;
}

.gesucht a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.trainings-tabelle {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.trainings-tabelle th,
.trainings-tabelle td {
  padding: 6px;
  font-size: 18px;
  text-align: left;
  border-bottom: 1px solid #ccc;
}

.trainings-tabelle th {
  background-color: var(--dunkelblau);
  color: white;
}

.mannschaften img {
  margin-top: 20px;
  height: 260px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
}

.mannschaften-übersicht {
  max-width: 1400px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
}

.mannschafts-card {
  background: var(--dunkelblau);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mannschafts-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
}

.mannschafts-card h3 {
  text-align: center;
  padding: 15px;
  color: white;
}

.mannschafts-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
}

.mannschaftsvorstellung img{
  margin: 40px 0px;;
  min-height: 220px;
  max-height: 860px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
}

.trainer-liste {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
}

.trainer-card {
  text-align: center;
}

.trainer-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
  margin-bottom: 10px;
}

.training-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 25px;
  max-width: 1200px;
  margin: 0px 0px 20px 0px;
}


#handball-spielplan {
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0px;
  outline: var(--dunkelblau) solid 2px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
}

#handball-tabelle {
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0px;
  outline: var(--dunkelblau) solid 2px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dunkelblau);
  font-size: 20px;
}

.instagram-icon {
  color: var(--dunkelblau);
  font-size: 40px;
  padding: 2px;
  transition: transform 0.2s ease;
}

.vereine-übersicht {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
  justify-items: center;
}

.verein-card img {
  height: 250px;
  width: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.verein-card a img:hover {
  transform: translateY(-6px);
}

.vorstand-übersicht {
  max-width: 1400px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.vorstand-card img {
  width: 100%;
  border-radius: 8px;
}

.shop-bilder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.shop-bilder img{
  margin: 2px;
  width: 100%;
  transition: transform 0.2s ease;
}

.shop-bilder img:hover{
  transform: translateY(-6px);
}

.sportfuchs{
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.sportfuchs a:hover{
  text-decoration: underline;
  opacity: 0.85;
}

.sportfuchs img{
  max-width: 230px;
  height: auto;
  transition: transform 0.2s ease;
}

.sportfuchs img:hover{
  transform: translateY(-6px);
}

.galerie-übersicht {
  max-width: 1400px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
}

.galerie-card {
  max-width: 470px;
  background: var(--dunkelblau);
  border-radius: 8px;
  overflow: hidden;
  color: white;
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.galerie-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.galerie-card h3 {
  text-align: center;
  padding: 15px;
  color: white;
}

.galerie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.8);
}

.foto-grid {
  max-width: 1400px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.foto-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.foto-grid img:hover {
  transform: scale(1.04);
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
}

.lightbox.active {
  display: flex;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

.kontakt a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.impressum a {
  color: var(--dunkelblau)
}

.impressum a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.footer {
  background-color: var(--rot);
  color: var(--dunkelblau);
  text-align: center;
  padding: 20px;
  box-shadow: 5px 2px 15px rgba(0, 0, 0, 0.8);
}

.footer-link {
  color: white;
  padding: 5px;
}

.footer-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.footer-icon {
  color: white;
  font-size: 28px;
  padding: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

i:hover {
  opacity: 0.85;
  transform: translateY(-3px);
}

@media (min-width: 768px) and (max-width: 1110px) {

  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .logo img {
    height: 150px;
  }

  .logo {
    position: absolute;
    top: 120px;
    z-index: 10;
  }

  .banner {
    height: 200px;
  }

    .navigation {
    display: none;
  }

  .menu {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    background-color: var(--rot);
    border-radius: 50%;
    font-size: 26px;
    color: white;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
  }

  .side-menu {
    display: block;
  }

  .side-menu a:hover {
    opacity: 0.85;
    text-decoration: underline;
  }

  h1 {
    margin-top: -40px;
  }

  .foto-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .vorstand-übersicht {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-container {
    padding: 10px 10px;
    gap: 5px;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  }

}

@media (max-width: 768px) {

  .logo img {
    height: 130px;
  }

  .logo {
    position: absolute;
    top: 130px;
    z-index: 10;
  }

  .navigation {
    display: none;
  }

  .menu {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    background-color: var(--rot);
    border-radius: 50%;
    font-size: 26px;
    color: white;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
  }

  .side-menu {
    display: block;
  }

  .side-menu a:hover {
    opacity: 0.85;
    text-decoration: underline;
  }

  .banner {
    height: 200px;
  }

  .content {
    margin: 20px auto 20px 10px;
    padding: 10px;
  }

  section {
    margin: 30px 0;
  }

  h1 {
    font-size: 34px;
    margin-top: 50px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  p {
    font-size: 18px;
    line-height: 24px;
  }

  .button {
    padding: 12px 18px;
    font-size: 16px;
  }

  .stats-container {
    padding: 10px;
    gap: 0px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .stats-container p {
    font-size: 16px;
  }

  .stat h2 {
    font-size: 30px;
  }
  
  .trainings-tabelle th,
  .trainings-tabelle td {
    font-size: 14px;
  }

  .training-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .trainer-card img {
    width: 100%;
    height: auto;
  }

  .foto-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .close {
    right: 20px;
    top: 20px;
    font-size: 30px;
  }

  .vorstand-übersicht {
    grid-template-columns: repeat(2, 1fr);
  }

  .sportfuchs{
  gap: 10px;
  margin-top: 20px;
}

.sportfuchs img{
  max-width: 190px;
}

}