:root {
  --accent: #4caf7c;
  --background: #f5f8f6;
  --card-bg: #ffffff;
  --text: #1f5938;
  --muted: #688e7f;
  --border: #e0e0e0;
}

/* Universelles box-sizing für einfachere Größenkontrolle */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Blur Effekt für den Hauptinhalt, wenn Overlay aktiv */
.blur {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

/* Overlay Vollbild mit Zentrierung */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5); /* halbtransparent dunkel */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Inneres Overlay-Fenster */
.overlay-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
  font-size: 1.25rem;
}

a {
  text-decoration: none;
}

body {
  min-height: 100vh;                /* mindestens volle Höhe */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text);
  box-sizing: border-box;
}

/* Für kleine Bildschirme: vertikales Scrollen erlauben */
@media (max-height: 500px) {
  body {
    justify-content: flex-start;  /* statt Zentrierung oben beginnen */
    padding-top: 2rem;
  }
}

.ueberschrift-klein {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: block; 
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  margin-top: 0rem;
  color: var(--text);
  text-align: center;
}

h1.enter {
  margin-bottom: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--text);
  display: block;
  text-align: center;
}

img.header-img {
  width: 55px;
  margin-bottom: 1rem;
}

.start-container {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
}

p {
  margin-bottom: 1em; /* z.B. 16px Abstand unten */
  line-height: 1.4;
}

.button {
  display: inline-block; /* oder block, je nach Layout */
  margin-top: 1em;       /* Abstand oben, falls gewünscht */
}


form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 24px;
  border: 2px solid var(--accent);
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

label {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: -8px;
  text-align: left;
}

.left {
  text-align: left;
}

input, select, button {
  font-size: 1rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
}

input:focus, select:focus {
  border-color: var(--accent);
  outline: none;
}

button, a.button {
  background: var(--accent);
  color: white;
  font-weight: 500;
  border: none;
  cursor: pointer;
  border-radius: 100px;
  padding: 1.2rem 1.2rem;
  margin-top: 1rem;
}

button:hover {
  background: #43a047;
}

table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

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

th {
  background-color: #f0f6f2;
  color: var(--muted);
  font-weight: 600;
}

td {
  color: var(--text);
}

.versteckt {
  display: none;
}

.tipp-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.5rem auto 0;
  max-width: 400px;
  justify-content: center;
  list-style: none;
}

.tipp-liste li {
  background: white;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

#overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.7);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 9999;
}

.overlay-content {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  form, table {
    width: 100%;
    max-width: 400px;
  }
}