@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&family=Open+Sans:wght@400;600&display=swap');

body {
    margin: 0;
    padding: 0; 
    font-family: 'Open Sans', sans-serif;
    background-color: #000;
    color: #C8B568;
}

header {
    background: #000;
    border-bottom: 1px solid #C0C0C0;
    position: sticky;
    top: 0;
    z-index: 10;
}

a {
    text-decoration: none;
    color: #C8B568;
}

h1, h2, h3 {
    color: #C8B568;
    margin-bottom: 1rem;
}

p {
    color: #d8cfa2;
}

/* ==== NAVIGATION NEU ==== */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #C0C0C0;
    background: #000;
    position: static; 
    z-index: 100;
}

.nav-left {
    justify-self: start;
}

.nav-center {
    justify-self: center;
}

.nav-right {
    justify-self: end;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #C8B568;
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.logo:hover {
    color: #D6EAF8;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: #C8B568;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, border-color 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.nav-links a:hover {
    color: #D6EAF8;
    border-color: #D6EAF8;
}

.active {
    border-color: #D6EAF8;
}

.btn-contact {
    background: none;
    border: 2px solid #C8B568;
    color: #C8B568;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.btn-contact:hover {
    background: #C8B568;
    color: #000;
}

main {
    padding: 2rem;
}

.hero{
    text-align: center;
    padding: 4rem 1rem;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
}

.divider {
    border: 0;
    height: 1px;
    background: #C0C0C0;
    width: 80%;
    margin: 2rem auto;
}

.games-preview {
    text-align: center;
    padding: 2rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* === Game Cards allgemein === */
.game-card {
    position: relative; /* Wichtig: damit das Overlay sich auf diese Card bezieht */
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.game-card img {
    width: 100%;
    height: 200px;
    border-radius: 6px;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
}

.btn-play, .btn-locked {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-play {
    background: #C8B568;
    color: #000;
}

.btn-play:hover {
    background: #D6EAF8;
}

.btn-locked {
    background: #444;
    color: #999;
    cursor: not-allowed;
}

/* === Gesperrtes Spiel === */
.locked .locked-overlay {
    position: relative;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2; /* Über Inhalt */
    border-radius: 12px;
    pointer-events: none; /* Klicks gehen durch, falls nötig */
}

.locked-text {
    font-size: 1.2rem;
    color: gold;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    animation: pulse 1.5s infinite ease-in-out;
}

.btn-popup {
    background: #D6EAF8;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-popup:hover {
    background: #C0C0C0;
}

/* sanftes Blinken */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Gesperrte Buttons deaktivieren */
.btn-locked {
    background: #555;
    color: #aaa;
    border: none;
    cursor: not-allowed;
}

/* PopUp-Stile */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #111;
    border: 1px solid #C0C0C0;
    border-radius: 10px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    color: #C8B568;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #D6EAF8;
    font-size: 1.5rem;
    cursor: pointer;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #000;
    border: 1px solid #C0C0C0;
    color: #C8B568;
}

.contact-form button {
    background: #D6EAF8;
    color: #000;
    border: none;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    border-radius: 5px;
}

/* Content Section unterhalb der Game-Preview */
#content-section {
    background-color: #0a0a0a;
    color: #C8B568;
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(192,192,192,0.2);
}

#content-section .content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

#content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: #C8B568;
}

#content-section p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #d8cfa2;
}

/* AdSense Platzhalter */
.adsense-placeholder {
    background: rgba(192,192,192,0.1);
    border: 1px dashed silver;
    color: silver;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 8px;
}

/* === Ad Section === */
.ad-section {
    padding: 3rem 2rem;
    text-align: center;
    background: #080808;
    color: #C8B568;
}

.ad-section .ad-placeholder {
    margin: 2rem auto;
    border: 2px dashed #444;
    padding: 2rem;
    width: 80%;
    color: #777;
    border-radius: 10px;
} 

/* === CTA Games Section === */
.cta-games {
  background: #000;
  color: #C8B568;
  padding: 4rem 2rem;
  line-height: 1.7;
}

.cta-games .container {
  max-width: 900px;
  margin: 0 auto;
}

.cta-games h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #C8B568;
}

.cta-games h3 {
  margin-top: 2rem;
  color: #C8B568;
  font-size: 1.5rem;
}

.cta-games p {
  color: #d4d4d4;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.cta-games .inline-link {
  color: #C8B568;
  text-decoration: none;
  transition: color 0.3s;
}

.cta-games .inline-link:hover {
  color: silver;
}

.cta-button-container {
  text-align: center;
  margin-top: 3rem;
}

.cta-button {
  display: inline-block;
  background: #C8B568;
  color: #000;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: silver;
  color: #000;
  transform: translateY(-3px);
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.accordion details {
    background: #111;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion summary {
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    list-style: none;
    position: relative;
    background: linear-gradient(90deg, #181818, #101010);
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.accordion details[open] summary::after {
    content: "–";
}

.accordion-content {
    padding: 1.5rem;
    line-height: 1.7;
    color: #ddd;
    margin: 8px;
}

.accordion-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.accordion-content li {
    margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  background-color: #000000;
  color: #C8B568;
  padding: 3rem 1.5rem 1.5rem;
  font-family: system-ui, "Segoe UI", sans-serif;
}

.site-footer a {
  color: #C8B568;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* =========================
   Footer Grid (Desktop)
   ========================= */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* =========================
   Footer Columns
   ========================= */

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #C8B568;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col li:last-child {
  margin-bottom: 0;
}

/* =========================
   Brand / Logo Column
   ========================= */

.site-footer .footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-footer .footer-logo img {
  max-width: 90px;        /* harte Begrenzung */
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* =========================
   Footer Bottom
   ========================= */

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: #9aa0aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        position: static;
    }
    .navbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
        padding: 1rem 0;
    }

    .nav-left,
    .nav-center,
    .nav-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        border-top: 1px solid rgba(200,181,104,0.3);
    }

    .nav-links a:last-child {
        border-bottom: 1px solid rgba(200,181,104,0.3);
    }

    /* Content Section */

    #content-section {
        padding: 2rem 1rem;
    }

    #content-section h2 {
        font-size: 1.4rem;
    }

    /* Footer Bereich */
    .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    }

    .footer-brand {
        margin-bottom: 1rem;
    }

    .footer-col h4 {
        margin-bottom: 0.75rem;
    }

    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col li {
        margin-bottom: 0.5rem;
    }

}