/* ═══════════════════════════════════════════════════════════════
   Prodigy, b2b-kunden.at blog
   Self-contained. Re-uses design tokens from home.css.
   Imports nothing, depends on nothing else.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0E1C42;
  --bg-2: #0A1636;
  --bg-3: #15244C;
  --line: #283A66;
  --line-2: #33477A;
  --ink: #EEF2F9;
  --ink-2: #9DA9C4;
  --ink-3: #74809E;
  --ink-4: #586089;
  --accent: #FF6B2C;
  --accent-2: #FF8049;
  --accent-soft: rgba(255, 107, 44, 0.12);
  --serif: 'Newsreader', 'EB Garamond', Georgia, serif;
  --sans: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --maxw: 880px;
}

:root[data-theme="light"] {
  --bg: #f7f1e4;
  --bg-2: #ead8b3;
  --bg-3: #d5b97f;
  --line: #b8a371;
  --line-2: #8d7a51;
  --ink: #1a140f;
  --ink-2: #3d342a;
  --ink-3: #6b5f50;
  --ink-4: #8a7d6f;
  --accent: #c4413a;
  --accent-2: #a8332d;
  --accent-soft: rgba(196, 65, 58, 0.10);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

::selection { background: #E25617; color: #fff; }

/* ── Nav (matches home.css visually) ── */
.nav {
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(24, 19, 15, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="light"] .nav { background: rgba(247, 241, 228, 0.82); }
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 16px 40px;
  display: flex; align-items: center; gap: 32px;
}
@media (max-width: 720px) { .nav-inner { padding: 14px 22px; gap: 14px; } }
.brand {
  font-family: var(--serif);
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .pt { color: var(--accent); }
.nav-links {
  display: flex; gap: 24px; margin-left: 14px; flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 400;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 860px) { .nav-links { display: none; } }
.nav-tools { display: flex; gap: 8px; }
.nav-pill {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 500;
  padding: 0 12px;
  height: 34px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
}
.nav-pill:hover { border-color: var(--accent); color: var(--accent); }
.theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: inline; }

/* ── Layout ── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) { .wrap { padding: 0 22px; } }

main { padding: 64px 0 96px; }
@media (max-width: 720px) { main { padding: 40px 0 64px; } }

/* ── Blog index page ── */
.blog-hd {
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 2px;
}
.blog-hd h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.blog-hd h1 em { font-style: italic; color: var(--accent); }
.blog-hd .sub {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 56ch;
}

.post-list { display: grid; gap: 0; }
.post-card {
  display: grid;
  grid-template-columns: 80px 1fr 110px;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding .25s, background .25s;
}
.post-card:hover {
  padding-left: 12px;
  text-decoration: none;
}
.post-card .ix {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 6px;
}
.post-card .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
  letter-spacing: 0.04em;
}
.post-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.post-card:hover h2 { color: var(--accent); }
.post-card .excerpt {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 60ch;
}
@media (max-width: 720px) {
  .post-card {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
  }
  .post-card .meta { text-align: left; }
  .post-card h2 { font-size: 22px; }
}

/* ── Single post page ── */
article.post {
  max-width: 720px;
  margin: 0 auto;
}
.post-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.post-header .crumbs {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.post-header .crumbs a { color: var(--ink-3); }
.post-header .crumbs a:hover { color: var(--accent); }
.post-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.post-header .lead {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  font-family: var(--serif);
  font-style: italic;
}
.post-header .post-meta {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

article.post p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 22px;
}
article.post h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 56px 0 18px;
  color: var(--ink);
}
article.post h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.25;
  margin: 40px 0 14px;
  color: var(--ink);
}
article.post ul, article.post ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
article.post li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 10px;
}
article.post li::marker { color: var(--accent); }
article.post strong { color: var(--ink); font-weight: 600; }
article.post a { color: var(--accent); border-bottom: 1px solid currentColor; }
article.post blockquote {
  margin: 32px 0;
  padding: 22px 28px;
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
}
article.post .cta-box {
  margin: 56px 0 0;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
article.post .cta-box h3 { margin-top: 0; }
article.post .cta-box p { font-size: 16px; }
article.post .cta-box .btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: #E25617; color: #fff;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  text-decoration: none;
  margin-top: 12px;
  border: 1px solid #E25617;
  transition: background .2s;
}
article.post .cta-box .btn:hover { background: #C94A12; color: #fff; text-decoration: none; }
article.post .cta-box .btn .arr { font-family: var(--mono); }

.related {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.related h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
  font-weight: 500;
}
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related li { margin: 0; }
.related li a {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  border-bottom: none;
}
.related li a:hover { color: var(--accent); }

/* ── Footer ── */
footer {
  margin-top: 80px;
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
footer .wrap { max-width: 1280px; }
footer .foot-bot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--ink-3);
}
footer .foot-links {
  display: flex; gap: 22px; margin-bottom: 28px;
  flex-wrap: wrap;
}
footer .foot-links a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
}
footer .foot-links a:hover { color: var(--accent); text-decoration: none; }


/* ── cookie consent banner (site.js hooks) — added 2026-06-08 ── */
#consent { position: fixed; bottom: 18px; left: 18px; right: 18px; z-index: 90;
  max-width: 460px; margin: 0 auto; background: var(--bg-3);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 18px 20px;
  display: none; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
#consent.is-open { display: block; }
#consent p { font-size: 14px; color: var(--ink-2); margin: 0; }
#consent .c-btns { display: flex; gap: 10px; margin-top: 14px; }
#consent button { font-weight: 600; font-size: 14px; cursor: pointer; padding: 9px 16px;
  border-radius: 6px; border: 1px solid var(--line-2); background: none; color: var(--ink); }
#consent #consent-accept { background: #E25617; color: #fff; border-color: var(--accent); }

/* polish 2026-06-08: legible wrapping */
article.post h1,article.post h2,article.post h3{ text-wrap: balance; }
article.post p{ text-wrap: pretty; }
