/* style.css */
:root {
  --accent: #1f8fd1;
  --dark: #0b2540;
  --muted: #6b7280;
  --bg: #f6f9fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  color: var(--dark);
  background: var(--bg);
}

header {
  background: linear-gradient(90deg, var(--accent), #3fb0e4);
  color: white;
  padding: 18px 24px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

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

.logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

nav { margin-left: auto; }
nav a { color: rgba(255, 255, 255, 0.95); text-decoration: none; margin-left: 18px; font-weight: 600; }

/* === HERO SECTION MIT HINTERGRUNDBILD UND OVERLAY === */
.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 80px 24px;
  border-radius: 12px;
  background: url("https://wsw.landofrails.de/2026.png")
    center/cover no-repeat;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 40, 70, 0.55); /* Dunkler Overlay für bessere Lesbarkeit */
}

.hero * {
  position: relative; /* Text und Buttons über Overlay */
}

.hero .left { flex: 1; min-width: 260px; }
.hero h1 { font-size: 32px; margin: 0 0 10px; }
.hero p { margin: 0 0 18px; color: rgba(255, 255, 255, 0.95); }

.btn {
  background: white;
  color: var(--dark);
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
}

/* === Button-Design abgestimmt auf hell/dunkel-Kontraste === */
.btn {
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn:hover {
  background: #0d7ab4;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* Alternative helle Buttons (z. B. „Tarife & Angebote“) */
.btn-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  border: 1px solid rgba(255,255,255,0.6);
  transition: all 0.25s ease;
}

.btn-light:hover {
  background: white;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Karten-Buttons etwas kleiner und flacher */
.cards .btn {
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 8px;
}


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

.card {
  background: white;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(12, 38, 62, 0.08);
}
.cards .card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}


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

section { padding: 36px 0; }

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

.service {
  flex: 1 1 220px;
  background: white;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(12, 38, 62, 0.06);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.tariff { background: white; padding: 18px; border-radius: 12px; }

footer {
  background: #092433;
  color: #cfeefe;
  padding: 24px;
}

footer a { color: #cfeefe; text-decoration: none; }

.contact-card { background: white; padding: 16px; border-radius: 10px; }

form input,
form textarea,
form select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6edf3;
  margin-top: 8px;
}

.small { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .grid,
  .cards { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .hero { padding: 28px 0; }
  .brand { gap: 10px; }
  .logo { width: 48px; height: 48px; }
}
/* =========================
   TABLES / TABELLEN
========================= */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(12, 38, 62, 0.08);
  margin-top: 16px;
}

thead {
  background: linear-gradient(90deg, var(--accent), #3fb0e4);
  color: white;
}

thead th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

tbody td {
  padding: 12px 14px;
  font-size: 14px;
  border-top: 1px solid #e6edf3;
  vertical-align: middle;
}

tbody tr:nth-child(even) {
  background: #f8fbff;
}

tbody tr:hover {
  background: #eef6ff;
}

/* Links in Tabellen */
table a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

table a:hover {
  text-decoration: underline;
}

/* PDF / Aktionen */
table td a.btn {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
}

/* Mobile: Tabelle scrollbar machen */
@media (max-width: 800px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
/* =========================
   STATUS BADGES
========================= */

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Gültig */
.badge-valid {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

/* Bald ablaufend (optional) */
.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

/* Abgelaufen */
.badge-expired {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}
