/* Vereinsplattform – ein Stylesheet fuer Stadtportal und alle Vereinsseiten.
   Die Vereinsfarben kommen als --v-primary / --v-secondary aus dem Datensatz. */
:root {
    --v-primary: #0f766e;
    --v-secondary: #0b2530;
    --v-bg: #f5f6f8;
    --v-surface: #ffffff;
    --v-text: #1a1d23;
    --v-muted: #5f6672;
    --v-line: #e3e6eb;
    --v-win: #15803d;
    --v-draw: #a16207;
    --v-loss: #b91c1c;
    --v-radius: 14px;
    --v-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 6px 20px rgb(0 0 0 / .06);
    --v-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--v-bg); color: var(--v-text); font: 16px/1.55 var(--v-font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--v-primary); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
.v-sr, .v-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.v-skip { position: absolute; left: -999px; }
.v-skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }
.v-container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.v-muted { color: var(--v-muted); font-size: .92em; }

/* Kopf */
.v-topbar { background: var(--v-secondary); font-size: .85rem; }
.v-topbar a { color: rgb(255 255 255 / .8); text-decoration: none; display: inline-block; padding: 6px 0; }
.v-topbar a:hover { color: #fff; }
.v-header { background: var(--v-surface); border-bottom: 4px solid var(--v-primary); position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 var(--v-line); }
.v-header__inner { display: flex; align-items: center; gap: 8px 24px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; }
.v-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.v-brand__logo { width: 52px; height: 52px; object-fit: contain; }
.v-brand__mark { width: 48px; height: 48px; border-radius: 12px; background: var(--v-primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }
.v-brand__text { display: flex; flex-direction: column; min-width: 0; }
.v-brand__text strong { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-brand__text small { color: var(--v-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-nav { flex-basis: 100%; margin: 0 -12px; }
.v-brand__text strong, .v-brand__text small { white-space: normal; }
.v-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.v-nav a { display: block; padding: 10px 12px; border-radius: 8px 8px 0 0; color: var(--v-text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.v-nav a:hover { background: var(--v-bg); }
.v-nav .is-active a { color: var(--v-primary); box-shadow: inset 0 -3px 0 var(--v-primary); }
.v-nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.v-nav-toggle span:first-child, .v-nav-toggle span:first-child::before, .v-nav-toggle span:first-child::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--v-text); content: ""; transition: transform .2s; }
.v-nav-toggle span:first-child { top: 21px; }
.v-nav-toggle span:first-child::before { left: 0; top: -7px; }
.v-nav-toggle span:first-child::after { left: 0; top: 7px; }
@media (max-width: 900px) {
    .v-nav-toggle { display: block; }
    .v-header__inner { padding-bottom: 10px; }
    .v-nav { margin: 0; display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--v-surface); border-bottom: 1px solid var(--v-line); padding: 8px 16px 16px; }
    .v-nav.is-open { display: block; }
    .v-nav ul { flex-direction: column; }
    .v-header__inner { position: relative; }
}

/* Seitenkopf + Inhalt */
.v-pagehead { background: linear-gradient(120deg, var(--v-secondary), color-mix(in srgb, var(--v-secondary) 70%, var(--v-primary))); color: #fff; padding: 36px 0 32px; }
.v-pagehead h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.v-content { padding-top: 28px; padding-bottom: 48px; }
.v-content > * + * { margin-top: 28px; }
.v-section-title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; color: var(--v-secondary); margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; }
.v-section-title::before { content: ""; width: 6px; height: 1.1em; background: var(--v-primary); border-radius: 3px; }
.v-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 860px) { .v-columns { grid-template-columns: minmax(0, 1fr); } }
.v-prose { max-width: 72ch; }
.v-lead { font-size: 1.15rem; color: var(--v-muted); }

/* Hero */
.v-hero { position: relative; border-radius: var(--v-radius); overflow: hidden; background: var(--v-secondary); color: #fff; min-height: 300px; display: flex; align-items: flex-end; }
.v-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.v-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgb(0 0 0 / .65)); }
.v-hero--portal { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--v-primary) 80%, #fff) 0, var(--v-primary) 30%, var(--v-secondary) 80%); }
.v-hero--portal::after { display: none; }
.v-hero__inner { position: relative; z-index: 1; padding: 32px; max-width: 720px; }
.v-hero__kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; opacity: .85; margin: 0 0 6px; }
.v-hero__title { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 12px; }
.v-matchup { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 800; }
.v-matchup__vs { background: var(--v-primary); padding: 2px 10px; border-radius: 6px; font-size: .9rem; }
.v-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Bausteine */
.v-btn { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--v-primary); background: var(--v-primary); color: #fff; padding: 9px 18px; border-radius: 999px; font: 600 .95rem var(--v-font); text-decoration: none; cursor: pointer; list-style: none; }
.v-btn::-webkit-details-marker { display: none; }
.v-btn:hover { filter: brightness(1.08); }
.v-btn--ghost { background: transparent; color: var(--v-primary); }
.v-hero .v-btn--ghost { color: #fff; border-color: #fff; }
.v-card { background: var(--v-surface); border-radius: var(--v-radius); box-shadow: var(--v-shadow); overflow: hidden; color: inherit; text-decoration: none; display: flex; flex-direction: column; }
a.v-card { transition: transform .15s, box-shadow .15s; }
a.v-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(0 0 0 / .06), 0 12px 28px rgb(0 0 0 / .1); }
.v-card__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.v-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.v-card__img--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--v-secondary), var(--v-primary)); color: #fff; font-weight: 800; font-size: 1.2rem; padding: 12px; text-align: center; }
.v-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.v-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--v-line); color: var(--v-text); }
.v-tag--match { background: color-mix(in srgb, var(--v-primary) 15%, #fff); color: var(--v-primary); }
.v-tag--event { background: #fef3c7; color: #92400e; }
.v-tag--meeting { background: #e0e7ff; color: #3730a3; }
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.v-chip { display: inline-block; border: 1px solid var(--v-line); background: var(--v-surface); border-radius: 999px; padding: 6px 14px; color: var(--v-text); text-decoration: none; font: 600 .9rem var(--v-font); cursor: pointer; }
.v-chip.is-active, .v-chip:hover { border-color: var(--v-primary); color: var(--v-primary); }
.v-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.v-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.v-alert--warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.v-alert--danger, .v-alert--error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.v-alert--info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.v-back { text-decoration: none; font-weight: 600; }

/* Termine */
.v-event { display: flex; gap: 16px; align-items: center; background: var(--v-surface); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; box-shadow: var(--v-shadow); border-left: 4px solid var(--v-line); }
.v-event--match { border-left-color: var(--v-primary); }
.v-event--event { border-left-color: #f59e0b; }
.v-event__date { flex: none; width: 52px; text-align: center; line-height: 1.1; }
.v-event__day { display: block; font-size: 1.5rem; font-weight: 800; }
.v-event__month { display: block; font-size: .75rem; text-transform: uppercase; color: var(--v-muted); font-weight: 700; }
.v-event__body { flex: 1; min-width: 0; }
.v-event__meta { font-size: .85rem; color: var(--v-muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.v-event__title { font-size: 1.05rem; margin: 2px 0 0; }
.v-event__text { font-size: .95rem; margin-top: 6px; }
.v-score { flex: none; font-weight: 800; font-size: 1.25rem; padding: 6px 12px; border-radius: 8px; color: #fff; background: var(--v-muted); font-variant-numeric: tabular-nums; }
.v-score--win { background: var(--v-win); }
.v-score--draw { background: var(--v-draw); }
.v-score--loss { background: var(--v-loss); }
.v-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--v-surface); padding: 14px 16px; border-radius: var(--v-radius); box-shadow: var(--v-shadow); }
.v-toolbar label { display: flex; flex-direction: column; font-size: .8rem; font-weight: 700; color: var(--v-muted); gap: 4px; }
.v-toolbar .v-check { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 8px; }
.v-toolbar__end { margin-left: auto; }
select, input, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--v-line); border-radius: 8px; background: #fff; color: var(--v-text); max-width: 100%; }
select:focus, input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--v-primary) 40%, transparent); border-color: var(--v-primary); }

/* Vereine */
.v-clubcard { position: relative; }
.v-clubcard__band { height: 64px; background: linear-gradient(120deg, var(--v-primary), var(--v-secondary)); }
.v-clubcard__logo { width: 84px; height: 84px; margin: -42px 0 0 20px; border-radius: 50%; background: #fff; box-shadow: var(--v-shadow); display: grid; place-items: center; overflow: hidden; font-weight: 800; color: var(--v-primary); }
.v-clubcard__logo img { width: 72px; height: 72px; object-fit: contain; }
.v-clubcard strong { font-size: 1.1rem; }

/* Mannschaft */
.v-teamhead { display: grid; gap: 16px; margin-bottom: 8px; }
.v-teamhead__img { border-radius: var(--v-radius); width: 100%; }
.v-pitch { background: linear-gradient(180deg, #1f7a3a, #17652f); border-radius: var(--v-radius); padding: 16px; color: #fff; background-image: repeating-linear-gradient(180deg, rgb(255 255 255 / .04) 0 40px, transparent 40px 80px); background-color: #1d6f36; }
.v-pitch__row { border-bottom: 1px dashed rgb(255 255 255 / .25); padding: 10px 0; }
.v-pitch__row:last-child { border-bottom: 0; }
.v-pitch h4 { margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.v-pitch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v-player { display: flex; align-items: center; gap: 8px; background: rgb(0 0 0 / .2); padding: 4px 12px 4px 4px; border-radius: 999px; }
.v-player__no { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--v-secondary); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }

/* Personen + Sponsoren */
.v-grid--people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.v-person { align-items: center; text-align: center; padding-top: 20px; }
.v-person__img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.v-person__img--empty { display: grid; place-items: center; background: var(--v-primary); color: #fff; font-size: 2.4rem; font-weight: 800; }
.v-person .v-card__body { align-items: center; }
.v-sponsor__logo { display: grid; place-items: center; min-height: 150px; padding: 20px; background: #fff; border-bottom: 1px solid var(--v-line); }
.v-sponsor__logo img { max-height: 110px; width: auto; object-fit: contain; }
.v-sponsor--premium { outline: 2px solid var(--v-primary); }

/* Tippspiel */
.v-tip { background: var(--v-surface); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; box-shadow: var(--v-shadow); }
.v-tip__meta { font-size: .8rem; color: var(--v-muted); }
.v-tip__row { display: grid; grid-template-columns: 1fr 56px auto 56px 1fr; gap: 8px; align-items: center; margin-top: 6px; }
.v-tip__row input { text-align: center; font-size: 1.2rem; font-weight: 800; padding: 6px 4px; }
.v-tip__team { font-weight: 700; }
.v-tip__team:last-child { text-align: right; }
.v-ranking { list-style: none; margin: 0; padding: 0; background: var(--v-surface); border-radius: var(--v-radius); box-shadow: var(--v-shadow); overflow: hidden; }
.v-ranking li { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--v-line); }
.v-ranking li:nth-child(-n+3) .v-ranking__pos { color: var(--v-primary); font-weight: 800; }
.v-ranking li.is-me { background: color-mix(in srgb, var(--v-primary) 10%, #fff); }
.v-ranking__pos { width: 2.2em; }
.v-ranking__name { flex: 1; }
.v-ranking__pts { font-weight: 800; font-variant-numeric: tabular-nums; }
.v-table { width: 100%; border-collapse: collapse; background: var(--v-surface); border-radius: var(--v-radius); overflow: hidden; box-shadow: var(--v-shadow); }
.v-table th, .v-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--v-line); }

/* Schichten */
.v-shiftevent { margin-bottom: 24px; }
.v-shiftevent__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.v-progress { text-align: center; background: color-mix(in srgb, var(--v-primary) 10%, #fff); color: var(--v-primary); border-radius: 12px; padding: 8px 14px; line-height: 1.1; }
.v-progress strong { display: block; font-size: 1.6rem; }
.v-progress span { font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.v-shifts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.v-shift { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; border: 1px solid var(--v-line); border-radius: 12px; padding: 12px 14px; flex-wrap: wrap; }
.v-shift.is-full { opacity: .6; }
.v-shift__info { display: flex; flex-direction: column; gap: 2px; min-width: 220px; flex: 1; }
.v-bar { height: 6px; background: var(--v-line); border-radius: 3px; overflow: hidden; margin: 6px 0 2px; max-width: 260px; }
.v-bar span { display: block; height: 100%; background: var(--v-primary); }
.v-shift__form[open] { flex-basis: 100%; }
.v-shift__form form, .v-form { display: grid; gap: 10px; margin-top: 12px; }
.v-shift__form label, .v-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; }
.v-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.v-facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: .9rem; margin: 8px 0; }
.v-facts dt { color: var(--v-muted); }
.v-facts dd { margin: 0; }

/* Artikel */
.v-article { max-width: 820px; }
.v-article__img { border-radius: var(--v-radius); margin: 16px 0; }
.v-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 16px; }
.v-gallery img { border-radius: 8px; }
.v-pager { display: flex; gap: 6px; margin-top: 24px; }
.v-pager a, .v-pager span { padding: 6px 12px; border-radius: 8px; background: var(--v-surface); text-decoration: none; }
.v-pager span { background: var(--v-primary); color: #fff; }

/* Fuss */
.v-footer { background: var(--v-secondary); color: rgb(255 255 255 / .85); padding: 36px 0; margin-top: 40px; font-size: .92rem; }
.v-footer a { color: #fff; }
.v-footer__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.v-footer__meta { align-self: end; opacity: .7; }

/* Inhaltselemente aus fluid_styled_content etwas einfangen */
.frame { margin: 0; }
.ce-bodytext { max-width: 72ch; }
