/* ============================================================
   officespaces.ae — Artikel- und Blog-Stile
   Ergaenzt site.css. Noetig, weil der globale Reset alle Margins
   auf 0 setzt und saemtliche Ueberschriftenregeln auf Sektionen
   gescoped sind — nackter Fliesstext haette sonst keine Abstaende.
   Dateiname ist versioniert (article-vN.css): Hostinger liefert CSS
   mit max-age 604800 hinter einem CDN aus, das vom Server nicht zu
   leeren ist. Jede Aenderung braucht daher einen neuen Dateinamen.
   ============================================================ */

/* ---------- Seitenkopf eines Beitrags ---------- */
.page-head {
  padding: calc(80px + 64px) 0 56px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -30%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.16) 0%, rgba(212,168,67,0) 70%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  max-width: 900px;
}
.page-head .lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  max-width: 760px;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.page-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Brotkrumen ---------- */
.crumbs {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.crumbs a { color: var(--gold-light); }
.crumbs a:hover { color: var(--white); }
.crumbs span { margin: 0 8px; opacity: 0.5; }

/* ---------- Artikelkoerper ---------- */
.article { padding: 64px 0 88px; }
.article-body { max-width: 780px; margin: 0 auto; }

.article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin: 56px 0 18px;
  scroll-margin-top: 96px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 34px 0 12px;
  scroll-margin-top: 96px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 20px;
}
.article-body strong { color: var(--text-dark); font-weight: 700; }
.article-body a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.article-body a:hover { color: var(--gold-dark); }
/* Buttons sind keine Fliesstextlinks — die Unterstreichung darf sie nicht treffen. */
.article-body a.btn,
.article-body .article-cta a { text-decoration: none; }
/* .article-body a (0,1,1) schlaegt .btn-whatsapp (0,1,0) — Textfarbe zurueckholen. */
.article-body a.btn-whatsapp { color: var(--white); }

.article-body ul,
.article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 10px;
}
.article-body ol { counter-reset: step; list-style: none; padding-left: 0; }
.article-body ol > li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 16px;
}
.article-body ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.article-body blockquote p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--navy);
  font-weight: 600;
}

.article-body figure { margin: 36px 0; }
.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
}
.article-body figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--mid-gray);
  text-align: center;
}

/* Tabellen scrollen auf schmalen Schirmen, statt die Seite zu sprengen */
.table-wrap { overflow-x: auto; margin: 28px 0; -webkit-overflow-scrolling: touch; }
.article-body table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.article-body thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 16px;
}
.article-body tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text-body);
  vertical-align: top;
}
.article-body tbody tr:nth-child(even) { background: var(--off-white); }
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body tbody td:first-child { font-weight: 600; color: var(--text-dark); }

/* ---------- TL;DR / Direktantwort ---------- */
.tldr {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 26px 30px;
  margin: 0 0 36px;
}
.tldr-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.tldr p { font-size: 17px; line-height: 1.75; margin-bottom: 14px; }
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { font-size: 15.5px; line-height: 1.65; margin-bottom: 8px; }

/* ---------- Inhaltsverzeichnis ---------- */
.toc {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 0 0 44px;
  box-shadow: var(--shadow-sm);
}
.toc h2 {
  font-size: 15px !important;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px !important;
}
.toc ol { counter-reset: toc; list-style: none; padding: 0; margin: 0; }
.toc ol > li {
  counter-increment: toc;
  padding-left: 30px;
  position: relative;
  margin-bottom: 9px;
  font-size: 15.5px;
}
.toc ol > li::before {
  content: counter(toc) ".";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 14px;
}
.toc a { color: var(--text-body); text-decoration: none; }
.toc a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Fakten-Kasten ---------- */
.keyfact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(212,168,67,0.09);
  border: 1px solid rgba(212,168,67,0.32);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
}
.keyfact-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
}
.keyfact p { margin: 0; font-size: 16px; line-height: 1.7; }

/* ---------- Abschluss-CTA ---------- */
.article-cta {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  margin: 56px 0 0;
  text-align: center;
}
.article-cta h2 {
  color: var(--white) !important;
  margin: 0 0 12px !important;
  font-size: 26px !important;
}
.article-cta p {
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 16.5px;
}

/* ---------- Autorenbox ---------- */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-top: 1px solid var(--light-gray);
  margin-top: 52px;
  padding-top: 28px;
}
.author-avatar {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-box h3 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.author-box p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--dark-gray); }

/* ---------- Blog-Uebersicht ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card img { width: 100%; height: 190px; object-fit: cover; }
.post-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.post-card h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
}
.post-card p { font-size: 15px; line-height: 1.65; color: var(--dark-gray); margin-bottom: 18px; flex: 1; }
.post-card-more {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.post-card:hover .post-card-more { color: var(--gold-dark); }


/* ---------- Artikel-Aufmacherbild ---------- */
.article-hero {
  max-width: 900px;
  margin: 0 auto 40px;
}
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- Sprachumschalter in der Navigation ---------- */
.nav-lang {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 6px 12px;
  border: 1px solid rgba(212,168,67,0.45);
  border-radius: 999px;
  color: var(--gold-light);
}
.nav-lang:hover { background: rgba(212,168,67,0.14); color: var(--white); }
.nav-links a.nav-lang::after { display: none; }

/* ---------- Hinweis unter der Beitragsliste ---------- */
.blog-note {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark-gray);
}


/* ---------- 404 ---------- */
.err-code {
  font-family: var(--font-heading);
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  margin: 0 0 8px;
  letter-spacing: -2px;
}
.err-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
.err-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 28px 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.err-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.err-card h2 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}
.err-card p { font-size: 15px; line-height: 1.65; color: var(--dark-gray); margin: 0 0 16px; flex: 1; }
.err-card:hover .post-card-more { color: var(--gold-dark); }
/* ---------- RTL ---------- */
[dir="rtl"] .article-body { text-align: right; }
[dir="rtl"] .article-body ul,
[dir="rtl"] .article-body ol { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .article-body ol { padding-right: 0; }
[dir="rtl"] .article-body ol > li { padding-left: 0; padding-right: 46px; }
[dir="rtl"] .article-body ol > li::before { left: auto; right: 0; }
[dir="rtl"] .article-body blockquote {
  border-left: none;
  border-right: 4px solid var(--gold);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
[dir="rtl"] .tldr {
  border-left: 1px solid var(--light-gray);
  border-right: 4px solid var(--gold);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
[dir="rtl"] .article-body thead th { text-align: right; }
[dir="rtl"] .toc ol > li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .toc ol > li::before { left: auto; right: 0; }
[dir="rtl"] .page-head::after { right: auto; left: -8%; }

@media (max-width: 768px) {
  .page-head { padding: calc(80px + 40px) 0 40px; }
  .article { padding: 44px 0 64px; }
  .article-body h2 { margin-top: 40px; }
  .article-cta { padding: 30px 24px; }
  .tldr, .toc { padding: 20px 22px; }
}
