:root{
  --gelb:#FFCB04;
  --text:#1f1f1f;
  --bg:#1f1f1f;
  --weiss:#fff;
}

*{box-sizing:border-box}
body {
  margin: 0;
  font-family: "Bebas Neue", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--gelb);

  /* Dezenter, dynamischer Verlauf */
  background: linear-gradient(-45deg,
    #FFCB04,
    #FFE76B,
    #2A2A2A,
    #1F1F1F
  );
  background-size: 300% 300%;
  animation: gradientFlow 30s ease-in-out infinite;
  min-height: 100vh;
}

/* Sehr langsame, minimale Bewegung */
@keyframes gradientFlow {
  0%   { background-position: 48% 50%; }
  25%  { background-position: 52% 49%; }
  50%  { background-position: 50% 52%; }
  75%  { background-position: 49% 48%; }
  100% { background-position: 48% 50%; }
}
.wrap{max-width:480px;margin:32px auto;padding:0 16px;text-align:center}
h1 {
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 30px;
  margin: 6px 0 24px;
  color: var(--gelb);
  position: relative;
  display: inline-block; /* wichtig für den animierten Unterstrich */
  overflow: hidden;      /* verhindert Überlauf während der Animation */
}

/* Der Unterstrich wird mit ::after animiert */
h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4.5px;                  /* gleiche Dicke wie dein underline */
  background-color: var(--gelb);  /* gleiche Farbe wie Text */
  width: 0;                       /* startet unsichtbar */
  transform-origin: left center;
  animation: underlineGrow 0.8s ease-out forwards;
  animation-delay: 0.1s;          /* kurze Pause nach Seitenstart */
}

/* Animations-Definition */
@keyframes underlineGrow {
  from { width: 0; }
  to   { width: 100%; }
}

@media (min-width:1200px){ .grid{ grid-template-columns:repeat(2,1fr); } 
    .back {
    display: block;
    position: absolute;
    left: 20px;
    top: 20px;
    color: var(--gelb);
    text-decoration: none;
    font-size: 22px;
  }
}

.back {
  display: none;
}


.photo{
  position:relative; 
  width:100%; 
  aspect-ratio: 3 / 2;   /* war 3/2 → macht Bilder etwas höher */
  background-size:cover; 
  background-position:center;
  transition:transform .25s ease;
}
.match-list{display:flex;flex-direction:column;gap:20px}

.match-card {
  display: block;
  text-decoration: none;
  background: var(--gelb);
  color: var(--text);
  border: 2px solid var(--gelb);
  border-radius: 20px; /* etwas weniger rund */
  padding: 10px 8px;   /* weniger Innenabstand → geringere Höhe */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.match-card:hover {
  background: transparent;
  color: var(--gelb);
  transform: translateY(-1px);
}

/* Textgrössen leicht angepasst, damit’s proportional bleibt */
.match-card .title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.match-card .meta {
  display: flex;
  gap: 6px;
  justify-content: center;
  opacity: .9;
  margin-top: 2px;
}

.match-card .date,
.match-card .count {
  font-size: 14px;
  font-family: Inter, system-ui, Arial, sans-serif;
}

.contact-note{margin-top:28px;font-size:18px}
.contact-note a{color:var(--gelb);text-decoration:underline}

.back{ display:none; }
@media (min-width:1200px){
  .back{
    display:block;
    position: fixed;
    left: 20px; top: 20px;
    color: var(--gelb); text-decoration: none; font-size: 22px;
  }
}
