/* ==========================================================================
   NEXTMOVEFC – Veredelung der Startseite
   --------------------------------------------------------------------------
   Diese Datei wird AUSSCHLIESSLICH von index.html geladen und ist zusaetzlich
   ueber den Body-Klassennamen .page-home gekapselt. Alle anderen Seiten
   (campinfo, anmeldung, bilder, ...) bleiben dadurch unveraendert.

   Reihenfolge im <head>:  styles.css  ->  home.css
   Diese Datei ueberschreibt also gezielt Regeln aus styles.css.
   ========================================================================== */

.page-home {
  /* Radien – eine durchgaengige Skala statt 2/4/6/8/14/16px gemischt */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  /* Bewegungskurven */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --lift: cubic-bezier(.34, 1.28, .64, 1);

  /* Tiefenskala */
  --el-1: 0 2px 10px rgba(0, 0, 0, .28);
  --el-2: 0 12px 30px -10px rgba(0, 0, 0, .6);
  --el-3: 0 24px 58px -16px rgba(0, 0, 0, .72);

  /* Feine Trennlinie auf dunklem Grund */
  --hair: rgba(255, 255, 255, .09);
}


/* ==========================================================================
   1. Sektionen: Rhythmus, Breitenbegrenzung, weiche Uebergaenge
   ========================================================================== */

.page-home #ueber-uns,
.page-home .team-section,
.page-home #kontakt,
.page-home .sponsors-section {
  position: relative;
  isolation: isolate;
}

/* Auf breiten Schirmen mehr Luft und ein zentriertes Satzbild statt
   randlos auseinandergezogener Inhalte. */
@media (min-width: 1100px) {
  .page-home #ueber-uns,
  .page-home .team-section,
  .page-home #kontakt {
    padding: 128px 5vw;
  }
}

.page-home #ueber-uns > *,
.page-home .team-section > *,
.page-home #kontakt > * {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Akzent-Muster: angedeutete Spielfeldlinien ------------------------- */
.page-home #ueber-uns::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(90deg,
      rgba(255, 255, 255, .022) 0 2px,
      transparent 2px 138px);
  -webkit-mask-image: radial-gradient(ellipse 68% 78% at 50% 46%, #000 0%, transparent 76%);
          mask-image: radial-gradient(ellipse 68% 78% at 50% 46%, #000 0%, transparent 76%);
}

/* Warmer Lichtschein oben rechts – bindet die Sektion an die Markenfarbe */
.page-home #ueber-uns::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -12%;
  right: -6%;
  width: min(620px, 52vw);
  height: min(620px, 52vw);
  background: radial-gradient(circle,
      rgba(255, 107, 26, .11) 0%,
      rgba(255, 107, 26, 0) 68%);
}

/* --- Uebergang Schwarz -> Dunkelgrau -> Schwarz ------------------------- */
.page-home .team-section {
  background: linear-gradient(180deg,
      var(--black) 0%,
      #0f0f0f 9%,
      var(--dark) 24%,
      var(--dark) 76%,
      #0f0f0f 92%,
      var(--black) 100%);
}

/* Haarfeine Akzentlinie als Sektionsnaht statt harter 1px-Kante */
.page-home .team-section::before,
.page-home .sponsors-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 107, 26, .45) 50%,
      transparent 100%);
}

.page-home #kontakt::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 52% at 14% 2%,
      rgba(255, 107, 26, .075) 0%,
      rgba(255, 107, 26, 0) 70%);
}


/* ==========================================================================
   2. Sektionskoepfe
   ========================================================================== */

.page-home .section-label {
  padding: 7px 16px;
  background: rgba(255, 107, 26, .12);
  border-color: rgba(255, 107, 26, .4);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -10px rgba(255, 107, 26, .6);
}

.page-home .section-label::before {
  box-shadow: 0 0 10px rgba(255, 107, 26, .9);
}

/* Kurzer Akzentstrich unter jeder Sektionsueberschrift */
.page-home .section-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 20px;
  border-radius: 3px;
  background: linear-gradient(90deg,
      var(--green) 0%,
      rgba(255, 107, 26, .12) 100%);
}


/* ==========================================================================
   3. Hero
   ========================================================================== */

/* Etwas transparenterer Schleier – das Gruppenfoto darf mehr durchkommen */
.page-home .hero-scrim {
  background:
    radial-gradient(ellipse 82% 62% at center 46%,
        rgba(10, 10, 10, .5) 0%,
        rgba(10, 10, 10, .26) 55%,
        rgba(10, 10, 10, 0) 78%),
    linear-gradient(to bottom,
        rgba(10, 10, 10, .88) 0%,
        rgba(10, 10, 10, .2) 26%,
        rgba(10, 10, 10, .3) 60%,
        rgba(10, 10, 10, .95) 100%);
}

/* Vignette: zieht den Blick zur Bildmitte */
.page-home .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 118% 100% at 50% 50%,
      rgba(0, 0, 0, 0) 44%,
      rgba(0, 0, 0, .5) 100%);
}

/* Der orange Titelblock bekommt Verlauf, Lichtkante und weicheren Schlagschatten */
.page-home .hero h1 {
  background: linear-gradient(155deg,
      #ff9a5f 0%,
      var(--green) 46%,
      var(--green-dark) 100%);
  border-radius: var(--r-md);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -16px 32px -20px rgba(0, 0, 0, .55),
    0 22px 52px -18px rgba(255, 107, 26, .62);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .16);
}

.page-home .hero-sub {
  max-width: 560px;
  color: rgba(245, 245, 245, .94);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .75);
}

/* --- Fakten-Leiste: Glaskarten mit Lichtkante --------------------------- */
.page-home .hero-fact {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: linear-gradient(180deg,
      rgba(255, 255, 255, .09) 0%,
      rgba(255, 255, 255, .028) 100%);
  border-color: rgba(255, 255, 255, .15);
  box-shadow: var(--el-1);
  transition: transform .35s var(--lift), border-color .3s ease, box-shadow .35s var(--ease);
}

.page-home .hero-fact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent, rgba(255, 255, 255, .55), transparent);
}

/* Warmer Schein von unten, nur beim Hover */
.page-home .hero-fact::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 82% at 50% 122%,
      rgba(255, 107, 26, .34) 0%,
      rgba(255, 107, 26, 0) 70%);
  transition: opacity .35s var(--ease);
}

.page-home .hero-fact:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 26, .58);
  background: linear-gradient(180deg,
      rgba(255, 255, 255, .11) 0%,
      rgba(255, 107, 26, .05) 100%);
  box-shadow: var(--el-2);
}

.page-home .hero-fact:hover::after { opacity: 1; }

/* Text ueber den Hover-Schein legen */
.page-home .hero-fact-num,
.page-home .hero-fact-label {
  position: relative;
  z-index: 1;
}

.page-home .hero-fact-num {
  text-shadow: 0 0 24px rgba(255, 107, 26, .45);
}

/* --- Sponsorzeile als Glas-Pille ---------------------------------------- */
.page-home .hero-sponsor {
  padding: 9px 18px 9px 16px;
  border-radius: 100px;
  background: rgba(18, 18, 18, .5);
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(14px);
  box-shadow: var(--el-1);
}

.page-home .hero-sponsor .label {
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(245, 245, 245, .62);
}

/* Sparkasse ist ein eigenstaendiges blaues Badge – keine Aufhellung noetig */
.page-home .hero-sponsor img {
  height: 24px;
  border-radius: 4px;
  filter: none;
}

/* --- Buttons und Scroll-Hinweis ----------------------------------------- */
.page-home .hero-actions .btn-primary {
  box-shadow: 0 12px 30px -12px rgba(255, 107, 26, .75);
}

.page-home .hero-actions .btn-primary:hover {
  box-shadow: 0 18px 40px -12px rgba(255, 107, 26, .85);
}

.page-home .hero-actions .btn-secondary {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .28);
}

.page-home .hero-actions .btn-secondary:hover {
  background: rgba(255, 107, 26, .1);
  border-color: var(--green);
}

.page-home .hero-scroll {
  padding: 8px 16px;
  border-radius: 100px;
  transition: color .25s ease, background .25s ease;
}

.page-home .hero-scroll:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .06);
}


/* ==========================================================================
   4. Ueber uns – Philosophie-Karten
   ========================================================================== */

/* Text und Kartenspalte oben buendig – zentriert entstand unter der
   Ueberschrift eine grosse Leerstelle in der linken Spalte. */
.page-home .about-grid {
  align-items: start;
}

.page-home .about-text {
  padding-top: 4px;
}

.page-home .philo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  padding: 24px 26px 24px 28px;
  background: linear-gradient(140deg,
      rgba(255, 255, 255, .055) 0%,
      rgba(255, 255, 255, .012) 100%);
  border-color: var(--hair);
}

/* Akzentbalken, der beim Hover aufwaechst */
.page-home .philo-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  transform: scaleY(0);
  transition: transform .42s var(--ease);
}

.page-home .philo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 26, .5);
  box-shadow: var(--el-2);
}

.page-home .philo-card:hover::before { transform: scaleY(1); }

.page-home .philo-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.5rem;
  background: radial-gradient(circle at 32% 24%,
      rgba(255, 107, 26, .42) 0%,
      rgba(255, 107, 26, .07) 72%);
  border-color: rgba(255, 107, 26, .45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 8px 18px -8px rgba(255, 107, 26, .5);
  transition: transform .42s var(--lift);
}

.page-home .philo-card:hover .philo-icon {
  transform: scale(1.08) rotate(-5deg);
}

.page-home .philo-text { color: #9a9a9a; }


/* ==========================================================================
   5. Team – Fotokarten mit Ecken-Akzent
   ========================================================================== */

.page-home .team-card {
  border-radius: var(--r-md);
  border-color: var(--hair);
  box-shadow: var(--el-1);
}

.page-home .team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 26, .55);
  box-shadow: var(--el-3);
}

/* Ecken-Klammern oben links / oben rechts – sitzen im Bildbereich,
   koennen also nie mit Name oder Zitat kollidieren. */
.page-home .team-card::before,
.page-home .team-card::after {
  content: '';
  position: absolute;
  z-index: 3;
  width: 24px;
  height: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.page-home .team-card::before {
  top: 13px;
  left: 13px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
  border-radius: 5px 0 0 0;
  transform: translate(7px, 7px);
}

.page-home .team-card::after {
  top: 13px;
  right: 13px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  border-radius: 0 5px 0 0;
  transform: translate(-7px, 7px);
}

.page-home .team-card:hover::before,
.page-home .team-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

.page-home .team-card-overlay {
  padding: 24px 22px;
  background: linear-gradient(to top,
      rgba(8, 8, 8, .96) 0%,
      rgba(8, 8, 8, .8) 24%,
      rgba(10, 10, 10, .2) 56%,
      rgba(10, 10, 10, 0) 74%);
}

/* Akzentleiste an der Unterkante, faehrt beim Hover auf */
.page-home .team-card-overlay::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg,
      var(--green) 0%,
      var(--green-dark) 55%,
      rgba(255, 107, 26, 0) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}

.page-home .team-card:hover .team-card-overlay::after {
  transform: scaleX(1);
}

/* Rolle als Chip statt nackter Grossbuchstabenzeile */
.page-home .team-role {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 10px;
  margin-bottom: 10px;
  border-radius: 100px;
  background: rgba(255, 107, 26, .18);
  border: 1px solid rgba(255, 107, 26, .42);
  backdrop-filter: blur(10px);
  font-size: .66rem;
  letter-spacing: .16em;
  color: #ffd2b4;
  text-shadow: none;
}

.page-home .team-role::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--green);
  box-shadow: 0 0 8px rgba(255, 107, 26, .9);
}

.page-home .team-name {
  font-size: 2.1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
}

.page-home .team-quote {
  color: rgba(245, 245, 245, .88);
}


/* ==========================================================================
   6. Kontakt
   ========================================================================== */

.page-home .contact-item {
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: linear-gradient(140deg,
      rgba(255, 255, 255, .05) 0%,
      rgba(255, 255, 255, .012) 100%);
  border-color: var(--hair);
}

.page-home .contact-item:hover {
  transform: translateX(6px);
  border-color: rgba(255, 107, 26, .5);
  box-shadow: var(--el-2);
}

.page-home .contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: radial-gradient(circle at 32% 24%,
      rgba(255, 107, 26, .42) 0%,
      rgba(255, 107, 26, .07) 72%);
  border-color: rgba(255, 107, 26, .45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 8px 18px -8px rgba(255, 107, 26, .5);
}

.page-home .contact-form {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 38px;
  background: linear-gradient(160deg,
      rgba(255, 255, 255, .055) 0%,
      rgba(255, 255, 255, .014) 100%);
  border-color: var(--hair);
  box-shadow: var(--el-2);
}

.page-home .contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
      transparent, rgba(255, 255, 255, .4), transparent);
}

.page-home .form-group input,
.page-home .form-group textarea {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(10, 10, 10, .55);
  border-color: rgba(255, 255, 255, .1);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.page-home .form-group input:focus,
.page-home .form-group textarea:focus {
  border-color: var(--green);
  background: rgba(10, 10, 10, .82);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .16);
}

.page-home .contact-form .btn-primary {
  margin-top: 6px;
  padding: 16px 36px;
  box-shadow: 0 12px 28px -12px rgba(255, 107, 26, .7);
}


/* ==========================================================================
   7. Sponsoren
   --------------------------------------------------------------------------
   Die vier Logos haben unterschiedliche Herkunft: Sparkasse ist ein blaues
   Badge, Farcher liegt transparent mit dunkler Schrift vor, Holzbau und VTAX
   sind JPGs mit weissem Hintergrund. Auf dunklem Grund ergibt das drei weisse
   Kaesten. Loesung: eine helle Logo-Platte in der dunklen Karte – damit sitzen
   alle vier Logos einheitlich und in ihren Originalfarben.
   ========================================================================== */

.page-home .sponsors-section {
  background: linear-gradient(180deg,
      var(--black) 0%,
      var(--dark) 26%,
      var(--dark) 100%);
  border-top: none;
  padding: 84px 5vw;
}

.page-home .sponsors-title {
  margin-bottom: 2.4rem;
}

.page-home .sponsors-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg,
      rgba(255, 107, 26, .12) 0%,
      var(--green) 50%,
      rgba(255, 107, 26, .12) 100%);
}

.page-home .sponsors-grid {
  gap: 18px;
}

.page-home .sponsor-card {
  padding: 16px;
  min-height: 142px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg,
      rgba(255, 255, 255, .06) 0%,
      rgba(255, 255, 255, .015) 100%);
  border-color: var(--hair);
  box-shadow: var(--el-1);
}

.page-home .sponsor-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 26, .5);
  box-shadow: var(--el-2);
}

.page-home .sponsor-plate {
  width: 100%;
  min-height: 110px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #f6f6f4;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(.25);
  opacity: .95;
  transition: filter .4s var(--ease), opacity .4s var(--ease), background .4s var(--ease);
}

.page-home .sponsor-card:hover .sponsor-plate {
  filter: none;
  opacity: 1;
  background: #fff;
}

.page-home .sponsor-card img {
  width: 100%;
  max-width: 190px;
  max-height: 74px;
  object-fit: contain;
  filter: none;
}

.page-home .sponsor-card:hover img {
  filter: none;
}


/* ==========================================================================
   8. Zusammenspiel mit dem Scroll-Reveal aus app.js
   --------------------------------------------------------------------------
   app.js haengt an diese Karten die Klasse .reveal. Deren transition-Regel in
   styles.css (opacity/transform, .7s) hat bisher die karteneigene transition
   ueberschrieben – dadurch liefen auch die Hover-Effekte mit .7s und mit der
   per Inline-Style gesetzten Stagger-Verzoegerung. Hier wird beides sauber
   zusammengefuehrt: Einblenden weich, Hover direkt.
   ========================================================================== */

.page-home .philo-card,
.page-home .team-card,
.page-home .contact-item,
.page-home .sponsor-card {
  transition:
    opacity .7s var(--ease),
    transform .45s var(--lift),
    border-color .3s ease,
    box-shadow .45s var(--ease),
    background .3s ease;
}


/* ==========================================================================
   9. Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .page-home .contact-form { padding: 30px 24px; }
  .page-home .sponsor-card { min-height: 128px; }
  .page-home .sponsor-plate { min-height: 98px; }
}

@media (max-width: 600px) {
  .page-home .hero-fact { border-radius: var(--r-sm); }
  .page-home .hero-sponsor { padding: 8px 15px 8px 13px; }
  .page-home .hero-sponsor img { height: 21px; }

  .page-home .philo-card { padding: 20px 20px 20px 22px; }
  .page-home .philo-icon { width: 46px; height: 46px; font-size: 1.3rem; }

  .page-home .team-card::before,
  .page-home .team-card::after { width: 20px; height: 20px; }
  .page-home .team-name { font-size: 1.9rem; }

  .page-home .contact-item { padding: 16px 18px; }
  .page-home .contact-form { padding: 26px 20px; }

  .page-home .section-title::after { width: 56px; margin-top: 16px; }
  .page-home .sponsor-card { min-height: 120px; }
  .page-home .sponsor-plate { min-height: 92px; padding: 14px 16px; }
}
