/* ============================================================
   fcv.css – Gestaltung Fechtclub Vindobona
   ------------------------------------------------------------
   Eine Datei für das komplette Erscheinungsbild. Aufgebaut nach
   demselben Muster wie hocus-chokus.com: klebendes Hauptmenü mit
   Milchglas-Effekt, weiche Ecken, einheitliche Bilder.
   Farbwelt bewusst monochrom – wie das schwarz-weiße Clubwappen.
   ============================================================ */

:root {
  --fcv-ink:      #1f2124;   /* Grundschrift, Wappen-Schwarz          */
  --fcv-ink-soft: #3c4043;   /* Menüschrift                            */
  --fcv-muted:    #6b7076;   /* Datum, Bildunterschrift, Fußzeile      */
  --fcv-line:     #e4e6e9;   /* Trennlinien, Rahmen                    */
  --fcv-bg-soft:  #f4f5f7;   /* Flächen, Bildhintergrund               */
  --fcv-maxw:     1024px;    /* Inhaltsbreite                          */
  --fcv-radius:   10px;      /* Bilder, Karten                         */
  --fcv-radius-s: 8px;       /* Buttons, Menüpunkte                    */
  --fcv-font:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Grundlagen ------------------------------------- */

html, body {
  font-family: var(--fcv-font);
  color: var(--fcv-ink);
  background: #fff;
}

/* Wappen-Cursor (Marke) – auf Touch-Geräten ohnehin wirkungslos */
body { cursor: url('/images/cursor.cur'), auto; }

main { display: block; }

/* Angenehme Zeilenlänge für Fließtext – Raster und Menüs bleiben voll breit */
main p, main ul, main ol { max-width: 68ch; }
main .fcv-cards, main .fcv-team, main .fcv-more ul,
main .fcv-center p, main .w3-center p { max-width: none; }

/* Beim Sprung zu einem Anker nicht unter das klebende Menü rutschen */
[id] { scroll-margin-top: 64px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin: 1.8em 0 .5em; }

a { color: var(--fcv-ink); }
a:hover { color: #000; }

hr { border: 0; border-top: 1px solid var(--fcv-line); margin: 28px 0; }

/* Sichtbarer Fokus für Tastaturbedienung */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--fcv-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Sprungmarke für Screenreader/Tastatur */
.fcv-skip {
  position: absolute; left: -9999px; top: 0; z-index: 1100;
  background: #fff; color: var(--fcv-ink); padding: 10px 16px;
  border: 1px solid var(--fcv-line); border-radius: var(--fcv-radius-s);
}
.fcv-skip:focus { left: 12px; top: 12px; }

/* ---------- Bilder: überall gleich ------------------------- */
/* width/height-Attribute im HTML reservieren den Platz (kein Springen
   beim Laden), height:auto verhindert dabei das Verzerren.            */

img { height: auto; max-width: 100%; border-radius: var(--fcv-radius); }
#myHeader img { border-radius: 0; }          /* Wappen bleibt freigestellt */

/* ---------- Klebendes Hauptmenü (ab Tablet) ---------------- */

.fcv-nav {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 4px; padding: 7px 14px;
  background: rgba(247, 248, 250, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.fcv-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 15px; border-radius: var(--fcv-radius-s);
  color: var(--fcv-ink-soft); font-size: 16px; font-weight: 500; letter-spacing: .1px;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.fcv-nav a:hover { background: rgba(0, 0, 0, 0.06); color: #16181a; }
.fcv-nav a.fcv-nav-icon { padding: 10px 12px; color: #5f6368; }
.fcv-nav a.fcv-nav-icon:hover { color: #16181a; }
/* aktuelle Seite dezent markieren */
.fcv-nav a[aria-current="page"] { background: rgba(0, 0, 0, 0.07); color: #16181a; }

/* Leiste am Desktop, Burger am Handy */
@media (min-width: 601px) { #menuToggle { display: none !important; } }
@media (max-width: 600px) { .fcv-nav { display: none; } }
@media (min-width: 601px) and (max-width: 880px) {
  .fcv-nav a { padding-left: 10px; padding-right: 10px; font-size: 14px; }
}

/* Burger (Handy) */
.fcv-burger {
  position: fixed; top: 10px; left: 10px; z-index: 1001;
  width: 44px; height: 44px; box-sizing: border-box; padding: 11px;
  background: rgba(247, 248, 250, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--fcv-ink-soft); border-radius: var(--fcv-radius);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  cursor: pointer; border: none;
}
.fcv-burger:hover { color: #16181a; }

/* Mobile Seitenleiste */
#mySidebar { font-family: var(--fcv-font); }
#mySidebar .w3-bar-item {
  color: var(--fcv-ink-soft) !important; font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
  padding-top: 11px !important; padding-bottom: 11px !important;
}
#mySidebar .w3-bar-item:hover {
  background: rgba(0, 0, 0, 0.05) !important; color: #16181a !important;
}

/* ---------- Kopfbereich ------------------------------------ */

#myHeader { padding-top: 10px !important; padding-bottom: 0 !important; }
#myHeader .fcv-logo { display: inline-block; line-height: 0; width: 100%; max-width: 235px; }
#myHeader img { width: 100%; }
@media (max-width: 600px) {
  #myHeader { padding-top: 6px !important; }
  #myHeader .fcv-logo { max-width: 160px; }
}

/* ---------- Inhalt ----------------------------------------- */

.fcv-wrap { max-width: var(--fcv-maxw); margin: 0 auto; padding: 6px 16px 8px; }

/* Brotkrumen-Pfad */
.fcv-crumb {
  max-width: var(--fcv-maxw); margin: 2px auto 0; padding: 2px 16px;
  font-size: 13px; color: var(--fcv-muted);
}
.fcv-crumb a { color: var(--fcv-muted); text-decoration: none; }
.fcv-crumb a:hover { text-decoration: underline; }
.fcv-crumb [aria-current="page"] { color: var(--fcv-ink-soft); }

/* Einleitung auf der Startseite */
.fcv-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.6;
  color: #4a4e53; max-width: 68ch;
}

/* ---------- Beitragsbild: einheitlicher Rahmen -------------- */
/* Alle Artikelbilder erscheinen im gleich großen Feld (3:2). Das Bild
   wird hineingelegt, nie beschnitten und nie hochskaliert – dadurch
   sitzen Hoch- und Querformate im selben Raster.                     */

.fcv-media {
  max-width: 620px; margin: 22px 0 26px;   /* linksbündig zur Textspalte */
  aspect-ratio: 3 / 2;
  background: var(--fcv-bg-soft);
  border: 1px solid var(--fcv-line);
  border-radius: var(--fcv-radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.fcv-media img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; display: block; border-radius: 0;
}
/* Browser ohne aspect-ratio: feste Höhe als Rückfalllösung */
@supports not (aspect-ratio: 3 / 2) {
  .fcv-media { height: 400px; }
}
@media (max-width: 600px) {
  .fcv-media { margin: 16px 0 20px; }
}

.fcv-caption {
  text-align: center; font-size: 13px; color: var(--fcv-muted);
  margin: -14px 0 24px; max-width: 620px; text-align: left;
}

/* Datumszeile über dem Beitrag */
article { margin-top: 18px; }
.fcv-date {
  font-size: 13px; color: var(--fcv-muted);
  text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px;
}

/* ---------- Beitragsübersicht als Karten ------------------- */

.fcv-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 18px 0 8px;
  padding: 0; list-style: none;
}
.fcv-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--fcv-line);
  border-radius: var(--fcv-radius);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.fcv-card:hover {
  transform: translateY(-3px);
  border-color: #d3d6da;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
}
/* Kartenbild: einheitliches 3:2-Feld, mittig beschnitten */
.fcv-card-media {
  aspect-ratio: 3 / 2; background: var(--fcv-bg-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
@supports not (aspect-ratio: 3 / 2) { .fcv-card-media { height: 160px; } }
.fcv-card-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
  border-radius: 0; display: block;
}
/* Logos und Beiträge ohne Foto: vollständig zeigen statt beschneiden */
.fcv-card-media.is-logo img,
.fcv-card-media.is-crest img {
  width: auto; height: 68%; object-fit: contain;
}
.fcv-card-media.is-crest img { height: 62%; opacity: .5; }
.fcv-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.fcv-card-date {
  font-size: 12px; color: var(--fcv-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.fcv-card-title { font-size: 1.02rem; font-weight: 600; line-height: 1.35; margin: 0; }
.fcv-card:hover .fcv-card-title { text-decoration: underline; }

/* ---------- Vor/Zurück zwischen den Berichten -------------- */

.fcv-blaettern {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 34px auto 0; padding-top: 22px;
  border-top: 1px solid var(--fcv-line);
  max-width: var(--fcv-maxw);
}
.fcv-blaettern a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--fcv-line);
  border-radius: var(--fcv-radius); text-decoration: none; color: inherit;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.fcv-blaettern a:hover {
  border-color: #d3d6da; background: var(--fcv-bg-soft); transform: translateY(-2px);
}
.fcv-blaettern-nach { grid-column: 2; flex-direction: row; text-align: right; justify-content: flex-end; }
.fcv-blaettern-pfeil { color: var(--fcv-muted); flex: 0 0 auto; line-height: 0; }
.fcv-blaettern a:hover .fcv-blaettern-pfeil { color: var(--fcv-ink); }
/* kleines rundes Porträt in den Knöpfen der Mitgliederseiten */
.fcv-blaettern-portrait {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 50%; object-fit: cover; display: block;
}
.fcv-blaettern-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fcv-blaettern-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--fcv-muted);
}
.fcv-blaettern-titel { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
@media (max-width: 600px) {
  .fcv-blaettern { grid-template-columns: 1fr; }
  .fcv-blaettern-nach { grid-column: 1; }
  .fcv-blaettern a { padding: 11px 12px; }
}

/* ---------- Weitere Beiträge (Zeile unter dem Artikel) ----- */

.fcv-more {
  border-top: 1px solid var(--fcv-line);
  margin: 34px auto 0; padding: 18px 0 4px;
  max-width: var(--fcv-maxw);
}
.fcv-more h2 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--fcv-muted); margin: 0 0 10px; font-weight: 600;
}
.fcv-more ul { list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 8px; max-width: none; }
.fcv-more a {
  display: inline-block; padding: 6px 12px;
  font-size: 13.5px; color: var(--fcv-ink-soft); text-decoration: none;
  background: var(--fcv-bg-soft); border-radius: 6px;   /* eckig, keine Pillen */
  transition: background-color .15s ease, color .15s ease;
}
.fcv-more a:hover { background: #e7e9ec; color: #16181a; }

/* ---------- Team ------------------------------------------- */

.fcv-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px; margin: 24px 0 8px; padding: 0; list-style: none;
}
.fcv-team a {
  display: block; text-align: center; text-decoration: none; color: inherit;
}
.fcv-team img {
  width: 100%; max-width: 240px; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 50%; margin: 0 auto 12px; display: block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fcv-team a:hover img { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.fcv-team strong { display: block; font-size: 1.05rem; font-weight: 600; }
.fcv-team span { display: block; font-size: 13px; color: var(--fcv-muted); margin-top: 2px; }

/* Porträt auf den Einzelseiten */
.fcv-portrait {
  width: 100%; max-width: 260px; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 50%; margin: 6px 0 22px; display: block;   /* linksbündig wie der Text */
}

/* Erfolgsliste */
.fcv-palmares { max-width: 68ch; }
.fcv-palmares ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.fcv-palmares li {
  padding: 7px 0; border-bottom: 1px solid var(--fcv-line); font-size: .97rem;
}
.fcv-palmares li:last-child { border-bottom: 0; }

/* Zurück-Link */
.fcv-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 26px 0 6px; padding: 8px 14px;
  font-size: 14px; color: var(--fcv-ink-soft); text-decoration: none;
  background: var(--fcv-bg-soft); border-radius: var(--fcv-radius-s);
}
.fcv-back:hover { background: #e7e9ec; color: #16181a; }

/* ---------- Fußzeile --------------------------------------- */

.fcv-footer {
  max-width: var(--fcv-maxw); margin: 48px auto 0; padding: 0 16px 34px;
  text-align: center; color: var(--fcv-muted); font-size: 13.5px;
}
.fcv-footer hr { margin: 0 0 20px; }
.fcv-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; }
.fcv-footer a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: var(--fcv-radius-s);
  color: var(--fcv-muted); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.fcv-footer a:hover { background: var(--fcv-bg-soft); color: var(--fcv-ink); }
/* Verweise auf die Schwesterseiten */
/* Bewusst sehr zurückhaltend: eine kleine Zeile unter den Fußzeilen-Links,
   kein eigener Absatz. Die Links sind erst beim Überfahren unterstrichen. */
.fcv-partner {
  margin: 1px auto 0; max-width: none;
  font-size: 11.5px; line-height: 1.55; color: #9aa0a6;
}
.fcv-partner a {
  display: inline; padding: 0; color: #9aa0a6; text-decoration: none;
}
.fcv-partner a:hover { background: none; color: var(--fcv-ink-soft); text-decoration: underline; }

/* Pfeil nach oben */
.fcv-top {
  position: fixed; bottom: 16px; right: 16px; z-index: 100;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: rgba(247, 248, 250, 0.8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #7c8288; border-radius: var(--fcv-radius);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
  text-decoration: none; opacity: .85;
  transition: opacity .18s ease, color .18s ease, transform .18s ease;
}
.fcv-top:hover { opacity: 1; color: var(--fcv-ink-soft); transform: translateY(-2px); }
@media (max-width: 600px) { .fcv-top { display: none; } }

/* ---------- 404 -------------------------------------------- */

.fcv-404 {
  display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center;
  text-align: center;
}
.fcv-404 img { max-width: 180px; margin: 0 auto; }
@media (min-width: 700px) {
  .fcv-404 { grid-template-columns: 1fr auto 1fr; text-align: left; gap: 30px; }
  .fcv-404 .fcv-404-en { text-align: right; }
}

/* ---------- Rücksicht auf Bewegungsempfindlichkeit --------- */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .fcv-card:hover, .fcv-team a:hover img, .fcv-top:hover { transform: none; }
}
