html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:#0b0b0d;
  color:#e6eef6;
}

.header{
  display:flex;
  justify-content:space-between;
  padding:20px;
  background:#111;
  border-bottom:1px solid #222;
}

.logo{
  width:55px;height:55px;
  background:#d69f2f;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
  color:#000;
  border-radius:8px;
}

.nav-btn{
  background:#222;
  color:#fff;
  border:1px solid #444;
  padding:8px 14px;
  border-radius:6px;
  cursor:pointer;
}

.nav-btn:hover{background:#333;}
.nav-btn.active{background:#d69f2f;color:#000;}

.page{padding:20px;}
.hidden{display:none;}
.container{max-width:900px;margin:auto;}
a{color:#d69f2f;}

.games-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gamesGrid{
  display:grid;
  gap:12px;
}

.game-card{
  background:#141820;
  padding:12px;
  border-radius:8px;
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid #222;
}

.game-thumb{
  width:90px;
  height:70px;
  border-radius:8px;
  object-fit:cover;
}

.game-info {
  margin-top: 0.5em;
  font-size: 0.95em;
  color: #e6eef6;
  background: #141820;
  border-radius: 6px;
  padding: 0.5em 0.8em;
}

.btn{
  background:#d69f2f;
  color:#000;
  border:none;
  padding:10px 16px;
  border-radius:8px;
  cursor:pointer;
  margin-top:10px;
  font-weight:bold;
}

.btn:hover{background:#b88422;}

.accordion{
  border:1px solid #222;
  border-radius:8px;
  overflow:hidden;
  margin-top:20px;
}

.hint{border-bottom:1px solid #222;}

.hint button{
  width:100%;
  padding:16px;
  background:#1a1f2a;
  color:#fff;
  text-align:left;
  border:none;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  font-size:16px;
}

.hint button:hover{background:#2a3140;}
.hint.open button{background:#2e3848;}

.hint .content{
  display:none;
  padding:16px;
  gap:16px;
  background:#10141b;
  flex-wrap: wrap;
}

.hint.open .content{
  display:flex;
  flex-wrap: wrap;
}

.photo img {
  width:260px;
  height:auto;
  border-radius:8px;
  object-fit:cover;
  cursor:pointer;
}

.game-thumb {
  width: 100%;
  height: auto;
  max-width: 200px;
}

#gameTitleImage {
  width: var(--title-image-width, 100%);
  height: auto;
  max-width: var(--title-image-max-width, 400px);
  max-height: var(--title-image-max-height, 300px);
}

#imgModal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

#imgModal img{
  max-width:90%;
  max-height:90%;
  border-radius:12px;
  box-shadow:0 0 15px #000;
  cursor:pointer;
}

#imgModal.closeArea{
  cursor:pointer;
}

.multicolor-title span{
  font-weight:inherit;
}

.c-red{color:#ff3b3b;}
.c-blue{color:#3b6cff;}
.c-yellow{color:#ffd93b;}
.c-green{color:#4caf50;}
.c-lightblue{color:#5ac8fa;}
.multicolor-title{color:#ffffff;}

/* --- Kontaktformular --- */
.form{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:20px;
}

.form input,
.form textarea{
  width:100%;
  padding:14px;
  border-radius:8px;
  border:1px solid #333;
  background:#1a1f2a;
  color:#e6eef6;
  font-size:16px;
  box-sizing:border-box;
}

.form input::placeholder,
.form textarea::placeholder{
  color:#7a8699;
}

.form input:focus,
.form textarea:focus{
  border-color:#d69f2f;
  outline:none;
  background:#222a38;
  box-shadow:0 0 5px rgba(214,159,47,0.4);
}

.form .btn{
  background:#d69f2f;
  color:#000;
  font-size:17px;
  padding:14px;
  font-weight:bold;
}

.form .btn:hover{
  background:#b88422;
}


#passwordGate {
  margin-top: 30px;
}

input[type="password"] {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1a1f2a;
  color: #e6eef6;
  font-size: 16px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

input[type="password"]::placeholder {
  color: #7a8699;
}

input[type="password"]:focus {
  border-color: #d69f2f;
  outline: none;
  background: #222a38;
  box-shadow: 0 0 5px rgba(214, 159, 47, 0.4);
}

.footer{
  margin-top:40px;
  padding:20px;
  text-align:center;
  color:#888;
  border-top:1px solid #222;
  background:#111;
}

.game-detail-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.game-detail-layout img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.game-detail-layout p {
  flex: 1;
  min-width: 250px;
}

.prices-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 20px;
}

.price-card {
  background: #141820;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #222;
}

.price-card h3 {
  color: #d69f2f;
  margin-top: 0;
  margin-bottom: 12px;
}

.price-card p {
  margin: 0;
  line-height: 1.8;
}


#additionalImagesContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

#additionalImagesContainer img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
}


@media (max-width: 768px) {
  .game-detail-layout {
    flex-direction: column;
  }
  
  .game-detail-layout img {
    max-width: 100%;
  }
  
  .header {
    flex-direction: column;
    gap: 15px;
  }
  
  .brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .container {
    padding: 10px;
  }
  
  .game-thumb {
    max-width: 100%;
  }
  
  #gameTitleImage {
    max-width: 100%;
  }
  
  #additionalImagesContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
  }
  
  #additionalImagesContainer img {
    width: 100%;
    height: auto;
  }
  
  .game-card {
    flex-direction: row;
    padding: 10px;
  }
  
  .game-card img {
    width: 80px;
    height: 60px;
    min-width: 80px;
  }
  
  .game-card h3 {
    font-size: 1rem;
  }
  
  .game-card .muted {
    font-size: 0.85rem;
  }
  
  .hint .content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .photo {
    width: 100%;
  }
  
  .photo img {
    width: 100%;
    max-width: 100%;
  }
  
  .hint .content p {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .multicolor-title {
    font-size: 1.5rem;
  }
  
  .header h1 {
    font-size: 1.2rem;
  }
  
  .game-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .game-card img {
    width: 100%;
    height: auto;
    max-width: 200px;
    min-width: unset;
  }
  
  .game-card h3 {
    margin-top: 10px;
    font-size: 1.1rem;
  }
  
  .photo img {
    max-width: 100%;
  }
}
