/* ==========================================================================
   STARTSEITEN-INHALT: HERZLICH WILLKOMMEN
   ========================================================================== */
.welcome-wrapper {
  text-align: center;
  margin: 40px 0 20px 0;
  position: relative;
}

a {
  text-decoration: none;
}

.welcome-wrapper h1 {
  font-family: 'Garamond', serif;
  font-size: 2.8rem;
  color: #2c523e; /* Text bleibt im Vereinsgrün */
  font-weight: bold;
  margin: 0;
  display: inline-block;
  padding: 0 20px;
  background: #FEFBF3;
  position: relative;
  z-index: 2;
}

/* Linien links und rechts – mit Ausfaden in den neuen Braun-/Goldton */
.welcome-wrapper::before,
.welcome-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 2px;
}

.welcome-wrapper::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(201, 160, 84, 0),   /* innen transparent */
    rgba(201, 160, 84, 1)    /* außen voll im Martinus-Gold/Braun */
  );
}

.welcome-wrapper::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(201, 160, 84, 0),   /* innen transparent */
    rgba(201, 160, 84, 1)    /* außen voll im Martinus-Gold/Braun */
  );
}
/* ==========================================================================
   VERSTECKTER BESUCHERZÄHLER (Nur über DevTools/Untersuchen sichtbar)
   ========================================================================== */
.versteckter-zaehler {
  position: absolute;
  bottom: 10px;
  right: 10px;
  opacity: 0; /* Macht den Zähler komplett unsichtbar */
  pointer-events: none; /* Verhindert, dass der unsichtbare Link anklickbar ist */
}
/* ==========================================================================
   STARTSEITEN-INHALT: NAVIGATION / ICON-GRID
   ========================================================================== */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 50px 0 0 0;
  text-align: center;
  justify-items: center;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #FEFBF3;       /* Hintergrundfarbe der Website */
  border: 2px solid #c9a054; /* Dünner, edler Rand im Martinus-Goldton */
  color: #c9a054;            /* Icon-Farbe passend im gleichen Goldton */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3.5rem;         /* Icon-Größe */
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

/* Subtiler Hover-Effekt: Der Kreis füllt sich leicht golden und die Schrift hebt sich ab */
.icon-circle:hover {
  background: rgba(201, 160, 84, 0.1); /* Ganz zarte goldene Füllung beim Hovern */
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(201, 160, 84, 0.2);
}

.icon-label {
  font-size: 2.1rem;
  font-family: 'Garamond', serif; /* Zurück zur edlen Serifenschrift wie auf dem Bild */
  color: #2c523e;                /* Text bleibt im kontrastreichen Vereinsgrün oder #333 */
  font-weight: bold;
}
/* ==========================================================================
   ANIMATION: ICONS NACHEINANDER EINFADE / EINFLIEGEN
   ========================================================================== */

/* 1. Standard-Zustand für die Links definieren */
.icon-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  
  /* Startzustand vor der Animation: unsichtbar und leicht nach unten verschoben */
  opacity: 0;
  transform: translateY(30px);
  
  /* Animation zuweisen: Name, Dauer, Kurve, und 'forwards' sorgt dafür, 
     dass das Element nach der Animation sichtbar bleibt */
  animation: einfliegen 0.6s ease-out forwards;
}

/* 2. Individuelle Verzögerung (Delay) für jedes einzelne Icon */
.icon-grid .icon-item-link:nth-child(1) { animation-delay: 0.1s; }
.icon-grid .icon-item-link:nth-child(2) { animation-delay: 0.3s; }
.icon-grid .icon-item-link:nth-child(3) { animation-delay: 0.5s; }
.icon-grid .icon-item-link:nth-child(4) { animation-delay: 0.7s; }


/* 3. Die eigentliche Animation definieren (Von wo nach wo) */
@keyframes einfliegen {
  to {
    opacity: 1;
    transform: translateY(0); /* Fliegt auf die Originalposition */
  }
}

/* ==========================================================================
   RESPONSIVE LAYOUTS (MOBILANPASSUNGEN FÜR DIE KACHELN)
   ========================================================================== */
@media screen and (max-width: 900px) {
  /* Kreise größer im 2x2 Layout auf Mobilgeräten */
  .icon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    justify-content: center;
    justify-items: center;
    gap: 30px;
    padding-top: 15px;
    width: 100%;
    margin: 0 auto;
  }

  .icon-circle {
    width: 150px;
    height: 150px;
    font-size: 3.5rem;
  }

  .icon-label {
    font-size: 1.5rem;
  }
}
/* ==========================================================================
   ANIMATION: HEADER-TEXT VERBLASSEND ERSCHEINEN LASSEN
   ========================================================================== */

.header-text h2,
.header-text p {
  /* Startzustand: unsichtbar und minimal nach unten versetzt */
  opacity: 0;
  transform: translateY(10px);
  
  /* Nutzt dieselbe Animation wie die Icons */
  animation: einfliegen 0.8s ease-out forwards;
}

/* Erst kommt die Hauptüberschrift... */
.header-text h2 {
  animation-delay: 0.2s;
}

/* ...und ganz kurz danach der Vereinsname */
.header-text p {
  animation-delay: 0.4s;
}