/* Reset / Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #FFFFFF; /* Warm-Kontrast Hintergrund */
  color: #2D2D2D;            /* Warm-Kontrast Primärtext */
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: #FFD700;           /* Warm-Kontrast Linkfarbe */
  text-decoration: none;
}
a:hover {
  color: #FF4500;           /* Warm-Kontrast Akzent beim Hover */
}

/* Layout Helpers */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.center {
  text-align: center;
}

.flex-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 100px;
}

.logo {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
}

.logo img {
  width: 80px;
  height: auto;
  transition: width 0.3s ease;
}

.logo h1 {
  font-size: 2.4rem;
  margin: 0;
  transition: font-size 0.3s ease;
  white-space: nowrap;
}

.logo h3 {
  font-weight: 400;
  font-size: 1.1rem;
}

/* Section General */
section {
  padding: 2rem 1rem;
  transition: background-color 0.3s ease;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #1d3557;
}

.text {
  flex: 1;
  min-width: 280px;
  font-size: 1.1rem;
  color: #8A8A8A; /* Warm-Kontrast Sekundärtext */
}

/* Images */
.images,
.image {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.images img,
.image img {
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Größeres Bild im History-Bereich */
.history-image img {
    max-width: 100%;
    width: 350px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }

/* Video */
.video-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

video {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Awards Gallery */
.awards-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  padding: 2rem 1rem;
}

.award-entry {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #f1f5f9 0%, #ffffff 100%);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  border: 1px solid #FFD700; /* Warm-Kontrast Link als Rahmen */
  position: relative;
}

.award-entry:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.award-entry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg,
    #FF4500 0%,   /* Akzent */
    #FF6347 50%,  /* Tomato */
    #FFD700 100%  /* Link */
  );
}

.award-entry img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background-color: #fff;
  display: block;
  border-bottom: 1px solid #eee;
}


.award-entry .description {
  padding: 1rem;
  font-size: 0.95rem;
  color: #444;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
}

.award-entry .description .author {
  font-weight: 600;
  color: #1d3557;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  font-family: Georgia, serif;
}

/* Lightbox */
.lightbox {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  padding: 2rem;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.lightbox .close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0.5rem;
  }

  .flex-content {
    flex-direction: column;
  }

  .logo img {
    width: 60px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 0.85rem;
  }

  .award-entry img {
    height: 200px;
  }
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(to right, #FF4500, #FFD700); /* Warm-Kontrast Header-Gradient */
  color: white;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Header-Inhalt (zentriert & skaliert) */
.header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: transform 0.3s ease, padding 0.3s ease;
  transform-origin: center;
  padding: 1.2rem 1rem;
}

/* Normalzustand */
.logo img {
  width: 80px;
  height: auto;
  transition: transform 0.3s ease;
}

header h1 {
  font-size: 1.8rem;
  margin: 0;
  transition: font-size 0.3s ease;
}

header h3 {
  display: block;
  transition: opacity 0.3s ease;
}

/* Kompakter Zustand beim Scrollen */
header.scrolled .header-content {
  padding: 0.5rem 1rem;
  justify-content: center;
  min-height: 80px;
  flex-direction: row;
}

header.scrolled .logo img {
  width: 60px;
}

header.scrolled h1 {
  font-size: 1.6rem;
}

header.scrolled h3 {
  display: none;
}

/* Gescrollter Zustand – Logo & h1 nebeneinander */
header.scrolled .logo {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

header.scrolled .logo > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

header.scrolled .logo h1 {
  font-size: 1.6rem;
}

.impressum-container {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
}

.impressum-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.impressum-popup.active {
  display: flex;
}

.impressum-box {
  background: #fff;
  padding: 2rem;
  max-width: 600px;
  margin: 1rem;
  border-radius: 8px;
  position: relative;
}

.impressum-close {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  display: flex;
  opacity: 1;
}

.popup-content {
  position: relative;
  background-color: white;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px) scale(0.95);
  transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
  transform: translateY(0) scale(1);
}

.impressum-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: #333;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

@media (max-width: 600px) {
  .popup-content {
    padding: 1rem;
    width: 95%;
    max-height: 85vh;
  }

  .impressum-close {
    font-size: 2.5rem;
    top: 5px;
    right: 10px;
  }
}