/* =========================================================
   Grundsystem
   Diese Variablen sind die schnellste Stelle für Anpassungen.
   Farben, Schriftgrößen, Abstände und Schatten lassen sich hier
   zentral steuern.
   ========================================================= */

:root {
  /* Farbwelt: Paraguay-inspiriert mit Rot, Blau und viel Weiß */
  --bg: #f4f7fb;
  --bg-gradient-top: #ffffff;
  --bg-gradient-bottom: #edf3fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: #eef4ff;
  --ink: #152033;
  --muted: #556277;
  --line: rgba(21, 32, 51, 0.12);

  /* Primärfarben für Buttons, Highlights und Links */
  --accent: #d7283c;
  --accent-dark: #aa1527;
  --accent-soft: #fdecef;
  --secondary: #1d4f91;
  --secondary-dark: #133766;
  --secondary-soft: #eaf2ff;

  /* Typografie-Skala */
  --text-xs: 0.82rem;
  --text-sm: 0.95rem;
  --text-base: 1rem;
  --text-md: 1.08rem;
  --text-lg: 1.2rem;
  --text-xl: 1.4rem;

  /* Überschriften bewusst kontrolliert statt zu groß */
  --h1: clamp(2.8rem, 3vw, 5rem);
  --h2: clamp(2.1rem, 2.2vw, 3.5rem);
  --h3: clamp(1.2rem, 1vw, 1.5rem);

  /* Layout */
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --content-width: 1200px;
  --section-space: 88px;

  /* Schatten */
  --shadow-soft: 0 20px 55px rgba(26, 50, 87, 0.08);
  --shadow-strong: 0 22px 44px rgba(32, 71, 129, 0.16);
}

/* =========================================================
   Reset und Basis
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: var(--text-base);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(215, 40, 60, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(29, 79, 145, 0.1), transparent 34%),
    linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-gradient-bottom) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* =========================================================
   Seitenrahmen
   ========================================================= */

.page-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

/* =========================================================
   Navigation
   ========================================================= */

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span {
  color: var(--muted);
  font-size: var(--text-sm);
}

.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  color: var(--muted);
  font-size: var(--text-sm);
}

.topbar-actions {
  display: flex;
  gap: 12px;
}

/* =========================================================
   Buttons
   primary = Hauptaktion
   secondary = alternative Aktion
   ghost = ruhige Navigationsaktion
   ========================================================= */

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(170, 21, 39, 0.2);
}

.secondary-button {
  border: 1px solid rgba(29, 79, 145, 0.2);
  background: var(--secondary-soft);
  color: var(--secondary-dark);
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
  padding: 72px 0 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--text-xs);
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 11ch;
  font-size: var(--h1);
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-points {
  margin: 28px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

/* =========================================================
   Karten und Flächen
   Eine Stelle für die Hauptboxen im Layout.
   ========================================================= */

.booking-card,
.info-card,
.route-card,
.vehicle-card,
.step-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.booking-card {
  padding: 24px;
}

.booking-card-head h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
}

/* =========================================================
   Formular
   Falls du später Feldgrößen ändern willst:
   input/select Höhe hier anpassen.
   ========================================================= */

.booking-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.booking-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.field-error {
  color: var(--accent-dark);
  font-size: var(--text-xs);
  font-weight: 500;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(21, 32, 51, 0.16);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
}

.booking-form textarea {
  min-height: 130px;
  padding: 12px 14px;
  resize: vertical;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: 2px solid rgba(29, 79, 145, 0.2);
  border-color: rgba(29, 79, 145, 0.45);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wide-button {
  width: 100%;
}

.booking-preview {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(29, 79, 145, 0.08);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--secondary-soft), #f8fbff);
}

.preview-label {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.preview-route,
.preview-meta {
  margin: 0;
}

.preview-route {
  font-weight: 700;
}

.preview-meta {
  margin-top: 6px;
  color: var(--muted);
}

.message-box {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

.message-error {
  border: 1px solid rgba(170, 21, 39, 0.18);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.message-success {
  border: 1px solid rgba(19, 55, 102, 0.16);
  background: var(--secondary-soft);
  color: var(--secondary-dark);
}

.message-warning {
  border: 1px solid rgba(138, 90, 16, 0.18);
  background: #fff4df;
  color: #8a5a10;
}

/* =========================================================
   Vertrauensleiste
   ========================================================= */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 12px 0 0;
}

.trust-strip article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
}

.trust-strip strong,
.route-card span,
.step-card span {
  display: block;
}

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================
   Inhaltsbereiche
   ========================================================= */

.content-section {
  padding: var(--section-space) 0 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.section-heading h2,
.contact-copy h2 {
  font-size: var(--h2);
}

.service-grid,
.route-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.info-card,
.route-card,
.step-card {
  padding: 22px;
}

.info-card h3,
.route-card h3,
.vehicle-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-size: var(--h3);
  line-height: 1.2;
}

.info-card p,
.route-card p,
.vehicle-card p,
.step-card p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.route-card span,
.step-card span {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.accent-section .route-card:nth-child(even) {
  background: linear-gradient(180deg, #ffffff, #f7faff);
}

/* =========================================================
   Fahrzeugbereich
   ========================================================= */

.vehicle-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.vehicle-card {
  padding: 28px;
}

.featured {
  background:
    linear-gradient(135deg, rgba(29, 79, 145, 0.96), rgba(19, 55, 102, 0.94)),
    var(--surface);
  color: #ffffff;
  box-shadow: var(--shadow-strong);
}

.featured p {
  color: rgba(255, 255, 255, 0.82);
}

/* =========================================================
   Kontaktbereich
   ========================================================= */

.contact-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
  padding-bottom: 48px;
}

.contact-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
}

.contact-line {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.page-hero {
  max-width: 860px;
  padding: 72px 0 12px;
}

.page-hero h1 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: var(--h1);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-intro {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.7;
}

.compact-section {
  padding-top: 36px;
}

.two-column-grid,
.booking-page-layout,
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.detail-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.detail-card h2 {
  margin: 0 0 12px;
  font-family: "Newsreader", serif;
  font-size: clamp(1.7rem, 2vw, 2.3rem);
  line-height: 1.08;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.booking-detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.detail-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.detail-item span,
.detail-note-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-item strong {
  display: block;
  line-height: 1.5;
}

.inline-action-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--secondary-dark);
  font-size: var(--text-sm);
  text-decoration: underline;
}

.detail-note-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.detail-note-box p {
  margin: 0;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-entry {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.history-entry strong {
  display: block;
  margin-bottom: 4px;
}

.history-entry p {
  margin-top: 8px;
}

.login-card {
  max-width: 520px;
  margin: 0 auto;
}

.feature-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.booking-page-layout {
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
}

.booking-side-note {
  position: sticky;
  top: 104px;
}

.booking-card-large {
  min-height: 100%;
}

.stack-lines {
  display: grid;
  gap: 12px;
}

.section-gap-sm {
  margin-top: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.stat-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.stat-card strong {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.admin-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: 180px 180px 1fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.admin-filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.admin-filter-bar input,
.admin-filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(21, 32, 51, 0.16);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
}

.filter-search {
  min-width: 240px;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-subtext {
  color: var(--muted);
  font-size: var(--text-sm);
}

.table-link {
  color: var(--secondary-dark);
}

.table-link:hover {
  text-decoration: underline;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-requested {
  background: var(--secondary-soft);
  color: var(--secondary-dark);
}

.status-driver_reserved,
.status-driver_confirmed {
  background: #eef7ec;
  color: #2f6b2c;
}

.status-in_progress {
  background: #fff4df;
  color: #8a5a10;
}

.status-completed {
  background: #e9f7f0;
  color: #1f6a4d;
}

.status-cancelled,
.status-no_show {
  background: #fdecef;
  color: var(--accent-dark);
}

.status-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}

.status-select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
}

.table-action-button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: var(--secondary);
  color: #ffffff;
  cursor: pointer;
}

.table-action-button:hover {
  background: var(--secondary-dark);
}

.small-button {
  min-height: 36px;
  padding: 0 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 12px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================================================
   Responsives Verhalten
   Hier steuerst du den Umbruch für Tablet und Mobil.
   ========================================================= */

@media (max-width: 1040px) {
  .topbar,
  .hero,
  .contact-section,
  .two-column-grid,
  .booking-detail-layout,
  .booking-page-layout,
  .contact-page-grid,
  .stats-grid,
  .vehicle-layout,
  .trust-strip,
  .service-grid,
  .route-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    display: grid;
    justify-content: stretch;
  }

  .main-nav,
  .topbar-actions {
    justify-content: flex-start;
  }

  .admin-header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, var(--content-width));
  }

  .hero {
    padding-top: 36px;
  }

  .page-hero {
    padding-top: 36px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .booking-card,
  .vehicle-card,
  .contact-card,
  .detail-card,
  .info-card,
  .route-card,
  .step-card {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
