/*
Theme Name: GSL Holding
Theme URI: https://gslholding.de
Author: GSL Holding GmbH
Description: Corporate theme — warm, serif, professional. Based on mission.html design.
Version: 2.9.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: Proprietary
Text Domain: gsl-holding
*/

/* === DESIGN TOKENS === */
:root {
  --bg: #F5F4F0;
  --bg2: #EEECE8;
  --ink: #151D1B;
  --brand: #2E3B39;
  --teal: #2E6F73;
  --teal-hover: #1F5458;
  --muted: #5A6E6B;
  --line: rgba(30,43,41,0.10);
  --white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-hover); }
img { max-width: 100%; height: auto; display: block; }

/* === UTILITY === */
.label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.lead {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.85;
  font-weight: 400;
  color: var(--brand);
  max-width: 640px;
}

/* === NAV === */
.gsl-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3.5rem; height: 60px;
  background: rgba(245,244,240,0.93);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.gsl-nav__logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Logo: "GSL Holding" as one word, no dot */
.gsl-nav__icon {
  width: 22px;
  height: 22px;
  opacity: 0.7;
}
.gsl-nav__links {
  display: flex; gap: 2.5rem; list-style: none;
}
.gsl-nav__links a {
  font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.gsl-nav__links a:hover,
.gsl-nav__links .current-menu-item a { color: var(--ink); }
.gsl-nav__contact {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--teal); text-decoration: none;
  border-bottom: 1px solid rgba(70,151,156,0.4); padding-bottom: 1px;
}
.gsl-nav__lang {
  display: flex; align-items: center; gap: 0.3rem; margin-left: 1.5rem;
}
.gsl-lang-link {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  color: var(--muted); text-decoration: none; padding: 2px 4px;
  transition: color 0.2s;
}
.gsl-lang-link:hover { color: var(--ink); }
.gsl-lang-link.active { color: var(--ink); font-weight: 600; }
.gsl-lang-sep { font-size: 0.65rem; color: var(--line); }

.gsl-nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.gsl-nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); margin: 5px 0;
}

/* === HERO === */
.gsl-hero {
  padding: 140px 3.5rem 80px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.gsl-hero--dark {
  position: relative;
  max-width: none;
  padding: 0;
  border-bottom: none;
  overflow: hidden;
}
.gsl-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}
#gsl-particle-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.gsl-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,29,27,0.03) 0%, rgba(21,29,27,0.06) 100%);
  z-index: 1;
}
.gsl-hero__content {
  position: relative; z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 160px 3.5rem 100px;
}
.gsl-hero--dark .label { color: var(--teal); }
.gsl-hero--dark h1 { color: var(--ink); }
.gsl-hero--dark .lead { color: var(--brand); }
.gsl-hero--dark .btn-ghost {
  border-color: var(--line);
  color: var(--muted);
}
.gsl-hero--dark .btn-ghost:hover {
  border-color: var(--teal);
  color: var(--ink);
}
.gsl-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin: 1rem 0 1.75rem;
}
.gsl-hero h1 em {
  font-style: italic; color: var(--teal);
}
.gsl-hero .lead { margin-bottom: 2.5rem; }
.gsl-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--teal);
  color: var(--bg);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: none; border-radius: 2px; cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--teal-hover); color: var(--bg);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 2px; transition: border-color 0.25s, color 0.25s;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--ink); }

/* === SECTIONS === */
.gsl-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3.5rem;
  border-bottom: 1px solid var(--line);
}
.gsl-section--full {
  max-width: none;
  padding: 5rem 3.5rem;
  border-bottom: 1px solid var(--line);
}
.gsl-section--full .section-inner { max-width: 1100px; margin: 0 auto; }
/* Section centering (available via .gsl-section--center if needed) */
.sec-label {
  font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 1rem;
}
.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400; color: var(--ink);
  margin-bottom: 1.5rem; line-height: 1.25;
}
.sec-body {
  font-family: var(--font-serif);
  font-size: 0.95rem; line-height: 1.9; color: var(--brand);
}
.sec-body + .sec-body { margin-top: 1.1rem; }
.sec-body--intro { margin-bottom: 0; }

/* === GRID (Sectors/Principles) === */
.gsl-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); margin-top: 2.5rem;
}
.gsl-grid__item {
  padding: 2.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.gsl-grid__item:hover { background: rgba(70,151,156,0.03); }
.gsl-grid__item:nth-child(2n) { border-right: none; }
.gsl-grid__item:nth-last-child(-n+2) { border-bottom: none; }
.gsl-grid__num {
  font-size: 0.62rem; letter-spacing: 0.12em;
  color: var(--teal); display: block; margin-bottom: 0.85rem;
}
.gsl-grid__item h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.75rem;
}
.gsl-grid__item p {
  font-family: var(--font-serif);
  font-size: 0.88rem; line-height: 1.82; color: var(--brand);
}

/* === BRIEFINGS / BLOG === */
.gsl-briefings {
  display: grid; grid-template-columns: 1fr;
  gap: 0; margin-top: 2rem;
}
.gsl-briefing-card {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 2rem; padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.gsl-briefing-card:hover { background: rgba(70,151,156,0.02); }
.gsl-briefing-card__date {
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--muted); padding-top: 0.2rem;
}
.gsl-briefing-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 400;
  color: var(--ink); margin-bottom: 0.5rem; line-height: 1.35;
}
.gsl-briefing-card h3 a { color: inherit; }
.gsl-briefing-card h3 a:hover { color: var(--teal); }
.gsl-briefing-card p {
  font-size: 0.85rem; color: var(--muted); line-height: 1.75;
}
.gsl-briefing-card__tag {
  display: inline-block; margin-top: 0.8rem;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); border: 1px solid var(--line);
  padding: 0.2rem 0.6rem; border-radius: 2px;
}

/* === CONTACT === */
.gsl-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-detail { margin-bottom: 1.5rem; }
.contact-detail label {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); display: block; margin-bottom: 0.3rem;
}
.contact-detail p { font-size: 0.92rem; color: var(--brand); }
.contact-detail a { color: var(--brand); }
.contact-detail a:hover { color: var(--teal); }

/* === SINGLE POST === */
.gsl-post {
  max-width: 1100px; margin: 0 auto; padding: 140px 3.5rem 5rem;
}
.gsl-post h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400; line-height: 1.2;
  margin-bottom: 1rem;
}
.gsl-post__meta {
  font-size: 0.78rem; color: var(--muted);
  letter-spacing: 0.04em; margin-bottom: 3rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.gsl-post__content { font-family: var(--font-serif); font-size: 0.95rem; line-height: 1.9; color: var(--brand); }
.gsl-post__content h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.5rem; margin: 3rem 0 1rem; color: var(--ink);
}
.gsl-post__content h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 1.15rem; margin: 2rem 0 0.8rem; color: var(--ink);
}
.gsl-post__content p { margin-bottom: 1.2rem; }
.gsl-post__content ul, .gsl-post__content ol {
  margin-bottom: 1.2rem; padding-left: 1.5rem;
}
.gsl-post__content li { margin-bottom: 0.4rem; }
.gsl-post__content blockquote {
  border-left: 2px solid var(--teal);
  padding: 1rem 1.5rem; margin: 2rem 0;
  font-family: var(--font-serif);
  font-size: 1.1rem; font-style: italic;
  color: var(--ink); line-height: 1.7;
}
.gsl-post__content a { border-bottom: 1px solid rgba(70,151,156,0.3); }
.gsl-post__content a:hover { border-bottom-color: var(--teal); }

/* === FOOTER === */
.gsl-footer {
  border-top: 1px solid var(--line);
}
.gsl-footer__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 2rem;
  padding: 3rem 3.5rem 2rem;
  max-width: 1100px; margin: 0 auto;
}
.gsl-footer__col { display: flex; flex-direction: column; gap: 0.4rem; }
.gsl-footer__brand {
  font-family: var(--font-serif); font-size: 1.05rem;
  font-weight: 500; color: var(--ink);
}
.gsl-footer__addr { font-size: 0.78rem; color: var(--muted); }
.gsl-footer__email {
  font-size: 0.82rem; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.gsl-footer__email:hover { color: var(--teal); border-color: var(--teal); }
.gsl-footer__memberships { gap: 0.25rem; }
.gsl-footer__memberships-label {
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(107,126,123,0.5); margin-bottom: 0.15rem;
}
.gsl-footer__badge {
  font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--muted);
}
.gsl-footer__bottom {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  padding: 1.25rem 3.5rem;
  border-top: 1px solid var(--line);
}
.gsl-footer__copy { font-size: 0.7rem; color: var(--muted); }
.gsl-footer__links { display: flex; gap: 2rem; list-style: none; }
.gsl-footer__links a {
  font-size: 0.72rem; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.gsl-footer__links a:hover { color: var(--teal); }
.gsl-footer__legal { font-size: 0.68rem; color: rgba(107,126,123,0.6); }

/* No-Cookie Banner */
.gsl-footer__nocookie {
  position: relative;
  text-align: center;
  padding: 1rem 3.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.gsl-footer__cookie-monster {
  position: absolute;
  bottom: calc(100% + 17px);
  left: 0;
  right: 0;
  display: block;
  font-family: monospace;
  font-size: 0.35rem;
  letter-spacing: 0;
  color: transparent;
  line-height: 1.1;
  margin: 0 auto;
  padding: 1rem 0;
  user-select: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: color 0.6s, opacity 0.5s ease, transform 0.5s ease;
}
.gsl-footer__nocookie:hover .gsl-footer__cookie-monster {
  color: var(--teal);
  opacity: 1;
  transform: translateY(0);
}

/* === SUBSCRIBE === */
.gsl-subscribe {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 2rem; max-width: 480px;
}
.gsl-subscribe__input {
  flex: 1; min-width: 200px;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans); font-size: 0.85rem;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px;
  outline: none; transition: border-color 0.2s;
}
.gsl-subscribe__input:focus { border-color: var(--teal); }
.gsl-subscribe__input::placeholder { color: var(--muted); }
.gsl-subscribe__btn { white-space: nowrap; }
.gsl-subscribe__status {
  font-size: 0.78rem; color: var(--muted);
  margin-top: 0.5rem; min-height: 1.2em;
}
.gsl-subscribe__status--ok { color: var(--teal); }

/* === FADE IN (only on front page, JS-controlled) === */
body.home .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
body.home .fade-in.visible { opacity: 1; transform: none; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .gsl-nav { padding: 0 1.5rem; }
  .gsl-nav__links { display: none; }
  .gsl-nav__links.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg); padding: 1.5rem;
    border-bottom: 1px solid var(--line); gap: 1rem;
  }
  .gsl-nav-toggle { display: block; }
  .gsl-hero, .gsl-section, .gsl-section--full, .gsl-post {
    padding-left: 1.5rem; padding-right: 1.5rem;
  }
  .gsl-hero__content { padding: 120px 1.5rem 60px; }
  .gsl-grid { grid-template-columns: 1fr; }
  .gsl-grid__item { border-right: none; }
  .gsl-grid__item:nth-last-child(-n+1) { border-bottom: none; }
  .gsl-contact { grid-template-columns: 1fr; gap: 2rem; }
  .gsl-briefing-card { grid-template-columns: 1fr; gap: 0.5rem; }
  .gsl-footer__top {
    padding: 2rem 1.5rem 1.5rem;
    flex-direction: column;
  }
  .gsl-footer__bottom {
    padding: 1.25rem 1.5rem;
    flex-direction: column; align-items: flex-start;
  }
  .gsl-footer__nocookie { padding: 1rem 1.5rem; }
}

/* Briefing card: entire card clickable */
a.gsl-briefing-card { display: grid; grid-template-columns: 140px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); transition: background 0.2s; }
a.gsl-briefing-card:hover { background: rgba(70,151,156,0.03); }
a.gsl-briefing-card h3 { transition: color 0.2s; }
a.gsl-briefing-card:hover h3 { color: var(--teal) !important; }

/* Propaganda/source markers */
.src-tag { display: inline-block; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 2px; margin-left: 0.3rem; vertical-align: middle; }
.src-official { background: rgba(70,151,156,0.12); color: var(--teal); }
.src-state { background: rgba(200,100,50,0.12); color: #b86830; }
.src-independent { background: rgba(100,100,100,0.08); color: var(--muted); }
.src-primary { background: rgba(70,151,156,0.08); color: var(--teal); }
.src-osint { background: rgba(100,70,160,0.1); color: #7050a0; }
