@font-face {
  font-family: 'HarryP';
  src: url(fonts/HarryP-Font.ttf);
}

:root {
  --slitheryn-green: 26, 71, 42;
  --slitheryn-dark-green: #1F462C;
  --slitheryn-dark-grey: #5D5D5D;
  --slitheryn-light-grey: #AAAAAA;
  --hufflepuff-yellow: #E9BA4B;
  --hufflepuff-light-yellow: #EEC869;
  --hufflepuff-light-brown: #716256;
  --hufflepuff-dark-brown: #372E29;
}

/* === Grundlayout === */
body {
  font-family: 'HarryP', Arial, sans-serif;
  margin: 20px;
  line-height: 1.6;
  background: rgba(var(--slitheryn-green), 0.5) url(images/pattern.png);
  background-blend-mode: multiply;
  background-size: cover;
}

.main-title {
  position: absolute;
  text-align: center;
  width: 100%;
margin-bottom: -100px;
  font-size: 150px;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  font-weight: 300;
  color: var(--hufflepuff-yellow);
  z-index: 10;
}

.right-section {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

#map {
  height: 450px;
  width: 90%;
  border-radius: 200px;
  z-index: -1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  margin-top: 5px;
}

.button-container.floating {
  position: absolute;
  bottom: -25px; /* adjust: negative to slightly overlap map */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}

.period-button {
  font-family: 'HarryP', Arial, sans-serif;
  background-color: var(--hufflepuff-yellow);
  color: white;
  border: none;
  padding: 12px 26px;
  font-size: 1.1em;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.period-button:hover {
  background-color: var(--hufflepuff-light-yellow);
  transform: translateY(-2px);
}


.content-container {
  margin: 50px;
  display: flex;
  gap: 30px;
  align-items: center; /* vertically center left and right sections */
}

.left-section {
  height: 200px;
  flex: 3;
  background-color: var(--hufflepuff-yellow);
    border-radius: 80px;  
    box-sizing: border-box; /* include padding/border in width calculations */
    padding: 20px; /* ensure inner spacing */
    max-width: 100%;
    overflow-wrap: break-word; /* break long words/URLs */
    word-break: break-word;
    hyphens: auto; /* allow hyphenation */
}

.subtitle {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #333;
}

.description {
  text-align: justify;
  margin-bottom: 20px;
}


/* Gemeinsamer Stil für alle Buttons */
.info-button, .info-extra {
  font-family: 'HarryP', Arial, sans-serif;
  background-color: var(--hufflepuff-yellow);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

/* Hovereffekt für alle */
.info-button:hover, .info-extra:hover {
  background-color: var(--hufflepuff-light-yellow);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
  transform: translateY(-2px);
}

/* Hauptbutton bleibt sichtbar */
.info-button.main {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  padding: 12px 22px; /* moderate size for main button */
  font-size: 1.02rem;
}

/* Textwechsel beim Hover auf Hauptbutton */
.info-button.main::after {
  content: "Infos";
}

.info-button.main:hover::after {
  content: "Chur";
  color: var(--hufflepuff-dark-brown);
}

/* Zusätzliche Buttons oben und unten */
.info-extra {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  padding: 8px 14px;
  font-size: 0.95rem;
  border-radius: 16px;
}

.info-extra.top {
  top: -48px;
}

.info-extra.bottom {
  bottom: -48px;
}

/* Sichtbar beim Hover auf Container */
.right-section:hover .info-extra {
  opacity: 1;
  pointer-events: auto;
}

/* Container */
.right-section {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center; /* center content horizontally inside right section */
  align-items: center;     /* center content vertically inside right section */
}



/* Ursprünglicher Text */
.infos-title::after {
  content: "Infos";
}

/* Wenn man hovert, wechselt der Text zu "Chur" */
.infos-title:hover::after {
  content: "Chur";
  color: var(--hufflepuff-yellow); /* optional: Farbe ändern beim Hover */
}



/* === Tabellen & Charts === */

#tägliche_tabelle {
  background-color: var(--slitheryn-dark-grey);
}

.table-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 40px 0;
}

.table-section.reverse {
  flex-direction: row-reverse;
}

.table-container {
  flex: 2;
  padding: 25px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  border-radius: 80px;
  background-color: var(--slitheryn-dark-grey);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.table-placeholder {
  border: none;
  height: 420px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.period-button {
  font-family: 'HarryP', Arial, sans-serif;
  background-color: var(--hufflepuff-yellow);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* === Chart-Header & Dropdowns === */
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 5px;
}

.chart-title {
  font-family: 'HarryP', Arial, sans-serif;
  font-size: 35px;
  color: var(--hufflepuff-yellow);
  margin: 0;
}

.table-section.weekly .chart-title {
  color: var(--hufflepuff-yellow);
  text-shadow: 1px 1px 0 var(--hufflepuff-light-brown);
}

.station-select-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.station-label {
  font-size: 35px;
  color: var(--hufflepuff-yellow);
  font-weight: 600;
}

.station-dropdown {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--slitheryn-light-grey);
  background-color: #fff;
  font-size: 1em;
  color: var(--slitheryn-dark-green);
  cursor: pointer;
  transition: 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.station-dropdown:hover {
  background-color: var(--slitheryn-light-grey);
}

.station-dropdown:focus {
  outline: none;
  border-color: var(--hufflepuff-yellow);
  box-shadow: 0 0 5px var(--hufflepuff-yellow);
}

.info-footer {
  margin: 50px auto;                  /* zentriert und Abstand nach oben/unten */
  padding: 30px;
  background-color: var(--hufflepuff-yellow);
  border-radius: 80px;
  border-left: none;
  max-width: 600px;                   /* maximale Breite, kannst anpassen */
  text-align: center;                 /* Inhalt zentrieren */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* leichter Schatten für Tiefe */
}

.info-footer h3 {
  color: var(--slitheryn-dark-green);
  font-size: 1.3em;
}

.info-footer p {
  color: var(--slitheryn-dark-green);

}

.centered-image {
  text-align: center;       /* Bild horizontal zentrieren */
  margin-top: 40px;         /* Abstand zum oberen Element */
}

.copyright {
  text-align: center;
}


