/* SKC Philippsburg – loaded after Cassiopeia's template.css */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colours from the club crest */
  --skc-blue: #0a2e61;
  --skc-blue-dark: #061d3f; /* only for hover/focus feedback */
  --skc-blue-light: #0099ff;
  --skc-gold: #d9a438;
  --skc-bg-soft: #f2f5f9;
  --skc-text: #1c2533;
  --skc-text-muted: #5b6676;
  --skc-radius: 3px;
  --skc-shadow: 0 1px 2px rgba(10, 46, 97, .10), 0 2px 10px rgba(10, 46, 97, .06);
  --skc-container: 1180px;

  --cassiopeia-color-primary: var(--skc-blue);
  --cassiopeia-color-link: #0b5cad;
  --cassiopeia-color-hover: var(--skc-blue);
  --link-color: #0b5cad;
  --link-color-rgb: 11, 92, 173;
  --link-hover-color: var(--skc-blue);
  --link-hover-color-rgb: 10, 46, 97;
  --cassiopeia-font-family-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cassiopeia-font-family-headings: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cassiopeia-font-weight-headings: 700;
  --body-font-family: var(--cassiopeia-font-family-body);
  --body-color: var(--skc-text);
  --template-special-color: var(--skc-blue);
}

/* The page is never wider than the screen (clip, unlike hidden, keeps sticky bars working) */
html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--cassiopeia-font-family-body);
  color: var(--skc-text);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cassiopeia-font-family-headings);
  color: var(--skc-blue);
  letter-spacing: -.01em;
}

.skc-container {
  max-width: var(--skc-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skc-skip:focus {
  position: absolute;
  z-index: 2000;
  top: .5rem;
  left: .5rem;
  padding: .5rem 1rem;
  background: #fff;
}

/* ---------- Header ---------- */

.skc-header.container-header {
  background: var(--skc-blue);
  background-image: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
  z-index: 1030;
}

.skc-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--skc-container);
  margin: 0 auto;
  padding: .6rem 1.25rem;
}

.skc-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.skc-brand:hover,
.skc-brand:focus {
  color: #fff;
}

.skc-logo {
  height: 52px;
  width: auto;
}

.skc-brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  white-space: nowrap;
}

.skc-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.container-header .skc-nav .navbar {
  padding: 0;
}

.container-header .mod-menu {
  color: #fff;
}

.container-header .metismenu > li.level-1 > a,
.container-header .metismenu > li.level-1 > button {
  color: rgba(255, 255, 255, .92);
  font-weight: 600;
  font-size: .95rem;
}

.container-header .metismenu > li > a:after,
.container-header .metismenu > li > button:before {
  background: var(--skc-gold);
}

.container-header .metismenu > li.level-1 > ul {
  border: 0;
  border-radius: var(--skc-radius);
  box-shadow: var(--skc-shadow);
  padding: .4rem 0;
}

.container-header .metismenu > li.level-1 > ul a {
  color: var(--skc-text);
}

.container-header .metismenu > li.level-1 > ul a:hover {
  color: var(--skc-blue);
  background: var(--skc-bg-soft);
}

.skc-social {
  display: flex;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skc-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, .85);
  transition: background-color .15s, color .15s;
}

.skc-social a:hover,
.skc-social a:focus {
  color: var(--skc-blue);
  background: #fff;
}

.skc-social svg {
  width: 19px;
  height: 19px;
}

/* Menu button: three bars drawn in CSS so it doesn't wait for the icon font */
.container-header .skc-nav .navbar-toggler {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--skc-radius);
  color: #fff;
  background: transparent;
}

.skc-nav .navbar-toggler .icon-menu,
.skc-nav .navbar-toggler .icon-menu::before,
.skc-nav .navbar-toggler .icon-menu::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.skc-nav .navbar-toggler .icon-menu {
  position: relative;
}

.skc-nav .navbar-toggler .icon-menu::before,
.skc-nav .navbar-toggler .icon-menu::after {
  content: "";
  position: absolute;
  left: 0;
}

.skc-nav .navbar-toggler .icon-menu::before {
  top: -6px;
}

.skc-nav .navbar-toggler .icon-menu::after {
  top: 6px;
}

@media (max-width: 991.98px) {
  .skc-header-inner {
    position: relative;
    gap: .75rem;
  }

  .skc-brand {
    margin-right: auto;
  }

  .skc-nav {
    order: 3;
    flex: 0 0 auto;
  }

  .container-header .skc-nav .navbar-toggler {
    display: grid;
  }

  /* Bootstrap makes .navbar relative; the dropdown must span the header instead */
  .container-header .skc-nav .navbar {
    position: static;
  }

  .container-header .skc-nav .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: .5rem 1.25rem 1.25rem;
    background: var(--skc-blue);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
  }

  /* Submenus open inside the list (pushing the next items down), not as a floating dropdown */
  .container-header .metismenu > li.level-1 {
    flex-wrap: wrap;
  }

  .container-header .metismenu > li.level-1 > ul {
    flex: 0 0 100%;
    position: static;
    min-width: 0;
    margin: .1rem 0 .4rem;
    padding: 0 0 0 1rem;
    border: 0;
    border-left: 2px solid rgba(255, 255, 255, .25);
    box-shadow: none;
    background: transparent;
  }

  .container-header .metismenu > li.level-1 > ul a {
    display: block;
    padding: .35rem .5rem;
    font-size: .95rem;
  }

  .container-header .metismenu > li.level-1 > ul a {
    color: rgba(255, 255, 255, .85);
  }

  .container-header .metismenu > li.level-1 > ul a:hover {
    background: transparent;
    color: #fff;
  }
}

/* Between tablet and wide desktop the full menu is tight: drop the header icons
   (they're in the footer too) and the gaps */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .skc-header .skc-social {
    display: none;
  }

  .skc-header-inner {
    gap: 1rem;
  }

  .container-header .metismenu > li.level-1 > a,
  .container-header .metismenu > li.level-1 > button {
    font-size: .9rem;
  }

  .container-header .metismenu > li + li {
    margin-left: .25rem;
  }
}

@media (max-width: 400px) {
  .skc-brand-text {
    font-size: .95rem;
  }

  .skc-logo {
    height: 44px;
  }
}

/* Small phones: no room for name, icons and menu button in one row, so the
   Instagram/Facebook icons move into a second row under the club name */
@media (max-width: 429.98px) {
  .skc-header-inner {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .skc-header .skc-social {
    order: 4;
    flex: 0 0 100%;
    margin: -.4rem 0 -.2rem;
    padding-left: calc(52px + .75rem - 6px);
  }

  .skc-header .skc-social a {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 400px) {
  .skc-header .skc-social {
    padding-left: calc(44px + .75rem - 6px);
  }
}

/* ---------- Homepage sections ---------- */

.skc-section {
  padding: 2.5rem 0;
}

.skc-section-title {
  font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem);
  margin: 0 0 1.25rem;
}

/* Linked section headings (News, Veranstaltungen) */
.skc-section-title a {
  color: inherit;
  text-decoration: none;
}

.skc-section-title a::after {
  content: " →";
  font-weight: 400;
  color: var(--skc-gold);
  transition: margin-left .2s;
}

.skc-section-title a:hover,
.skc-section-title a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}

.skc-section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: .5rem;
  background: var(--skc-gold);
}

.skc-section + .skc-section:nth-of-type(even) {
  background: var(--skc-bg-soft);
}

/* Highlights */

.skc-hero {
  position: relative;
  padding: 2rem 0;
  color: #fff;
  /* Ends in solid dark blue, which the intro below continues: the picture fades into the text */
  padding-bottom: 3rem;
  background: linear-gradient(180deg, rgba(10, 46, 97, .80) 0%, rgba(10, 46, 97, .35) 40%, rgba(10, 46, 97, .75) 78%, var(--skc-blue) 100%), var(--skc-hero-image) center / cover no-repeat, var(--skc-blue);
}

.skc-hero .skc-section-title {
  color: #fff;
}

/* Items keep their own aspect ratio; spread so the row spans the full content width
   (if they don't fit, the row scrolls sideways instead) */
.skc-highlights {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 0;
  padding: 0 0 .5rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.skc-highlight {
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: clamp(340px, 66vh, 540px);
  border-radius: var(--skc-radius);
  overflow: hidden;
  background: var(--skc-blue);
  position: relative;
}

.skc-highlight-open {
  display: block;
  color: inherit;
}

/* Small label in the corner: shows that the highlight opens (always visible on touch screens) */
.skc-highlight-hint {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  padding: .35rem .65rem;
  border-radius: var(--skc-radius);
  background: rgba(10, 46, 97, .78);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
  transition: background .2s;
}

.skc-highlight-open:hover .skc-highlight-hint,
.skc-highlight-open:focus-visible .skc-highlight-hint {
  background: var(--skc-gold);
  color: var(--skc-blue);
}

.skc-highlight-open:focus-visible {
  outline: 3px solid var(--skc-gold);
  outline-offset: -3px;
}

/* Highlight articles carry inline sizing from the old template; neutralise it */
.skc-highlight > *,
.skc-highlight div[style] {
  position: static !important;
  width: auto !important;
  max-width: none !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

.skc-highlight video,
.skc-highlight img {
  position: static !important;
  display: block;
  width: auto !important;
  height: 100% !important;
  max-width: none;
  aspect-ratio: auto;
}

/* Phone videos are 9:16; fix the card ratio so it doesn't depend on metadata loading */
.skc-highlight:has(video) {
  aspect-ratio: 9 / 16;
}

.skc-highlight video {
  width: 100% !important;
  object-fit: cover;
}

@media (max-width: 575.98px) {
  .skc-highlight {
    height: clamp(340px, 62vh, 520px);
  }
}

/* Videos in an article (<div class="skc-videos">, see skcVideos()): phone videos side by side */
.skc-videos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

.skc-video {
  flex: 0 1 260px;
  margin: 0;
}

.skc-video-open {
  display: block;
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--skc-radius);
  background: var(--skc-blue);
}

.skc-video-open video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skc-video-open:hover .skc-highlight-hint,
.skc-video-open:focus-visible .skc-highlight-hint {
  background: var(--skc-gold);
  color: var(--skc-blue);
}

.skc-video-open:focus-visible {
  outline: 3px solid var(--skc-gold);
  outline-offset: -3px;
}

.skc-video figcaption {
  margin-top: .4rem;
  font-size: .9rem;
  color: var(--skc-text-muted);
}

@media (max-width: 575.98px) {
  .skc-video {
    flex-basis: calc(50% - .5rem);
  }
}

/* Intro (the homepage article itself) */

.skc-main > .skc-section.skc-intro {
  padding-top: .5rem;
  color: rgba(255, 255, 255, .88);
  background: var(--skc-blue);
}

.skc-intro .com-content-article {
  font-size: 1.08rem;
  line-height: 1.65;
}

.skc-intro a {
  color: var(--skc-gold);
}

/* Justified only where lines are long enough to avoid big word gaps */
@media (min-width: 768px) {
  .skc-intro .com-content-article p {
    text-align: justify;
    hyphens: auto;
  }
}

.skc-intro .com-content-article h1,
.skc-intro .com-content-article h2 {
  font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem);
  color: var(--skc-gold);
}

/* News cards */

.skc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skc-card article {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--skc-radius);
  background: #fff;
  box-shadow: var(--skc-shadow);
  transition: box-shadow .2s;
}

.skc-card article:hover,
.skc-card article:focus-within {
  box-shadow: 0 2px 4px rgba(10, 46, 97, .14), 0 6px 18px rgba(10, 46, 97, .12);
}

.skc-card article:hover .skc-card-title a {
  text-decoration: underline;
}

.skc-card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, var(--skc-blue), var(--skc-blue-light));
}

/* Blurred copy of the same preview file fills the space next to portrait images */
.skc-card-image::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: var(--skc-img, none) center / cover no-repeat;
  filter: blur(18px) brightness(.9) saturate(1.1);
}

.skc-card-image img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skc-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1.15rem 1.15rem;
}

.skc-card-date {
  font-size: .85rem;
  font-weight: 600;
  color: var(--skc-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.skc-card-title {
  margin: .35rem 0 .6rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.skc-card-title a {
  color: var(--skc-blue);
  text-decoration: none;
}

.skc-card-teaser {
  flex: 1;
  margin: 0 0 1rem;
  color: var(--skc-text-muted);
  line-height: 1.6;
}

.skc-card-more {
  font-weight: 600;
  color: var(--link-color);
}

.skc-card-more::after {
  content: " →";
}

.skc-more {
  margin: 1.5rem 0 0;
  text-align: center;
}

.btn.skc-btn {
  padding: .6rem 1.4rem;
  border-radius: var(--skc-radius);
  font-weight: 600;
  color: #fff;
  background: var(--skc-blue);
}

.btn.skc-btn:hover,
.btn.skc-btn:focus {
  color: #fff;
  background: var(--skc-blue-dark);
}

/* Events: JEvents "latest events" list (custom format string, see tools/sql) and mini calendar */

.skc-events .skc-container {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.skc-events .skc-module:only-child {
  grid-column: 1 / -1;
}

.skc-events .mod_events_latest_table,
.skc-events .mod_events_latest_table tbody {
  display: grid;
  gap: .6rem;
  width: 100%;
}

.skc-events .mod_events_latest_table tr,
.skc-events .mod_events_latest_table td {
  display: block;
}

.skc-events .mod_events_latest_table td {
  padding: 0 !important;
  border: 0 !important;
  border-left: 4px solid !important;
  border-radius: var(--skc-radius);
  background: #fff;
  box-shadow: var(--skc-shadow);
}

.skc-ev {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem 1rem;
}

.skc-ev-date {
  display: flex;
  flex: 0 0 3.4rem;
  flex-direction: column;
  align-items: center;
  padding: .35rem 0;
  border-radius: var(--skc-radius);
  color: #fff;
  background: var(--skc-blue);
  line-height: 1.05;
}

.skc-ev-day {
  font-size: 1.35rem;
  font-weight: 700;
}

.skc-ev-month {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.skc-ev-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.skc-ev-meta {
  font-size: .82rem;
  color: var(--skc-text-muted);
}

.skc-ev-title a {
  font-weight: 650;
  color: var(--skc-blue);
  text-decoration: none;
}

.skc-ev-title a:hover {
  text-decoration: underline;
}

/* Mini calendar */

.skc-events #flatcal_minical {
  padding: .9rem;
  border-radius: var(--skc-radius);
  background: #fff;
  box-shadow: var(--skc-shadow);
}

@media (min-width: 768px) {
  /* line up with the list below the section heading */
  .skc-events .skc-module + .skc-module {
    margin-top: calc(clamp(1.3rem, 1.1rem + .6vw, 1.6rem) * 1.2 + 1.25rem + .5rem + 3px);
  }
}

.skc-events #flatcal_minical table {
  width: 100% !important;
  border: 0;
  border-collapse: collapse;
  background: none;
}

.skc-events #flatcal_minical td {
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
}

.skc-events #flatcal_minical .flatcal_navbar td {
  padding-bottom: .5rem;
}

.skc-events #flatcal_minical .flatcal_month_label,
.skc-events #flatcal_minical .flatcal_month_label a {
  font-weight: 700;
  font-size: 1rem;
  color: var(--skc-blue) !important;
}

/* The arrows are JEvents images with click handlers; draw chevrons over them */
.skc-events .link_prev,
.skc-events .link_next {
  position: relative;
  width: 2rem;
}

.skc-events .link_prev img,
.skc-events .link_next img {
  position: relative;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  opacity: 0;
  cursor: pointer;
}

.skc-events .link_prev::after,
.skc-events .link_next::after {
  content: "";
  position: absolute;
  top: calc(50% - .25rem - 3px);
  left: calc(50% - 4px);
  width: 9px;
  height: 9px;
  border: solid var(--skc-blue);
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}

.skc-events .link_next::after {
  left: calc(50% - 6px);
  transform: rotate(-135deg);
}

.skc-events #flatcal_minical td.flatcal_weekdays {
  padding-bottom: .3rem !important;
  font-size: .72rem;
  font-weight: 600;
  color: var(--skc-text-muted);
  text-transform: uppercase;
}

.skc-events #flatcal_minical .flatcal_daycell a,
.skc-events #flatcal_minical .flatcal_sundaycell a,
.skc-events #flatcal_minical .flatcal_todaycell a {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 1px 0;
  border-radius: var(--skc-radius);
  font-size: .85rem;
  font-weight: 500;
  color: var(--skc-text);
  text-decoration: none;
}

.skc-events #flatcal_minical .flatcal_sundaylink {
  color: var(--skc-text-muted) !important;
}

/* Days with events */
.skc-events #flatcal_minical a.flatcal_busylink {
  font-weight: 700;
  color: var(--skc-blue) !important;
  background: rgba(10, 46, 97, .09);
}

.skc-events #flatcal_minical .flatcal_todaycell a {
  padding: 0;
  border: 0;
  border-radius: var(--skc-radius);
  font-weight: 700;
  color: var(--skc-blue) !important;
  background: var(--skc-gold) !important;
}

.skc-events #flatcal_minical .full_cal_link {
  display: none;
}

.skc-events #flatcal_minical .flatcal_daycell a:hover,
.skc-events #flatcal_minical .flatcal_sundaycell a:hover {
  color: #fff !important;
  background: var(--skc-blue);
}

@media (max-width: 767.98px) {
  .skc-events .skc-container {
    grid-template-columns: 1fr;
  }
}

/* Sparten tiles */

.skc-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 991.98px) {
  .skc-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .skc-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.skc-tile a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--skc-radius);
  background: var(--skc-blue);
}

.skc-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.skc-tile a:hover img,
.skc-tile a:focus img {
  transform: scale(1.05);
}

.skc-tile-title {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem .85rem .75rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(10, 46, 97, .85));
}

/* ---------- Inner pages ---------- */

/* Same content width as header and homepage sections */
.wrapper-static .site-grid.skc-page {
  grid-template-columns: [full-start] minmax(1.25rem, 1fr) [main-start] repeat(4, minmax(0, calc((var(--skc-container) - 2.5rem) / 4))) [main-end] minmax(1.25rem, 1fr) [full-end];
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.skc-page .card {
  border: 0;
  border-radius: var(--skc-radius);
  box-shadow: var(--skc-shadow);
}

.com-content-article .item-image img,
.com-content-category-blog .item-image img {
  border-radius: var(--skc-radius);
}

/* News page */

.skc-blog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: 1.25rem;
}

.skc-blog-header h1,
.skc-blog-header h2 {
  margin: 0;
}

.skc-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.skc-loadmore {
  min-height: 2rem;
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--skc-text-muted);
}

/* Page numbers wrap onto a second line on phones instead of running off the screen */
.skc-pagination .pagination {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: .35rem;
}

.skc-card-edit {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: .6rem;
  font-size: .85rem;
}

.skc-card-unpublished article {
  opacity: .6;
  outline: 2px dashed var(--skc-gold);
}

/* Article page: comfortable line length */

.view-article .skc-page .com-content-article,
.view-form .skc-page .skc-editor {
  max-width: 880px;
  margin: 0 auto;
}

.view-form .skc-page .skc-editor {
  max-width: 1180px;
}

.com-content-article .article-info-term {
  display: none;
}

.skc-article-image {
  margin: 0 0 1.5rem;
}

.skc-article-image img {
  display: block;
  max-height: min(70vh, 640px);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--skc-radius);
}

.skc-article-image figcaption {
  margin-top: .4rem;
  font-size: .88rem;
  color: var(--skc-text-muted);
  text-align: center;
}

.com-content-article__body img {
  max-width: 100%;
  height: auto;
}

/* Photo gallery (built from photos in the article text, see helper.php) */

.skc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, calc(50% - .25rem)), 1fr));
  gap: .5rem;
  margin: 1.5rem 0;
}

.skc-gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--skc-radius);
  background: var(--skc-bg-soft);
}

.skc-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.skc-gallery-item:hover img,
.skc-gallery-item:focus img {
  transform: scale(1.04);
}

/* Always exactly the visible screen (dvh: without the phone browser's address bar), never scrolls */
.skc-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-x;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(4, 14, 30, .94);
}

html:has(.skc-lightbox[open]) {
  overflow: hidden;
}

.skc-lightbox::backdrop {
  background: rgba(4, 14, 30, .94);
}

.skc-lb-stage {
  position: absolute;
  inset: 3.5rem 1rem 3rem;
}

.skc-lb-stage img,
.skc-lb-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skc-lightbox .skc-lb-unmute {
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  padding: .8rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: rgba(10, 46, 97, .85);
  transform: translate(-50%, -50%);
}

.skc-lb-single .skc-lb-prev,
.skc-lb-single .skc-lb-next {
  display: none;
}

.skc-lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--skc-radius);
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.skc-lightbox button:hover,
.skc-lightbox button:focus-visible {
  background: rgba(255, 255, 255, .25);
}

.skc-lightbox .skc-lb-close {
  top: .5rem;
  right: .5rem;
}

.skc-lightbox .skc-lb-prev,
.skc-lightbox .skc-lb-next {
  top: calc(50% - 24px);
  z-index: 1;
}

.skc-lightbox .skc-lb-prev {
  left: .5rem;
}

.skc-lightbox .skc-lb-next {
  right: .5rem;
}

.skc-lightbox .skc-lb-count {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  font-size: .9rem;
  text-align: center;
  opacity: .8;
}

/* Members bar (logged in) */

/* Stays at the top while scrolling, above the header scrolling away underneath */
.skc-editorbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  font-size: .85rem;
  color: var(--skc-blue);
  background: var(--skc-gold);
}

.skc-editorbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem 1.25rem;
  max-width: var(--skc-container);
  margin: 0 auto;
  padding: .3rem 1.25rem;
}

.skc-editorbar-inner span {
  margin-right: auto;
}

.skc-editorbar a {
  font-weight: 600;
  color: var(--skc-blue);
}

.skc-editorbar-create {
  padding: .1rem .6rem;
  border-radius: var(--skc-radius);
  text-decoration: none;
  color: #fff !important;
  background: var(--skc-blue);
}

/* Writing form */

.skc-editor h1 {
  margin-bottom: 1.25rem;
}

.skc-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .skc-editor-grid {
    grid-template-columns: 1fr;
  }
}

.skc-editor #jform_title {
  font-size: 1.25rem;
  font-weight: 600;
}

.skc-editor-box {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--skc-radius);
  background: var(--skc-bg-soft);
}

.skc-editor-box .control-group:last-child {
  margin-bottom: 0;
}

.skc-editor-hint {
  margin: .5rem 0 0;
  font-size: .85rem;
  color: var(--skc-text-muted);
}

.skc-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.skc-editor-actions .skc-btn {
  flex: 1 1 100%;
}

.skc-editor-actions .btn-outline-secondary,
.skc-editor-actions .btn-link {
  flex: 1 1 0;
}

.skc-editor-nachruf {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: -.25rem 0 1rem;
  font-size: .95rem;
  cursor: pointer;
}

.skc-editor-nachruf input {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
  margin-top: .1rem;
}

#adminForm.is-nachruf #jform_title {
  border: 3px double #111;
}

/* "Fotos" area: large touch targets for tablets */
.skc-photos-editor {
  margin-top: 1rem;
}

.skc-photos-editor h2 {
  margin: 0;
  font-size: 1.1rem;
}

.skc-photos-editor.is-dragover {
  outline: 3px dashed var(--skc-blue);
  outline-offset: -3px;
}

.skc-photos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skc-photos-editor.has-photos .skc-photos-list {
  margin: .75rem 0;
}

.skc-photos-list li {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--skc-radius);
  background: var(--skc-border, #dde3ec);
}

.skc-photos-list li.is-loading {
  background: linear-gradient(90deg, #dde3ec 25%, #eef2f7 50%, #dde3ec 75%) 0 0 / 200% 100%;
  animation: skc-loading 1.2s linear infinite;
}

@keyframes skc-loading {
  to { background-position: -200% 0; }
}

.skc-photos-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skc-photos-list li.is-intro {
  outline: 3px solid var(--skc-gold);
  outline-offset: -3px;
}

.skc-photo-badge {
  position: absolute;
  top: .4rem;
  left: .4rem;
  display: none;
  padding: .15rem .45rem;
  border-radius: var(--skc-radius);
  font-size: .75rem;
  font-weight: 600;
  color: var(--skc-blue);
  background: var(--skc-gold);
}

.skc-photos-list li.is-intro .skc-photo-badge {
  display: block;
}

.skc-photo-tools {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  background: rgba(10, 46, 97, .75);
}

.skc-photo-tools button {
  flex: 1;
  min-height: 44px;
  border: 0;
  font-size: 1.05rem;
  color: #fff;
  background: none;
}

.skc-photo-tools button:hover,
.skc-photo-tools button:focus-visible {
  background: rgba(255, 255, 255, .2);
}

.skc-photos-add {
  display: block;
  margin-top: .75rem;
  padding: .8rem 1rem;
  font-size: 1.05rem;
  text-align: center;
  cursor: pointer;
}

.skc-photos-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.skc-photos-add:focus-within {
  outline: 3px solid var(--skc-gold);
}

.skc-photos-status:empty {
  display: none;
}

.skc-photos-status {
  margin: .5rem 0 0;
  font-size: .9rem;
}

/* Vorstand page: group photo and one card per person */
.skc-team-photo {
  margin: 0 0 2rem;
}

.skc-team-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--skc-radius);
}

.skc-team-photo figcaption {
  margin-top: .4rem;
  font-size: .85rem;
  color: var(--skc-text-muted);
}

.skc-team-heading {
  margin: 2rem 0 .75rem;
  font-size: 1.15rem;
}

.skc-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}

.skc-person {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem .75rem;
  text-align: center;
  border: 1px solid #dde3ec;
  border-top: 3px solid var(--skc-blue);
  border-radius: var(--skc-radius);
  background: #fff;
  box-shadow: var(--skc-shadow);
}

/* Person symbol */
.skc-person::before {
  content: "";
  width: 3rem;
  height: 3rem;
  margin-bottom: .6rem;
  border-radius: 50%;
  background: var(--skc-bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a2e61'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z'/%3E%3C/svg%3E") center 60% / 60% no-repeat;
}

.skc-person p {
  margin: 0;
}

.skc-person-role {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--skc-blue);
}

.skc-person-name {
  margin: .15rem 0 .6rem !important;
  font-size: 1.1rem;
  font-weight: 700;
}

.skc-person-mail {
  margin-top: auto !important;
  font-size: .8rem;
  white-space: nowrap;
}

/* Phones: compact cards, symbol on the left */
@media (max-width: 575.98px) {
  .skc-team {
    gap: .6rem;
  }

  .skc-person {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    column-gap: .85rem;
    align-items: start;
    padding: .75rem;
    text-align: left;
  }

  .skc-person::before {
    grid-row: span 3;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
  }

  .skc-person-name {
    margin-bottom: .3rem !important;
  }
}

.skc-person-vacant {
  border-top-color: #b8c2d0;
  background: var(--skc-bg-soft);
  box-shadow: none;
}

.skc-person-vacant .skc-person-name {
  font-weight: 500;
  font-style: italic;
  color: var(--skc-text-muted);
}

/* ---------- Design variants A/B/C (preview; chosen via menu item Page Class) ---------- */

.skc-art-kicker {
  margin: 0 0 .35rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--skc-gold);
}

.skc-art .icons {
  float: right;
}

.skc-art-body {
  font-size: 1.05rem;
  line-height: 1.7;
}

.skc-art-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--skc-radius);
}

.skc-art-back {
  margin-top: 2.5rem;
  font-weight: 600;
}

/* Contact and next dates (Sparten) */
.skc-art-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 0 0 1.75rem;
}

.skc-art-fact {
  padding: 1rem 1.1rem;
  border-radius: var(--skc-radius);
  font-size: .95rem;
  line-height: 1.5;
  background: var(--skc-bg-soft);
}

.skc-art-fact h2 {
  margin: 0 0 .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--skc-blue);
}

.skc-art-fact p {
  margin: 0;
}

.skc-art-fact p + p {
  margin-top: .5rem;
}

.skc-art-fact-more {
  font-weight: 600;
}

.skc-art-dates,
.skc-art-morelist {
  margin: 0 0 .5rem;
  padding: 0;
  list-style: none;
}

.skc-art-dates li + li,
.skc-art-morelist li + li {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid #dde3ec;
}

.skc-art-dates a,
.skc-art-morelist a {
  display: grid;
  color: var(--skc-text);
  text-decoration: none;
}

.skc-art-dates time,
.skc-art-morelist time {
  font-size: .8rem;
  font-weight: 600;
  color: var(--skc-blue);
}

/* Category colour as a bar, like in the calendar */
.skc-art-dates a {
  padding-left: .6rem;
  border-left: 3px solid var(--skc-cat, var(--skc-blue));
}

.skc-art-dates small {
  font-weight: 500;
  color: var(--skc-text-muted);
}

.skc-art-contact-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.skc-art-contact-role {
  margin-bottom: .4rem !important;
  font-size: .85rem;
  color: var(--skc-text-muted);
}

.skc-art-dates a:hover span,
.skc-art-morelist a:hover span {
  text-decoration: underline;
}

/* A "Magazin": banner across the whole width, title on the picture */
.skc-art-a .skc-art-hero {
  position: relative;
  width: 100vw;
  height: clamp(280px, 58vh, 560px);
  margin: -2rem 0 2rem calc(50% - 50vw);
  overflow: hidden;
  background: var(--skc-blue);
}

.skc-art-a .skc-art-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skc-art-a .skc-art-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(10, 46, 97, .88));
}

.skc-art-a .skc-art-hero.no-image {
  height: auto;
  min-height: 200px;
}

.skc-art-a .skc-art-hero-text {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: var(--skc-container);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  color: #fff;
}

.skc-art-a .skc-art-hero h1 {
  max-width: 50rem;
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
  line-height: 1.1;
  color: #fff;
}

.skc-art-a .skc-art-body {
  max-width: 46rem;
  margin: 0 auto;
}

.skc-art-a .skc-art-more {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #dde3ec;
}

.skc-art-a .skc-art-more h2 {
  font-size: 1.1rem;
}

.skc-art-a .skc-art-more h2 {
  margin-bottom: 1rem;
}

.skc-art-a .skc-art-back {
  max-width: 46rem;
  margin-right: auto;
  margin-left: auto;
}

/* B "Klassisch": one calm column like a newspaper */
.skc-art-b {
  max-width: 46rem;
  margin: 0 auto;
}

.skc-art-b .skc-art-head {
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--skc-blue);
}

.skc-art-b .skc-art-head h1 {
  margin: 0;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  line-height: 1.1;
}

.skc-art-b .skc-art-figure {
  margin: 1.5rem 0;
}

.skc-art-b .skc-art-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--skc-radius);
}

.skc-art-b .skc-art-body > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--skc-text);
}

.skc-art-b .skc-art-fact {
  border-top: 3px solid var(--skc-gold);
  background: none;
  padding-inline: 0;
}

/* C "Zweispaltig": blue header with the picture beside the title, sidebar */
.skc-art-c .skc-art-split {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr);
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--skc-radius);
  color: #fff;
  background: var(--skc-blue);
}

.skc-art-c .skc-art-split.no-image {
  grid-template-columns: 1fr;
  min-height: 0;
}

.skc-art-c .skc-art-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
}

.skc-art-c .skc-art-split h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.35rem, 1.05rem + 1vw, 1.9rem);
  line-height: 1.15;
  color: #fff;
}

.skc-art-c .skc-art-teaser {
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.skc-art-c .skc-art-split-image {
  position: relative;
  overflow: hidden;
}

/* Height follows the picture's proportions within limits; the picture is never cut, a blurred
   copy fills the space left over (very tall or very wide pictures) */
.skc-art-c .skc-art-split-image {
  width: 100%;
  aspect-ratio: var(--skc-ratio, 16 / 9);
  min-height: 300px;
  max-height: 540px;
  background: var(--skc-blue);
}

.skc-art-split-fill {
  position: absolute;
  inset: -24px;
  background: var(--skc-img, none) center / cover no-repeat;
  filter: blur(18px) brightness(.85);
}

.skc-art-c .skc-art-split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skc-art-c .skc-art-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 2.25rem;
  align-items: start;
  margin-top: 2rem;
}

.skc-art-c .skc-art-side {
  position: sticky;
  top: 3.5rem;
}

.skc-art-c .skc-art-side .skc-art-facts {
  grid-template-columns: 1fr;
  margin: 0 0 1rem;
}

.skc-art-c .skc-article-event {
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
}

@media (max-width: 991.98px) {
  .skc-art-c .skc-art-split,
  .skc-art-c .skc-art-columns {
    grid-template-columns: 1fr;
  }

  .skc-art-c .skc-art-split {
    min-height: 0;
  }

  .skc-art-c .skc-art-split-image {
    min-height: 0;
    max-height: 75vh;
    order: -1;
  }

  .skc-art-c .skc-art-split-text {
    padding: 1.5rem;
  }

  .skc-art-c .skc-art-side {
    position: static;
  }
}

/* News overview A: newest article large, then cards with filled pictures */
.skc-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: var(--skc-radius);
  background: var(--skc-bg-soft);
  box-shadow: var(--skc-shadow);
}

.skc-feature-image {
  min-height: 300px;
  background: var(--skc-blue);
}

.skc-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skc-feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.skc-feature-text h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  line-height: 1.15;
}

.skc-feature-text h2 a {
  color: var(--skc-blue);
  text-decoration: none;
}

.skc-cards-cover .skc-card-image::before {
  display: none;
}

.skc-cards-cover .skc-card-image img {
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .skc-feature {
    grid-template-columns: 1fr;
  }

  .skc-feature-image {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .skc-feature-text {
    padding: 1.25rem;
  }
}

/* News overview B: list grouped by year */
.skc-list-year {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 .5rem;
  font-size: 1.4rem;
  color: var(--skc-blue);
}

.skc-list-year::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #dde3ec;
}

.skc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skc-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #dde3ec;
}

.skc-list-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--skc-radius);
  background: linear-gradient(135deg, var(--skc-blue), var(--skc-blue-light));
}

.skc-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.skc-list-item:hover .skc-list-image img {
  transform: scale(1.04);
}

.skc-list-text time {
  font-size: .85rem;
  font-weight: 600;
  color: var(--skc-text-muted);
}

.skc-list-text h3 {
  margin: .2rem 0 .4rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.skc-list-text h3 a {
  color: var(--skc-blue);
  text-decoration: none;
}

.skc-list-text p {
  margin: 0;
  color: var(--skc-text-muted);
}

.skc-list-item .skc-card-edit {
  position: absolute;
  right: 0;
  bottom: .4rem;
}

@media (max-width: 575.98px) {
  .skc-list-item {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: .9rem;
  }

  .skc-list-text h3 {
    font-size: 1.05rem;
  }

  .skc-list-text p {
    display: none;
  }
}

/* News tiles (News page, homepage, "Weitere News"): picture fills the tile, the whole tile
   is one link; the newest one is large */
.skc-newstiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skc-newstile {
  position: relative;
  overflow: hidden;
  border-radius: var(--skc-radius);
  background: linear-gradient(135deg, var(--skc-blue), var(--skc-blue-light));
  box-shadow: var(--skc-shadow);
}

.skc-newstile.is-big {
  grid-column: span 2;
  grid-row: span 2;
}

.skc-newstile-link {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  text-decoration: none;
}

.skc-newstile-link:focus-visible {
  outline: 3px solid var(--skc-gold);
  outline-offset: -3px;
}

.skc-newstile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.skc-newstile-link:hover img {
  transform: scale(1.05);
}

.skc-newstile-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 46, 97, 0) 25%, rgba(10, 46, 97, .7) 55%, rgba(10, 46, 97, .95) 100%);
}

.skc-newstile-text {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: .25rem;
  padding: 1rem 1.1rem;
}

.skc-newstile-text {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

.skc-newstile-text time {
  font-size: .8rem;
  font-weight: 700;
  color: #f0c060;
}

.skc-newstile-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #fff;
}

.skc-newstile-link:hover .skc-newstile-title {
  text-decoration: underline;
}

.skc-newstile-teaser {
  display: -webkit-box;
  overflow: hidden;
  font-size: .88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .85);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.skc-newstile.is-big .skc-newstile-text {
  padding: 1.5rem 1.75rem;
}

.skc-newstile.is-big .skc-newstile-title {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem);
}

.skc-newstile.is-big .skc-newstile-teaser {
  font-size: 1rem;
  -webkit-line-clamp: 3;
}

.skc-newstile .skc-card-edit {
  position: absolute;
  z-index: 3;
  top: .5rem;
  right: .5rem;
  margin: 0;
  padding: .15rem .5rem;
  border-radius: var(--skc-radius);
  color: var(--skc-blue);
  background: #fff;
}

.skc-newstile-kicker {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #f0c060;
}

/* Homepage Sparten: five tall tiles in a row */
.skc-newstiles.skc-newstiles-sparten {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 300px;
}

.skc-newstiles-sparten .skc-newstile-teaser {
  -webkit-line-clamp: 3;
}

@media (max-width: 991.98px) {
  .skc-newstiles.skc-newstiles-sparten {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .skc-newstiles-sparten .skc-newstile:first-child {
    grid-column: span 2;
  }
}

/* Photo carousel in news articles: two large photos at a time, arrows and swiping
   (buttons added by js/user.js); a tap opens the lightbox */
.skc-carousel {
  position: relative;
  margin: 1.5rem 0;
}

.skc-art-news .skc-gallery {
  display: flex;
  gap: .6rem;
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.skc-art-news .skc-gallery::-webkit-scrollbar {
  display: none;
}

.skc-art-news .skc-gallery-item {
  position: relative;
  flex: 0 0 calc(50% - .3rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--skc-blue);
}

/* Photos are never cut: the whole photo is shown, a blurred copy fills the rest of the frame */
.skc-art-news .skc-gallery-item::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--skc-img, none) center / cover no-repeat;
  filter: blur(16px) brightness(.85);
}

.skc-art-news .skc-gallery-item img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Phones: one photo at a time */
@media (max-width: 767.98px) {
  .skc-art-news .skc-gallery-item {
    flex-basis: 100%;
  }
}

.skc-art-news .skc-gallery-item:hover img,
.skc-art-news .skc-gallery-item:focus img {
  transform: none;
}

.skc-carousel-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--skc-blue);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transform: translateY(-50%);
}

.skc-carousel-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.skc-carousel-prev {
  left: .5rem;
}

.skc-carousel-next {
  right: .5rem;
}

.skc-carousel-count {
  margin-top: .4rem;
  font-size: .85rem;
  text-align: right;
  color: var(--skc-text-muted);
}

/* News article: one text column; "Weitere News" as a row of tiles below */
.skc-art-single {
  max-width: 50rem;
  margin: 2rem auto 0;
}

.skc-art-more-below {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dde3ec;
}

.skc-art-more-below h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.skc-newstiles-more {
  grid-auto-rows: 220px;
}

.skc-art-news .skc-art-back {
  max-width: 50rem;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 767.98px) {
  .skc-newstiles {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .skc-newstile.is-big {
    grid-column: auto;
    grid-row: span 1;
  }

  .skc-newstile.is-big .skc-newstile-teaser {
    -webkit-line-clamp: 2;
  }
}

/* ---------- Background picture on all inner pages: the whole picture (same as behind the
   homepage highlights) fills the screen and stays in place; the content lies on a white panel
   that scrolls over it ---------- */
body.site:not(.skc-home) {
  background: var(--skc-blue);
}

/* Header and footer stay above the picture layer */
body.site:not(.skc-home) .skc-footer {
  position: relative;
  z-index: 1;
}

.skc-pageband {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 46, 97, .45) 0%, rgba(10, 46, 97, .15) 35%, rgba(10, 46, 97, .45) 100%),
    var(--skc-hero-image) center 40% / cover no-repeat, var(--skc-blue);
}

.wrapper-static .site-grid.skc-page {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: clamp(1.25rem, 4vh, 2.5rem);
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
}

.skc-page > .container-component {
  --skc-panel-pad: clamp(1.25rem, 3vw, 2.5rem);
  min-width: 0;
  padding: var(--skc-panel-pad);
  border-radius: var(--skc-radius);
  background: #fff;
  box-shadow: 0 12px 40px rgba(10, 46, 97, .35);
}

.skc-page > .container-component > main {
  margin-top: 0;
}

/* Phones: the panel runs from edge to edge (no side columns or gaps in the page grid) */
@media (max-width: 767.98px) {
  .wrapper-static .site-grid.skc-page {
    grid-template-columns: [full-start main-start] minmax(0, 1fr) [main-end full-end];
    column-gap: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .skc-page > .container-component {
    border-radius: 0;
  }
}

/* Articles: the panel itself is narrower (comfortable line length), the article fills it */
.view-article .skc-page > .container-component {
  justify-self: center;
  width: 100%;
  max-width: calc(1000px + 2 * var(--skc-panel-pad));
}

.view-article .skc-page .com-content-article {
  max-width: none;
}

/* Banner/split headers reach the edges of the panel */
.skc-art-a .skc-art-hero {
  width: auto;
  height: clamp(260px, 45vh, 480px);
  margin: calc(-1 * var(--skc-panel-pad, 0px)) calc(-1 * var(--skc-panel-pad, 0px)) 2rem;
  border-radius: var(--skc-radius) var(--skc-radius) 0 0;
}

.skc-art-a .skc-art-hero-text {
  padding: 0 var(--skc-panel-pad, 1.25rem) 1.75rem;
}

.skc-art-c .skc-art-split {
  margin: calc(-1 * var(--skc-panel-pad, 0px)) calc(-1 * var(--skc-panel-pad, 0px)) 0;
  border-radius: var(--skc-radius) var(--skc-radius) 0 0;
}

.skc-art-c .skc-art-split-text {
  padding: var(--skc-panel-pad, 2.5rem);
}

/* The blue of the title area fades into the picture */
.skc-art-c .skc-art-split-image::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, var(--skc-blue) 0%, rgba(10, 46, 97, .5) 5%, rgba(10, 46, 97, 0) 14%);
}

@media (max-width: 991.98px) {
  .skc-art-c .skc-art-split-image::before {
    background: linear-gradient(0deg, var(--skc-blue) 0%, rgba(10, 46, 97, .5) 6%, rgba(10, 46, 97, 0) 18%);
  }

  .skc-art-c .skc-art-split-text {
    padding: .25rem var(--skc-panel-pad, 1.25rem) 1rem;
  }

  .skc-art-c .skc-art-split h1 {
    margin-bottom: 0;
    font-size: 1.35rem;
  }
}

/* ---------- Obituaries ("Nachruf …"): black frame, calm and centred ---------- */
.skc-nachruf {
  max-width: 46rem;
  margin: 0 auto;
}

.skc-nachruf-sheet {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 6px double #111;
  text-align: center;
  background: #fff;
}

.skc-nachruf-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 .75rem;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #555;
}

.skc-nachruf-kicker::before,
.skc-nachruf-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #111;
}

.skc-nachruf-head h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 600;
  color: #111;
}

.skc-nachruf-photo {
  margin: 0 auto 1.75rem;
}

.skc-nachruf-photo img,
.skc-nachruf-text img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 1px solid #111;
}

.skc-nachruf-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #222;
}

.skc-nachruf-text p {
  text-align: center;
}

.skc-nachruf-date {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #111;
  font-size: .85rem;
  color: #666;
}

/* On an obituary page the background picture slowly turns black and white */
body:has(.skc-nachruf) .skc-pageband {
  filter: grayscale(1) brightness(.85);
  animation: skc-mourning 1.6s ease-in-out;
}

@keyframes skc-mourning {
  from { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.skc-nachruf) .skc-pageband {
    animation: none;
  }
}

/* Tile in the news overview */
.skc-newstile.is-nachruf {
  border: 4px double #111;
  background: #1a1a1a;
}

.skc-newstile.is-nachruf img {
  object-fit: contain;
  filter: grayscale(1);
}

.skc-newstile.is-nachruf .skc-newstile-link::after {
  background: linear-gradient(rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .75) 65%, rgba(0, 0, 0, .95) 100%);
}

.skc-newstile.is-nachruf .skc-newstile-kicker {
  color: #ddd;
  letter-spacing: .12em;
}

/* ---------- Content building blocks (Sparten, Verein pages) ---------- */
.skc-art-body h2 {
  clear: both;
  margin: 2rem 0 .75rem;
  font-size: 1.35rem;
}

.skc-art-body h3 {
  margin: 1.5rem 0 .5rem;
  font-size: 1.1rem;
}

.skc-art-body > h2:first-child {
  margin-top: 0;
}

.skc-lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--skc-text);
}

/* Photo beside the text, with a short caption; full width on phones */
.skc-figure {
  margin: .3rem 0 1rem;
}

.skc-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--skc-radius);
  box-shadow: var(--skc-shadow);
}

.skc-figure figcaption {
  margin-top: .35rem;
  font-size: .82rem;
  color: var(--skc-text-muted);
}

.skc-figure-right {
  float: right;
  width: fit-content;
  max-width: min(42%, 360px);
  margin-left: 1.5rem;
}

.skc-figure-left {
  float: left;
  width: fit-content;
  max-width: min(42%, 360px);
  margin-right: 1.5rem;
}

/* Small photos keep their size instead of being enlarged */
.skc-figure-right img,
.skc-figure-left img {
  width: auto;
}

.skc-figure-wide {
  clear: both;
  margin: 1.5rem 0;
}

.skc-figure-wide img {
  width: 100%;
}

@media (max-width: 575.98px) {
  .skc-figure-right,
  .skc-figure-left {
    float: none;
    width: auto;
    margin: 0 0 1rem;
  }
}

.skc-art-body .skc-gallery {
  clear: both;
}

/* Highlighted note (training times, guests welcome …) */
.skc-callout {
  clear: both;
  margin: 1.5rem 0;
  padding: .9rem 1.1rem;
  border-left: 4px solid var(--skc-gold);
  border-radius: var(--skc-radius);
  background: var(--skc-bg-soft);
}

/* Offers side by side */
.skc-offers {
  clear: both;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.skc-offer {
  padding: 1rem 1.1rem;
  border-top: 3px solid var(--skc-blue);
  border-radius: var(--skc-radius);
  background: var(--skc-bg-soft);
}

.skc-offer h3 {
  margin: 0 0 .4rem;
  font-size: 1rem;
}

.skc-offer p {
  margin: 0;
  font-size: .95rem;
}

/* Sidebar boxes from the text (<div class="skc-aside">), e.g. a partner */
.skc-aside {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--skc-radius);
  font-size: .9rem;
  line-height: 1.5;
  background: var(--skc-bg-soft);
}

.skc-aside h2 {
  margin: 0 0 .6rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--skc-blue);
}

.skc-aside img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: .6rem;
}

.skc-aside p {
  margin: 0 0 .6rem;
}

.skc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: 0 0 .7rem;
  padding: 0;
  list-style: none;
}

.skc-tags li {
  padding: .1rem .5rem;
  border: 1px solid #c9d3e0;
  border-radius: 999px;
  font-size: .78rem;
  background: #fff;
}

/* Pages without sidebar (e.g. Vorstand): full panel width */
.skc-art-full {
  margin-top: 2rem;
}

.skc-signature {
  clear: both;
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--skc-text-muted);
}

.skc-signature strong {
  font-style: normal;
  color: var(--skc-text);
}

/* Short facts in a sidebar box */
.skc-facts-list {
  margin: 0 0 .6rem;
  padding: 0;
  list-style: none;
}

.skc-facts-list li + li {
  margin-top: .45rem;
  padding-top: .45rem;
  border-top: 1px solid #dde3ec;
}

.skc-facts-list strong {
  display: block;
  font-size: .78rem;
  color: var(--skc-blue);
}

.skc-aside-link {
  font-weight: 600;
}

/* Opening hours */
.skc-hours {
  width: 100%;
  border-collapse: collapse;
}

.skc-hours th,
.skc-hours td {
  padding: .25rem 0;
  border-bottom: 1px solid #dde3ec;
  text-align: left;
}

.skc-hours th {
  font-weight: 600;
}

.skc-hours td {
  text-align: right;
}

/* Download list with a document symbol */
.skc-downloads {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skc-downloads li + li {
  margin-top: .35rem;
}

.skc-downloads a {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.skc-downloads a::before {
  content: "";
  flex: none;
  width: .85rem;
  height: 1.05rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M2 0h11l7 7v15a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm10 2v6h6M5 14h10M5 18h10' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M2 0h11l7 7v15a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm10 2v6h6M5 14h10M5 18h10' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Review markers (local copy only): text that was newly written or reworded */
mark.skc-review {
  padding: 0 .12em;
  border-radius: 2px;
  color: inherit;
  background: #fff1a8;
  box-shadow: inset 0 -2px 0 #e0a000;
}

.skc-download mark.skc-review {
  color: var(--skc-blue);
}

/* Draft markers: added (red), removed (struck through), still to fill in */
ins.skc-add {
  color: #a4161a;
  background: #fde4e4;
  text-decoration: none;
}

ins.skc-add:has(> h2, > p, > ul) {
  display: block;
  padding: .1rem .8rem;
  border-left: 4px solid #d62828;
}

ins.skc-add h2 {
  color: #a4161a;
}

del.skc-del {
  color: #6b7280;
  text-decoration: line-through;
}

del.skc-del:has(> h2, > p) {
  display: block;
  padding: .1rem .8rem;
  border-left: 4px solid #9ca3af;
}

del.skc-del h2,
del.skc-del p {
  color: #6b7280;
  text-decoration: line-through;
}

.skc-todo {
  font-weight: 700;
  outline: 2px dashed #d62828;
  outline-offset: 1px;
}

.skc-review-block {
  outline: 3px dashed #e0a000;
  outline-offset: 2px;
}

/* Big download button (e.g. Aufnahmeantrag) */
.skc-download a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  padding: .7rem 1.2rem;
  border-radius: var(--skc-radius);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--skc-blue);
}

.skc-download a:hover {
  background: var(--skc-blue-dark);
}

.skc-download a::before {
  content: "↓";
  font-size: 1.2rem;
}

/* Fee table */
.skc-fees {
  width: 100%;
  max-width: 30rem;
  margin: 0 0 1rem;
  border-collapse: collapse;
}

.skc-fees th,
.skc-fees td {
  padding: .55rem .25rem;
  border-bottom: 1px solid #dde3ec;
  text-align: left;
}

.skc-fees th {
  font-weight: 500;
}

.skc-fees td {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

/* Embedded tool (booking calendar on SKC Intern) */
.skc-embed {
  position: relative;
  height: 700px;
  margin: 1rem 0;
  overflow: hidden;
  border: 1px solid #dde3ec;
  border-radius: var(--skc-radius);
}

.skc-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.skc-embed-tall {
  height: 1200px;
}

/* Content of other providers before "Inhalt laden" */
.skc-consent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 34rem;
  min-height: 18rem;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
}

.skc-embed .skc-consent {
  max-width: none;
  background: var(--skc-bg-soft);
}

.skc-consent > * {
  max-width: 34rem;
  margin-right: auto;
  margin-left: auto;
}

.skc-consent-title {
  margin-bottom: .4rem;
  color: var(--skc-blue);
  font-size: 1.15rem;
  font-weight: 700;
}

.skc-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  align-items: center;
  justify-content: center;
  margin: .5rem auto 0;
}

.skc-consent .btn {
  border-radius: 0;
}

/* The notice needs no full embed height */
.skc-embed:has(> .skc-consent) {
  height: auto;
}

/* Partner box: smaller keywords */
.skc-partner .skc-tags li {
  padding: 0 .4rem;
  font-size: .7rem;
}

/* Old contact boxes (Impressum): cards side by side */
.skc-art-body .contact-container {
  margin: 1rem 0 1.5rem;
}

.skc-art-body .contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.skc-art-body .contact-item {
  padding: 1rem 1.1rem;
  border-top: 3px solid var(--skc-blue);
  border-radius: var(--skc-radius);
  background: var(--skc-bg-soft);
}

.skc-art-body .contact-title {
  margin-bottom: .35rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--skc-blue);
}

.skc-art-body .contact-name {
  margin-bottom: .4rem;
}

.skc-art-body .contact-note {
  margin-top: .6rem;
  color: var(--skc-text-muted);
  font-size: .85rem;
}

/* Several contact persons in one box */
.skc-art-contact-person + .skc-art-contact-person {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid #dde3ec;
}

.skc-art-contact-phone {
  margin-top: .6rem !important;
}

/* News form: "Termin" box */
.skc-editor-event h2 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
}

.skc-editor-event .btn {
  width: 100%;
  min-height: 44px;
}

.skc-editor-event-or {
  display: block;
  margin: 1rem 0 .35rem;
  font-weight: 600;
}

.skc-editor-event select {
  min-height: 44px;
  margin-bottom: .5rem;
}

/* Article: date of the linked calendar event */
.skc-article-event {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: .75rem 1rem;
  border-left: 4px solid var(--skc-gold);
  border-radius: var(--skc-radius);
  color: var(--skc-text);
  background: var(--skc-bg-soft);
  text-decoration: none;
}

.skc-article-event:hover {
  background: #e8edf4;
}

.skc-article-event-date {
  display: grid;
  min-width: 4.2rem;
  padding: .3rem .5rem;
  border-radius: var(--skc-radius);
  font-size: .75rem;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  background: var(--skc-blue);
}

.skc-article-event-date span {
  font-size: 1.5rem;
  font-weight: 700;
}

.skc-article-event-text {
  display: grid;
  color: var(--skc-blue);
}

.skc-article-event-text strong {
  color: var(--skc-text);
}

/* Attachments in event descriptions and articles */
a.skc-attachment {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border: 1px solid var(--skc-blue);
  border-radius: var(--skc-radius);
  font-weight: 600;
  color: var(--skc-blue);
  text-decoration: none;
}

a.skc-attachment::before {
  content: "";
  width: 1rem;
  height: 1.2rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M2 0h11l7 7v15a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm10 2v6h6M5 14h10M5 18h10' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M2 0h11l7 7v15a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm10 2v6h6M5 14h10M5 18h10' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

a.skc-attachment:hover {
  color: #fff;
  background: var(--skc-blue);
}

/* Calendar event form (JEvents), simplified by js/editor.js */
.skc-event-form #myEditTabs,
.skc-event-form .jevcreator,
.skc-event-form .jevaccess,
.skc-event-form .jev_extrainfo,
.skc-event-form .checkbox12h,
.skc-event-form #jevmultiday,
.skc-event-form .jev_edit_event_notice:empty {
  display: none !important;
}

.skc-event-form .ys-gsl-action-buttons .gsl-navbar-left {
  gap: .5rem;
  padding: .5rem;
  border-radius: var(--skc-radius);
  background: var(--skc-bg-soft) !important;
}

.skc-event-form .ys-gsl-action-buttons .gsl-button {
  min-height: 44px;
  border: 1px solid var(--skc-blue);
  border-radius: var(--skc-radius);
  font-weight: 600;
  text-transform: none;
  color: var(--skc-blue);
  background: #fff;
}

.skc-event-form .ys-gsl-action-buttons button[onclick*="icalevent.save"] {
  color: #fff;
  background: var(--skc-blue);
}

.skc-event-form #jevents_body,
.skc-event-form #adminForm .gsl-switcher > li:first-child {
  font-size: 1rem;
}

.skc-event-form #adminForm label {
  font-weight: 600;
}

.skc-event-form #adminForm .gsl-input,
.skc-event-form #adminForm .gsl-select,
.skc-event-form #adminForm .gsl-textarea {
  min-height: 44px;
  border-radius: var(--skc-radius);
  font-size: 1rem;
}

.skc-event-form #title {
  width: 100%;
  font-size: 1.2rem;
  font-weight: 600;
}

.skc-event-when,
.skc-event-repeat,
.skc-event-from {
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: var(--skc-radius);
  background: var(--skc-bg-soft);
}

.skc-event-from {
  border-left: 4px solid var(--skc-gold);
}

.skc-event-when h2 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
}

.skc-event-when fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.skc-event-when fieldset > legend {
  display: none;
}

.skc-event-when .jevstartdate,
.skc-event-when .jevstarttime,
.skc-event-when .jevenddate,
.skc-event-when .jevendtime,
.skc-event-when .allDayEvent,
.skc-event-when .jevnoeendtime {
  margin: .4rem 0;
}

.skc-event-repeat summary {
  font-weight: 600;
  cursor: pointer;
}

.skc-event-repeat[open] summary {
  margin-bottom: .75rem;
}

.skc-attach {
  margin-top: .75rem;
}

.skc-attach-add {
  display: inline-block;
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid var(--skc-blue);
  border-radius: var(--skc-radius);
  color: var(--skc-blue);
  cursor: pointer;
}

.skc-attach-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.skc-attach-add:focus-within {
  outline: 3px solid var(--skc-gold);
}

.skc-attach-status:empty {
  display: none;
}

.skc-attach-status {
  margin: .5rem 0 0;
  font-size: .9rem;
}

/* ---------- Calendar pages (JEvents, "flat" theme) ---------- */

.com_jevents #jevents #jevents_body #jevents .contentheading {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  color: var(--skc-blue);
}

.com_jevents #jevents #jevents_body {
  padding: 0;
  border: 0;
  background: none;
}

.com_jevents #jevents #jevents_body .month_date {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  float: none;
  margin: 0 0 .75rem;
}

.com_jevents #jevents #jevents_body .month_title,
.com_jevents #jevents #jevents_body .month_title_year {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--skc-text);
}

/* View switcher (Monat / Jahr) */
.com_jevents #jevents #jevents_body .new-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: none;
}

.com_jevents #jevents #jevents_body .new-navigation .nav-items {
  display: inline-flex;
  width: auto;
  margin: 0;
  border: 1px solid var(--skc-blue);
  border-radius: var(--skc-radius);
  overflow: hidden;
}

.com_jevents #jevents #jevents_body .new-navigation .nav-items > div {
  float: none;
  margin: 0;
  border: 0;
  background: none;
}

.com_jevents #jevents #jevents_body .new-navigation .nav-items > div + div {
  border-left: 1px solid var(--skc-blue);
}

.com_jevents #jevents #jevents_body .new-navigation .nav-items a {
  display: block;
  padding: .4rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--skc-blue);
  background: #fff;
  text-decoration: none;
}

.com_jevents #jevents #jevents_body .new-navigation .nav-items > div.active a,
.com_jevents #jevents #jevents_body .new-navigation .nav-items a:hover {
  border: 0;
  color: #fff;
  background: var(--skc-blue);
}

.com_jevents #jevents #jevents_body #nav-jumpto,
.com_jevents #jevents #jevents_body #nav-search,
.com_jevents #jevents #jevents_body #jumpto,
.com_jevents #jevents #jevents_body .jev_pretoolbar:empty {
  display: none !important;
}

/* Previous / next month bar */
.com_jevents #jevents #jevents_body .jev_toprow {
  margin: 0 0 .75rem;
  border: 0;
  background: none;
}

.com_jevents #jevents #jevents_body .jev_toprow .jev_header2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border: 0;
  background: none;
}

.com_jevents #jevents #jevents_body .jev_toprow .previousmonth,
.com_jevents #jevents #jevents_body .jev_toprow .nextmonth,
.com_jevents #jevents #jevents_body .jev_toprow .currentmonth {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: .95rem;
  line-height: 1.4;
  background: none;
}

.com_jevents #jevents #jevents_body .jev_toprow .currentmonth {
  font-weight: 700;
  color: var(--skc-text-muted);
}

.com_jevents #jevents #jevents_body .jev_toprow .previousmonth a,
.com_jevents #jevents #jevents_body .jev_toprow .nextmonth a {
  display: inline-block;
  background-image: none !important;
  padding: .35rem .8rem;
  border-radius: var(--skc-radius);
  font-weight: 600;
  color: var(--skc-blue);
  background: var(--skc-bg-soft);
  text-decoration: none;
}

.com_jevents #jevents #jevents_body .jev_toprow .previousmonth a:hover,
.com_jevents #jevents #jevents_body .jev_toprow .nextmonth a:hover {
  border: 0;
  color: #fff;
  background: var(--skc-blue);
}

.com_jevents #jevents #jevents_body .jev_toprow .previousmonth a::before {
  content: "‹ ";
}

.com_jevents #jevents #jevents_body .jev_toprow .nextmonth a::after {
  content: " ›";
}

.com_jevents #jevents #jevents_body .jev_toprow img,
.com_jevents #jevents #jevents_body .jev_toprow .fa {
  display: none;
}

/* Month grid */
.com_jevents #jevents #jevents_body .cal_top_day_names,
.com_jevents #jevents #jevents_body table.cal_table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
}

.com_jevents #jevents #jevents_body .cal_top_day_names td,
.com_jevents #jevents #jevents_body .cal_daysnames {
  padding: .4rem .5rem;
  border: 0;
  font-size: .75rem;
  font-weight: 700;
  color: var(--skc-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: none;
}

.com_jevents #jevents #jevents_body table.cal_table {
  background: none;
}

.com_jevents #jevents #jevents_body table.cal_table td {
  height: 104px;
  padding: .3rem;
  border: 1px solid #e3e8ef;
  vertical-align: top;
  background: #fff;
}

.com_jevents #jevents #jevents_body table.cal_table td.cal_daysoutofmonth {
  color: #b5bdc8;
  background: var(--skc-bg-soft);
}

.com_jevents #jevents #jevents_body .cal_daylink {
  display: inline-grid;
  place-items: center;
  min-width: 1.8rem;
  height: 1.8rem;
  margin-bottom: .2rem;
  border-radius: var(--skc-radius);
  font-size: .85rem;
  font-weight: 600;
  color: var(--skc-text);
  text-decoration: none;
}

.com_jevents #jevents #jevents_body .cal_daylink .listview {
  display: none;
}

.com_jevents #jevents #jevents_body td.cal_today .cal_daylink {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: var(--skc-radius);
  color: var(--skc-blue);
  background: var(--skc-gold);
}

.com_jevents #jevents #jevents_body td.cal_today {
  background: #fffaf0 !important;
}

/* Events in the grid: keep the category colour as a left bar */
.com_jevents #jevents #jevents_body .event_div_1 {
  margin: 0 0 3px;
  padding: 0;
  border: 0;
  background: none;
}

.com_jevents #jevents #jevents_body .month_cell_st {
  padding: .2rem .35rem !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left-width: 3px !important;
  border-radius: 2px;
  background: var(--skc-bg-soft);
}

.com_jevents #jevents #jevents_body a.cal_titlelink {
  display: block;
  overflow: hidden;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--skc-text) !important;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.com_jevents #jevents #jevents_body a.cal_titlelink:hover {
  color: var(--skc-blue) !important;
  text-decoration: underline;
}

/* Category legend */
.com_jevents #jevents #jevents_body .event_legend_container {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: none;
}

.com_jevents #jevents #jevents_body .event_legend_item {
  display: flex;
  align-items: center;
  float: none;
  width: auto !important;
  margin: 0;
  padding: 0 0 0 .5rem !important;
  border-left-width: 4px !important;
  font-size: .85rem;
}

.com_jevents #jevents #jevents_body .event_legend_name {
  border: 0 !important;
  padding: 0;
}

.com_jevents #jevents #jevents_body .event_legend_name a {
  font-weight: 500;
  color: var(--skc-text);
  text-decoration: none;
}

.com_jevents #jevents #jevents_body .event_legend_desc {
  display: none;
}

/* Phones: the month becomes a list of the days that have events */
@media (max-width: 767.98px) {
  .com_jevents #jevents #jevents_body .cal_top_day_names,
  .com_jevents #jevents #jevents_body table.cal_table td.cal_daysoutofmonth,
  .com_jevents #jevents #jevents_body table.cal_table td.cal_daysnoevents,
  .com_jevents #jevents #jevents_body table.cal_table td.cal_today:not(:has(.event_div_1)) {
    display: none;
  }

  .com_jevents #jevents #jevents_body table.cal_table,
  .com_jevents #jevents #jevents_body table.cal_table tbody,
  .com_jevents #jevents #jevents_body table.cal_table tr,
  .com_jevents #jevents #jevents_body table.cal_table td {
    display: block;
    width: 100% !important;
    height: auto;
  }

  .com_jevents #jevents #jevents_body table.cal_table td {
    margin-bottom: .5rem;
    padding: .6rem .75rem;
    border-radius: var(--skc-radius);
  }

  .com_jevents #jevents #jevents_body .cal_daylink {
    display: block;
    height: auto;
    margin-bottom: .4rem;
    background: none !important;
  }

  .com_jevents #jevents #jevents_body .cal_daylink .calview {
    display: none;
  }

  .com_jevents #jevents #jevents_body .cal_daylink .listview {
    display: inline;
    font-size: .9rem;
    font-weight: 700;
    color: var(--skc-blue);
  }

  .com_jevents #jevents #jevents_body a.cal_titlelink {
    font-size: .95rem;
    white-space: normal;
  }

  .com_jevents #jevents #jevents_body .month_cell_st {
    padding: .35rem .5rem !important;
  }
}

/* List ("Liste" = year view): title first, date and category below */
.com_jevents #jevents #jevents_body .jev_listview {
  border: 0;
  background: none;
}

.com_jevents #jevents #jevents_body .jev_listview .jev_daysnames {
  float: none;
  width: auto;
  margin: 1.25rem 0 .5rem;
  padding: 0;
  border: 0;
  font-size: .8rem;
  font-weight: 700;
  color: var(--skc-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  background: none;
}

.com_jevents #jevents #jevents_body .jev_listview .jev_listrow {
  float: none;
  border: 0;
}

.com_jevents #jevents #jevents_body .jev_listview .ev_ul {
  margin: 0;
  padding: 0;
}

.com_jevents #jevents #jevents_body .jev_listview .jev_listrow li {
  display: flex;
  flex-direction: column;
  margin: 0 0 .5rem;
  padding: .6rem .9rem;
  border-width: 0 0 0 4px !important;
  border-radius: var(--skc-radius);
  font-size: .88rem;
  color: var(--skc-text-muted);
  background: #fff;
  box-shadow: var(--skc-shadow);
}

.com_jevents #jevents #jevents_body .jev_listview .jev_listrow li br,
.com_jevents #jevents #jevents_body .jev_listview .jev_listrow li em {
  display: none;
}

.com_jevents #jevents #jevents_body .jev_listview a.ev_link_row {
  order: -1;
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--skc-blue);
  text-decoration: none;
}

.com_jevents #jevents #jevents_body .jev_listview a.ev_link_row:hover {
  text-decoration: underline;
}

/* Event detail page */
.com_jevents #jevents #jevents_body .jev_evdt {
  max-width: 880px;
  padding: 1.5rem;
  border: 0;
  border-radius: var(--skc-radius);
  background: #fff;
  box-shadow: var(--skc-shadow);
}

.com_jevents #jevents #jevents_body .jev_evdt_header {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.com_jevents #jevents #jevents_body .jev_evdt_title {
  font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--skc-blue);
}

.com_jevents #jevents #jevents_body .jev_evdt_summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem 1rem;
  margin: .5rem 0 1.25rem;
  font-weight: 600;
  color: var(--skc-text);
}

.com_jevents #jevents #jevents_body .ev_prevrepeat,
.com_jevents #jevents #jevents_body .ev_nextrepeat {
  float: none;
  margin: 0;
  padding: 0;
}

.com_jevents #jevents #jevents_body .ev_prevrepeat a,
.com_jevents #jevents #jevents_body .ev_nextrepeat a {
  font-size: .85rem;
  font-weight: 500;
}

.com_jevents #jevents #jevents_body .jev_evdt_hits,
.com_jevents #jevents #jevents_body .jev_evdt_creator:has(.creator:empty),
.com_jevents #jevents #jevents_body .jev_evdt_contact:has(.contact:empty),
.com_jevents #jevents #jevents_body .jev_evdt_extrainf:empty {
  display: none;
}

.com_jevents #jevents #jevents_body .jev_evdt_desc {
  line-height: 1.65;
}

.com_jevents #jevents #jevents_body .jev_evdt_location {
  margin-top: 1rem;
  padding: .6rem .8rem;
  border-left: 3px solid var(--skc-gold);
  background: var(--skc-bg-soft);
}

.com_jevents #jevents #jevents_body .jev_evdt_location .location {
  font-weight: 700;
}

/* Subscribe box (module under the calendar, layout html/mod_custom/subscribe.php) */
.skc-subscribe {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem 1.25rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--skc-radius);
  background: var(--skc-bg-soft);
}

.skc-subscribe-text {
  flex: 1 1 100%;
  font-size: .92rem;
  color: var(--skc-text-muted);
}

.skc-subscribe-text p {
  margin: 0;
}

.skc-subscribe-form {
  flex: 1 1 100%;
}

.skc-subscribe-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 .6rem;
  padding: 0;
  border: 0;
}

.skc-subscribe-form legend {
  flex: 1 1 100%;
  margin-bottom: .2rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--skc-text-muted);
}

.skc-subscribe-cat {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem;
  border: 2px solid var(--skc-cat);
  border-radius: var(--skc-radius);
  font-size: .88rem;
  font-weight: 600;
  color: var(--skc-cat);
  background: #fff;
  cursor: pointer;
}

.skc-subscribe-cat:has(input:checked) {
  color: #fff;
  background: var(--skc-cat);
}

.skc-subscribe-cat input {
  accent-color: var(--skc-cat);
}

.skc-subscribe-result {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
}

.skc-subscribe-current {
  margin: 0;
  font-size: .9rem;
}

.skc-subscribe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.btn.skc-btn-outline {
  color: var(--skc-blue);
  background: #fff;
  border: 1px solid var(--skc-blue);
}

.btn.skc-btn-outline:hover {
  color: #fff;
  background: var(--skc-blue);
}

.skc-page .card:has(.skc-subscribe) {
  box-shadow: none;
  background: none;
}

.skc-page .card:has(.skc-subscribe) .card-body {
  padding: 0;
}

/* Category colours (set by js/user.js as --skc-cat) */

/* Month grid: whole event in the category colour */
.com_jevents #jevents #jevents_body .month_cell_st.skc-cat-coloured {
  background: var(--skc-cat) !important;
}

.com_jevents #jevents #jevents_body .month_cell_st.skc-cat-coloured a.cal_titlelink {
  color: #fff !important;
}

/* List view and homepage list: tinted card, strong bar */
.com_jevents #jevents #jevents_body .jev_listview .jev_listrow li.skc-cat-coloured {
  background: color-mix(in srgb, var(--skc-cat) 13%, #fff);
}

.com_jevents #jevents #jevents_body .jev_listview .jev_listrow li.skc-cat-coloured a.ev_link_row {
  color: color-mix(in srgb, var(--skc-cat) 80%, #000);
}

.skc-events .mod_events_latest_table td.skc-cat-coloured {
  background: color-mix(in srgb, var(--skc-cat) 10%, #fff);
}

.skc-events .mod_events_latest_table td.skc-cat-coloured .skc-ev-date {
  background: var(--skc-cat);
}

/* Legend: filled labels */
.com_jevents #jevents #jevents_body .event_legend_item.skc-cat-coloured {
  padding: .15rem .55rem !important;
  border: 0 !important;
  border-radius: var(--skc-radius);
  background: var(--skc-cat);
}

.com_jevents #jevents #jevents_body .event_legend_item.skc-cat-coloured .event_legend_name a {
  color: #fff;
}

.com_jevents #jevents #jevents_body .event_legend_item:not(.activechildcat) {
  border: 2px solid var(--skc-text-muted) !important;
  background: #fff;
}

.com_jevents #jevents #jevents_body .event_legend_item:not(.activechildcat) .event_legend_name a {
  color: var(--skc-text);
}

/* E-mail addresses behind a click (plugin "SKC E-Mail-Schutz") */
.skc-email {
  display: inline;
  padding: 0;
  border: 0;
  font: inherit;
  color: var(--link-color);
  background: none;
  text-decoration: underline dotted;
  text-underline-offset: .2em;
  cursor: pointer;
}

.skc-email::before {
  content: "✉ ";
  text-decoration: none;
}

.skc-email.skc-phone::before {
  content: "☎ ";
}

.skc-email:hover,
.skc-email:focus-visible {
  color: var(--link-hover-color);
  text-decoration-style: solid;
}

.skc-email:disabled {
  cursor: progress;
  opacity: .7;
}

/* ---------- Footer ---------- */

.skc-footer {
  padding: 2.5rem 0;
  color: rgba(255, 255, 255, .8);
  background: var(--skc-blue);
}

.skc-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.skc-footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.skc-footer-brand .skc-logo {
  height: 44px;
}

.skc-footer a {
  color: rgba(255, 255, 255, .85);
}

.skc-footer a:hover {
  color: #fff;
}

.skc-footer-modules {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .92rem;
}

.skc-footer-modules p {
  margin: 0;
}

.skc-copyright {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

.skc-footer .skc-footer-modules .mod-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Cookie note at the bottom of the window */
.skc-cookie-note {
  position: fixed;
  z-index: 1050;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  max-width: 46rem;
  margin: 0 auto;
  padding: .9rem 1rem;
  color: #fff;
  background: var(--skc-blue);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
  font-size: .9rem;
}

.skc-cookie-note[hidden] {
  display: none;
}

.skc-cookie-note p {
  margin: 0;
}

.skc-cookie-note a {
  color: #fff;
  text-decoration: underline;
}

.skc-cookie-note .btn {
  flex: none;
  color: var(--skc-blue);
  background: #fff;
  border-color: #fff;
  border-radius: 0;
}

@media (max-width: 575.98px) {
  .skc-cookie-note {
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
  }
}
