/*
Theme Name: Skywatch 2026
Theme URI: https://skywatch-blog.de/
Author: Skywatch Blog
Description: Redaktionelles Weltraum-Theme für Astronomie, Astrofotografie, Raumfahrt und Luftfahrt.
Version: 1.9.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: skywatch-2026
*/

:root {
  --sw-bg: #00101d;
  --sw-bg-deep: #000913;
  --sw-panel-rgb: 4, 24, 40;
  --sw-panel: rgba(var(--sw-panel-rgb), .92);
  --sw-panel-solid: #061b2b;
  --sw-border: rgba(43, 151, 224, .58);
  --sw-border-soft: rgba(72, 166, 228, .25);
  --sw-text: #f3f8fd;
  --sw-muted: #a9bfd2;
  --sw-blue: #1688d4;
  --sw-blue-2: #8bd1ff;
  --sw-orange: #ff5e25;
  --sw-image-border: #ff5e25;
  --sw-shadow: 0 22px 65px rgba(0, 0, 0, .38);
  --sw-radius: 12px;
  --sw-content: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--sw-text);
  background-color: var(--sw-bg-deep);
  background-image:
    radial-gradient(circle at 8% 16%, rgba(255,255,255,.95) 0 1px, transparent 1.6px),
    radial-gradient(circle at 74% 12%, rgba(109,190,255,.9) 0 1px, transparent 1.7px),
    radial-gradient(circle at 26% 72%, rgba(255,255,255,.72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 66%, rgba(135,202,255,.78) 0 1px, transparent 1.5px),
    radial-gradient(ellipse at 100% 5%, rgba(20,99,177,.34), transparent 34%),
    radial-gradient(ellipse at 0% 52%, rgba(11,87,148,.24), transparent 29%),
    linear-gradient(180deg, #00101d 0%, #001322 48%, #000a13 100%);
  background-size: 220px 220px, 330px 330px, 410px 410px, 520px 520px, auto, auto, auto;
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 86% 3%, rgba(32, 122, 213, .28), transparent 28%),
    linear-gradient(180deg, transparent 0, rgba(0, 7, 14, .22) 100%);
}
body.custom-background { min-height: 100vh; }

a { color: var(--sw-blue-2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus,
.sw-skip-link:focus {
  position: fixed !important;
  z-index: 100000;
  top: 12px; left: 12px;
  width: auto; height: auto;
  clip: auto;
  padding: 10px 14px;
  color: #00111f;
  background: #fff;
  border-radius: 7px;
}
.sw-skip-link { position: absolute; left: -9999px; }
.sw-shell { width: min(calc(100% - 24px), var(--sw-content)); margin-inline: auto; }

/* Header */
.site-header {
  position: relative;
  border-bottom: 1px solid rgba(39, 142, 211, .34);
  background: linear-gradient(180deg, rgba(0, 13, 24, .84), rgba(0, 18, 32, .62));
  backdrop-filter: blur(8px);
}
.sw-brand-row {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(250px, 330px) 1fr minmax(260px, 330px);
  gap: 34px;
  align-items: center;
}
.site-branding { min-width: 0; }
.skywatch-brand-logo,
.custom-logo-wrap { display: inline-block; width: min(100%, 315px); line-height: 0; }
.skywatch-brand-logo img,
.custom-logo-wrap img { display: block; width: auto; max-width: 100%; max-height: 82px; object-fit: contain; object-position: left center; }
.custom-logo-wrap .custom-logo-link { display: inline-block; line-height: 0; }
.sw-header-copy { align-self: center; min-width: 0; }
.sw-kicker-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--sw-orange);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sw-kicker-links a { color: #b8ccdc; }
.sw-kicker-links a:hover { color: #fff; }
.site-description {
  margin: 8px 0 0;
  color: #89a9c1;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.sw-search { min-width: 0; }
.search-form { position: relative; }
.search-form label { display: block; position: relative; }
.sw-search-icon {
  position: absolute;
  top: 50%; left: 16px;
  width: 20px; height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: #9cc8e5;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.search-field {
  width: 100%;
  min-height: 46px;
  padding: 10px 52px 10px 47px;
  color: #eef8ff;
  background: rgba(7, 34, 54, .88);
  border: 1px solid rgba(42, 148, 220, .74);
  border-radius: 999px;
  outline: none;
  box-shadow: inset 0 0 22px rgba(37, 134, 201, .1);
}
.search-field::placeholder { color: #a6bdd0; opacity: 1; }
.search-field:focus { border-color: #70c5ff; box-shadow: 0 0 0 3px rgba(50, 160, 232, .14); }
.search-submit {
  position: absolute;
  right: 6px; top: 50%;
  width: 36px; height: 36px;
  padding: 0;
  overflow: hidden;
  font-size: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.search-submit::before { content: "→"; color: #9dd3f4; font-size: 1.05rem; line-height: 1; }
.sw-menu-toggle { display: none; }

/* Main navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(38, 135, 201, .46);
  background: rgba(0, 18, 31, .92);
  backdrop-filter: blur(14px);
}
.sw-nav-inner { min-height: 48px; display: flex; justify-content: center; align-items: center; }
.primary-menu { display: flex; justify-content: center; gap: clamp(18px, 4vw, 54px); list-style: none; margin: 0; padding: 0; }
.primary-menu li { position: relative; }
.primary-menu li + li::before {
  content: "";
  position: absolute;
  left: calc(clamp(18px, 4vw, 54px) / -2);
  top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--sw-orange);
  box-shadow: 0 0 8px rgba(255, 94, 37, .55);
}
.primary-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: #c7dded;
  font-size: .9rem;
  font-weight: 560;
  white-space: nowrap;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a { color: #fff; }
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: -16px;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--sw-border);
  border-radius: 0 0 9px 9px;
  background: rgba(2, 22, 37, .98);
  box-shadow: var(--sw-shadow);
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu li::before { display: none; }
.primary-menu .sub-menu a { min-height: 38px; padding: 7px 10px; font-size: .82rem; }

/* Editorial homepage */
.site-main-wrap { padding: 12px 0 48px; }
.sw-editorial-layout {
  display: grid !important;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.sw-home-content,
.content-area { min-width: 0; }

.sw-topics {
  display: block !important;
  position: sticky;
  top: 70px;
  overflow: hidden;
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  background: linear-gradient(180deg, rgba(5, 30, 48, .94), rgba(2, 21, 35, .94));
  box-shadow: var(--sw-shadow);
}
.sw-topics-title {
  padding: 12px 14px 8px;
  color: #a8cde7;
  font-size: .75rem;
  font-weight: 780;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.sw-topic-nav { padding: 4px 8px 14px; }
.sw-topic-group { position: relative; }
.sw-topic-group.is-current::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 4px;
  background: var(--sw-orange);
  box-shadow: 0 0 12px rgba(255, 94, 37, .45);
}
.sw-topic-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 9px 10px;
  color: #d8e9f5;
  border-radius: 7px;
  font-size: .86rem;
}
.is-current > .sw-topic-link,
.sw-topic-link:hover { color: #fff; background: rgba(43, 113, 163, .25); }
.sw-topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 27px;
  width: 27px; height: 27px;
  color: #9ed6fa;
}
.sw-topic-icon svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sw-topic-icon svg.sw-icon-fill { fill: currentColor; stroke: none; }
.sw-topic-icon .sw-icon-plane { width: 26px; height: 26px; }
.sw-topic-icon .sw-icon-rocket { width: 27px; height: 27px; }
.sw-topic-icon .sw-icon-planet { width: 27px; height: 27px; }
.sw-topic-icon .sw-icon-book,
.sw-topic-icon .sw-icon-chart { width: 26px; height: 26px; }
.sw-topic-children {
  position: relative;
  margin: 0 0 7px 35px;
  padding: 0 0 1px 15px;
  list-style: none;
  border-left: 1px solid rgba(89, 159, 205, .24);
}
.sw-topic-children li { margin: 0 0 4px; }
.sw-topic-children a { color: #8eb6d0; font-size: .74rem; }
.sw-topic-children a::before { content: "·"; margin-right: 8px; color: #338bc5; }
.sw-topic-children a:hover { color: #fff; }
.widget-title { margin: 0 0 8px; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { margin-top: 6px; font-size: .82rem; }

.sw-feature-grid { display: grid; grid-template-columns: minmax(0, 1.82fr) minmax(270px, 1fr); gap: 10px; }
.sw-feature {
  position: relative;
  height: 300px;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  background:
    radial-gradient(circle at 77% 25%, rgba(71, 158, 235, .42), transparent 21%),
    linear-gradient(135deg, #061e32, #020e1a 72%);
  box-shadow: var(--sw-shadow);
}
.sw-feature-image { position: absolute; inset: 0; }
.sw-feature-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sw-feature-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 12, 22, .96) 0%, rgba(1, 12, 22, .78) 42%, rgba(1, 12, 22, .08) 80%), linear-gradient(0deg, rgba(1, 11, 20, .3), transparent 58%);
}
.sw-feature-side .sw-feature-shade { background: linear-gradient(90deg, rgba(1, 13, 23, .96) 0%, rgba(1, 13, 23, .76) 51%, rgba(1, 13, 23, .12) 100%), linear-gradient(0deg, rgba(1, 11, 20, .6), transparent 74%); }
.sw-feature-copy { position: relative; z-index: 2; width: 64%; height: 300px; min-height: 300px; display: flex; flex-direction: column; justify-content: center; padding: 24px 26px; }
.sw-feature-side .sw-feature-copy { width: 82%; padding: 24px; }
.sw-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 11px;
  color: #a6cae4;
  font-size: .67rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sw-card-meta i { display: inline-block; width: 1px; height: 12px; background: #6e93ab; }
.sw-feature h2 { display: -webkit-box; overflow: hidden; margin: 0; color: #fff; font-size: clamp(1.65rem, 2.65vw, 2.35rem); line-height: 1.08; letter-spacing: -.025em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sw-feature-side h2 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
.sw-feature h2 a { color: inherit; }
.sw-feature p { display: -webkit-box; overflow: hidden; margin: 12px 0 0; color: #d5e2ec; font-size: .86rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sw-feature-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: 8px 18px;
  color: var(--sw-orange);
  border: 1px solid var(--sw-orange);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 820;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.sw-feature-button span { font-size: 1.2rem; line-height: 1; }
.sw-feature-button:hover { color: #fff; background: rgba(255, 94, 37, .12); box-shadow: 0 0 18px rgba(255, 94, 37, .15); }

.sw-content-heading { display: flex; align-items: center; gap: 14px; margin: 14px 3px 10px; }
.sw-content-heading h2 { margin: 0; color: #a9cee7; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.sw-heading-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(64,153,213,.55), rgba(64,153,213,.16)); }
.sw-content-heading a { color: var(--sw-orange); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.sw-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  background: linear-gradient(180deg, rgba(7, 31, 49, .96), rgba(3, 20, 33, .98));
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-2px); border-color: rgba(84, 186, 250, .82); box-shadow: 0 18px 44px rgba(0,0,0,.38); }
.post-card-media { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 4.7; overflow: hidden; background: #051724; }
.post-card-media img { display: block; max-width: 100%; max-height: 100%; border: 0 !important; }
.post-card-media .sw-card-image--featured { width: 100% !important; height: 100% !important; object-fit: cover; }
.post-card-media .sw-card-image--legacy { width: var(--sw-preview-width, auto) !important; height: auto !important; object-fit: contain; }
.sw-card-placeholder {
  position: relative;
  background:
    radial-gradient(circle at 67% 41%, rgba(122, 201, 255, .9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 30% 65%, rgba(255,255,255,.7) 0 1px, transparent 1.4px),
    radial-gradient(ellipse at 78% 20%, rgba(31, 119, 195, .48), transparent 31%),
    linear-gradient(140deg, #08263e, #020d18);
}
.sw-card-placeholder span { width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(127,201,249,.22); box-shadow: 0 0 45px rgba(65,158,220,.16); }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 10px 16px 14px; }
.post-card .sw-card-meta { margin-bottom: 6px; font-size: .6rem; }
.entry-title { margin: 0; color: #fff; font-size: clamp(1rem, 1.35vw, 1.24rem); line-height: 1.28; }
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--sw-blue-2); }
.entry-summary { display: -webkit-box; overflow: hidden; margin: 7px 0 13px; color: #bcd0df; font-size: .78rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sw-card-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  padding: 7px 16px;
  color: var(--sw-orange);
  border: 1px solid var(--sw-orange);
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sw-card-button span { font-size: 1.05rem; line-height: 1; }
.sw-card-button:hover { color: #fff; background: rgba(255, 94, 37, .12); box-shadow: 0 0 16px rgba(255, 94, 37, .14); }

/* Archives and articles */
.archive-header,
.single-article,
.page-article,
.comments-area {
  overflow: hidden;
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius);
  background: linear-gradient(180deg, rgba(var(--sw-panel-rgb), .96), rgba(2, 17, 29, .98));
  box-shadow: var(--sw-shadow);
}
.archive-header { padding-block: 24px; }
.archive-header h1,
.single-article > header .entry-title,
.page-article > .entry-title { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.08; }
.sw-eyebrow { margin: 0 0 7px; color: var(--sw-orange); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.archive-description { color: var(--sw-muted); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 9px 15px; margin: 10px 0 20px; color: var(--sw-muted); font-size: .78rem; }
.entry-meta a { color: var(--sw-muted); }
.single-article img.wp-post-image { display: block; width: 700px; max-width: 100%; height: auto; margin: 24px auto; cursor: zoom-in; }
.entry-content { width: 100%; color: #dce9f3; font-size: 1rem; line-height: 1.78; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: #fff; line-height: 1.2; }
.entry-content h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.entry-content h3 { margin-top: 1.6em; font-size: clamp(1.18rem, 2vw, 1.45rem); }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 18px; border-left: 3px solid var(--sw-blue); background: rgba(55, 151, 216, .08); }
.entry-content pre,
.entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.entry-content pre { overflow: auto; padding: 16px; border: 1px solid var(--sw-border-soft); border-radius: 9px; background: #020b13; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { padding: 9px 10px; border: 1px solid rgba(91, 163, 209, .25); vertical-align: top; }
.entry-content th { background: rgba(48, 128, 181, .12); text-align: left; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table table { min-width: 560px; }
.entry-content figure { margin: 1.7em 0; }
.entry-content figcaption,
.entry-content .wp-caption-text { margin: .65em 4px .15em; color: var(--sw-muted); font-size: .82rem; line-height: 1.45; text-align: center; }
.entry-content .equation,
.entry-content .math-display,
.entry-content .wp-block-math { overflow-x: auto; margin: 1.5em 0; padding: 12px 14px; border-left: 3px solid var(--sw-blue); background: rgba(52, 151, 219, .06); }
.entry-content .reference-list,
.entry-content .bibliography { font-size: .88rem; }
.entry-content kbd { padding: .1em .4em; border: 1px solid var(--sw-border-soft); border-bottom-width: 2px; border-radius: 4px; background: #06131f; }

/* Article images retain the previous theme's exact frame/lightbox behavior. */
.entry-content img { display: block; float: none !important; max-width: 100%; height: auto; margin: 1.7em auto; box-sizing: border-box; }
.entry-content img.sw-image-loaded { border: 2px solid var(--sw-image-border) !important; outline: 0 !important; box-shadow: none !important; }
.entry-content img.sw-lightbox-enabled { cursor: zoom-in; }
.entry-content .ngg-gallery-thumbnail img,
.entry-content .ngg-galleryoverview img { border: 0 !important; }
/* QuickLaTeX renders formulas as SVG images. They must remain inline and unframed. */
.entry-content img[src*="/wp-content/ql-cache/"],
.entry-content img[src*="quicklatex.com-"] {
  display: inline-block !important;
  float: none !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  cursor: default !important;
}
.entry-content a:has(> img[src*="/wp-content/ql-cache/"]),
.entry-content a:has(> img[src*="quicklatex.com-"]) {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  text-align: inherit !important;
}
/* Preserve QuickLaTeX's selected display alignment when article text uses justification. */
body.single-post .entry-content p.ql-center-displayed-equation,
body.single-post .entry-content div.ql-center-displayed-equation {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}
body.single-post .entry-content p.ql-left-displayed-equation,
body.single-post .entry-content div.ql-left-displayed-equation {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
}
body.single-post .entry-content p.ql-right-displayed-equation,
body.single-post .entry-content div.ql-right-displayed-equation {
  display: block !important;
  width: 100% !important;
  text-align: right !important;
}
body.single-post .entry-content .ql-center-displayed-equation > img,
body.single-post .entry-content .ql-left-displayed-equation > img,
body.single-post .entry-content .ql-right-displayed-equation > img {
  display: inline-block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.entry-content figure,
.entry-content .wp-caption,
.entry-content .gallery-caption,
.entry-content a:has(> img),
.entry-content figure.wp-block-image { max-width: 100% !important; margin: 1.7em auto !important; padding: 0 !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; text-align: center; }
.entry-content figure img,
.entry-content .wp-caption img { margin: 0 auto; }
.entry-content img.alignleft,
.entry-content img.alignright,
.entry-content img.aligncenter,
.entry-content .wp-caption.alignleft,
.entry-content .wp-caption.alignright,
.entry-content .wp-caption.aligncenter { float: none !important; margin-left: auto !important; margin-right: auto !important; }
.alignwide { max-width: 1120px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* Lightbox */
.sw-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .93); }
.sw-lightbox.is-open { display: flex; }
.sw-lightbox img { display: block; width: auto; height: auto; max-width: min(96vw, 2200px); max-height: 94vh; border: 2px solid var(--sw-image-border); object-fit: contain; }
.sw-lightbox-close { position: fixed; top: 16px; right: 20px; z-index: 100000; padding: 7px 11px; color: #fff !important; background: rgba(0,0,0,.72) !important; border: 0 !important; font-size: 2rem; line-height: 1; cursor: pointer; }
body.sw-lightbox-open { overflow: hidden; }

/* Forms, comments, pagination, footer */
.navigation.pagination { margin-top: 24px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { min-width: 38px; padding: 7px 10px; color: #d7ecfa; text-align: center; border: 1px solid var(--sw-border-soft); border-radius: 7px; background: rgba(5, 28, 45, .86); }
.page-numbers.current { color: #fff; border-color: var(--sw-blue); background: #126fa9; }
.comments-title { margin-top: 0; font-size: 1.25rem; }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-body { margin-bottom: 14px; padding: 15px; border: 1px solid var(--sw-border-soft); border-radius: 8px; background: rgba(255,255,255,.025); }
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select { width: 100%; padding: 10px 12px; color: #fff; border: 1px solid var(--sw-border-soft); border-radius: 8px; background: #041421; }
button,
input[type="submit"] { padding: 10px 15px; color: #fff; border: 0; border-radius: 8px; background: #1277b8; font-weight: 750; cursor: pointer; }
.site-footer { padding: 25px 0 34px; color: #8daac0; border-top: 1px solid rgba(41, 139, 204, .34); background: rgba(0, 9, 16, .78); }
.sw-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.sw-footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }

/* Special Text Boxes */
.stb-caption,
.stb-caption-content { font-family: inherit !important; font-style: normal !important; letter-spacing: 0 !important; text-transform: none !important; text-shadow: none !important; line-height: 1.35 !important; }

@media (max-width: 1180px) {
  .sw-brand-row { grid-template-columns: 280px 1fr 280px; gap: 20px; }
  .sw-header-copy { display: none; }
  .sw-feature-copy { width: 70%; }
  .sw-editorial-layout { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .sw-editorial-layout { grid-template-columns: 1fr; }
  .sw-topics { position: static; }
  .sw-topic-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .sw-topic-children,
  .sw-feature-grid { grid-template-columns: 1.5fr 1fr; }
  .sw-feature-copy { width: 78%; }
  .sw-feature-side .sw-feature-copy { width: 94%; }
  .sw-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .sw-shell { width: min(calc(100% - 24px), var(--sw-content)); }
  .sw-brand-row { min-height: 84px; grid-template-columns: 1fr auto; gap: 12px; }
  .skywatch-brand-logo,
  .custom-logo-wrap { width: min(245px, 68vw); }
  .skywatch-brand-logo img,
  .custom-logo-wrap img { max-height: 64px; }
  .sw-search { display: none; grid-column: 1 / -1; padding-bottom: 14px; }
  body.sw-menu-open .sw-search { display: block; }
  .sw-menu-toggle {
    display: inline-grid;
    width: 44px; height: 42px;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--sw-border-soft);
    border-radius: 8px;
    background: rgba(4, 27, 44, .86);
  }
  .sw-menu-toggle > span:not(.screen-reader-text) { display: block; width: 21px; height: 2px; background: #d7edfb; transition: transform .18s ease, opacity .18s ease; }
  body.sw-menu-open .sw-menu-toggle > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.sw-menu-open .sw-menu-toggle > span:nth-child(2) { opacity: 0; }
  body.sw-menu-open .sw-menu-toggle > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: static; }
  body.sw-menu-open .site-nav { display: block; }
  .primary-menu { width: 100%; display: grid; gap: 0; padding: 7px 0; }
  .primary-menu li + li::before { display: none; }
  .primary-menu a { justify-content: center; min-height: 42px; }
  .primary-menu .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 7px; border: 0; box-shadow: none; background: transparent; }
  .primary-menu .sub-menu a { min-height: 34px; color: #94b7ce; font-size: .78rem; }
  .sw-topic-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-feature-grid { grid-template-columns: 1fr; }
  .sw-feature { height: 280px; min-height: 280px; }
  .sw-feature-side { height: 245px; min-height: 245px; }
  .sw-feature-copy,
  .sw-feature-side .sw-feature-copy { width: 88%; height: 100%; min-height: inherit; padding: 23px; }
  .sw-feature h2,
  .sw-feature-side h2 { font-size: clamp(1.45rem, 7vw, 2rem); }
  .sw-feature p { display: none; }
  .sw-feature-shade,
  .sw-feature-side .sw-feature-shade { background: linear-gradient(90deg, rgba(1,12,22,.96), rgba(1,12,22,.52) 72%, rgba(1,12,22,.16)), linear-gradient(0deg, rgba(1,11,20,.42), transparent); }
  .sw-content-heading a { display: none; }
  .sw-post-grid { grid-template-columns: 1fr; }
  .post-card-media { aspect-ratio: 16 / 7; }
  .archive-header,
  .single-article,
  .page-article,
  .comments-area { padding: 20px; }
}

@media (max-width: 420px) {
  .sw-topic-nav { grid-template-columns: 1fr; }
  .sw-feature-copy,
  .sw-feature-side .sw-feature-copy { width: 96%; padding: 20px; }
  .sw-card-meta { font-size: .6rem; letter-spacing: .08em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* =========================================================
   Skywatch 2026 v1.9.2 – High-DPI / fractional scaling test
   Große Startseiten-Feature-Karten dürfen bei Skalierung
   über 300 px hinauswachsen, statt Text abzuschneiden.
   ========================================================= */
@media (min-width: 761px) {
  .sw-feature {
    height: auto;
    min-height: 300px;
  }

  .sw-feature-copy,
  .sw-feature-side .sw-feature-copy {
    height: auto;
    min-height: 300px;
  }
}

