/* ===================================================================
   BSC Biendorf — Übersicht der Abteilungen (/abteilungen)

   Aufbau wie die Aufklappliste im Menü (Zeilen, die beim Überfahren
   leicht nach rechts rücken), aber hell: weißes Feld, grüne Akzente.
   Das kräftige Grün kommt erst beim Überfahren. Das Feld füllt genau
   einen Bildschirm —
   die Seite ist eine Verlängerung des Menüs, kein Text zum Lesen.

   Übergänge bewusst kurz (.15 s), damit sich alles sofort anfühlt.
   =================================================================== */

main.au {
  /* Bildschirmhöhe minus Kopf — das Feld passt ohne Scrollen */
  min-height: calc(100dvh - var(--kopf-hoehe, 88px));
  display: flex;
  align-items: center;
  padding: clamp(16px, 3vh, 36px) 0;
  background: var(--sand);
}
main.au > .wrap { width: 100%; }

.au-feld {
  display: flex;
  flex-direction: column;
  height: min(620px, calc(100dvh - var(--kopf-hoehe, 88px) - 2 * clamp(16px, 3vh, 36px)));
  min-height: 440px;
  padding: clamp(18px, 2.4vw, 28px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 24px 50px -24px rgba(0, 0, 0, .22);
  color: var(--text);
}

.au-kopf {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: clamp(14px, 2vh, 22px);
}
.au-kopf h1 { margin: 0; color: var(--gruen); font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.au-kopf p { margin: 0; color: var(--grau); font-size: .92rem; }

.au-spalten {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(12px, 1.6vw, 20px);
}

.au-gruppe {
  margin: 0 0 8px 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gruen-hell);
}

/* ---------- Gemeinsam: Zeichen, Name, Zeit, Pfeil ---------- */

.au-zeichen {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: #E8F3EC;
  color: var(--gruen);
  transition: background .15s ease, color .15s ease;
}
.au-zeichen svg { width: 24px; height: 24px; }

.au-name { font-weight: 700; color: var(--gruen); }

.au-pfeil {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #DCE6DF;
  color: var(--gruen);
  font-weight: 700;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}

a:hover .au-zeichen,
a:focus-visible .au-zeichen { background: var(--gruen); color: #fff; }
a:hover .au-pfeil,
a:focus-visible .au-pfeil { background: var(--gruen); border-color: var(--gruen); color: #fff; transform: translateX(3px); }

/* ---------- Links: Fußball, zwei Felder teilen sich die Höhe ---------- */

.au-gross {
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  gap: 10px;
  min-height: 0;
}

.au-feld-gross {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 6px 14px;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 14px;
  background: linear-gradient(160deg, #F4FAF6, #E6F2EA);
  border: 1px solid #D6E9DD;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
/* Wappen groß und blass in der Ecke — der Fußball trägt das Vereinszeichen */
.au-feld-gross::after {
  content: "";
  position: absolute;
  right: -34px; top: -26px;
  width: 190px; height: 190px;
  background: url("/bilder/bsc-biendorf3d.png") center / contain no-repeat;
  opacity: .08;
  transform: rotate(-10deg);
  pointer-events: none;
  transition: opacity .15s ease;
}
.au-feld-gross > * { position: relative; z-index: 1; }
.au-feld-gross:hover,
.au-feld-gross:focus-visible {
  border-color: var(--gruen-hell);
  box-shadow: 0 14px 30px -18px rgba(0, 72, 36, .55);
  transform: translateY(-2px);
}
.au-feld-gross:hover::after { opacity: .14; }

.au-feld-gross .au-zeichen {
  grid-column: 1 / -1;
  align-self: start;
  width: 68px; height: 68px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 16px -8px rgba(0, 72, 36, .35);
}
.au-feld-gross .au-zeichen svg { width: 36px; height: 36px; }
.au-feld-gross .au-name { grid-column: 1 / 3; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; }
.au-feld-gross .au-pfeil { grid-column: 3; grid-row: 2; width: 44px; height: 44px; background: #fff; font-size: 1.1rem; }

/* ---------- Rechts: schmale Zeilen wie in der Aufklappliste ---------- */

.au-liste { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.au-liste ul {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 0;
}
.au-liste li + li { border-top: 1px solid #EEEEEA; }
.au-liste a {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 8px 10px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background .15s ease, padding-left .15s ease;
}
.au-liste a:hover,
.au-liste a:focus-visible { background: var(--sand); padding-left: 14px; }
.au-liste .au-name { flex: 1; font-size: 1.15rem; }

.au-feld a:focus-visible { outline: 2px solid var(--gruen-hell); outline-offset: 2px; }

/* ---------- Handy: untereinander, scrollen ist hier in Ordnung ---------- */

@media (max-width: 760px) {
  main.au { display: block; min-height: 0; }
  .au-feld { height: auto; min-height: 0; }
  .au-feld { padding: 16px; }
  .au-spalten { grid-template-columns: minmax(0, 1fr); }
  .au-gross { grid-template-rows: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-gross .au-gruppe { grid-column: 1 / -1; }
  .au-feld-gross { min-height: 160px; }
  .au-feld-gross .au-zeichen { width: 52px; height: 52px; }
  .au-feld-gross .au-zeichen svg { width: 28px; height: 28px; }
  .au-feld-gross .au-name { font-size: 1.35rem; }
  .au-liste ul { grid-auto-rows: auto; }
  .au-liste a { padding: 10px 12px 10px 8px; }
}

@media (max-width: 420px) {
  .au-gross { grid-template-columns: minmax(0, 1fr); }
  .au-feld-gross { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .au-feld *, .au-feld *::before { transition: none !important; }
}
