/* int-swim-cup theme — Bike-template look on UIkit 3, ISC teal branding.
   Loaded after uikit.min.css; keep every override in this one file. */

/* ---------- fonts (self-hosted, no external requests) ---------- */

@font-face {
  font-family: "Maven Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/maven-pro-v40-latin_latin-ext-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Maven Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/maven-pro-v40-latin_latin-ext-500.woff2") format("woff2");
}
@font-face {
  font-family: "Maven Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/maven-pro-v40-latin_latin-ext-700.woff2") format("woff2");
}

/* ---------- tokens ---------- */

:root {
  --isc-teal: #00afb5;
  --isc-teal-dark: #008084;
  --isc-blue: #1e567c; /* header/footer band, from the original site */
  --isc-band: #f8f8f8;
  --isc-text: #222;
  --font: "Maven Pro", Arial, Helvetica, sans-serif;
}

/* ---------- typography ---------- */

body {
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--isc-text);
  background: #fff;
}

h1, h2, h3, h4, h5, h6,
.uk-h1, .uk-h2, .uk-h3, .uk-h4 {
  font-family: var(--font);
  font-weight: 400;
  color: var(--isc-text);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
@media (max-width: 640px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

a { color: var(--isc-teal-dark); text-decoration: none; }
a:hover { color: var(--isc-teal); text-decoration: none; }

/* Bike signature: primary underline bar beneath page/section headings */
.headline-border {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 1.6em;
  border-bottom: 1px solid #ddd;
}
.headline-border::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100px;
  height: 3px;
  background: var(--isc-teal);
}

hr.primary {
  width: 200px;
  margin: 30px auto 40px;
  border: 0;
  border-bottom: 3px solid var(--isc-teal);
}

/* ---------- buttons ---------- */

.uk-button { font-family: var(--font); font-weight: 500; border-radius: 2px; }
.uk-button-primary { background: var(--isc-teal); }
.uk-button-primary:hover, .uk-button-primary:focus { background: var(--isc-teal-dark); }

/* ---------- navbar ---------- */

/* the "transparent" (non-sticky) state sits on the blue band */
.uk-navbar-container.uk-navbar-transparent { background: var(--isc-blue); }
.uk-navbar-container:not(.uk-navbar-transparent) { background: #fff; }

/* keep the link boxes text-height (centered in the tall bar) so dropdowns
   open directly beneath the labels, not at the bottom of the logo row */
.uk-navbar-nav { align-items: center; }
.uk-navbar-nav > li > a {
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 48px;
}
.uk-navbar-nav > li:hover > a,
.uk-navbar-nav > li > a[aria-expanded="true"],
.uk-navbar-nav > li.uk-active > a { color: var(--isc-teal) !important; }

/* sticky flips to black (like the original), logos keep white lettering */
.uk-navbar-sticky {
  background: #000 !important;
  box-shadow: 0 15px 10px -15px rgba(0, 0, 0, 0.35);
}
.uk-navbar-sticky .uk-navbar-nav > li > a { color: #fff; }
.uk-navbar-sticky .uk-navbar-toggle { color: #fff; }

/* social icons at the right end of the menu bar — resting color matches the
   muted menu-link grey, hover matches the menu hover */
.navbar-socials a { color: rgba(255, 255, 255, 0.7); margin-left: 10px; }
.navbar-socials a:hover { color: var(--isc-teal); }
.uk-navbar-sticky .navbar-socials a { color: #fff; }
.uk-navbar-sticky .navbar-socials a:hover { color: var(--isc-teal); }
.offcanvas-socials { text-align: center; }
.offcanvas-socials a { color: #333; margin: 0 10px; }
.offcanvas-socials a:hover { color: var(--isc-teal); }

.uk-navbar-dropdown { border-top: 4px solid rgba(0, 175, 181, 0.4); padding: 20px; }
.uk-navbar-dropdown-nav > li > a { color: #333; }
.uk-navbar-dropdown-nav > li > a:hover,
.uk-navbar-dropdown-nav > li.uk-active > a { color: var(--isc-teal); }

/* arena "Premiumpartner" lockup next to the logo (black logo -> white) */
.navbar-partner a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  padding-left: 24px;
  text-decoration: none;
}
.navbar-partner img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(0.75);
  transition: height 0.25s ease, filter 0.25s ease;
}
.navbar-partner a:hover img { filter: brightness(0) invert(1); }
.navbar-partner span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}
.navbar-partner a:hover span { color: #fff; }
.uk-navbar-sticky .navbar-partner img { height: 30px; }

/* big logo on the blue band, compact on the sticky white bar */
.uk-logo img { height: 120px; width: auto; transition: height 0.25s ease; }
.uk-navbar-sticky .uk-logo img { height: 56px; }
@media (max-width: 640px) {
  .uk-logo img { height: 84px; }
}

.uk-offcanvas-bar { background: #fff; color: #333; }
.uk-offcanvas-bar .uk-nav-default > li > a { color: #333; text-transform: uppercase; font-size: 0.9rem; }
.uk-offcanvas-bar .uk-nav-default > li.uk-active > a,
.uk-offcanvas-bar .uk-nav-default > li > a:hover { color: var(--isc-teal); }
.uk-offcanvas-bar .uk-nav-header { color: var(--isc-teal-dark); }
.uk-offcanvas-bar .uk-offcanvas-close { color: #333; }

/* ---------- heroes ---------- */

/* steel blue + white skyline, as on the original headerbar.
   The band follows the (blue) navbar seamlessly on every page. */
.home-hero, .page-band { background: var(--isc-blue); }
.hero-content { padding: 25px 20px 5px; }
.hero-skyline {
  display: block;
  width: 100%;
  height: clamp(80px, 13vw, 170px);
  object-fit: cover;
  object-position: center bottom;
}
.hero-skyline--small { height: clamp(50px, 8vw, 110px); }
.hero-title { color: #fff; font-size: 3rem; font-weight: 500; margin: 0; }
.hero-sub { color: #dceaf3; font-size: 1.2rem; margin: 10px 0 25px; }
@media (max-width: 640px) {
  .hero-title { font-size: 1.9rem; }
  .hero-sub { font-size: 1rem; }
}

/* ---------- content ---------- */

.uk-section-muted { background: var(--isc-band); }

.page-body img { max-width: 100%; height: auto; }

.uk-table th { font-family: var(--font); color: var(--isc-teal-dark); }
.uk-table-striped > tr:nth-of-type(odd),
.uk-table-striped tbody tr:nth-of-type(odd) { background: var(--isc-band); }
.uk-table-hover > tr:hover,
.uk-table-hover tbody tr:hover { background: #e6f7f8; }

.uk-alert-success {
  background: #e6f7f8;
  color: var(--isc-teal-dark);
  border-left: 4px solid var(--isc-teal);
}

.embed-frame { width: 100%; border: 0; }

/* download callout used on the Ausschreibung pages */
.download-box {
  max-width: 480px;
  margin: 40px auto;
  padding: 30px;
  text-align: center;
  background: #e6f7f8;
  border-left: 4px solid var(--isc-teal);
}
.download-box h3 { margin-top: 0; }

/* ---------- sister-event band ---------- */

/* black, directly above the black footer — a hairline keeps the two apart */
.sister-band {
  background: #000;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.sister-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 34px;
  text-decoration: none;
}
.sister-logo { height: 74px; width: auto; }
.sister-text { display: flex; flex-direction: column; line-height: 1.35; }
.sister-kicker {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sister-name { color: #fff; font-size: 1.15rem; font-weight: 500; }
.sister-meta { color: #cfe1ee; font-size: 0.88rem; }
.sister-card:hover .sister-button { background: var(--isc-teal-dark); }
@media (max-width: 640px) {
  .sister-card { flex-direction: column; text-align: center; gap: 16px; }
  .sister-logo { height: 58px; }
}

/* ---------- partner strip ---------- */

.partner-strip { background: #fff; border-top: 1px solid #eee; }
.partner-label {
  color: #888;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.partner-divider {
  width: 200px;
  margin: 30px auto;
  border: 0;
  border-top: 1px solid #e2e2e2;
}
/* the premium partner sits a step above the rest */
.partner-logo--premium img { max-height: 84px; }
.partner-logo img {
  max-height: 60px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.3s, opacity 0.3s;
}
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- footer ---------- */

.site-footer { background: #000; color: #fff; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: #fff; }
.footer-meta { font-size: 0.9rem; color: #aaa; margin: 0; }
