/*
Theme Name: Hobbyliga Modern
Description: Schlankes, responsives Theme fuer die Hobbyliga Stormarn.
Version: 1.6.2
Text Domain: hobbyliga-modern
*/

:root {
  --hl-ink: #14212b;
  --hl-navy: #143b54;
  --hl-blue: #126b91;
  --hl-gold: #eebd2f;
  --hl-soft: #f3f6f8;
  --hl-line: #d8e1e7;
  --hl-muted: #5e6e7b;
  --hl-white: #ffffff;
  --hl-max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--hl-soft); color: var(--hl-ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: var(--hl-blue); }
a:hover { color: var(--hl-navy); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; width: auto; height: auto; padding: 10px 14px; overflow: visible; clip: auto; background: var(--hl-gold); color: var(--hl-ink); }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-container { width: min(var(--hl-max), calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--hl-white); border-bottom: 1px solid var(--hl-line); box-shadow: 0 2px 10px rgba(20, 59, 84, .08); }
.header-row { min-height: 68px; display: flex; align-items: center; gap: 26px; }
.site-brand { flex: 0 0 auto; color: var(--hl-navy); font-size: 20px; font-weight: 800; letter-spacing: 0; text-decoration: none; }
.site-brand:hover { color: var(--hl-blue); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav li { position: relative; }
.site-nav a, .site-nav .menu-parent-label { display: block; padding: 23px 10px 21px; color: var(--hl-navy); font-size: 14px; font-weight: 700; line-height: 1.15; text-decoration: none; }
.site-nav .menu-parent-label { background: transparent; border: 0; cursor: default; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--hl-blue); box-shadow: inset 0 -3px var(--hl-gold); }
.site-nav li:hover > .menu-parent-label, .site-nav .menu-parent-label:focus-visible { color: var(--hl-blue); box-shadow: inset 0 -3px var(--hl-gold); outline: none; }
.site-nav .sub-menu { position: absolute; top: 100%; left: 0; display: none; min-width: 225px; padding: 7px; background: var(--hl-white); border: 1px solid var(--hl-line); border-top: 3px solid var(--hl-gold); box-shadow: 0 10px 24px rgba(20, 59, 84, .16); }
.site-nav .sub-menu .sub-menu { top: -3px; left: 100%; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.site-nav .sub-menu a { padding: 11px 12px; box-shadow: none; }
.site-nav .menu-item-has-children > .menu-parent-label::after { content: "▾"; display: inline-block; margin-left: 7px; font-size: .8em; }
.site-nav .sub-menu .menu-item-has-children > .menu-parent-label { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 12px; }
.site-nav .sub-menu .menu-item-has-children > .menu-parent-label::after { content: "›"; margin-left: 18px; font-size: 1.15em; }
.menu-toggle { display: none; margin-left: auto; padding: 9px 11px; background: transparent; border: 1px solid var(--hl-line); border-radius: 5px; color: var(--hl-navy); font-weight: 700; }

.site-main { flex: 1 0 auto; }
.page-heading { padding: 34px 0 28px; background: var(--hl-white); border-bottom: 1px solid var(--hl-line); }
.page-heading h1 { margin: 0; color: var(--hl-navy); font-size: 32px; line-height: 1.15; }
.content-page { padding: 46px 0 60px; }
.entry-content { max-width: 1180px; }
.entry-content h2 { margin: 38px 0 12px; color: var(--hl-navy); font-size: 26px; line-height: 1.2; }
.entry-content h3 { margin: 28px 0 8px; color: var(--hl-navy); font-size: 20px; line-height: 1.25; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 18px; }
.entry-content li + li { margin-top: 7px; }
.entry-content a { overflow-wrap: anywhere; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--hl-line); text-align: left; }
.entry-content > :first-child { margin-top: 0; }
.entry-content .wp-block-group { margin: 0; }

.notice { padding: 16px 18px; background: #fff8df; border-left: 4px solid var(--hl-gold); color: var(--hl-ink); }
.text-lead { max-width: 720px; color: var(--hl-muted); font-size: 19px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 15px; background: var(--hl-gold); border: 1px solid var(--hl-gold); border-radius: 5px; color: var(--hl-ink); font-weight: 800; line-height: 1.2; text-decoration: none; }
.button-link:hover { background: #f7ca43; color: var(--hl-ink); }
.button-link.is-outline { background: transparent; border-color: var(--hl-navy); color: var(--hl-navy); }
.button-link.is-outline:hover { background: var(--hl-white); }
.rulebook-download { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 26px; padding: 16px 18px; background: var(--hl-white); border: 1px solid var(--hl-line); border-left: 4px solid var(--hl-gold); border-radius: 5px; }
.rulebook-download span { color: var(--hl-muted); font-size: 14px; }
.contact-intro { max-width: 900px; margin-bottom: 30px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 30px 0; }
.contact-card { display: flex; flex-direction: column; min-height: 245px; padding: 26px; background: var(--hl-white); border: 1px solid var(--hl-line); border-top: 5px solid var(--hl-gold); border-radius: 8px; box-shadow: 0 6px 20px rgba(20, 59, 84, .07); }
.contact-card-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 17px; background: var(--hl-navy); border-radius: 50%; color: var(--hl-white); font-size: 22px; font-weight: 800; }
.contact-card h2 { margin: 0 0 8px; font-size: 23px; }
.contact-card p { color: var(--hl-muted); }
.contact-card .contact-action { margin-top: auto; }
.contact-reveal, .contact-revealed { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; background: var(--hl-gold); border: 1px solid var(--hl-gold); border-radius: 5px; color: var(--hl-ink); font-weight: 800; line-height: 1.2; text-decoration: none; }
.contact-reveal { cursor: pointer; }
.contact-reveal:hover, .contact-revealed:hover { background: #f7ca43; color: var(--hl-ink); }
.contact-reveal:focus-visible, .contact-revealed:focus-visible { outline: 3px solid rgba(18, 107, 145, .35); outline-offset: 2px; }
.contact-reveal:disabled { cursor: wait; opacity: .75; }
.contact-revealed { white-space: pre-line; }
.contact-privacy { padding: 18px 20px; background: #eaf3f7; border-left: 4px solid var(--hl-blue); border-radius: 5px; }
.contact-privacy h2 { margin: 0 0 5px; font-size: 19px; }
.contact-privacy p { margin: 0; color: var(--hl-muted); font-size: 14px; }
.legal-intro { max-width: 900px; margin-bottom: 28px; }
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 28px 0; }
.legal-card { padding: 25px; background: var(--hl-white); border: 1px solid var(--hl-line); border-top: 5px solid var(--hl-gold); border-radius: 8px; box-shadow: 0 6px 20px rgba(20, 59, 84, .07); }
.legal-card h2 { margin: 0 0 10px; font-size: 22px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card .contact-reveal, .legal-card .contact-revealed { margin-top: 5px; }
.legal-note { padding: 20px; background: #eaf3f7; border-left: 4px solid var(--hl-blue); border-radius: 5px; }
.legal-note h2 { margin: 0 0 7px; font-size: 20px; }
.legal-note p { margin: 0; }

.home-hero { background: var(--hl-navy); color: var(--hl-white); }
.home-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 340px; }
.home-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 48px 46px 48px 0; }
.home-kicker { margin: 0 0 10px; color: var(--hl-gold); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-hero h1 { margin: 0; color: var(--hl-white); font-size: 42px; line-height: 1.08; }
.home-hero p { max-width: 600px; margin: 16px 0 0; color: #e2edf2; font-size: 18px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.home-hero-image { width: 100%; height: 100%; min-height: 340px; object-fit: cover; object-position: center; }
.home-section { padding: 54px 0; background: var(--hl-white); }
.home-section.is-soft { background: var(--hl-soft); }
.section-eyebrow { margin: 0 0 6px; color: var(--hl-blue); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-section h2 { margin: 0; color: var(--hl-navy); font-size: 30px; line-height: 1.2; }
.section-lead { max-width: 700px; margin: 10px 0 24px; color: var(--hl-muted); }
.home-news { background: var(--hl-soft); }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; background: var(--hl-white); border: 1px solid var(--hl-line); border-radius: 7px; box-shadow: 0 5px 18px rgba(20, 59, 84, .06); }
.news-card-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe7ec; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.news-card time { color: var(--hl-muted); font-size: 13px; font-weight: 700; }
.news-card h3 { margin: 8px 0 10px; color: var(--hl-navy); font-size: 24px; line-height: 1.25; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--hl-blue); }
.news-card p { margin: 0 0 16px; color: var(--hl-muted); }
.news-card-link { margin-top: auto; font-weight: 800; text-decoration: none; }
.news-empty { margin: 20px 0 0; padding: 18px 20px; background: var(--hl-white); border: 1px solid var(--hl-line); border-radius: 7px; color: var(--hl-muted); }
.news-single-meta { margin: 8px 0 0; color: var(--hl-muted); font-size: 14px; }
.news-single-image { margin: 0 0 28px; border-radius: 7px; }
.league-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.league-card { display: flex; flex-direction: column; min-height: 210px; padding: 22px; background: var(--hl-white); border: 1px solid var(--hl-line); border-top: 5px solid var(--hl-gold); border-radius: 7px; color: var(--hl-ink); text-decoration: none; box-shadow: 0 5px 18px rgba(20, 59, 84, .06); }
.league-card.is-silver { border-top-color: #a3afb9; }
.league-card.is-bronze { border-top-color: #b96e3f; }
.league-card:hover { border-color: var(--hl-blue); color: var(--hl-ink); }
.league-card small { color: var(--hl-muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; }
.league-card h3 { margin: 8px 0; color: var(--hl-navy); font-size: 23px; }
.league-card p { margin: 0; color: var(--hl-muted); }
.league-card strong { margin-top: auto; padding-top: 16px; color: var(--hl-blue); }
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-links a { padding: 16px; background: var(--hl-white); border: 1px solid var(--hl-line); border-radius: 5px; color: var(--hl-navy); font-weight: 800; text-decoration: none; }
.quick-links a:hover { border-color: var(--hl-blue); color: var(--hl-blue); }
.info-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.info-panel { padding: 24px; background: var(--hl-navy); border-radius: 7px; color: var(--hl-white); }
.info-panel h3 { margin: 0 0 8px; font-size: 21px; }
.info-panel p { margin: 0; color: #dfebf0; }
.info-panel a { color: var(--hl-gold); font-weight: 700; }
.info-panel.is-light { background: var(--hl-white); border: 1px solid var(--hl-line); color: var(--hl-ink); }
.info-panel.is-light h3 { color: var(--hl-navy); }
.info-panel.is-light p { color: var(--hl-muted); }

.season-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 30px 0; }
.season-grid .league-card { min-height: 180px; }
.archive-list { display: grid; gap: 14px; margin-top: 28px; }
.archive-season { padding: 20px; background: var(--hl-white); border: 1px solid var(--hl-line); border-left: 5px solid var(--hl-gold); border-radius: 6px; }
.archive-season h2 { margin: 0 0 12px; font-size: 22px; }
.archive-links { display: flex; flex-wrap: wrap; gap: 9px; }
.archive-links a { padding: 8px 12px; background: var(--hl-soft); border: 1px solid var(--hl-line); border-radius: 4px; color: var(--hl-navy); font-weight: 700; text-decoration: none; }
.archive-links a:hover { background: var(--hl-navy); border-color: var(--hl-navy); color: var(--hl-white); }

.league-page { --msp-widget-width: 80vw; padding: 12px 0 0; background: var(--hl-white); }
.league-page .site-container { width: calc(100% - 24px); max-width: none; }
.league-page .entry-content { max-width: none; }
.league-page .hl-msp-widget, .league-page [id^="msp_full_"] { display: block; width: min(var(--msp-widget-width), 100%) !important; max-width: 100% !important; margin-right: auto !important; margin-left: auto !important; overflow: visible; text-align: center; }
.league-page .hl-msp-widget > * { max-width: 100% !important; margin-inline: auto !important; }
.league-page [id^="msp_full_"] > div, .league-page [id^="msp_full_"] iframe { width: 100% !important; max-width: 100% !important; margin-right: auto !important; margin-left: auto !important; }
.league-page [id^="msp_full_"] iframe { display: block; border: 0; }
.league-page iframe, .league-page [id*="msp_full_"] { display: block !important; float: none !important; width: min(var(--msp-widget-width), 100%) !important; max-width: 100% !important; margin-right: auto !important; margin-left: auto !important; }

@media (max-width: 1050px) {
  .header-row { gap: 16px; }
  .site-nav a, .site-nav .menu-parent-label { padding-inline: 7px; font-size: 13px; }
}

@media (max-width: 820px) {
  .league-page { --msp-widget-width: 100%; }
  .site-container { width: min(var(--hl-max), calc(100% - 28px)); }
  .header-row { min-height: 60px; }
  .site-brand { font-size: 18px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 7px; }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; margin: 0; padding: 10px 14px 14px; background: var(--hl-white); border-top: 1px solid var(--hl-line); border-bottom: 3px solid var(--hl-gold); box-shadow: 0 10px 20px rgba(20, 59, 84, .13); }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; }
  .site-nav a, .site-nav .menu-parent-label { width: 100%; padding: 13px 8px; font-size: 16px; text-align: left; }
  .site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { box-shadow: none; }
  .site-nav .sub-menu { position: static; display: block; min-width: 0; margin-left: 12px; padding: 0; border: 0; box-shadow: none; }
  .site-nav .sub-menu .sub-menu { margin-left: 18px; }
  .site-nav .sub-menu .menu-item-has-children > .menu-parent-label::after { content: "▾"; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-copy { padding: 40px 0 34px; }
  .home-hero h1 { font-size: 35px; }
  .home-hero-image { min-height: 210px; max-height: 260px; }
  .league-grid, .season-grid, .info-grid, .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .content-page { padding: 32px 0 44px; }
  .page-heading { padding: 22px 0; }
  .page-heading h1 { font-size: 28px; }
  .entry-content h2 { margin-top: 30px; font-size: 24px; }
  .entry-content h3 { font-size: 19px; }
  .league-page { padding-top: 8px; }
  .league-page .site-container { width: calc(100% - 16px); }
}

@media (max-width: 480px) {
  .site-container { width: calc(100% - 24px); }
  .league-page .site-container { width: calc(100% - 8px); }
  .home-hero-actions { display: grid; grid-template-columns: 1fr; }
  .home-hero-actions .button-link { width: 100%; }
  .contact-card { min-height: 0; padding: 21px; }
  .contact-reveal, .contact-revealed { width: 100%; }
  .quick-links { grid-template-columns: 1fr; }
  .league-card { min-height: 0; }
  .entry-content table { display: block; overflow-x: auto; }
}
