/* Fonts (self-hosted) */
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }

/* Tokens */
:root {
  --ffwkn-maroon: #791f24;
  --ffwkn-maroon-dark: #5a1519;
  --ffwkn-red: #c8102e;
  --ffwkn-ink: #222;
  --ffwkn-tint: #f3e9ea;
  --ffwkn-font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ffwkn-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --bs-body-font-family: var(--ffwkn-font-body);
  --bs-body-color: var(--ffwkn-ink);
  --bs-link-color: var(--ffwkn-maroon);
  --bs-link-color-rgb: 121, 31, 36;
  --bs-link-hover-color: var(--ffwkn-maroon-dark);
  --bs-link-hover-color-rgb: 90, 21, 25;
  --bs-border-radius: .625rem;
}

/* Base */
body { display: flex; flex-direction: column; min-height: 100vh; background: #fff; }
.site-main { flex: 1 0 auto; }
h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--ffwkn-font-display);
  font-weight: 700;
  line-height: 1.15;
}
.btn { --bs-btn-border-radius: .375rem; font-weight: 600; }
.btn-primary {
  --bs-btn-bg: var(--ffwkn-red); --bs-btn-border-color: var(--ffwkn-red);
  --bs-btn-hover-bg: #a60d26; --bs-btn-hover-border-color: #a60d26;
  --bs-btn-active-bg: #8f0b21; --bs-btn-active-border-color: #8f0b21;
}
.form-control:focus { border-color: var(--ffwkn-maroon); box-shadow: 0 0 0 .25rem rgba(121, 31, 36, .2); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--ffwkn-red); outline-offset: 2px; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .375rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--ffwkn-maroon);
  padding-block: .5rem;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header .navbar-brand { display: flex; align-items: center; gap: .6rem; font-size: 1.5rem; margin-right: 1rem; }
.site-header .navbar-brand img { height: 40px; width: auto; }
.site-header .nav-link {
  color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .6rem .9rem; border-radius: .375rem;
}
.site-header .nav-link:hover, .site-header .nav-link:focus, .site-header .nav-link.active { background: rgba(255, 255, 255, .16); color: #fff; }
.site-header .dropdown-menu {
  --bs-dropdown-link-active-bg: var(--ffwkn-maroon);
  border: 0; border-radius: .625rem; box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .2); padding: .5rem;
}
.site-header .dropdown-item { border-radius: .375rem; padding: .5rem .85rem; }
.site-header .dropdown-item.ffwkn-depth-2 { padding-left: 1.75rem; font-size: .9em; }
.site-header .dropdown-item.ffwkn-depth-3 { padding-left: 2.5rem; font-size: .9em; }
.site-header .offcanvas { background: var(--ffwkn-maroon); color: #fff; }
.site-header .offcanvas-title { font-family: var(--ffwkn-font-display); font-size: 1.4rem; }
@media (max-width: 991.98px) {
  .site-header .nav-link { padding: .85rem 1rem; font-size: 1rem; }
  .site-header .dropdown-menu { background: rgba(255, 255, 255, .08); box-shadow: none; }
  .site-header .dropdown-item { color: #fff; }
  .site-header .dropdown-item:hover, .site-header .dropdown-item:focus { background: rgba(255, 255, 255, .16); }
}
/* Search */
.site-header .search-toggle { color: #fff; padding: .45rem .6rem; border: 0; line-height: 1; }
.site-header .search-toggle:hover, .site-header .search-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .16); color: #fff; }
.search-form { max-width: 40rem; }
.site-header .search-form { max-width: none; }
.search-result .entry-title { font-size: 1.4rem; }
.search-result .entry-meta { margin-bottom: .5rem; }
.search-result .entry-content p { margin-bottom: 0; }
/* Front page: transparent header over the hero until the page scrolls */
body.home:not(.paged) .site-header { position: absolute; inset: 0 0 auto 0; background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
body.home:not(.paged) .site-header.is-scrolled { position: fixed; background: var(--ffwkn-maroon); box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .25); }
body.admin-bar .site-header.is-scrolled, body.admin-bar.home:not(.paged) .site-header { top: 32px; }

/* Footer */
.site-footer { background: var(--ffwkn-maroon); color: #fff; margin-top: 3rem; padding: 2.5rem 0 1.25rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .widget-title { color: #fff; font-size: 1.35rem; margin-bottom: .75rem; }
.site-footer ul { padding-left: 1.1rem; }
.footer-widgets > div { margin-bottom: 1.5rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 1rem; margin-top: 1rem; font-size: .85rem; }

/* Widgets */
.widget-title { font-size: 1.5rem; }
.frontpage-box .widget-title { color: var(--ffwkn-maroon); }
.danube-item { font-size: 1em; line-height: 1.5em; }
.danube-info { margin-top: 10px; font-size: .75em; }
.danube-item .station { float: left; width: 80px; }
.danube-item .height { float: left; width: 60px; }
.danube-item .date { float: left; font-size: .8em; }

/* Helpers carried over from the old theme (used by widgets and content) */
.margin-right-10 { margin-right: 10px; }
.margin-left-10 { margin-left: 10px; }
.margin-bottom-10 { margin-bottom: 10px; }
.margin-bottom-15 { margin-bottom: 15px; }
.margin-bottom-20 { margin-bottom: 20px; }
.margin-bottom-25 { margin-bottom: 25px; }
.margin-bottom-30 { margin-bottom: 30px; }
.margin-bottom-35 { margin-bottom: 35px; }
.margin-bottom-40 { margin-bottom: 40px; }
.margin-bottom-45 { margin-bottom: 45px; }
.margin-bottom-50 { margin-bottom: 50px; }
.img-profile { width: 100px; margin-right: 10px; }

/* Cookie banner */
.cc-window { border-top: 2px solid #fff; }

/* Hero (front page) */
.hero { position: relative; background: var(--ffwkn-maroon); color: #fff; overflow: hidden; }
.hero .hero-img { height: clamp(460px, 80vh, 700px); object-fit: cover; }
.hero .carousel-item::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .8) 100%);
}
.hero-intro { position: absolute; z-index: 3; left: 0; right: 0; bottom: 11.5rem; pointer-events: none; }
.hero--empty .hero-intro { bottom: 3rem; }
.hero-static { height: clamp(320px, 50vh, 460px); }
.hero-heading { display: flex; flex-direction: column; gap: .25rem; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.hero-kicker { font-family: var(--ffwkn-font-body); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.hero-headline { font-size: clamp(2.6rem, 7vw, 4.75rem); line-height: 1; }
.hero-caption { position: absolute; z-index: 3; left: 0; right: 0; bottom: 2.75rem; }
.hero-label { margin: 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.hero-title {
  margin: .25rem 0 .9rem; max-width: 44rem; font-size: 1.2rem; font-weight: 600; line-height: 1.35; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-title a { color: #fff; text-decoration: none; }
.hero-title a:hover { text-decoration: underline; }
.hero .btn-primary { text-transform: uppercase; letter-spacing: .05em; padding: .55rem 1.25rem; }
.hero .carousel-control-prev, .hero .carousel-control-next { z-index: 4; width: 4rem; }
.hero .carousel-indicators { z-index: 4; margin-bottom: .75rem; }
@media (max-width: 575.98px) {
  .hero .hero-img { height: 78vh; min-height: 480px; }
  .hero-intro { bottom: 12.5rem; }
  .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
}

/* Facebook buttons keep Facebook's blue (not the site's red) */
a.btn[href*="facebook.com"] {
  --bs-btn-color: #fff; --bs-btn-bg: #1877f2; --bs-btn-border-color: #1877f2;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #166fe5; --bs-btn-hover-border-color: #166fe5;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #1462c7; --bs-btn-active-border-color: #1462c7;
  --bs-btn-focus-shadow-rgb: 24, 119, 242;
}

/* Bootstrap 3 button names still used in widget text */
.btn-default {
  --bs-btn-color: var(--ffwkn-ink); --bs-btn-bg: #fff; --bs-btn-border-color: #ccc;
  --bs-btn-hover-color: var(--ffwkn-ink); --bs-btn-hover-bg: #e6e6e6; --bs-btn-hover-border-color: #adadad;
  --bs-btn-active-bg: #d4d4d4; --bs-btn-active-border-color: #adadad;
}

/* Info strip */
.info-strip { background: var(--ffwkn-tint); padding: .85rem 0; font-size: .95rem; }
.strip-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; }
.strip-label { font-family: var(--ffwkn-font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--ffwkn-maroon); }
.strip-date { color: #666; font-size: .85em; }
.strip-pegel .danube-items { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.strip-pegel .danube-item { display: flex; gap: .4rem; line-height: 1.4; }
.strip-pegel .danube-item .station, .strip-pegel .danube-item .height { float: none; width: auto; }
.strip-pegel .danube-item .height { font-weight: 600; }
.strip-pegel .danube-item .date, .strip-pegel .danube-info, .strip-pegel .clearfix { display: none; }

/* Section heading */
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 2.25rem 0 1rem; }
.section-head h2 { margin: 0; font-size: 2rem; color: var(--ffwkn-maroon); text-transform: uppercase; padding-bottom: .35rem; border-bottom: 3px solid var(--ffwkn-maroon); }
.section-head a { font-weight: 600; text-decoration: none; }

/* News cards */
.news-card { position: relative; height: 100%; min-height: 260px; border-radius: var(--bs-border-radius); overflow: hidden; background: var(--ffwkn-maroon); color: #fff; display: flex; align-items: flex-end; }
.news-card--lead { min-height: 420px; }
.news-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-card-img { transform: scale(1.04); }
.news-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .82) 100%); pointer-events: none; }
.news-card-crest { position: absolute; top: 50%; left: 50%; width: 96px; height: auto; transform: translate(-50%, -70%); opacity: .55; }
.news-card-body { position: relative; z-index: 2; padding: 1.1rem 1.25rem; width: 100%; }
.news-card-cat { display: inline-block; background: var(--ffwkn-red); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.news-card-title { margin: 0 0 .35rem; font-size: 1.35rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.news-card--lead .news-card-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.news-card-title a { color: #fff; text-decoration: none; }
.news-card-date { font-size: .8rem; opacity: .85; }

/* Tiles */
.home-tiles { margin-top: 1.5rem; }
.tile { display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 104px; padding: 1rem 1.25rem; border: 1px solid #ddd; border-radius: var(--bs-border-radius); background: #fff; color: var(--ffwkn-ink); text-decoration: none; border-left: 4px solid var(--ffwkn-maroon); transition: box-shadow .2s ease, transform .2s ease; }
.tile:hover, .tile:focus-visible { box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .12); transform: translateY(-2px); }
.tile-title { font-family: var(--ffwkn-font-display); font-size: 1.5rem; font-weight: 700; color: var(--ffwkn-maroon); line-height: 1.1; }
.tile-text { font-size: .85rem; color: #555; }

/* Two small news cards stacked next to the lead card */
.news-stack { display: flex; flex-direction: column; gap: 1rem; }
.news-stack .news-card { flex: 1 1 0; min-height: 200px; }

/* Phone header: brand and menu button share one line */
@media (max-width: 991.98px) {
  .site-header .container { flex-wrap: nowrap; }
  .site-header .navbar-brand { min-width: 0; margin-right: .5rem; font-size: 1.3rem; }
  .site-header .navbar-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-header .navbar-toggler { flex: none; }
}

/* Inner pages */
.entry-title { color: var(--ffwkn-maroon); font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .5rem; overflow-wrap: anywhere; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { text-decoration: underline; }
.entry-meta { color: #666; font-size: .9rem; margin-bottom: 1.25rem; }
.entry-alarm { font-weight: 600; color: var(--ffwkn-red); }
.entry-content { font-size: 1.05rem; line-height: 1.7; overflow-wrap: break-word; }
.entry-content > :last-child { margin-bottom: 0; }
.archive-title { font-size: clamp(1.75rem, 3.5vw, 2.4rem); text-transform: uppercase; padding-bottom: .35rem; border-bottom: 3px solid var(--ffwkn-maroon); color: var(--ffwkn-maroon); margin-bottom: 1.5rem; }
.list-entry { padding-bottom: 1.5rem; margin-bottom: 1.75rem; border-bottom: 1px solid #e5e5e5; }
.list-entry .entry-title { font-size: 1.7rem; }
.site-sidebar .widget-title { font-size: 1.3rem; color: var(--ffwkn-maroon); text-transform: uppercase; margin: 1.5rem 0 .5rem; }
.site-sidebar > :first-child .widget-title { margin-top: 0; }

/* Pagination (WordPress markup) */
.navigation.pagination { margin-top: 1rem; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.navigation.pagination .page-numbers { display: inline-block; padding: .4rem .85rem; border: 1px solid #ddd; border-radius: .375rem; text-decoration: none; font-weight: 600; }
.navigation.pagination .page-numbers.current { background: var(--ffwkn-maroon); border-color: var(--ffwkn-maroon); color: #fff; }
.navigation.pagination a.page-numbers:hover { background: var(--ffwkn-tint); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Cookie banner: rounded, in the site's button style */
.cc-btn { border-radius: .375rem; font-weight: 600; padding: .5em 1.25em; }
.cc-window { font-family: var(--ffwkn-font-body); }

/* Social icon buttons: round, in the brand colors of each network */
.social-links { display: flex; align-items: center; gap: .6rem; margin: 0; padding: 0; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  color: #fff; font-size: 1.15rem; text-decoration: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
  transition: transform .15s ease, box-shadow .15s ease;
}
.social-link:hover, .social-link:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 0 0 2px #fff, 0 .4rem .9rem rgba(0, 0, 0, .3); }
.social-link svg { width: 1em; height: 1em; display: block; }
.social-link--facebook { background: #1877f2; }
.social-link--facebook:hover { background: #166fe5; }
.social-link--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.footer-social { margin-bottom: 1rem; }
.footer-social-label { font-family: var(--ffwkn-font-display); font-size: 1.35rem; font-weight: 700; }
@media (max-width: 991.98px) {
  .header-social { margin-top: 1.5rem; }
}

/* Club logo (the owner's icon.jpg, unmodified): shown as a circle like the Facebook avatar */
.site-header .navbar-brand .brand-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; }
.news-card-crest { border-radius: 50%; }

/* Keyboard focus: the red ring has too little contrast on maroon and on dark photos, so use white there */
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .news-card :focus-visible { outline-color: #fff; }

/* Contact map */
.ff-map { width: 100%; border-radius: .5rem; overflow: hidden; border: 1px solid rgba(0,0,0,.12); z-index: 0; }
.ff-pin { background: none; border: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }

/* Instagram embed in the sidebar: click-to-load notice, then the profile iframe */
.instagram-embed { margin-top: 1.5rem; }
.site-sidebar > .instagram-embed:first-child { margin-top: 0; }
.instagram-embed .widget-title { margin-top: 0; }
.instagram-gate { padding: 1rem; border-radius: .5rem; border: 1px solid #e5e5e5; background: var(--ffwkn-tint); }
.instagram-gate iframe { display: block; width: 100%; max-width: 400px; height: 500px; border: 0; }
.instagram-gate.is-loaded { padding: 0; border: 0; background: none; }


/* Front page: news (2/3) next to Instagram (1/3); the two small cards sit side by side under the lead card */
.home-main .instagram-gate iframe { max-width: none; }
@media (min-width: 768px) {
  .news-stack { flex-direction: row; }
}
