
html[lang="de"] :lang(en) {
  display: none !important;
}

html[lang="en"] :lang(de) {
  display: none !important;
}

body {
  font-family: system-ui, Arial, sans-serif;
  margin: 0;
  background: #f8f9fa;
  color: #333;
}

header {
  background-color: #004080;
  color: white;
  padding: 1.5rem;
}

header h1 {
  margin: 0 0 0.5rem 0;
}

header p {
  max-width: 800px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

a {
  color: #3887d9;
  text-decoration: none;
}

header a {
  color: #7fb6ff;
}

a:hover {
  text-decoration: underline;
}

@media (min-width: 720px) {
  #controls {
    position: sticky;
    top: 0;
  }
}

.option-icons {
  position: absolute;
  right: 0;
  top: 0;
  margin: 10px;
}

.option-icon {
  cursor: pointer;
  border: none;
  background: none;
  color: #7fb6ff;
  opacity: 0.7;
  font-size: 1rem;
}

.option-icon:hover {
  opacity: 1;
}

#controls, #countrySelect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #ffffff;
  border-bottom: 1px solid #ccc;
}

#yearSelect {
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
}

#countryList {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background-color: #f0f0f0;
  opacity: 0.7;
  padding: 0.4rem 0.6rem;
  transition: background-color 0.2s, opacity 0.2s;
  user-select: none;
}

.country-item img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
}

.country-item:hover {
  opacity: 1;
}

.country-item.active {
  opacity: 1;
  background-color: #e3f2fd;
  border-color: #2196f3;
}

#calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1rem;
  justify-items: center;
}

.month {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 340px;
  padding: 0.5rem;
  box-sizing: border-box;
}

.month h3 {
  text-align: center;
  margin: 0.5rem 0;
  color: #004080;
}

table {
  width: 100%;
  table-layout: fixed;
}

th, td {
  text-align: center;
  width: 14.28%;
  height: 24px;
  font-size: 0.9rem;
}

td {
  cursor: default;
  user-select: none;
  transition: background-color 0.3s;
}

td[data-code]:hover {
  outline: 2px solid #004080;
}

.tooltip {
  position: absolute;
  background: #333;
  color: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: pre-line;
  z-index: 10;
}

.tooltip .tooltip-title {
  font-weight: bold;
  font-size: 1rem;
}

.tooltip .tooltip-info {
  opacity: 0.7;
}

.tooltip .tooltip-country {
  font-weight: bold;
}

.warning {
  font-weight: bold;
  color: #ffc60c;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #f0f0f0;
  font-size: 0.85rem;
  color: #666;
}








@media (prefers-color-scheme: dark) {
  body {
    background: #1a1d1f;
    color: #e4e6e7;
  }

  header {
    background-color: #003060;
    color: #ffffff;
  }

  a {
    color: #7fb6ff;
  }

  #controls, #countrySelect {
    background: #272b2e;
    border-bottom: 1px solid #444;
  }

  #yearSelect {
    border: 1px solid #555;
    background: #1e1f21;
    color: #ffffff;
  }

  .country-item {
    background-color: #2f3336;
    border-color: #555;
    color: #e4e6e7;
  }

  .country-item.active {
    background-color: #003c7a;
    border-color: #4aa3ff;
    color: #ffffff;
  }

  .month {
    background: #222628;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  }

  .month h3 {
    color: #7fb6ff;
  }

  td[data-code]:hover {
    outline: 2px solid #96c7ff;
  }

  .tooltip {
    background: #333;
    color: #fff;
  }

  footer {
    background: #272b2e;
    color: #aaa;
  }
}



