/* Custom fonts */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/open-sans-v43-latin-regular.woff2') format('woff2'),
       url('./fonts/open-sans-v43-latin-regular.ttf') format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/roboto-slab-v35-latin-regular.woff2') format('woff2'),
       url('./fonts/roboto-slab-v35-latin-regular.ttf') format('truetype');
}
@font-face {
  font-display: swap;
  font-family: 'Mukta Mahee';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/mukta-mahee-v18-latin-regular.woff2') format('woff2'),
       url('./fonts/mukta-mahee-v18-latin-regular.ttf') format('truetype');
}

/* ========== RESET & BASICS ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
}

img {
  max-width: max-content;
}

body.home {
  background-color: #fffcfa;
}

h1, h2, h3 {
  font-family: 'Roboto Slab';
  /* font-family: 'Mukta Mahee'; */
  font-weight: normal;
}

.content, .dark-section, .overview, .header-inner, .game-header {
  max-width: 1140px;
}

.dark-section, .site-header {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.fancybox {
    background-color: #063142;
    padding: 20px;
    padding-bottom: 12px;
    color: white;
    border-radius: 10px;
}

.fancyhighlight {
  display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    margin-bottom: 20px;
    background-color: #333;
    color: white;
    font-weight: bold;
}

.orange, .dark-section.orange, .titlebox.orange, .fancybox.orange {
    background-color: #EF7D1B;
}

.darkorange, .dark-section.darkorange, .titlebox.darkorange, .fancybox.darkorange {
    background-color: #903E14;
}

.dark-section.lightblue, .titlebox.lightblue, .fancybox.lightblue {
    background-color: #32809C;
    background: linear-gradient(to bottom right, #32809C 0%, #054059 90%);
}

.dark-section.darkblue, .titlebox.darkblue, .fancybox.darkblue {
    background-color: #083142;
}

.dark-section.darkblue {
  background: linear-gradient(to bottom right, #021a24 0%, #054059 90%);
}

.fancybox h3 {
  font-family: 'Open Sans', sans-serif;
}

.quote {
    font-style: italic;
    font-size: 1.2rem;
}

.quoted-person {
  font-size: 14px;
}
.quoted-name {
    font-weight: bold;
}

.big-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    text-align: center;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #EF7D1B;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  cursor:pointer;
  border: 0;
}

.centered {
  text-align: center;
}

/* ========== HEADER & NAV ========== */
.site-header {
  display: flex;
  background-color: #333;
  /* Wir nutzen die order-Eigenschaft, damit das Menü links und das Logo rechts landet */
  position: relative;
}

.header-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0px auto; /* zentriert */
}

/* Reihenfolge: 1 = Menü, 2 = Logo, 3 = Hamburger-Button */
.main-nav {
  order: 2;
}
.logo {
  order: 3;
  margin-left: auto; /* Schiebt das Logo nach rechts */
}
.nav-toggle {
  order: 1;
  margin-left: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: none; /* wird für Mobile eingeblendet */
  flex-direction: column;
  justify-content: center;
}

/* Logo */
.logo img {
  height: 40px;
  width: auto;
  margin-top: 5px;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li a {
  padding: 15px 20px;
  display: inline-block;
}

.main-nav li:hover, .main-nav li.active {
  background-color: #ccc;
}

.main-nav li:hover a, .main-nav li.active a {
  color: #000;
}

.main-nav li + li {
  margin-left: 10px;
}
.main-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}

/* Hamburger-Toggle-Linien */
.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* MOBILE NAVIGATION */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex; /* Button sichtbar machen */
  }

  /* Standardzustand: Menü ist ausgeblendet/rechts außerhalb */
  .main-nav ul {
    position: absolute;
    top: 60px;
    left: 0; /* Menü nach links statt rechts */
    background-color: #333;
    flex-direction: column;
    width: 200px;
    transform: translateX(-100%); /* Versteckt das Menü links */
    transition: transform 0.3s ease-in-out;
    padding: 1rem;
    z-index: 999;
  }

  /* Bei Klick auf das Burger-Menü: Menü reinfahren */
  .main-nav ul.open {
    transform: translateX(0);
  }
}

/* Animation Hamburger -> Kreuz */
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== INTRO SECTION ========== */
.content {
  margin: 2rem auto;
  margin-top: 50px;
}

.content h1 {
  margin-bottom: 1rem;
}

.content p, .content h1 {
  margin-bottom: 1rem;
  padding: 0 20px;
}

.intro h1 {
    font-size: 1.8rem;
}

.content .titlebox {
  background-color: #083142;
  padding: 10px 20px;
  color: white;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  margin-bottom: 35px;
}

/* CONTENT */

.content {
    display: flex;
    align-items: flex-start;
    /* justify-content: space-between; */
    flex-wrap: wrap; /* Damit die Karten umbrechen, wenn der Platz nicht reicht */
}

.content.split .text-container {
  margin: 12px;
}

.content.continous {
  margin-top: 0px;
}

.text-container {
    flex: 1; /* Nimmt den verfügbaren Platz */
    flex-direction: row;
}

.card {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 3px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin: 12px;
    max-width: 546px;
}

.content .card h2 {
  text-align: center;
  line-height: 1.4;
}

.card.dark {
    background-color: #01141A;
    background: linear-gradient(to bottom right, #000000 0%, #065b7f 90%);
    color: #fff;
}

.card.light {
    background-color: #fff;
    background: linear-gradient(to right, #fafafa 60%, #dddddd 90%);
}


.card .text-container {
    padding: 20px;
}

.card img {
    width: 100%;
    height: auto;
}

.image-container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }

.image-container img {
    margin-left: 20px; /* Abstand zum Text */
    width: 300px; /* Bildgröße anpassen */
    max-width: 100%; /* Maximale Breite */
    height: auto;
    margin-bottom: 5px;
}

.image-container.big img {
    width: 560px;
}

.image-container.image-left img {
  margin-left: 0;
  margin-right: 20px;
}

.text-container img {
  display: block;
  margin: auto;
  padding: 0 20px 20px 20px;
}

.dark-section.image-right img {
  margin-right: 0;
  margin-left: 1rem;
}

.dark-section.image-right .event-info {
  margin-left: 1rem;
}


/* ========== Links ========== */
main a {
  display: inline-block;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

main a:hover {
  color: #555;
}

main a.link:before {
  content: url(./images/link_small.png);
  margin-right: 5px;
  margin-left: 5px;
  white-space: nowrap;
}

/* ========== EVENT-SECTION (Dunkler Hintergrund mit fester max-width) ========== */
.dark-section {
  margin: 2rem auto; /* zentriert */
  background-color: #333; /* dunkler Hintergrund */
  color: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.dark-section img {
  width: 400px;
  max-width: 100%;
  margin-right: 1rem;
  align-self: flex-start;
}

.event-info {
  flex: 1 1;
  padding: 1.5rem;
}

.imagetext {
  font-size: 10px;
  margin-left: 20px;
}


.event-info h2,
.event-info p {
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: normal;
}

.highlight {
  font-weight: bold;
}
.dark-section .highlight {
  color: #ffd28c; /* #ffc285; */
}

.event-info h2,
.content h2 {
  line-height: 1.2;
  margin-bottom: 15px;
}

.dark-section a {
  color: #fff;
  display: block;
  margin-left: auto;
  width: fit-content;
  margin-top: 15px;
}

.dark-section a:hover {
  color: #ccc;
}

/* ========== GAMES OVERVIEW ========== */
.overview {
  margin: 2rem auto;
}

.overview p {
  margin-bottom: 2rem;
}
.overview h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.overview a {
  display: block;
  width: fit-content;
  margin-left: auto;
}

.list-item {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.list-item img {
  align-self: flex-start;
  width: 350px;
  object-fit: contain;
  max-width: 100%;
}

.news .list-item img {
  width: 250px;
}

.list-item p.date {
  margin-bottom: 0;
  color: #8c8a8a;
}

.info {
  flex: 1 1 300px;
  padding-left: 24px;
  padding-right: 24px;
  max-width: 100%;
}

.info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.info p {
  margin-bottom: 0.5rem;
}

/* News */

.news-item {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}


/* Thalara */

.game-header {
  /* Zentriere den Inhalt und begrenze die Breite */
  margin: 1.5rem auto;
  padding: 0 0 0 200px;
}

.game-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  color: #414141; /* An das Design anpassen */
}

.game-header .subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
  font-style: italic; /* oder weglassen, je nach Geschmack */
}

/* Navigation im Reiter-Stil */

.game-subnav {
  border-top: 1px solid #ccc;
}

.game-subnav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap; /* falls es schmal wird, können die Punkte umbrechen */
  gap: 0.5rem;       /* Abstand zwischen den Links */
  margin-bottom: 1rem;
  padding: 0;
  justify-content: flex-end;
}

.game-subnav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.game-subnav a.inverted {
    background-color: #333;
    color: #fff;
    margin-left: 5px;
}

.game-subnav a:hover {
  background-color: #eee; /* Hover-Effekt */
}

.game-subnav a.inverted:hover {
    background-color: #666;
}

.hero img {
  display: block;        /* Damit margin: auto wirkt */
  margin: 0 auto;        /* Zentriert das Bild horizontal */
  max-width: 100%;
  height: auto;
}

.thalaraSubheading img, .thalaraSubheading h2{
    display: inline-block;
    vertical-align: middle; /* Damit das Bild und der Text auf gleicher Höhe sind */
    float: left; /* Damit das Bild links vom Text ist */
    font-size: 32px;
}

.yt-container {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
}

.yt-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Container für die Reviews */
.text-container.reviews {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Jede einzelne Review-Kachel */
.text-container.reviews a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Reihe innerhalb der Review-Kachel */
.text-container.reviews .row {
  display: flex;
  align-items: center;
  background: #ffffff;
  gap: 20px;
  transition: transform 0.2s ease;
}

.source_button {
  padding: 0;
}

.readon {
  margin-top:-6px;
}

.content .text-container.reviews  p {
  margin-bottom: 0;
  padding: 0;
}

.content .text-container.reviews  img {
  padding: 0;
}

.content .text-container.reviews  .img-caption {
  margin-left: auto;
}

.text-container.reviews .row:hover {
  transform: translateY(-3px);
}

/* Logo-Container */
.text-container.reviews .reviewer-logo {
  flex-shrink: 0;
  width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-container.reviews .reviewer-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Text neben dem Logo */
.text-container.reviews .row > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* DE oder EN Label (falls gewünscht) */
.text-container.reviews .img-caption {
  display: flex;
  align-items: center;
}

/* ========== CONTACT ========== */

    .formular, .impressum, .datenschutz {
      background: white;
      max-width: 500px;
      margin: auto;
      margin-top: 20px;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

    .formular h2, .impressum h2, .datenschutz h2 {
      margin-bottom: 20px;
      text-align: center;
    }

    .datenschutz p {
      margin-bottom: 10px;
    }

    .datenschutz ul {
      margin-left: 20px;
    }

    .formularfeld {
      margin-bottom: 15px;
    }

    .formularfeld label {
      display: block;
      margin-bottom: 5px;
      font-weight: bold;
    }

    .formularfeld input,
    .formularfeld textarea {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      box-sizing: border-box;
    }

    .formularfeld textarea {
      height: 120px;
      resize: vertical;
    }

    .button:hover {
      background-color: #903E14;
    }

    .form-control {
      width:100%;
      display: block;
      padding: .375rem .75rem;
      font-size: 1rem;
      font-weight: 400;
      line-height: 1.5;
      color: #212529;
      background-color: #fff;
      background-clip: padding-box;
      border: 1px solid #ced4da;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      border-radius: .25rem;
      margin-bottom: 10px;
    }

    .btn-primary {
      color: #fff;
      border: 2px solid #6B6977;
      background: #3A3A54;
      border-radius: 40px;
      font-weight: bold;
      font-size: 1.1em;
      padding-left: 1.2em;
      padding-right: 1.2em;
    }

/* ========== FOOTER ========== */
.site-footer {
  text-align: center;
  background-color: #f2f2f2;
  padding: 1rem;
  margin-top: 2rem;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (min-width: 769px) {
  .fancybox {
    display: block;
    margin-top: 20px;
    margin-left: -80px;
    margin-bottom: 40px;
    max-width: 500px;
    width: fit-content;
    /*box-shadow: 3px 3px 5px 0px #333;*/
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }

  .list-item img {
     flex: 0 0 350px;
     margin-right: 1rem;
     margin-bottom: 1rem;
  }

  .news .list-item img {
    flex: 0 0 250px;
  }
  .card {
    width: calc(50% - 24px); /* Zwei Karten nebeneinander mit Abstand */
    margin: 12px; /* Abstand zwischen den Karten */
  }
}
@media (min-width: 1200px) {
  .list-item img {
      border-radius: 10px;
  }

  .dark-section {
    border-radius: 10px;
  }
}
@media (max-width: 768px) {

  .optional {
    display: none;
  }

  .content {
    flex-direction: column;
  }

  .card {
    width: 100%;
    margin: 12px 0; /* Abstand oben und unten */
  }

  .content img {
    width: 100%;
    height: auto;
  }

  .image-container img {
    width: 100%;
    margin-left: 0px; /* Abstand zum Text */
    height: auto;
  }

  .fancybox {
    margin-top: -10px;
    margin-bottom: 20px;
  }

  /* Event-Section & Games-Section als Spalten-Layout untereinander */
  .dark-section {
    flex-direction: column;
  }

  .event-info {
    max-width: 450px;
  }

  .dark-section img, .dark-section.image-right img {
    margin-right: 0;
    margin-left: 0;
    margin-top: 10px;
    align-self: center;
  }

  .dark-section.image-right .event-info {
    margin-left: 0;
  }

  .overview h2 {
    text-align: center;
  }

  .list-item {
    flex-direction: column;
  }

  .list-item img {
    width: auto;
    margin-right: 0;
    align-self: center;
  }

  .game-header {
    /* Zentriere den Inhalt und begrenze die Breite */
    margin: 0px;
    padding: 20px;
  }

  .game-header h1 {
    font-size: 1.5rem;
  }

  .game-header .subtitle {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
}

/* ========== MODAL ========== */
#lang-modal {
  display: none;
  background: #fff;
  padding: 1.5rem;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  border-radius: 4px;
  text-align: center;
  font-family: sans-serif;
  position: fixed;
  bottom: 0;
  right: 0;
}
#lang-modal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
#lang-modal p {
  margin: 0.5rem 0 1rem;
  line-height: 1.4;
}
#lang-modal .buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
#lang-modal button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid #aaa;
  background: #f9f9f9;
  border-radius: 3px;
}

html.de .en {
    display: none !important;
}
html.en .de {
    display: none !important;
}

.my-auto {
  display: none;
}

.result {
  display: none;
}

.ok {
  color: #006600;
}

.error {
  color: #aa0000;
}

/* 2026 Splash-Header */

.splash-overlap-big {
    margin-top: -180px;
}

/* Splash Header-Image Homepage */

@media (max-width: 400px) {
  div.splash-header {
    background-image: url("images/accaina-header-ultraslim.png");
  }
  div.splash-header-2026 {
    background-image: url("images/header_2026_ultraslim.png");
  }
  .big-header {
    font-size:40px;
  }
  div.splash-header .content .titlebox {
    padding-left: 20px;
  }
  div.splash-header p  {
    width: 100%;
  }
  .splash-overlap {
    margin-top: 0px;
  }
}

@media (min-width: 401px) and (max-width: 600px) {
  div.splash-header {
    background-image: url("images/accaina-header-extraslim.png");
  }
  div.splash-header-2026 {
    background-image: url("images/header_2026_xtraslim.png");
  }
  .big-header {
    font-size:40px;
  }
  div.splash-header .content .titlebox {
    padding:20px 20px 20px 40px;
  }
  div.splash-header p  {
    width: 100%;
  }
  .splash-overlap {
    margin-top: 0px;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  div.splash-header {
    background-image: url("images/accaina-header-slim.png");
  }
  div.splash-header-2026 {
    background-image: url("images/header_2026_slim.png");
  }
  .big-header {
    font-size:47px;
  }
  div.splash-header .content .titlebox {
    padding:20px 20px 20px 40px;
  }
  div.splash-header p {
    width: 50%;
  }
  .splash-overlap {
    margin-top: 0px;
  }
}
@media (min-width: 901px) and (max-width: 2200px) {
  div.splash-header {
    background-image: url("images/accaina-header.png");
  }
  div.splash-header-2026 {
    background-image: url("images/header_2026.png");
  }
  .big-header {
    font-size:55px;
  }
  div.splash-header .content .titlebox {
    padding:20px 20px 20px 40px;
  }
  div.splash-header p {
    width: 50%;
  }
  .splash-overlap {
    margin-top: -75px;
  }
}
@media (min-width: 2201px) {
  div.splash-header {
    background-image: url("images/accaina-header-wide.png");
  }
  div.splash-header-2026 {
    background-image: url("images/header_2026_wide.png");
  }
  .big-header {
    font-size:60px;
  }
  div.splash-header .content .titlebox {
    padding:20px 20px 20px 40px;
  }
  div.splash-header p {
    width: 50%;
  }
  .splash-overlap {
    margin-top: -75px;
  }
}
