/* =========================================================
   Aktuelles – Übersicht, Beitrag und Verwaltung
   ========================================================= */

/* ---------- Übersicht ---------- */
.ak-uebersicht{ margin-top: 36px; }

.ak-kachel{
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ak-kachel:hover, .ak-kachel:focus-visible{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255,226,1,.45);
}
.ak-kachel[hidden]{ display: none; }

.ak-kachel-bild{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d1626;
}
.ak-kachel-bild img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ak-kachel:hover .ak-kachel-bild img{ transform: scale(1.04); }

/* Ohne Bild: Vereinswappen auf grünem Verlauf */
.ak-ohne-bild{
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, #0a6b1c 0%, #004f0d 45%, #0b1220 100%);
}
.ak-kachel-bild.ak-ohne-bild img.ak-logo{
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: 52%;
  object-fit: contain;
  opacity: .9;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.45));
}

.ak-chip{
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--accent);
  color: #111;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ak-kachel-bild .ak-chip{ position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }

.ak-kachel-text{
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px 20px 20px;
}
.ak-kachel-text time{ color: var(--muted); font-size: .82rem; }
.ak-kachel-text h3{ font-size: 1.15rem; line-height: 1.3; }
.ak-kachel-text p{ color: var(--muted); font-size: .92rem; line-height: 1.55; flex: 1; }
.ak-weiter{
  display: inline-flex;
  gap: 4px;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  transition: gap .15s ease;
}
.ak-kachel:hover .ak-weiter{ gap: 9px; }

/* Neuester Beitrag groß */
.ak-kachel-gross{ display: grid; grid-template-columns: 1.35fr 1fr; }
.ak-kachel-gross .ak-kachel-bild{ aspect-ratio: auto; min-height: 340px; }
.ak-kachel-gross .ak-kachel-text{ justify-content: center; gap: 12px; padding: 34px 36px; }
.ak-kachel-gross .ak-kachel-text h3{ font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.ak-kachel-gross .ak-kachel-text p{ flex: 0; font-size: 1rem; }
.ak-kachel-gross .ak-weiter{
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--accent);
  color: #111;
}

.ak-kopfzeile{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 48px 0 18px;
}
.ak-kopfzeile h2{ font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.ak-filter{ display: flex; flex-wrap: wrap; gap: 8px; }
.ak-filter button{
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
}
.ak-filter button:hover{ border-color: var(--accent); }
.ak-filter button.aktiv{ background: var(--accent); border-color: var(--accent); color: #111; font-weight: 700; }

.ak-raster{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ak-leer{ padding: 48px 0; text-align: center; color: var(--muted); }
.ak-leer h1{ color: var(--text); margin-bottom: 12px; }

/* ---------- Einzelner Beitrag ---------- */
/* Titel, darunter das ganze Bild (nicht beschnitten), darunter der Text */
.ak-artikel{ max-width: 900px; padding-top: 28px; }
.ak-artikel-kopf h1{ font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; }
.ak-meta{ display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: .92rem; }
.ak-zurueck{
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted);
}
.ak-zurueck:hover{ border-color: var(--accent); color: var(--accent); }

.ak-artikel-bild{ margin: 26px 0 0; }
.ak-artikel-bild img{
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ak-artikel-inhalt{ margin-top: 30px; }
.ak-artikel-inhalt p{ color: var(--muted); line-height: 1.75; margin-bottom: 16px; font-size: 1.03rem; }
.ak-artikel-inhalt p.ak-lead{ color: var(--text); font-size: 1.2rem; line-height: 1.6; margin-bottom: 22px; }
.ak-artikel-inhalt strong{ color: var(--text); }
.ak-artikel-inhalt a:not(.ak-button){ color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.ak-button{
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: var(--pill);
  background: var(--accent);
  color: #111 !important;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ak-button:hover{ transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,226,1,.25); }

.ak-weitere{ margin-top: 64px; }
.ak-weitere h2{ font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .ak-raster{ grid-template-columns: repeat(2, 1fr); }
  .ak-kachel-gross{ grid-template-columns: 1fr; }
  .ak-kachel-gross .ak-kachel-bild{ min-height: 0; aspect-ratio: 16 / 9; }
  .ak-kachel-gross .ak-kachel-text{ padding: 22px 22px 24px; }
}
@media (max-width: 600px){
  .ak-raster{ grid-template-columns: 1fr; }
}

/* ---------- Verwaltung ---------- */
.ak-textlink{ color: var(--accent); font-weight: 700; }
.ak-admin-liste{ display: grid; gap: 12px; margin-top: 18px; }
.ak-admin-zeile{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
}
.ak-admin-bild{ flex: 0 0 96px; height: 64px; border-radius: 10px; overflow: hidden; background: #004f0d; display: grid; place-items: center; font-size: 1.6rem; }
.ak-admin-bild img{ width: 100%; height: 100%; object-fit: cover; }
.ak-admin-info{ flex: 1; display: grid; gap: 4px; min-width: 0; }
.ak-admin-info span{ color: var(--muted); font-size: .88rem; }
.ak-ok{ color: #3ecf6a; }
.ak-entwurf{ color: #ffb347; }
.ak-admin-knoepfe{ display: flex; flex-wrap: wrap; gap: 8px; }
.ak-admin-knoepfe form{ margin: 0; }
.ak-btn-loeschen:hover{ background: #c8102e !important; border-color: #c8102e !important; color: #fff !important; }
@media (max-width: 700px){
  .ak-admin-zeile{ flex-wrap: wrap; }
  .ak-admin-knoepfe{ width: 100%; }
}

.ak-editor{ margin-top: 18px; }
.ak-zwei{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px){ .ak-zwei{ grid-template-columns: 1fr; } }
.ak-bild-wahl{ display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.ak-bild-wahl img{ width: 220px; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.ak-bild-wahl > div{ display: grid; gap: 8px; }
.ak-check{ display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ak-check input{ width: auto; }
.ak-check-gross{ margin: 6px 0 18px; font-weight: 600; }
.ak-knoepfe{ display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
