/* Google Font importieren */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600;700&display=swap');

/* Basis-Stile */
body {
  margin: 0;
  padding: 0 20px;
  background: linear-gradient(to bottom, #B2C9F4, #CAD1DE);
  font-family: 'Josefin Sans', sans-serif;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

/* Typografie */
h1 {
  font-weight: 700; /* Bold */
  font-size: 2.5rem;
  margin-top: 2rem;
}


h2, h3 {
  font-weight: 600; /* Semi-Bold */
  margin: 1.5rem 0 1rem 0;
}

p {
  font-weight: 300; /* Light */
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

/* Untertitel */
#skiSubtitle {
  font-weight: 400; 
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: #444;
}

/* Durchschnittsanzeige */
.average-display {
  font-weight: 400;
  font-size: 3.2rem;
  margin: 1.6rem 0;
  color: #333;
}

/* Container für Bild */
.dude-image-container {
  text-align: center;    /* Bild mittig */
}

/* Bild selbst */
.dude-image {
  width: 80%;
  max-width: 640px;
  height: auto;
}

/* Ski Graphic Container */
.ski-graphic-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  width: 100%;
}

.ski-graphic {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
}

/* Deviation Text Overlay */
.deviation-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 2rem;
  color: #000;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

/* Dropdown Container */
.dropdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.dropdown-container label {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
}

.dropdown-container select {
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  border: 2px solid #fff;
  background-color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dropdown-container select:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.dropdown-container select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Checkbox Container */
.checkbox-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

/* Location Button Styling (Checkboxes styled as buttons) */
.location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  user-select: none;
}

.location-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.location-button input[type="checkbox"] {
  display: none;
}

.location-button.checked {
  border-color: #000;
  border-width: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  opacity: 1;
}

.location-button:not(.checked) {
  opacity: 0.6;
  filter: grayscale(20%);
}

/* Chart Container */
.chart-container {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.wegweiser {
  width: 100%;
  margin-top: 80px;
}

.wegweiser a {
 display: flex;
 justify-content: center;
}

.wegweiser img {
  max-width: 180px;
  height: auto;
  display: block;
}