/*
  Reservierungssystem Theater
  Zentrale Layoutdatei

  Enthaltene Dialoge:
  - Dialog 1: Startseite
  - Dialog 2: Eingabe der Reservierungsdaten
  - Dialog 3: Sitzplatzauswahl
  - Dialog 4: Zusammenfassung

  Prinzip:
  PHP liefert nur Daten und HTML-Struktur.
  Alle Abstände, Farben, Schriftgrößen, Feldbreiten und Buttons werden hier definiert.
*/

/* =========================================================
   1. Grundlayout
   ========================================================= */

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #111111;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px 48px 32px;
}

.dialog-title,
.page h1 {
  margin: 0 0 34px 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
}

/* technische Beschriftung: Textbaustein / Datenbankfeld */
.block-label {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  color: #25262b;
}

/* normale Textausgabe */
.body-text {
  font-size: 22px;
  font-weight: 400;
  color: #000000;
  margin-top: 50px;
  margin-bottom: 20px;
}

/* =========================================================
   2. Dialog 1: Startseite
   ========================================================= */

.start-grid {
  display: grid;
  grid-template-columns: 2.5fr 1.5fr;
  column-gap: 10px;
}

.left-column{
  min-height: 700px;
}

.right-column {
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.season-value
{
  text-align: center;
  font-size: 30px;
  font-weight: 500;
  color: #1c0ee2;
}

.season-heading,
.welcome-text,
.season-year {
  text-align: left;
  font-size: 30px;
  font-weight: 300;
  color: #030303;
}
.theater-group {
  text-align: left;
  margin-top: 30px;
  color: #0b0b0b;
}

.theater-piece {
  margin-top: 6px;
  margin-bottom: 40px;
}

.performances {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 300;
}

.performance-list {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
}

.season-box {
  text-align: center;
  margin-top: 48px;
  margin-bottom: 10px;
}

.season-line {
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #1c0ee2;
}

.login-box {
  margin-top: 10px;
}

.login-label {
  display: block;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
}

.email-field {
  display: block;
  width: 318px;
  height: 38px;
  margin: 0 auto 4px auto;
  border: 2px solid #7d8a8f;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  box-sizing: border-box;
}

.start-button {
  display: block;
  width: 328px;
  height: 70px;
  margin: 0 auto;
  border-radius: 10px;
  border: 2px solid #06202a;
  background: #1f6f8d;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

.start-button:disabled {
  background: #a6a6a6;
  color: #eeeeee;
  cursor: not-allowed;
  border-color: #777777;
}

.note-box {
  margin-top: 10px;
}

.note-box p {
  margin-top: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.35;
}

.welcome-image {
  margin-top: 0px;
  text-align: right;
}

.welcome-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
}

.message.info {
  background: #eef5ff;
  border: 1px solid #4b7db4;
  color: #1f3655;
}
/* =========================================================
   3. Dialog 2: Eingabe der Reservierungsdaten
   ========================================================= */

.reservation-data-page {
  max-width: 1000px;
}

.reservation-form {
  width: 780px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: center;
  column-gap: 28px;
  margin-bottom: 18px;
}

.form-row label {
  font-size: 18px;
  font-weight: 700;
}

.form-row input,
.form-row select {
  width: 100%;
  height: 38px;
  padding: 6px 10px;
  border: 1px solid #888888;
  font-size: 17px;
  box-sizing: border-box;
}

.form-row input:read-only {
  background: #eeeeee;
  color: #555555;
}

.readonly-value {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: #eeeeee;
  border: 1px solid #cccccc;
  font-size: 17px;
  font-weight: 700;
  box-sizing: border-box;
}

.reservation-form hr {
  border: none;
  border-top: 1px solid #dddddd;
  margin: 30px 0;
}

/* =========================================================
   4. Buttons allgemein
   ========================================================= */

.button-row {
  margin-top: 38px;
  text-align: center;
}

.primary-button,
.secondary-button {
    min-width: 330px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    border: 2px solid #06202a;

    background: #1f6f8d;
    color: #ffffff;

    font-size: 24px;
    font-weight: 700;

    text-decoration: none;
}

.primary-button:disabled,
.secondary-button:disabled {
  background: #a6a6a6;
  color: #eeeeee;
  cursor: not-allowed;
  border-color: #777777;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* =========================================================
   5. Statusmeldungen
   ========================================================= */

.status-message,
.message {
  margin: 16px auto;
  width: 780px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  box-sizing: border-box;
}

.status-message.success,
.message.success {
  background: #e7f6ea;
  border: 1px solid #4b9b5c;
}

.status-message.error,
.message.error {
  background: #fdeaea;
  border: 1px solid #b44b4b;
}

/* =========================================================
   6. Dialog 3: Sitzplatzauswahl
   Layout vorbereitet entsprechend Saalplan im PDF, Seite 3
   ========================================================= */

.seat-page {
  max-width: 1250px;
}

.seat-table {
  border-collapse: collapse;
  margin: 0 auto;
}

.seat-table td,
.seat-table th {
  width: 58px;
  height: 34px;
  text-align: center;
  border: 1px solid #ffffff;
  background: #d7d8d9;
  font-size: 16px;
}

.seat-free {
  background: #e5eaee;
  cursor: pointer;
}

.seat-selected {
  background: #55addb !important;
  color: #000000;
  cursor: pointer;
}

.seat-reserved {
  background: #c94c4c !important;
  color: #ffffff;
  cursor: not-allowed;
}

.stage-row {
  height: 54px;
  background: #e5eaee;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.entrance-cell {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 20px;
  font-weight: 700;
}


.nav-button {
    width: 330px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    border: 2px solid #06202a;

    background: #1f6f8d;
    color: white;

    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}
/* =========================================================
   7. Dialog 4: Zusammenfassung / Tickets
   Layout vorbereitet entsprechend PDF, Seite 4
   ========================================================= */

.summary-page {
  max-width: 1150px;
}

.summary-intro {
  font-size: 24px;
  margin-bottom: 18px;
}

.ticket-table {
  width: 100%;
  margin: 18px auto 28px auto;
  border-collapse: collapse;
}

.ticket-table td {
  border: 1px solid #ffffff;
  background: #e5eaee;
  padding: 8px 10px;
  font-size: 18px;
}

.ticket-label {
  width: 180px;
  font-weight: 700;
}

.ticket-value {
  width: 420px;
}

.save-note {
  text-align: center;
  font-size: 20px;
  margin-top: 20px;
}

/* =========================================================
   8. Alter Dummy-Dialog, falls noch verwendet
   ========================================================= */

.reservation-page {
  max-width: 700px;
}

.dummy-box {
  border: 1px solid #cccccc;
  border-radius: 8px;
  padding: 24px;
  font-size: 18px;
  background: #f8f8f8;
}

/* =========================================================
   Dialog Zusammenfassung
   ========================================================= */

.qr-cell {
  text-align: center;
  vertical-align: middle;
  background: #ffffff !important;
  border: 1px solid #111111 !important;
  font-size: 20px;
  font-weight: 700;
}

.ticket-table {
  margin-bottom: 18px;
}


.seat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  margin-bottom: 20px;
}

.seat-header > div:first-child {
  text-align: left;
}

.seat-header > div:last-child {
  text-align: right;
}

.seat-info {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.seat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.seat-label input {
  display: none;
}

.seat-selection-info {
  text-align: center;
  margin-top: 18px;
  font-size: 18px;
  font-weight: 700;
}

.button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 330px;
  height: 64px;
  text-decoration: none;
  box-sizing: border-box;
}

/* =========================================================
   9. Mobile Darstellung
   ========================================================= */

@media (max-width: 850px) {

  .page {
    padding: 16px;
  }

  .start-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .season-box {
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .reservation-form,
  .status-message,
  .message {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .email-field,
  .start-button,
  .primary-button,
  .secondary-button,
  .button-link {
    width: 100%;
    max-width: 328px;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .seat-header {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
  }

  .seat-header > div:first-child,
  .seat-header > div:last-child {
    text-align: left;
  }

  .seat-info {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .seat-table {
    font-size: 12px;
  }

  .seat-table td,
  .seat-table th {
    width: 34px;
    height: 28px;
    font-size: 12px;
  }

  .seat-selection-info {
    font-size: 16px;
  }
}
