/* ============================================================
   NF COSMETICS GMBH — ARTICLE PAGE STYLES
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base:        #030705;
  --bg-mid:         #071209;
  --bg-surface:     #0a1a0d;

  --glass-border:   rgba(255, 255, 255, 0.07);

  --silver-flat:    #c8d4e0;
  --silver-dim:     #8a9cb0;

  --text-primary:   #f0f4f8;
  --text-secondary: #b0bec8;
  --text-muted:     #607080;

  --font:           -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --transition:     200ms ease;
  --container-max:  1120px;
  --container-pad:  clamp(24px, 5vw, 80px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #030705;
  background-image:
    radial-gradient(ellipse at 50% -8%, rgba(46, 150, 76, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 4% 48%,  rgba(36, 120, 60, 0.09) 0%, transparent 40%),
    radial-gradient(ellipse at 96% 74%, rgba(36, 120, 60, 0.07) 0%, transparent 40%);
  color: #f0f4f8;
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #030705; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.09); border-radius: 2px; }

::selection { background: rgba(46,150,76,0.22); color: #eaf0f6; }

/* ── HEADER ── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background 300ms ease, border-color 300ms ease;
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-logo {
  display: block;
  height: 60px;
  width: 60px;
  object-fit: contain;
}

.logo-link {
  justify-self: center;
}

/* ── BACK LINK ── */

.back-link {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #607080;
  text-decoration: none;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-self: start;
  white-space: nowrap;
  padding: 12px 14px 12px 0;
}

.back-link:hover { color: #c8d4e0; }

.back-link span { display: none; }

.back-link::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 11px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 11' fill='none'%3E%3Cline x1='24.5' y1='5.5' x2='1' y2='5.5' stroke='black' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M7.5 1L1 5.5L7.5 10' stroke='black' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 11' fill='none'%3E%3Cline x1='24.5' y1='5.5' x2='1' y2='5.5' stroke='black' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M7.5 1L1 5.5L7.5 10' stroke='black' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  opacity: 0.65;
  transition: opacity var(--transition);
  flex-shrink: 0;
}

.back-link:hover::before { opacity: 1; }

/* ── LANG SWITCH ── */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.lang-btn {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #607080;
  cursor: pointer;
  transition: color var(--transition);
  text-decoration: none;
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
}

.lang-btn:hover,
.lang-btn.active { color: #c8d4e0; }

.lang-divider {
  font-size: 10px;
  color: #3a4a58;
}

/* ── ARTICLE LAYOUT ── */

.article-page {
  padding-top: calc(70px + 72px);
  padding-bottom: 120px;
}

.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── ARTICLE HEADER ── */

.article-header {
  margin-bottom: 60px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.article-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a9cb0;
  background: rgba(188,200,214,0.07);
  border: 1px solid rgba(188,200,214,0.13);
  padding: 4px 9px;
  border-radius: 2px;
}

.article-date {
  font-size: 11px;
  color: #607080;
  letter-spacing: 0.04em;
}

.article-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: #f0f4f8;
  margin-bottom: 24px;
}

.article-intro {
  font-size: 18px;
  color: #b0bec8;
  line-height: 1.72;
  font-weight: 400;
}

/* ── DIVIDER ── */

.article-divider {
  border: none;
  border-top: 1px solid rgba(188, 200, 214, 0.09);
  margin: 52px 0;
}

/* ── ARTICLE BODY ── */

.article-body {
  color: #c4d0da;
  font-size: 16px;
  line-height: 1.85;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #e8f0f6;
  margin-top: 52px;
  margin-bottom: 18px;
}

.article-body h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #a8bcc8;
  margin-top: 36px;
  margin-bottom: 14px;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px 20px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body strong {
  color: #dde8f0;
  font-weight: 600;
}

/* ── SOURCES ── */

.article-sources {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(188,200,214,0.08);
}

.article-sources-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #607080;
  margin-bottom: 18px;
}

.article-sources ol {
  margin-left: 18px;
}

.article-sources li {
  font-size: 12px;
  color: #607080;
  line-height: 1.65;
  margin-bottom: 8px;
}

.article-sources a {
  color: #607080;
  text-decoration: underline;
  text-decoration-color: rgba(96,112,128,0.35);
}

.article-sources a:hover {
  color: #8a9cb0;
}

/* ── RELATED ARTICLES ── */

.related-articles {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid rgba(188,200,214,0.08);
}

.related-articles h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a9cb0;
  margin: 0 0 22px;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.related-articles li {
  margin: 0;
}

.related-articles a {
  display: block;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--text, #dee5ec);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid rgba(188,200,214,0.05);
  transition: color 180ms ease, border-color 180ms ease;
}

.related-articles a:hover,
.related-articles a:focus-visible {
  color: #ffffff;
  border-bottom-color: rgba(188,200,214,0.18);
}

html[data-theme="light"] .related-articles h2 { color: #607080; }
html[data-theme="light"] .related-articles a {
  color: var(--text, #1a2a22);
  border-bottom-color: rgba(20,40,32,0.06);
}
html[data-theme="light"] .related-articles a:hover,
html[data-theme="light"] .related-articles a:focus-visible {
  color: #000000;
  border-bottom-color: rgba(20,40,32,0.18);
}

@media (max-width: 640px) {
  .related-articles { margin-top: 56px; padding-top: 28px; }
  .related-articles a { font-size: 14px; }
}

/* ── ARTICLE CTA ── */

.article-cta {
  margin-top: 96px;
  padding: 72px 0 80px;
  border-top: 1px solid rgba(188, 200, 214, 0.09);
  border-bottom: 1px solid rgba(188, 200, 214, 0.09);
  text-align: center;
}

.article-cta-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #607080;
  margin-bottom: 22px;
}

.article-cta-headline {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: #f0f4f8;
  margin-bottom: 18px;
}

.article-cta-text {
  font-size: 16px;
  color: #8a9cb0;
  line-height: 1.72;
  max-width: 480px;
  margin: 0 auto 40px;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #030705;
  background: linear-gradient(135deg, #c8d4e0 0%, #eef3f8 40%, #dce8f0 70%, #b8c8d6 100%);
  border-radius: 2px;
  transition: opacity 200ms ease, transform 200ms ease;
}

.article-cta-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .article-cta {
    margin-top: 72px;
    padding: 56px 0 64px;
  }

  .article-cta-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ── LANG SWITCH FOOTER ── */

.article-lang-switch {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(188,200,214,0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-lang-switch a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #607080;
  text-decoration: none;
  transition: color var(--transition);
}

.article-lang-switch a:hover,
.article-lang-switch a.active { color: #c8d4e0; }

.article-lang-divider {
  font-size: 10px;
  color: #3a4a58;
}

/* ── FOOTER ── */

.footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 52px 0;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #607080;
  cursor: pointer;
  transition: color var(--transition);
  text-decoration: none;
  display: inline-block;
}

.footer-link:hover { color: #c8d4e0; }

.footer-copy {
  font-size: 10px;
  color: #607080;
  letter-spacing: 0.09em;
  opacity: 0.5;
}

/* ── RESPONSIVE ── */

@media (max-width: 640px) {
  .header-inner { height: 80px; }

  .article-page {
    padding-top: calc(80px + 48px);
    padding-bottom: 80px;
  }

  .article-title { font-size: clamp(24px, 7vw, 34px); }
  .article-intro { font-size: 16px; }
  .article-body  { font-size: 15px; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }

  .footer-links {
    justify-content: center;
    gap: 28px;
  }

}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */

.header-spacer { display: flex; align-items: center; }

.header-left-group {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}

.theme-toggle {
  background: rgba(36, 40, 44, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  position: relative;
  border-radius: 14px;
  width: 54px;
  height: 26px;
  flex-shrink: 0;
  transition:
    background   0.38s ease,
    border-color 0.38s ease,
    box-shadow   0.38s ease;
}

.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.22),
    0 0 0 2.5px rgba(255, 255, 255, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.06);
}

.theme-toggle-icon {
  position: absolute;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(150deg, #2e3f37 0%, #1c2c24 55%, #233028 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.13) inset,
    0 -0.5px 0 rgba(0, 0, 0, 0.26) inset,
    0 2px 6px rgba(0, 0, 0, 0.54),
    0 0 0 0.5px rgba(0, 0, 0, 0.30);
  display: block;
  transition:
    left       0.44s cubic-bezier(0.26, 1.38, 0.54, 1),
    background 0.35s ease,
    box-shadow 0.32s ease;
}

/* Sun: filled core disc + 8 line rays — inline SVG (dark mode) */
.theme-toggle-icon::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 14px;
  margin: -7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='2.5' fill='rgba(255,255,255,.9)'/%3E%3Cg stroke='rgba(255,255,255,.76)' stroke-width='1.1' stroke-linecap='round'%3E%3Cline x1='7' y1='3' x2='7' y2='1'/%3E%3Cline x1='9.83' y1='4.17' x2='11.24' y2='2.76'/%3E%3Cline x1='11' y1='7' x2='13' y2='7'/%3E%3Cline x1='9.83' y1='9.83' x2='11.24' y2='11.24'/%3E%3Cline x1='7' y1='11' x2='7' y2='13'/%3E%3Cline x1='4.17' y1='9.83' x2='2.76' y2='11.24'/%3E%3Cline x1='3' y1='7' x2='1' y2='7'/%3E%3Cline x1='4.17' y1='4.17' x2='2.76' y2='2.76'/%3E%3C/g%3E%3C/svg%3E") no-repeat center;
  transition: opacity 0.28s ease;
}

/* Moon: crescent — two-arc SVG path, mirrored right-open (light mode) */
.theme-toggle-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px;
  transform: scaleX(-1);
  opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='rgba(22,38,30,.82)' d='M3.4 3.84A6.2 6.2 0 1 1 3.4 12.16A4.8 4.8 0 1 0 3.4 3.84Z'/%3E%3C/svg%3E") no-repeat center;
  transition: opacity 0.28s ease;
}

html[data-theme="light"] .theme-toggle {
  background: rgba(138, 155, 150, 0.84);
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.13),
    inset 0 0 0 1px rgba(0, 0, 0, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.40);
}

html[data-theme="light"] .theme-toggle:hover {
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.13),
    inset 0 0 0 1px rgba(0, 0, 0, 0.07),
    0 0 0 2.5px rgba(0, 0, 0, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.40);
}

html[data-theme="light"] .theme-toggle-icon {
  left: 31px;
  background: linear-gradient(150deg, #f4f5f4 0%, #e8eceb 55%, #dce4e2 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.90) inset,
    0 -0.5px 0 rgba(0, 0, 0, 0.08) inset,
    0 2px 6px rgba(20, 40, 32, 0.16),
    0 0 0 0.5px rgba(0, 0, 0, 0.10);
}

html[data-theme="light"] .theme-toggle-icon::before { opacity: 0; }
html[data-theme="light"] .theme-toggle-icon::after  { opacity: 1; }

/* ============================================================
   LIGHT MODE — Variable & Element Overrides
   ============================================================ */

html[data-theme="light"] {
  --bg-base:        #e9eeed;
  --bg-mid:         #dfe7e3;
  --bg-surface:     #d3ddd9;
  --glass-border:   rgba(20, 40, 32, 0.10);
  --silver-flat:    #2a3a4a;
  --silver-dim:     #5a6e7a;
  --text-primary:   #141e1a;
  --text-secondary: #2e4050;
  --text-muted:     #506070;
}

html[data-theme="light"] body {
  background-color: #e9eeed;
  background-image:
    radial-gradient(ellipse at 50% -8%, rgba(46, 150, 76, 0.055) 0%, transparent 52%),
    radial-gradient(ellipse at 4% 48%,  rgba(36, 120, 60, 0.030) 0%, transparent 38%),
    radial-gradient(ellipse at 96% 74%, rgba(36, 120, 60, 0.022) 0%, transparent 38%);
  color: #141e1a;
}

html[data-theme="light"] ::-webkit-scrollbar-track { background: #e9eeed; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(20,40,32,0.14); }

html[data-theme="light"] .back-link        { color: var(--text-muted); }
html[data-theme="light"] .back-link:hover  { color: var(--text-primary); }
html[data-theme="light"] .lang-btn         { color: #486070; }
html[data-theme="light"] .lang-btn:hover,
html[data-theme="light"] .lang-btn.active  { color: var(--text-primary); }
html[data-theme="light"] .lang-divider     { color: var(--text-muted); }

html[data-theme="light"] .article-cat {
  color: var(--text-secondary);
  background: rgba(20,40,32,0.04);
  border-color: rgba(20,40,32,0.09);
}

html[data-theme="light"] .article-date   { color: var(--text-muted); }
html[data-theme="light"] .article-title  { color: var(--text-primary); }
html[data-theme="light"] .article-intro  { color: var(--text-secondary); }

html[data-theme="light"] .article-divider { border-color: rgba(20,40,32,0.09); }

html[data-theme="light"] .article-body            { color: #263846; }
html[data-theme="light"] .article-body h2         { color: #141e1a; }
html[data-theme="light"] .article-body h3         { color: #324858; }
html[data-theme="light"] .article-body strong     { color: #141e1a; }

html[data-theme="light"] .article-sources-label { color: var(--text-muted); }
html[data-theme="light"] .article-sources li    { color: var(--text-muted); }
html[data-theme="light"] .article-sources a     { color: var(--text-muted); }

html[data-theme="light"] .article-cta { border-color: rgba(20,40,32,0.08); }
html[data-theme="light"] .article-cta-label    { color: var(--text-muted); }
html[data-theme="light"] .article-cta-headline { color: var(--text-primary); }
html[data-theme="light"] .article-cta-text     { color: var(--text-secondary); }

html[data-theme="light"] .article-cta-btn {
  color: #f4f7f4;
  background: linear-gradient(135deg, #2a3a4a 0%, #141e2a 40%, #1e2e3a 70%, #3a4e5a 100%);
}

html[data-theme="light"] .article-lang-switch a              { color: var(--text-muted); }
html[data-theme="light"] .article-lang-switch a:hover,
html[data-theme="light"] .article-lang-switch a.active       { color: var(--text-primary); }
html[data-theme="light"] .article-lang-divider               { color: var(--text-muted); }

html[data-theme="light"] .footer            { border-color: rgba(20,40,32,0.08); }
html[data-theme="light"] .footer-link       { color: var(--text-muted); }
html[data-theme="light"] .footer-link:hover { color: var(--text-primary); }
html[data-theme="light"] .footer-copy       { color: var(--text-muted); }

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(36, 40, 44, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.48),
    0 1px 4px rgba(0, 0, 0, 0.32);
  color: var(--silver-flat);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 300ms ease,
    transform 300ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 28px rgba(0, 0, 0, 0.52),
    0 2px 6px rgba(0, 0, 0, 0.36),
    0 0 0 2.5px rgba(255, 255, 255, 0.06);
}
html[data-theme="light"] .scroll-top {
  background: rgba(230, 236, 232, 0.92);
  border-color: rgba(20, 40, 32, 0.12);
  color: var(--silver-flat);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.70),
    0 4px 16px rgba(0, 0, 0, 0.12),
    0 1px 4px rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .scroll-top:hover {
  border-color: rgba(20, 40, 32, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.70),
    0 6px 24px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.10),
    0 0 0 2.5px rgba(20, 40, 32, 0.06);
}
