* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
}

.background {
    min-height: 100vh;
    background-image: url("/static/starkbierfest-bg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    filter: brightness(0.85); /* leicht abdunkeln für bessere Lesbarkeit */
}

.overlay {
    min-height: 100vh;
    background: rgba(15, 15, 15, 0.72); /* dunkler Overlay über dem Bild */
    color: #f9fafb;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */

.site-header {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(249, 250, 251, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

nav a {
    color: #f9fafb;
    margin-left: 1rem;
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.85;
}

nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Main */

main {
    padding: 2rem 0 3rem;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Flash-Messages */

.flash-wrapper {
    margin-bottom: 1rem;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.flash-success {
    background: rgba(22, 163, 74, 0.9);
}

.flash-error {
    background: rgba(220, 38, 38, 0.9);
}

/* Formularkarte */

.form-card {
    margin-top: 1rem;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.form-row {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 1px #fbbf24;
}

button {
    margin-top: 0.25rem;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #fbbf24, #ea580c);
    color: #111827;
}

button:hover {
    filter: brightness(1.05);
}

/* Tabelle */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.table th,
.table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    vertical-align: top;
}

.table th {
    text-align: left;
    font-weight: 600;
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(249, 250, 251, 0.15);
    padding: 1rem 0;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0.8;
}

a button {
    text-decoration: none;
}

.overlay {
    min-height: 100vh;
    background: rgba(15, 15, 15, 0.65);
    color: #f9fafb;
}

.spiele {
    margin-bottom: 2rem;
}

.spiele h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.card .emoji {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.spiele { margin-bottom: 2rem; }
.spiele h2 { margin-bottom: 1rem; font-size: 1.5rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1rem;
}
.card {
  background: rgba(15,23,42,.9);
  border-radius: .75rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,.25);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card .emoji { font-size: 2.2rem; margin-bottom: .5rem; }
.locked [data-countdown] {
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  opacity: .9;
}

.hidden {
    display: none !important;
}