/* Grundstil */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #000;
    color: #c2be93;
  }
  
  /* Sprachauswahl-Overlay */
  #languageSelection {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #languageSelection h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #c2be93;
  }
  .language-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .language-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .language-option:hover {
    transform: scale(1.1);
  }
  .language-option img {
    width: 50px;
    height: auto;
    margin-bottom: 5px;
    border: 1px solid #c2be93;
    border-radius: 3px;
  }
  .language-option span {
    font-size: 1em;
    color: #c2be93;
  }
  
/* Spielanleitungs-Overlay */
#instructionOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2900;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  
  .instruction-content {
    background: #1a1a1a;
    padding: 20px 30px;
    border: 2px solid #c2be93;
    border-radius: 5px;
    text-align: center;
    width: 90%;           /* Passt sich der Bildschirmbreite an */
    max-width: 400px;     /* Maximale Breite, damit es schmal bleibt */
  }
  .instruction-content h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #c2be93;
  }
  .instruction-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #c2be93;
  }
  .instruction-content button {
    padding: 10px 20px;
    font-size: 1.2em;
    background: #c2be93;
    color: #000;
    border: 1px solid #c2be93;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
  }
  .instruction-content button:hover {
    background: #000;
    color: #c2be93;
  }
  
  /* Städteauswahl-Overlay */
  #citySelection {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2800;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  #citySelection h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #c2be93;
  }
  .city-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
  }
  .city-option {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #c2be93;
  }
  .city-option input {
    transform: scale(1.2);
  }
  .city-buttons {
    display: flex;
    gap: 20px;
  }
  .city-buttons button {
    padding: 10px 20px;
    font-size: 1.2em;
    background: #c2be93;
    color: #000;
    border: 1px solid #c2be93;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
  }
  .city-buttons button:hover {
    background: #000;
    color: #c2be93;
  }
  
  /* Fixierter Statusbereich */
  #statusHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    padding: 10px 20px;
    z-index: 1000;
    text-align: right;
    box-shadow: 0 2px 8px rgba(194,190,147,0.5);
  }
  #statusInfo span {
    font-size: 1.2em;
    margin-left: 10px;
    padding: 5px 10px;
    background: #000;
    border: 1px solid #c2be93;
    border-radius: 5px;
  }
  
  /* Hauptinhalt */
  #mainContent {
    margin-top: 80px;
    padding: 0 20px;
  }
  
  /* Aufgabenbereich */
  #taskHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #c2be93;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }
  #taskLeft {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  #taskLeft img {
    width: 80px;
    border: 1px solid #c2be93;
    border-radius: 3px;
  }
  #instruction {
    font-size: 2em;
    margin: 0;
    color: #c2be93;
  }
  #startBtn {
    background: #c2be93;
    color: #000;
    border: 1px solid #c2be93;
    padding: 24px 40px;
    font-size: 2.4em;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.3s, color 0.3s;
  }
  #startBtn:hover {
    background: #000;
    color: #c2be93;
  }
  
  /* Gridbereich */
  #gridContainer {
    margin-bottom: 20px;
  }
  #grid {
    display: grid;
    grid-gap: 5px;
  }
  .grid-cell {
    border: 1px solid #c2be93;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }
  .grid-cell img {
    width: 100%;
    display: block;
    object-fit: cover;
  }
  .found {
    opacity: 0.5;
    pointer-events: none;
  }
  
  /* Ergebnis-Popup */
  #resultPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
  }
  #resultPopup.hidden {
    display: none;
  }
  .popup-content {
    background: #1a1a1a;
    padding: 20px 30px;
    border: 2px solid #c2be93;
    border-radius: 5px;
    text-align: center;
  }
  .popup-content .status-message {
    margin-bottom: 20px;
  }
  .popup-content button {
    padding: 10px 20px;
    font-size: 1.2em;
    background: #c2be93;
    color: #000;
    border: 1px solid #c2be93;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
  }
  .popup-content button:hover {
    background: #000;
    color: #c2be93;
  }
  .error-row {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
  }
  .status-message {
    padding: 15px;
    border: 2px solid #c2be93;
    border-radius: 5px;
    background: #c2be93;
    color: #000;
    font-size: 1.2em;
  }
  .status-success {
    box-shadow: 0 0 10px #c2be93;
  }
  .status-failure {
    border-style: dashed;
  }
  .popup-wrong-image {
    max-width: 200px;
    border: 2px solid #c2be93;
    border-radius: 3px;
  }
  