/* Reset und Grundstil */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #2C2C2C;
  color: white;
  overflow-x: hidden;
  font-family: Tahoma, Arial, Helvetica, sans-serif;
}

/* Layout Slide */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  -webkit-transform: translateX(100%);
  -webkit-transition: -webkit-transform 1s ease-in-out;
  transform: translateX(100%);
  transition: transform 1s ease-in-out;
}

.slide.show {
  -webkit-transform: translateX(0);
  transform: translateX(0);
  padding: 30px 20px;
}

/* Text allgemein */
h1, h2, h3, p, label {
  font-weight: normal;
  margin-bottom: 1em;
  line-height: 1.6;
  /* kein text-align hier setzen */
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p  { font-size: 16px; }

/* Sprachumschaltung */
#language-wrapper {
  margin-bottom: 20px;
  text-align: left;
}

#language-label,
#language-select {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.1em;
  font-weight: bold;
  margin-left: 10px;
}

/* Iframe-Blöcke */
.iframe-block {
  margin-bottom: 40px;
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: 20px auto;
  border: 2px solid #ddd;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  overflow: hidden;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Buttons */
.big-button {
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  background-color: #007BFF;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  margin: 10px 0;
}

.big-button:hover {
  background-color: #0056b3;
}

/* Radio-Buttons */
.big-radio {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-left: 5px;
}

/* Flaggenbilder */
img.flagge {
  height: 50px;
  width: auto;
  display: block;
  margin-top: 10px;
}

/* Footer */
footer {
  background-color: #404040;
  color: white;
  text-align: center;
  padding: 10px 0;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 80px;
  font-size: 24px;
}

/* ===================== RTL-UNTERSTÜTZUNG ===================== */
body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] p,
body[dir="rtl"] label {
  text-align: right;
}

body[dir="rtl"] .slide.show {
  padding-right: 20px;
  padding-left: 10px;
}

/* Sprachauswahl bei RTL: linksbündig */
body[dir="rtl"] #language-wrapper {
  text-align: left !important;
  padding-left: 20px;
  padding-right: 0;
}

body[dir="rtl"] #language-wrapper label,
body[dir="rtl"] #language-wrapper select {
  float: left;
}

body[dir="rtl"] #language-wrapper::after {
  content: "";
  display: block;
  clear: both;
}

body[dir="rtl"] #language-label {
  margin-left: 10px;
  margin-right: 0;
}

body[dir="rtl"] #language-select {
  direction: rtl;
  text-align: right;
}

body[dir="rtl"] .iframe-block {
  direction: rtl;
}

body[dir="rtl"] h3:last-of-type {
  text-align: right;
  padding-right: 20px;
  margin-top: 40px;
}

/* Zurück-Pfeil bei RTL rechts oben */
body[dir="rtl"] .slide a {
  float: right;
}
