/* Seitenspezifische Styles: index.html */
a {
  transition: color .2s ease,
  background-color .2s ease,
  transform .2s ease,
  box-shadow .2s ease;
}


/* =========================================================
SOMMERFEST
========================================================= */

.sommerfest-wrapper {
  margin-top: 28px;
  margin-bottom: 42px;
}

.sommerfest-card {
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-large);
}

.sommerfest-image-wrapper {
  height: 100%;
  min-height: 100%;
  background: #111;
  overflow: hidden;
}

.sommerfest-image {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.sommerfest-image-wrapper:hover .sommerfest-image {
  transform: scale(1.025);
}

.sommerfest-content {
  padding: 42px 42px 38px;
}

.sommerfest-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--tsg-green);
  color: white;
  padding: 7px 13px;
  border-radius: 30px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 16px;
}

.sommerfest-content h2 {
  font-size: 2.35rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark);
}

.sommerfest-date {
  color: var(--tsg-green);
  font-weight: 800;
  font-size: 1.22rem;
  line-height: 1.5;
}

.sommerfest-content .lead {
  font-size: 1.08rem;
  font-weight: 500;
}

.sommerfest-content ul {
  margin-top: 22px;
  margin-bottom: 22px;
}

.sommerfest-content li {
  margin-bottom: 9px;
}

.sommerfest-content li i {
  width: 22px;
  text-align: center;
}


/* =========================================================
COUNTDOWN
========================================================= */

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
  margin-bottom: 22px;
}

.countdown-box {
  background: var(--dark);
  color: white;
  border-radius: 9px;
  text-align: center;
  padding: 9px 11px;
  min-width: 68px;
}

.countdown-number {
  display: block;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 800;
}

.countdown-label {
  display: block;
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  opacity: .75;
  margin-top: 2px;
}


/* =========================================================
PAGE HEADING
========================================================= */

.page-heading {
  margin-top: 20px;
  margin-bottom: 25px;
}

.page-heading h1 {
  font-weight: 800;
  font-size: 2.35rem;
  line-height: 1.15;
  margin-bottom: 0;
}

.page-heading small {
  display: block;
  color: var(--tsg-green);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 7px;
}


/* =========================================================
INFOBOX
========================================================= */

.info-box {
  border: 0;
  border-left: 5px solid var(--tsg-green);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-small);
  padding: 20px 22px;
}

.info-box h5 {
  color: var(--tsg-green-dark);
}

.info-box a {
  color: var(--tsg-green-dark);
  font-weight: 700;
}


/* =========================================================
WILLKOMMEN
========================================================= */

.welcome-section {
  margin-top: 38px;
  margin-bottom: 48px;
}

.welcome-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: contain;
  background: white;
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow-small);
}

.welcome-content {
  padding: 10px 5px;
}

.welcome-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.welcome-content h2::after {
  content: "";
  display: block;
  width: 55px;
  height: 4px;
  background: var(--tsg-green);
  border-radius: 10px;
  margin-top: 10px;
}

.welcome-content p {
  color: #555;
  line-height: 1.75;
}

.department-list {
  padding-left: 0;
  list-style: none;
  margin-top: 18px;
}

.department-list li {
  display: inline-flex;
  align-items: center;
  margin: 0 12px 8px 0;
  background: var(--tsg-green-light);
  color: var(--tsg-green-dark);
  border-radius: 30px;
  padding: 7px 13px;
  font-weight: 700;
  font-size: .9rem;
}


/* =========================================================
SECTIONS
========================================================= */

.section-title {
  margin-top: 45px;
  margin-bottom: 25px;
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--dark);
}

.section-title::after {
  content: "";
  display: block;
  width: 55px;
  height: 4px;
  background: var(--tsg-green);
  border-radius: 5px;
  margin-top: 8px;
}

.section-intro {
  color: var(--muted);
  margin-top: -10px;
  margin-bottom: 25px;
}


/* =========================================================
ABTEILUNGEN
========================================================= */

.departments-section {
  margin-bottom: 50px;
}

.department-card {
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-small);
  transition: transform .25s ease,
  box-shadow .25s ease;
  height: 100%;
}

.department-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-large);
}

.department-image-wrapper {
  position: relative;
  height: 225px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
  135deg,
  var(--tsg-green-dark),
  var(--tsg-green)
  );
  padding: 20px;
}

.department-image {
  width: 175px;
  height: 175px;
  object-fit: contain;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,.18);
  transition: transform .3s ease;
}

.department-card:hover .department-image {
  transform: scale(1.05);
}

.department-content {
  padding: 25px 25px 18px;
}

.department-content h4 {
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--tsg-green-dark);
  margin-bottom: 15px;
}

.department-content h4 i {
  color: var(--tsg-green);
}

.department-content p {
  font-size: .94rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 0;
}

.department-content strong {
  color: #333;
}

.department-footer {
  background: #fff;
  border: 0;
  padding: 0 25px 25px;
}

.department-footer .btn {
  width: 100%;
  border-radius: 8px;
  font-weight: 700;
  padding: 10px 15px;
}


/* =========================================================
VERANSTALTUNGEN
========================================================= */

.events-section {
  margin-top: 20px;
  margin-bottom: 40px;
}

.event-card {
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-small);
  background: #fff;
  transition: transform .25s ease,
  box-shadow .25s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.event-card img {
  width: 100%;
  height: auto;
  display: block;
}

.event-card .card-body {
  padding: 18px;
}


/* =========================================================
BUTTONS
========================================================= */

.btn-success {
  background: var(--tsg-green);
  border-color: var(--tsg-green);
}

.btn-success:hover {
  background: var(--tsg-green-dark);
  border-color: var(--tsg-green-dark);
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .sommerfest-image {
    min-height: 350px;
  }
  .sommerfest-content {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  .sommerfest-wrapper {
    margin-top: 18px;
    margin-bottom: 30px;
  }
  .sommerfest-content {
    padding: 25px 20px 28px;
  }
  .sommerfest-content h2 {
    font-size: 1.8rem;
  }
  .sommerfest-date {
    font-size: 1.05rem;
  }
  .sommerfest-image {
    min-height: 320px;
    max-height: 480px;
  }
  .countdown {
    justify-content: center;
  }
  .countdown-box {
    min-width: 58px;
  }
  .page-heading h1 {
    font-size: 1.8rem;
  }
  .welcome-section {
    margin-top: 25px;
  }
  .welcome-image {
    min-height: 250px;
    margin-bottom: 25px;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .department-image-wrapper {
    height: 210px;
  }
  .department-image {
    width: 155px;
    height: 155px;
  }
}

@media (max-width: 400px) {
  .sommerfest-image {
    min-height: 280px;
  }
  .countdown-box {
    min-width: 54px;
    padding: 8px 7px;
  }
  .countdown-number {
    font-size: 1.25rem;
  }
}
