/* RC Vereinskalender – bewusst schlicht: Schrift, Farben, Überschriften und Buttons kommen vom Theme */
.rvk {
  /* Akzentfarbe vom Theme übernehmen (Block-Themes / Elementor), sonst Fallback */
  --rvk-accent: var(--wp--preset--color--primary, var(--e-global-color-primary, #0b6aa2));
  --rvk-line: rgba(127, 127, 127, .25);
  --rvk-muted: rgba(127, 127, 127, 1);
}
.rvk, .rvk input, .rvk select, .rvk textarea, .rvk button { font-family: inherit; }
.rvk *, .rvk *::before, .rvk *::after { box-sizing: border-box; }

/* Tabs */
.rvk-tabs { display: flex; gap: 1.5em; margin: 0 0 1em; flex-wrap: wrap; }
.rvk-tabs a { text-decoration: none; opacity: .6; }
.rvk-tabs a:hover { opacity: 1; }
.rvk-tabs a.is-active { opacity: 1; font-weight: bold; color: var(--rvk-accent); }

/* Kategorie-Filter */
.rvk-filter { display: flex; flex-wrap: wrap; gap: .4em; margin: 0 0 1.2em; }
.rvk .rvk-filter a { display: inline-block; padding: .25em .9em; border: 1px solid var(--rvk-line); border-radius: 999px; text-decoration: none; font-size: .9em; line-height: 1.5; }
.rvk .rvk-filter a:hover { border-color: var(--rvk-accent); }
.rvk .rvk-filter a.is-active { background: var(--rvk-accent); border-color: var(--rvk-accent); color: #fff; }

/* Liste */
.rvk-month { margin: 1.5em 0 .3em; }
.rvk .rvk-items { list-style: none; margin: 0; padding: 0; }
.rvk .rvk-items > .rvk-item { list-style: none; margin: 0; padding: 0; background: none; }
.rvk .rvk-items > .rvk-item::before, .rvk .rvk-items > .rvk-item::marker { content: none; display: none; }
.rvk-item + .rvk-item { border-top: 1px solid var(--rvk-line); }
.rvk-item > a { display: flex; align-items: baseline; gap: 1em; padding: .7em 0; text-decoration: none; color: inherit; }
.rvk-item > a:hover .rvk-title { color: var(--rvk-accent); }
.rvk-date { flex: 0 0 4.2em; white-space: nowrap; }
.rvk-date-d { font-weight: bold; }
.rvk-date-wd { display: none; }
.rvk-date-d::after { content: ". "; }
.rvk-is-regatta .rvk-date { color: var(--rvk-accent); }
.rvk-main { flex: 1; min-width: 0; }
.rvk-title { font-weight: bold; }
.rvk-is-cancelled .rvk-title { text-decoration: line-through; opacity: .6; }
.rvk-meta, .rvk-badges { display: block; font-size: .9em; opacity: .75; }
.rvk-meta span + span::before, .rvk-badge + .rvk-badge::before { content: " · "; }
.rvk-badge-level { color: var(--rvk-accent); font-weight: bold; }
.rvk-is-regatta .rvk-badges { opacity: 1; }
.rvk-is-regatta .rvk-badge:not(.rvk-badge-level):not(.rvk-badge-cancel) { opacity: .75; }
.rvk-badge-cancel { color: #b42318; font-weight: bold; }
.rvk-arrow { display: none; }
.rvk-empty { opacity: .7; font-style: italic; }

/* Kalender-Tabelle */
.rvk .rvk-cal { width: 100%; border-collapse: collapse; border: 0; margin: 0; }
.rvk .rvk-cal th, .rvk .rvk-cal td { text-align: left; vertical-align: top; border: 0; padding: .75em 1em .75em .5em; line-height: 1.7; }
.rvk .rvk-cal thead th { background: #444; color: #fff; font-weight: bold; padding-top: .9em; padding-bottom: .9em; }
.rvk .rvk-cal tbody td { border-bottom: 1px solid var(--rvk-line); background: none; }
.rvk .rvk-cal .rvk-cal-date { white-space: nowrap; width: 9em; }
.rvk .rvk-cal .rvk-cal-dl { white-space: nowrap; width: 12em; }
.rvk .rvk-cal .rvk-title { font-weight: normal; text-decoration: none; }
.rvk .rvk-cal a { text-decoration: none; }
.rvk .rvk-cal .rvk-cal-loc { font-style: italic; }
.rvk .rvk-cal .rvk-is-regatta .rvk-title { font-weight: bold; }   /* Regatten hervorheben */
.rvk .rvk-cal .rvk-is-cancelled .rvk-title { text-decoration: line-through; }

/* Seitenwechsel */
.rvk-pager { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin: 1.5em 0 0; }
.rvk-pager a { text-decoration: none; font-weight: bold; color: var(--rvk-accent); }
.rvk-pager-off { opacity: .35; }
.rvk-pager-pos { opacity: .7; font-size: .9em; }

/* Detail-Kopf mit Karte rechts */
.rvk-head { margin: 0 0 1.5em; }
.rvk-head.rvk-has-map { display: flex; gap: 1.5em; align-items: flex-start; }
.rvk-head .rvk-facts { flex: 1 1 auto; margin: 0; }
.rvk-map { flex: 0 0 45%; max-width: 420px; margin-left: auto; }
.rvk-map iframe { display: block; margin: 0; width: 100%; aspect-ratio: 4 / 3; height: auto; min-height: 200px; border: 0; }
.rvk-map a { display: inline-block; margin-top: .3em; font-size: .85em; text-decoration: none; }
@media (max-width: 700px) {
  .rvk-head.rvk-has-map { flex-direction: column; }
  .rvk-map { flex-basis: auto; width: 100%; max-width: none; margin-left: 0; }
}

/* Detail */
.rvk-back { margin: 0 0 1em; }
.rvk-back a { text-decoration: none; }
.rvk-facts { display: grid; grid-template-columns: max-content 1fr; gap: .2em 1.2em; margin: 0 0 1.5em; }
.rvk-facts div { display: contents; }
.rvk-facts dt { opacity: .7; margin: 0; }
.rvk-facts dd { margin: 0; }
.rvk-section { margin: 2em 0 0; }
.rvk-class { margin: 1.2em 0 .4em; }
.rvk-count { opacity: .6; font-weight: normal; }
.rvk-count::before { content: "("; }
.rvk-count::after { content: ")"; }
.rvk-small { font-size: .85em; opacity: .7; font-weight: normal; }

/* Tabellen: nur feine Trennlinien */
.rvk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rvk .rvk-table { width: 100%; border-collapse: collapse; border: 0; margin: 0 0 1em; }
.rvk .rvk-table th, .rvk .rvk-table td { padding: .4em .6em .4em 0; text-align: left; border: 0; border-bottom: 1px solid var(--rvk-line); white-space: nowrap; background: none; }
.rvk .rvk-table thead th { font-weight: bold; }
.rvk .rvk-table .rvk-num { text-align: right; padding-right: 0; padding-left: .8em; font-variant-numeric: tabular-nums; }
.rvk-table .rvk-sail, .rvk-table .rvk-rank, .rvk-table .rvk-net { font-weight: bold; }
.rvk-table .rvk-discard { opacity: .5; }
.rvk-table .rvk-sub { display: block; font-size: .85em; opacity: .7; }

/* Teilnehmerliste kompakt */
.rvk .rvk-participants { font-size: .85em; line-height: 1.3; width: auto; min-width: 0; }   /* nur so breit wie nötig */
.rvk .rvk-participants th, .rvk .rvk-participants td { padding: .2em 1.2em .2em 0; vertical-align: middle; }
.rvk .rvk-participants th:last-child, .rvk .rvk-participants td:last-child { padding-right: 0; }

/* Formular: Felder im Theme-Stil, nur Layout */
.rvk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8em 1.2em; }
.rvk-field { display: flex; flex-direction: column; gap: .25em; margin: 0; }
.rvk-field input, .rvk-field select { width: 100%; max-width: 100%; }
.rvk-check { display: flex; gap: .5em; align-items: flex-start; margin: 1em 0; font-size: .9em; }
.rvk-check input { margin-top: .3em; flex: none; }
.rvk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Meldungen */
.rvk-notice { padding: .6em 0; margin: 0 0 1em; font-weight: bold; }
.rvk-notice-ok { color: #1a7f37; }
.rvk-notice-error { color: #b42318; }

@media (max-width: 600px) {
  .rvk-hide-sm { display: none; }
}
@media print {
  .rvk-tabs, .rvk-back, .rvk-form-section { display: none; }
}

/* Anmelde-Button: eigene, klar sichtbare Gestaltung (Theme-.button war zu blass) */
.rvk .rvk-form .rvk-btn {
  display: inline-block; padding: .65em 1.6em; margin: 0;
  background: var(--rvk-accent); color: #fff !important; opacity: 1;
  border: 0; border-radius: 4px; box-shadow: none; text-shadow: none;
  font: inherit; font-weight: bold; line-height: 1.2; cursor: pointer;
}
.rvk .rvk-form .rvk-btn:hover, .rvk .rvk-form .rvk-btn:focus { filter: brightness(1.12); color: #fff !important; }

/* Widget «Nächste Termine» – Schrift und Titel vom Theme */
.rvk-widget .rvk-w-list { list-style: none; margin: 0; padding: 0; }
.rvk-widget .rvk-w-item { list-style: none; margin: 0 0 .8em; padding: 0; background: none; }
.rvk-widget .rvk-w-item::before, .rvk-widget .rvk-w-item::marker { content: none; display: none; }
.rvk-widget .rvk-w-title { display: block; font-weight: bold; text-decoration: none; }
.rvk-widget .rvk-w-line { display: flex; align-items: center; gap: .4em; line-height: 1.5; }
.rvk-widget .rvk-w-icon { flex: none; opacity: .6; }
.rvk-widget .rvk-w-all { margin: .4em 0 0; }
.rvk-widget .rvk-w-all a { text-decoration: none; }
.rvk-widget .rvk-w-empty { opacity: .7; font-style: italic; }

@media (max-width: 600px) {
  .rvk .rvk-cal th, .rvk .rvk-cal td { padding-left: .3em; padding-right: .5em; }
  .rvk .rvk-cal .rvk-cal-date { width: auto; }
  .rvk .rvk-cal .rvk-cal-dl { width: auto; }
  .rvk .rvk-cal thead th { white-space: normal; }
}
