/* ===========================================================================
   schachmatt.net - chessily.com design language
   ---------------------------------------------------------------------------
   Loaded AFTER the restored WordPress cascade so it wins on the cascade rather
   than by !important. Nothing here changes markup, content or links: both sites
   run the same GeneratePress configuration (separate-containers, right-sidebar,
   nav-float-right, header-aligned-left), so the port is purely visual.

   Every value below is measured from chessily.com via computed styles, not
   guessed - see reports/design-tokens.json.

   Font-family is set on body, headings and form controls only. It is NOT set
   with a blanket selector, because icon fonts (Font Awesome, fork-awesome,
   dashicons, TablePress) declare their own family and a global override would
   turn every icon into a stray letter.
   ========================================================================= */

/* --------------------------------------------------------------- Maven Pro */
/* Variable font, 3 subsets. The latin subset covers U+0000-00FF and
   U+2000-206F, i.e. every umlaut, the sharp s and German quotation marks. */
@font-face {
  font-family: 'Maven Pro';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/maven-pro/7Au9p_AqnyWWAxW2Wk3GzWQI.woff2') format('woff2');
  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: 'Maven Pro';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/maven-pro/7Au9p_AqnyWWAxW2Wk3Gw2QIAFg.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Maven Pro';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/maven-pro/7Au9p_AqnyWWAxW2Wk3GwmQIAFg.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --cy-font: 'Maven Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cy-text: #222;
  --cy-muted: #666;
  --cy-accent: #007bff;
  --cy-accent-dark: #0056b3;
  --cy-bg: #fff;
  --cy-header-bg: #f7f7f7;
  --cy-rule: #e6e6e6;
  --cy-soft: #f7f7f7;
  --cy-track: -0.3px;
  --cy-width: 1200px;
}

/* -------------------------------------------------------------------- base */
body {
  font-family: var(--cy-font);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: var(--cy-track);
  color: var(--cy-text);
  background-color: var(--cy-bg);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea, .button, .wp-block-button__link {
  font-family: var(--cy-font);
  letter-spacing: var(--cy-track);
}

/* ---------------------------------------------------------------- headings */
h1, h2, h3, h4, h5, h6,
.entry-title, .widget-title, .page-title {
  font-family: var(--cy-font);
  font-weight: 600;
  letter-spacing: var(--cy-track);
  color: var(--cy-text);
}

h1, .entry-title { font-size: 35px; line-height: 1.2; margin-bottom: 20px; }
h2 { font-size: 29px; line-height: 1.25; margin-top: 34px; margin-bottom: 16px; }
h3 { font-size: 24px; line-height: 1.3; margin-top: 28px; margin-bottom: 14px; }
h4 { font-size: 20px; line-height: 1.35; margin-top: 24px; margin-bottom: 12px; }
h5 { font-size: 18px; }
h6 { font-size: 17px; }

/* First heading in a card should not push the card open. The entry title sits
   inside .entry-header, so a :first-child rule on .inside-article misses it. */
.inside-article > *:first-child,
.entry-content > *:first-child,
.entry-header .entry-title,
.page-header .page-title { margin-top: 0; }

p { margin-bottom: 25.5px; }

/* ------------------------------------------------------------------- links */
a { color: var(--cy-accent); }
a:hover, a:focus { color: var(--cy-accent-dark); }
.entry-content a { text-decoration: underline; }
.entry-content a:hover { text-decoration: underline; }

/* Structural links should not be underlined like body copy. */
.main-navigation a,
.secondary-navigation a,
.widget a,
.nav-links a,
.breadcrumb a,
.site-info a,
.entry-content .wp-block-button__link,
.entry-content .su-button { text-decoration: none; }
.widget a:hover, .breadcrumb a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ layout */
.grid-container { max-width: var(--cy-width); }
.site-content { padding: 20px 40px; }

/* chessily aligns the text column with the logo (both at x=80). The stock
   theme adds another 40px of horizontal padding inside each card, which pushed
   the copy to x=120 and left it visibly indented from the masthead. Vertical
   padding stays; only the horizontal inset goes. */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation { padding: 30px 0 40px; }
.one-container .site-content { padding: 40px; }

/* Removing the card padding also removed the gutter, leaving the text column
   flush against the sidebar. chessily runs ~60px between the two. */
@media (min-width: 769px) {
  .content-area { padding-right: 56px; }
}

/* Archive listings: with no card backgrounds, 40px of padding plus a 15px gap
   between entries reads as dead space rather than separation. Tighten it and
   let a hairline do the separating. */
body.archive .site-main > article,
body.blog .site-main > article,
body.search .site-main > article { margin-bottom: 0; }

body.archive .site-main > article > .inside-article,
body.blog .site-main > article > .inside-article,
body.search .site-main > article > .inside-article {
  padding: 26px 0;
  border-bottom: 1px solid var(--cy-rule);
}
body.archive .site-main > article:last-of-type > .inside-article,
body.blog .site-main > article:last-of-type > .inside-article,
body.search .site-main > article:last-of-type > .inside-article {
  border-bottom: 0;
}
body.archive .page-header,
body.blog .page-header,
body.search .page-header { padding: 0 0 6px; margin-bottom: 0; }

/* Archive entry titles sit closer to list scale than to article scale. */
body.archive .site-main > article .entry-title,
body.blog .site-main > article .entry-title { font-size: 24px; margin-bottom: 10px; }
body.archive .site-main > article .entry-title a,
body.blog .site-main > article .entry-title a { color: var(--cy-text); text-decoration: none; }
body.archive .site-main > article .entry-title a:hover,
body.blog .site-main > article .entry-title a:hover { color: var(--cy-accent); }

/* chessily runs white-on-white with no card edges; the grey page background
   and card shadows of the stock theme are what make the two look different. */
.separate-containers .inside-article,
.separate-containers .sidebar .widget,
.separate-containers .site-main > * { box-shadow: none; }
.separate-containers .site-main { margin: 0; }

@media (max-width: 768px) {
  .site-content { padding: 16px; }
  .separate-containers .inside-article,
  .separate-containers .paging-navigation { padding: 0; }
  h1, .entry-title { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
}

/* ------------------------------------------------------------------ header */
.site-header {
  background-color: var(--cy-header-bg);
  border-bottom: 1px solid var(--cy-rule);
}
.site-header .inside-header { padding: 20px 40px; max-width: var(--cy-width); }

/* The theme gives the nav its own #f0f0f0 background, which reads as a grey
   slab floating on the #f7f7f7 header. chessily's nav sits directly on the
   header with no box of its own. */
.main-navigation,
.main-navigation .inside-navigation,
.main-navigation ul li { background-color: transparent; }

.main-navigation a,
.main-navigation .menu-toggle {
  font-family: var(--cy-font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: var(--cy-track);
}
.main-navigation .main-nav > ul > li > a { padding-left: 20px; padding-right: 20px; }
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--cy-accent); }

/* Sub-menus: quieter, matching chessily's flat dropdowns. */
.main-navigation ul ul {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
  border: 1px solid var(--cy-rule);
}
.main-navigation ul ul li a { font-weight: 500; }

/* chessily has no secondary bar. schachmatt's carries real links, so it stays -
   restyled as a quiet strip that reads as part of the header instead of a slab. */
.secondary-navigation {
  background-color: #fff;
  border-bottom: 1px solid var(--cy-rule);
}
.secondary-navigation .main-nav > ul > li > a {
  color: var(--cy-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 40px;
}
.secondary-navigation .main-nav > ul > li > a:hover { color: var(--cy-accent); }

/* ----------------------------------------------------------------- sidebar */
.sidebar .widget {
  background-color: transparent;
  padding: 0 0 34px;
  font-size: 16px;
}
.sidebar .widget .widget-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}
.sidebar .widget ul li { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--cy-rule); }
.sidebar .widget ul li:last-child { border-bottom: 0; }

/* --------------------------------------------------------------- forms/CTA */
input[type="text"], input[type="email"], input[type="search"], input[type="url"],
input[type="tel"], input[type="number"], textarea, select {
  border: 1px solid var(--cy-rule);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 16px;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--cy-accent);
  outline: 2px solid rgba(0, 123, 255, .18);
  outline-offset: 0;
}
button, .button, input[type="submit"], .wp-block-button__link {
  background-color: var(--cy-accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  padding: 11px 22px;
  border: 0;
}
button:hover, .button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
  background-color: var(--cy-accent-dark);
  color: #fff;
}
.search-form .search-submit, .wp-block-search__button { border-radius: 0 6px 6px 0; }

/* ------------------------------------------------------------- breadcrumbs */
/* Yoast emits <p id="breadcrumbs">, not a .breadcrumb class. Styling the class
   alone applied to nothing on any page. */
#breadcrumbs, .breadcrumb, .breadcrumbs {
  font-size: 15px;
  color: var(--cy-muted);
  margin-bottom: 18px;
}
#breadcrumbs a { color: var(--cy-accent); text-decoration: none; }
#breadcrumbs a:hover { text-decoration: underline; }
#breadcrumbs .breadcrumb_last { color: var(--cy-muted); font-weight: 500; }

/* ------------------------------------------------------------ content bits */
.entry-content ul, .entry-content ol { margin-bottom: 25.5px; padding-left: 26px; }
.entry-content li { margin-bottom: 8px; }

blockquote {
  border-left: 4px solid var(--cy-accent);
  background: var(--cy-soft);
  padding: 18px 24px;
  margin: 28px 0;
  font-style: normal;
  color: var(--cy-text);
}

/* shortcodes-ultimate note boxes ("Merke") */
.su-note .su-note-inner {
  border-radius: 8px !important;
  border-width: 1px !important;
  padding: 20px 24px !important;
}

/* TablePress */
.tablepress { font-size: 16px; border: 1px solid var(--cy-rule); }
.tablepress thead th, .tablepress tfoot th {
  background-color: var(--cy-soft);
  font-weight: 600;
  color: var(--cy-text);
}
.tablepress td, .tablepress th { padding: 12px 14px; border-top: 1px solid var(--cy-rule); }
.tablepress .odd td { background-color: #fbfbfb; }
.tablepress .even td { background-color: #fff; }

/* Helpie FAQ accordion */
.helpie-faq.accordions .accordion__item {
  border: 1px solid var(--cy-rule) !important;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.helpie-faq.accordions .accordion__header {
  padding: 16px 20px !important;
  background: var(--cy-soft) !important;
  cursor: pointer;
}
.helpie-faq.accordions .accordion__title {
  font-family: var(--cy-font) !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  letter-spacing: var(--cy-track);
  color: var(--cy-text) !important;
}
.helpie-faq.accordions .accordion__header.active { background: #eef5ff !important; }
.helpie-faq.accordions .accordion__body { padding: 18px 20px !important; background: #fff !important; }

/* Code blocks */
.hcb_wrap pre, pre, code { font-size: 15px; }
.hcb_wrap pre { border-radius: 8px; }

/* Images keep their aspect and never overflow the column. */
.entry-content img { max-width: 100%; height: auto; }

/* -------------------------------------------------------------- pagination */
.paging-navigation .nav-links a,
.paging-navigation .nav-links span.current {
  display: inline-block;
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid var(--cy-rule);
  border-radius: 6px;
  margin-right: 6px;
  font-weight: 600;
  text-align: center;
}
.paging-navigation .nav-links span.current {
  background: var(--cy-accent);
  border-color: var(--cy-accent);
  color: #fff;
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  background-color: var(--cy-soft);
  border-top: 1px solid var(--cy-rule);
  margin-top: 40px;
}
.site-footer .inside-site-info,
.site-footer .footer-widgets-container { max-width: var(--cy-width); padding: 24px 40px; }
.site-footer, .site-footer a { font-size: 15px; }
.site-footer a { color: var(--cy-accent); }

/* ====================================================================== search
   /suche/ replaces WordPress's server-side ?s= handling. The form and results
   live inside the normal article column, so only the list needs styling. */
.sm-search-form { display: flex; gap: 10px; margin: 0 0 22px; max-width: 560px; }
.sm-search-form input[type="search"] { flex: 1 1 auto; font-size: 17px; }
.sm-search-form button { flex: 0 0 auto; white-space: nowrap; }

#sm-search-status { color: var(--cy-muted); font-size: 15px; margin-bottom: 20px; }

.sm-search-results { list-style: none; margin: 0; padding: 0; }
.sm-search-results li { margin: 0 0 6px; padding: 0 0 18px; border-bottom: 1px solid var(--cy-rule); }
.sm-search-results li:last-child { border-bottom: 0; }

.sm-search-hit__title {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: var(--cy-track);
  text-decoration: none;
  margin-bottom: 4px;
}
.sm-search-hit__title:hover { text-decoration: underline; }
.sm-search-hit__snippet { margin: 0 0 4px; font-size: 16px; color: #444; }
.sm-search-hit__url { font-size: 14px; color: var(--cy-muted); }
.sm-search-empty { color: var(--cy-muted); }

/* ==================================================================== homepage
   chessily's homepage shape: a blue hero, then card grids on white. The markup
   is rebuilt from the page's own elements by tools/build-homepage.mjs, which
   asserts no link is lost; this only styles the result. */

/* The homepage drops the sidebar, so the content column should span the grid. */
body.home .content-area,
body.page-id-343 .content-area { width: 100%; padding-right: 0; }
body.home .site-content .content-area > .site-main,
body.page-id-343 .site-content .content-area > .site-main { margin: 0; }
body.home .inside-article,
body.page-id-343 .inside-article { padding: 0; }

.sm-home { --sm-gap: 28px; }

/* ---------------------------------------------------------------- hero */
.sm-hero {
  background: var(--cy-accent);
  color: #fff;
  /* Full-bleed out of the content column without touching the markup. The
     horizontal inset belongs to .sm-hero__inner alone - applying it here too
     pushed the hero copy to x=120 while the logo sits at x=80. */
  margin: 0 calc(50% - 50vw) 48px;
  padding: 60px 0;
}

/* The hero should meet the header. The theme's content padding left an 84px
   band of white between the two. */
body.home .site-content,
body.page-id-343 .site-content { padding-top: 0; }
body.home .inside-article,
body.page-id-343 .inside-article { padding-top: 0; }
body.home .entry-header,
body.page-id-343 .entry-header { display: none; }
.sm-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  max-width: var(--cy-width);
  margin: 0 auto;
  padding: 0 40px;
}
.sm-hero__title {
  color: #fff;
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 16px;
}
.sm-hero__lead {
  font-size: 19px;
  line-height: 1.45;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .95);
  max-width: 44ch;
}
.sm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sm-hero__search { display: flex; gap: 8px; }
.sm-hero__search input[type="search"] {
  border: 0;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 16px;
  min-width: 190px;
}
.sm-hero__search button {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
}
.sm-hero__search button:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.sm-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
}

.sm-cta {
  display: inline-block;
  background: #fff;
  color: var(--cy-accent);
  font-weight: 600;
  font-size: 17px;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
}
.sm-cta:hover { background: #eaf2ff; color: var(--cy-accent-dark); }
.sm-cta--ghost {
  background: transparent;
  color: var(--cy-accent);
  border: 2px solid var(--cy-accent);
}
.sm-cta--ghost:hover { background: var(--cy-accent); color: #fff; }

/* ------------------------------------------------------------- sections */
.sm-section { margin: 0 0 52px; }
.sm-section__title { font-size: 32px; text-align: center; margin: 0 0 30px; }
.sm-section--soft {
  background: var(--cy-soft);
  border-radius: 12px;
  padding: 36px 32px;
}

/* ----------------------------------------------------------- guide cards */
.sm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sm-gap);
}
.sm-card {
  border: 1px solid var(--cy-rule);
  border-radius: 10px;
  padding: 22px 24px;
  background: #fff;
}
.sm-card__title { font-size: 20px; margin: 0 0 12px; }
.sm-card__links { list-style: none; margin: 0; padding: 0; }
.sm-card__links li { margin: 0 0 7px; }
.sm-card__links a { text-decoration: none; font-weight: 500; }
.sm-card__links a:hover { text-decoration: underline; }

/* ----------------------------------------------------------- intro band */
.sm-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sm-gap);
}
.sm-intro__col h3 { margin-top: 0; font-size: 21px; }
.sm-intro__col p { font-size: 16px; margin-bottom: 12px; }

/* ------------------------------------------------------------ post grid */
.sm-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sm-gap);
}
.sm-post {
  border: 1px solid var(--cy-rule);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.sm-post--hidden { display: none; }
.sm-post__media { display: block; line-height: 0; }
.sm-post__media img { width: 100%; height: 170px; object-fit: cover; display: block; }
.sm-post__title { font-size: 18px; margin: 16px 18px 10px; line-height: 1.3; }
.sm-post__title a { color: var(--cy-text); text-decoration: none; }
.sm-post__title a:hover { color: var(--cy-accent); }
.sm-post__more {
  margin: auto 18px 18px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.sm-post__more::after { content: " →"; }

.sm-loadmore-wrap { text-align: center; margin-top: 32px; }

@media (max-width: 860px) {
  .sm-hero { padding: 40px 0; margin-bottom: 36px; }
  .sm-hero__inner { grid-template-columns: 1fr; gap: 28px; padding: 0 20px; }
  .sm-hero__title { font-size: 34px; }
  .sm-hero__lead { font-size: 17px; }
  .sm-hero__media { max-width: 340px; }
  .sm-section__title { font-size: 26px; }
  .sm-section--soft { padding: 24px 20px; }
}

/* The theme's .entry-content top margin collapsed through the article and left
   a 34px band of white between the header and the full-bleed hero. */
body.home .entry-content,
body.page-id-343 .entry-content { margin-top: 0; }

/* .entry-content a {text-decoration:underline} is (0,1,1) and outranks a bare
   .sm-* class, so the homepage buttons and card links came out underlined.
   Qualify them to (0,2,0) rather than reach for !important. */
.entry-content .sm-cta,
.entry-content .sm-card__links a,
.entry-content .sm-post__title a,
.entry-content .sm-post__more,
.entry-content .sm-post__media,
.entry-content .sm-search-hit__title { text-decoration: none; }
.entry-content .sm-card__links a:hover,
.entry-content .sm-post__title a:hover,
.entry-content .sm-post__more:hover,
.entry-content .sm-search-hit__title:hover { text-decoration: underline; }
