/*
Theme Name: RisGames
Theme URI: https://risgames.com
Author: RisGames
Description: Theme fuer RisGames-Spiele (Whitechapel 1888 u.a.)
Version: 1.2
Text Domain: risgames
*/

:root{
  --kohle: #1B1712;
  --gold: #C9A227;
  --gruen: #3ddc44;
  --blutrot: #6E1F24;
  --nebel: #4A4F55;
  --pergament: #E8DCC0;
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  margin: 0;
}

body{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--kohle);
  color: var(--pergament);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
}

.navbar{ flex: 2 0 auto; }
.site-main{ flex: 6 0 auto; display: flex; flex-direction: column; }
.site-footer{ flex: 2 0 auto; }

a{ color: var(--gold); }
a:hover{ color: var(--gruen); text-decoration: none; }

/* ---------- Navbar ---------- */
.navbar{
  background: var(--kohle);
  border-bottom: 1px solid rgba(232,220,192,0.15);
  padding: 14px 0;
}
.navbar-brand{
  color: var(--pergament) !important;
  font-weight: bold;
  font-size: 18px;
}
.navbar-nav{
  gap: 6px;
}
.navbar-nav .nav-link,
.navbar-nav > li > a{
  color: rgba(232,220,192,0.8) !important;
  font-size: 14px;
  padding: 8px 14px !important;
  text-decoration: none !important;
}
.navbar-nav .nav-link:hover,
.navbar-nav > li > a:hover{ color: var(--gruen) !important; }
.navbar-toggler{ border-color: rgba(232,220,192,0.3); }
.navbar-toggler-icon{ filter: invert(1); }

/* ---------- Sprachumschalter (WP Multilang) ---------- */
.wpm-switcher-wrap{
  margin: 0 !important;
  padding: 0 !important;
}
.wpm-language-switcher{
  list-style: none;
  margin: 0;
  padding: 0;
}
.wpm-language-switcher .wpm-item-language-main{
  position: relative;
}
.wpm-language-switcher .wpm-item-language-main > span{
  display: block;
  color: rgba(232,220,192,0.8);
  font-size: 14px;
  padding: 8px 14px;
  line-height: 1.4;
  margin: 0;
  cursor: pointer;
}
.wpm-language-switcher .wpm-language-dropdown{
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--kohle);
  border: 1px solid rgba(232,220,192,0.2);
  border-radius: 4px;
  min-width: 110px;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.wpm-language-switcher .wpm-item-language-main:hover .wpm-language-dropdown{ display: block; }
.wpm-language-switcher .wpm-language-dropdown li a{
  display: block;
  padding: 6px 14px;
  color: rgba(232,220,192,0.8) !important;
  text-decoration: none !important;
  font-size: 14px;
}
.wpm-language-switcher .wpm-language-dropdown li a:hover{ color: var(--gruen) !important; background: rgba(255,255,255,0.05); }

/* Desktop (>=992px, Bootstrap's lg-Breakpoint): Menue und Umschalter nebeneinander */
@media (min-width: 992px){
  #mainNav{ display: flex; align-items: center; }
  .wpm-switcher-wrap{ margin-left: 12px !important; }
  .wpm-language-switcher{ display: flex; align-items: center; }
  .wpm-language-switcher .wpm-item-language-main{ display: flex; align-items: center; }
}

/* Mobil (<992px): alles gestapelt, exakt gleiche Einrueckung wie die Menuepunkte */
@media (max-width: 991.98px){
  .wpm-switcher-wrap{ width: 100%; }
  .wpm-language-switcher .wpm-item-language-main > span{ padding: 8px 14px; }
  .wpm-language-switcher .wpm-language-dropdown{ position: static; border: none; padding-left: 14px; }
}

/* ---------- Hero (Spiel-Detailseite) ---------- */
.hero{
  padding: 90px 0 70px;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero .hero-inner{
  padding-right: 20px;
}
.hero h1{
  font-size: 34px;
  font-weight: bold;
  color: var(--pergament);
  margin-bottom: 14px;
}
.hero .subtitle{
  font-size: 17px;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero .content{
  font-size: 15px;
  color: rgba(232,220,192,0.85);
  margin-bottom: 26px;
}
.hero .content p{ margin-bottom: 14px; }

.hero-caption{
  background: var(--kohle);
  color: rgba(232,220,192,0.45);
}

.btn-gold{
  display: inline-block;
  background: var(--gold);
  color: var(--kohle) !important;
  font-weight: bold;
  padding: 12px 26px;
  border-radius: 6px;
  border: none;
  font-family: Georgia, serif;
  text-decoration: none !important;
}
.btn-gold:hover{ background: var(--gruen); }

/* ---------- Newsletter-Karte (Pergament) ---------- */
.card-light{
  background: var(--pergament);
  color: var(--kohle);
  max-width: 460px;
  padding: 28px 30px;
  border-radius: 10px;
  margin: -20px auto 50px 0;
  position: relative;
  z-index: 2;
}
.card-light h2{ font-size: 20px; margin-bottom: 8px; }
.card-light p{ color: var(--nebel); font-size: 14px; margin-bottom: 18px; }

.newsletter-form{ display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"]{
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--nebel);
  border-radius: 6px;
  font-family: Georgia, serif;
}
.newsletter-form button{
  background: var(--blutrot);
  color: var(--pergament);
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
.newsletter-form button:hover{ background: #591a1e; }
.newsletter-note{ font-size: 12px; color: var(--nebel); margin-top: 10px; }

/* ---------- Studio-Startseite ---------- */
.studio-hero{
  text-align: center;
  padding: 60px 20px 20px;
}
.studio-hero img{ height: 90px; margin-bottom: 16px; }
.studio-hero h1{ font-weight: bold; font-size: 36px; color: var(--pergament); }
.studio-hero p{ color: rgba(232,220,192,0.8); font-size: 16px; }

/* ---------- Spiele-Karten (Bootstrap .card ueberschrieben) ---------- */
.game-card{
  background: rgba(232,220,192,0.05);
  border: 1px solid rgba(232,220,192,0.15);
  border-radius: 10px;
  color: var(--pergament);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.game-card:hover{ border-color: var(--gruen); }
.game-card .card-img-top{ height: 160px; object-fit: cover; }
.game-card .card-title{ color: var(--pergament); font-size: 18px; }
.game-card .card-text{ color: rgba(232,220,192,0.7); font-size: 14px; }
.games-empty{ color: rgba(232,220,192,0.6); text-align: center; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--kohle);
  border-top: 1px solid rgba(232,220,192,0.15);
  font-size: 13px;
  color: rgba(232,220,192,0.6);
  padding: 24px 0;
}
.site-footer .nav{
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .nav li{ margin: 0; }
.site-footer .nav a{
  color: rgba(232,220,192,0.6) !important;
  text-decoration: none !important;
}
.site-footer .nav a:hover{ color: var(--gruen) !important; }

/* ---------- Generic pages (Impressum, Datenschutz, Ueber uns) ---------- */
.site-content{
  max-width: 700px;
  margin: 0 auto;
  padding: 50px 24px;
}

.wp-block-mailchimp-mailchimp .mc_container{
  background: var(--pergament);
  color: var(--kohle);
  max-width: 460px;
  padding: 28px 30px;
  border-radius: 10px;
  margin: 30px auto 50px 0;
}
.wp-block-mailchimp-mailchimp .mc_custom_border_hdr{
  font-size: 20px; margin: 0 0 8px; border: none; padding: 0;
  color: var(--kohle); font-family: Georgia, serif;
}
.wp-block-mailchimp-mailchimp .mc_subheader h3{
  font-size: 14px; font-weight: normal; color: var(--nebel); margin: 0 0 18px;
}
.wp-block-mailchimp-mailchimp .mc_form_inside{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.wp-block-mailchimp-mailchimp .mc_unsub_link{
  flex: 0 0 100%;
  font-size: 11px; color: var(--nebel); margin-top: 4px;
}
.wp-block-mailchimp-mailchimp .mc_merge_var{
  flex: 1 1 180px;
  min-width: 180px;
  margin: 0;
}
.wp-block-mailchimp-mailchimp .mc_var_label{
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}
.wp-block-mailchimp-mailchimp .mc_input{
  width: 100%; padding: 10px 12px; border: 1px solid var(--nebel);
  border-radius: 6px; font-family: Georgia, serif; font-size: 15px; box-sizing: border-box;
}
.wp-block-mailchimp-mailchimp .mc_signup_submit{
  flex: 0 0 auto;
  margin: 0;
}
.wp-block-mailchimp-mailchimp .mc_signup_submit_button{
  background: var(--blutrot);
  color: var(--pergament);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-family: Georgia, serif;
  cursor: pointer;
  padding: 12px 28px;
  min-width: 130px;
  font-size: 15px;
  margin: 0;
  white-space: nowrap;
}
.wp-block-mailchimp-mailchimp .mc_signup_submit_button:hover{ background: #591a1e; }
.wp-block-mailchimp-mailchimp .mc_message_wrapper:empty{ display: none; }
.wp-block-mailchimp-mailchimp .mc_message_wrapper{ color: #b33; font-size: 13px; }

@media (max-width: 767px){
  .hero{ padding: 60px 0 40px; text-align: center; min-height: auto; }
  .hero .hero-inner{ max-width: 100%; }
  .card-light{ margin: 20px auto 30px; }
  .studio-hero h1{ font-size: 28px; }
}
