:root {
  --primary-color: #003087; /* Hessisches Blau */
  --primary-hover: #00236e;
  --bg-color: #003087;
  --card-bg: #ffffff;
  --text-main: #212121;
  --text-light: #555555;
  --border-color: #e0e0e0;
  --footer-bg: #f8f9fa;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

/* --- Layout --- */
.container {
  max-width: 640px;
  width: 100%;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1rem;
  flex: 1; /* Drückt den Footer nach unten */
}

/* --- Cards --- */
.card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform 0.2s ease;
}

.card img.logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  display: block;
}

.card h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  line-height: 1.3;
}

.card h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.card p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* --- Buttons --- */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: rgba(0, 48, 135, 0.05);
}

/* --- Tabellen --- */
.table-wrapper {
  width: 100%;
  overflow-x: auto; /* Ermöglicht Scrollen auf kleinen Handys */
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  min-width: 400px; /* Verhindert zu starkes Quetschen */
}

th, td {
  padding: 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: #f2f2f2;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  font-size: 0.95rem;
}

.date-cell {
  white-space: nowrap; /* Datum bricht nicht um */
  font-variant-numeric: tabular-nums;
}

.icon-cell {
  text-align: center;
  font-size: 1.2rem;
  width: 50px;
}

/* --- Footer --- */
footer {
  background-color: var(--footer-bg);
  padding: 1.5rem 1rem;
  margin-top: auto;
  border-top: 1px solid #dcdcdc;
}

footer nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.25rem;
}

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

/* --- Media Queries (Desktop/Tablet) --- */
@media (min-width: 600px) {
  .card {
    padding: 2.5rem;
  }

  .buttons {
    flex-direction: row;
  }

  .btn {
    flex: 1;
  }
  
  footer nav {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}
