:root {
  /* Offizielle SunExpress Primärfarben */
  --sunexpress-blue: #00458F;
  --sunexpress-blue-dark: #002d60;
  --sunexpress-orange: #EB690B;
  --sunexpress-orange-hover: #d25900;
  
  /* VfB Stuttgart Akzent */
  --vfb-rot: #e30613;
  
  --bg-light: #f4f6f8;
  --text-color: #333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* ==========================================
   Header & Titelbild 
   (Mobile: Full-Width | Desktop: Zentriert)
   ========================================== */

/* Mobile First (Standard für Smartphones) */
.hero {
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--sunexpress-blue), var(--sunexpress-blue-dark));
  border-bottom: 5px solid var(--sunexpress-orange);
  line-height: 0;
}

.header-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Desktop & Tablet (ab 768px Bildschirmlänge) */
@media (min-width: 768px) {
  .hero {
    padding: 30px 20px 25px 20px;
  }

  .header-img {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  }
}

/* Content Container */
.container {
  max-width: 600px;
  margin: 20px auto;
  padding: 0 15px;
}

.description {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  text-align: center;
}

.description h2 {
  color: var(--sunexpress-blue);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

/* Formular */
.form-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #fff;
  
  /* Behebt die falsche Breite auf Mobilgeräten (iOS / Android) */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-height: 46px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--sunexpress-blue);
  box-shadow: 0 0 0 2px rgba(0, 69, 143, 0.2);
}

/* Radio-Buttons */
.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
  font-size: 0.95rem;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--sunexpress-orange);
}

/* Dynamisches Grid für Sitzplätze vs. Stehplatz */
.seat-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* Stehplatz-Klasse: Schaltet das Grid auf 1 Spalte um */
.seat-info-grid.stehplatz-active {
  grid-template-columns: 1fr !important;
}

/* Verbergen-Klasse mit !important erzwingen */
.is-hidden {
  display: none !important;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.form-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--sunexpress-blue);
}

button[type="submit"] {
  width: 100%;
  background-color: var(--sunexpress-orange);
  color: white;
  border: none;
  padding: 15px;
  font-size: 1.05rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button[type="submit"]:hover {
  background-color: var(--sunexpress-orange-hover);
}

button[type="submit"]:active {
  transform: scale(0.99);
}

#successMessage {
  text-align: center;
  padding: 20px;
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
  border-radius: 5px;
}

/* Footer & Logo */
footer {
  text-align: center;
  padding: 25px 15px;
  font-size: 0.85rem;
  color: #666;
  margin-top: 30px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  max-width: 130px;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
}

footer a {
  color: var(--sunexpress-blue);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
  color: var(--sunexpress-orange);
}

/* Kleine Optimierung für schmale Smartphones */
@media (max-width: 400px) {
  .seat-info-grid {
    grid-template-columns: 1fr;
  }
}