body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: gray;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.modal-open {
    overflow: hidden;
  }

  .wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
  
  .wrapper:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(#A52A2A, #A52A2A, #FFA500, #FFA500);
    background-size: 100% 50%;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }

  .left-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to bottom, #A52A2A, #FFA500);
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }
  
  .right-side {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to bottom left, #111111 50%, #333333 50%);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
  }

  .menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
	  font-size: clamp(0.8rem, 1.8vh, 1.2rem);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    z-index: 9999;
  }
  
  .menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  .menu li {
    display: inline;
  }
  
  .menu li.separator {
    margin-left: 10px;
    margin-right: 10px;
    border-right: 1px solid white;
  }
  
  .menu a {
    text-decoration: none;
    color: white;
    padding: 5px;
  }
  
  .menu a:hover {
    color: orange;
  }

.rounded-div {
    width: 11vh;
    height: 11vh;
    margin-left: 7vh;
    margin-right: 7vh;
    margin-top: 1vh;
    margin-bottom: 2vh;
    background-color: rgb(21, 149, 228);
    border-radius: 0.7vh;
    z-index: 2;
}

.rounded-div.is-clickable {
  cursor: pointer;
}

.rounded-div.is-clickable:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

  #typewriter-header {
    position: absolute;
    top: 0;
    left: 70px;   /*wird überschrieben bei Mobile */
    width: calc(100% - 75px);   /*wird überschrieben bei Mobile */
    padding-left: 5px;
    padding-top: 1.2vh;
    padding-bottom: 1.2vh;
    background-color: rgba(0, 0, 0, 0.6);
    font-family: monospace;
	  font-size: clamp(0.8rem, 2.8vh, 1.5rem);
    color: white;
    border-color: white;
    border-width: 1px;
    text-align: center;
  }

  #head-container {
    position: absolute;
    top: 11vh;
    left: 10%;
    width: 80%;
    display: none;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
  }

  #additional-container {
    position: absolute;
    top: 26vh;
    left: 10%;
    width: 80%;
    display: none;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
  }
  
  .centered-image {
    text-align: center;
  }
  
  .centered-image img {
    display: inline-block;
    opacity: none;
    background-color: black;
    opacity: inherit;
  }

  h3.h3div{
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1.6vh;
    margin: 0;
    padding: 5px;
    pointer-events: none;
  }

  h2.h2div{
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1.9vh;
    margin: 0;
    padding: 4px;
    pointer-events: none;
  }

  h2.h2head{
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 2.5vh;
    font-size: clamp(0.8rem, 2.5vh, 1.2rem);
    color: black;
    margin: 0;
    padding: 5px;
    text-align: center;
  }

  p.pdiv{
      font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
      font-size: 1.5vh;
      margin: 0;
      padding: 5px;
      pointer-events: none;
  }

  .imgdiv{
    padding-left: 2vh;
    padding-top: 2vh;
    width: 4vh;
    height: 4vh;
    pointer-events: none;
  }

 /*das Menü */
/* Ihre vorhandenen CSS-Stile hier */

/* Menü-Icon-Stile */
.menu-icon {
  position: fixed;
  top: 5px;
  left: 10px;
  cursor: pointer;
  z-index: 9998;
}

.barwhite {
  width: 50px;
  height:9px;
  border-radius: 2px;
  background-color: white;
}

.barwhitemenu {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 0.7rem;
  width: 50px;
  height: 15px;
  border-radius: 0;
  background-color: white;
  text-align: center;
}

.bargray {
  width: 50px;
  height: 5px;
  border-radius: 2px;
  background-color: rgba(128, 128, 128, 0.5);
}

.menu-container {
  position: fixed;
  top: 10vh;
  left: -300px; /* Menü ist standardmäßig ausgeblendet */
  width: 300px;
  /*height: 40%;*/
  background-color: lightyellow;
  border-radius: 10px;
  transition: left 0.3s ease-in-out;
  z-index: 9999;
}

.menu-content {
  padding: 20px;
}

.menu-content ul {
  list-style-type: none;
  padding: 0;
}

.menu-content li {
  margin-bottom: 10px;
}

.menu-content a {
  text-decoration: none;
  color: black;
  font-size: 18px;
}

li.li_erste{
  margin-left: 10px;
}

li.li_zweite{
  margin-left: 20px;
}

li.li_head{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: clamp(0.6rem, 2vh, 3rem);
  color:black;
}

.menu-container a {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: clamp(0.8rem, 1.6vh, 2rem);
  text-decoration: none;
  color: black;
  padding: 5px;
}

.menu-container a:hover {
  color: orange;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 3vh 3vw;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 10000;
}

.modal-overlay.is-visible {
  display: flex;
}

.modal-window {
  position: relative;
  width: min(900px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.modal-header {
  padding: 20px 55px 10px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.modal-title {
  margin: 0;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: clamp(1.2rem, 2.8vh, 1.8rem);
}

.modal-content {
  min-height: 180px;
  padding: 24px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #333333;
}

.modal-close:hover {
  color: #A52A2A;
}

.modal-loading,
.modal-error {
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 1.5vh 1.5vw;
    align-items: flex-start;
  }

  .modal-window {
    width: 100%;
    margin-top: 2vh;
    max-height: 94vh;
  }

  .modal-header {
    padding-right: 48px;
  }

  .modal-content {
    padding: 18px;
  }
}

.capital-modal {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.capital-intro p {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
  color: #333333;
}

.capital-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.capital-stat-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(165, 42, 42, 0.08), rgba(255, 165, 0, 0.14));
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.capital-stat-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666666;
}

.capital-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: bold;
  color: #222222;
}

.capital-list {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.capital-list-header,
.capital-list-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 16px;
  padding: 12px 16px;
  align-items: center;
}

.capital-list-header {
  background-color: rgba(0, 0, 0, 0.08);
  font-weight: bold;
  color: #222222;
}

.capital-list-row {
  background-color: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.capital-list-row:nth-child(even) {
  background-color: rgba(245, 245, 245, 0.92);
}

@media (max-width: 640px) {
  .capital-list-header,
  .capital-list-row {
    grid-template-columns: 1.5fr 1.5fr 0.8fr;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .capital-stat-value {
    font-size: 1.15rem;
  }
}
