/* ============================================
   GermanSaaS — Editorial B2B publication
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-mute: #6b6b6b;
  --ink-faint: #a8a8a8;
  --paper: #f5f1e8;
  --paper-warm: #ede7d6;
  --paper-cool: #fbfaf5;
  --rule: #d9d0bc;
  --accent: #b8341f;
  --accent-deep: #8a2716;
  --accent-soft: #f4e4df;
  --gold: #a07d1f;
  --green: #2d6a3f;
  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(184, 52, 31, 0.025) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(160, 125, 31, 0.03) 0%, transparent 50%);
  min-height: 100vh;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1.2em; }

article p { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-soft); }
article h2 { margin: 2.5em 0 0.6em; }
article h3 { margin: 1.8em 0 0.5em; }
article ul, article ol { margin: 0 0 1.2em 1.5em; }
article li { margin-bottom: 0.4em; color: var(--ink-soft); line-height: 1.65; }
article a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
article a:hover { color: var(--accent); }
article strong { color: var(--ink); font-weight: 600; }

.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); display: inline-block; }
.dropcap::first-letter { font-family: 'Fraunces', serif; font-weight: 700; font-size: 4.5em; float: left; line-height: 0.85; margin: 0.08em 0.08em 0 0; color: var(--accent); }

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

/* MASTHEAD */
.masthead { border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); background: rgba(245, 241, 232, 0.92); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem var(--gutter); max-width: var(--max); margin: 0 auto; gap: 1rem; }
.logo { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: 0.15em; }
.logo::after { content: '.'; color: var(--accent); }
.logo-mark { display: inline-block; width: 10px; height: 10px; background: var(--accent); margin-right: 0.5rem; transform: rotate(45deg); position: relative; top: -2px; }
nav.primary { display: flex; gap: 1.8rem; align-items: center; }
nav.primary a { font-size: 0.875rem; color: var(--ink-soft); text-decoration: none; font-weight: 500; transition: color 0.15s; }
nav.primary a:hover { color: var(--accent); }
.nav-cta { background: var(--ink); color: var(--paper-cool) !important; padding: 0.5rem 0.9rem; border-radius: 2px; font-size: 0.8rem !important; letter-spacing: 0.08em !important; text-transform: uppercase; }
.nav-cta:hover { background: var(--accent); }
@media (max-width: 760px) { nav.primary { gap: 0.9rem; } nav.primary a:not(.nav-cta) { display: none; } .logo { font-size: 1.2rem; } }

/* HERO */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 33%, var(--accent) 33%, var(--accent) 66%, var(--gold) 66%, var(--gold) 100%); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: end; } }
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 5rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent-deep); }
.hero-lede { font-family: 'Fraunces', serif; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); font-weight: 400; max-width: 38ch; }
.hero-meta { border-left: 2px solid var(--accent); padding-left: 1.25rem; font-size: 0.85rem; color: var(--ink-mute); font-family: 'JetBrains Mono', monospace; line-height: 1.6; }
.hero-meta strong { display: block; color: var(--ink); font-family: 'IBM Plex Sans', sans-serif; font-size: 0.9rem; margin-bottom: 0.3rem; }

/* SECTION */
section { padding: clamp(3rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--ink); }
.section-head h2 { flex: 1; font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.section-head .count { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--ink-mute); letter-spacing: 0.1em; }

/* PILLARS */
.pillars { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); } .pillar:not(:last-child) { border-right: 1px solid var(--rule); } }
.pillar { padding: 2rem 1.75rem; border-bottom: 1px solid var(--rule); transition: background 0.2s; }
.pillar:hover { background: var(--paper-cool); }
.pillar-num { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 1.25rem; display: block; }
.pillar h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.pillar p { font-size: 0.95rem; color: var(--ink-mute); line-height: 1.6; margin-bottom: 1.25rem; }
.pillar-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.tool-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; background: var(--paper-warm); color: var(--ink-soft); padding: 0.25rem 0.55rem; border-radius: 2px; }
.pillar a.read-more { font-size: 0.85rem; color: var(--accent-deep); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.pillar a.read-more::after { content: ' →'; transition: margin 0.15s; display: inline-block; }
.pillar:hover a.read-more::after { margin-left: 4px; }

/* ARTICLE GRID */
.article-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 720px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
.article-card { padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .article-card:nth-child(odd) { padding-right: 1.75rem; border-right: 1px solid var(--rule); } .article-card:nth-child(even) { padding-left: 1.75rem; } }
.article-card .eyebrow { margin-bottom: 0.6rem; display: block; }
.article-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; line-height: 1.2; }
.article-card h3 a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.3s; }
.article-card h3 a:hover { background-size: 100% 1px; }
.article-card p { font-size: 0.95rem; color: var(--ink-mute); margin-bottom: 0.75rem; line-height: 1.55; }
.article-card .byline { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.05em; }

/* BREADCRUMB */
.breadcrumb { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--ink-mute); padding: 1rem 0 0; }
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.4rem; color: var(--ink-faint); }

/* ARTICLE PAGE */
.article-header { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.article-header .container { max-width: 760px; }
.article-header .eyebrow { margin-bottom: 1.25rem; }
.article-header h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1.25rem; }
.article-header .standfirst { font-family: 'Fraunces', serif; font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft); font-weight: 400; margin-bottom: 1.5rem; max-width: 60ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--ink-mute); letter-spacing: 0.05em; padding-top: 1rem; border-top: 1px solid var(--rule); }
.article-meta span strong { color: var(--ink); display: block; font-family: 'IBM Plex Sans', sans-serif; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.15rem; }
.article-body { padding: clamp(2rem, 5vw, 4rem) 0; }
.article-body .narrow > p:first-of-type { font-size: 1.15rem; color: var(--ink); }

/* CALLOUT / DISCLOSURE */
.callout { margin: 2.5em 0; padding: 1.5rem 1.75rem; background: var(--paper-cool); border-left: 3px solid var(--accent); font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; }
.callout strong { color: var(--ink); }
.callout .eyebrow { margin-bottom: 0.5rem; display: block; }
.callout p:last-child { margin-bottom: 0; }
.disclosure { background: var(--accent-soft); font-size: 0.9rem; }

/* COMPARISON TABLE */
.compare-table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 0.9rem; background: var(--paper-cool); }
.compare-table th, .compare-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare-table th { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1rem; background: var(--paper-warm); color: var(--ink); }
.compare-table td:first-child { font-weight: 500; color: var(--ink); }
.compare-table tr:last-child td { border-bottom: none; }

/* CTA BLOCK */
.cta-block { margin: 2.5em 0; padding: 2rem; background: var(--ink); color: var(--paper-cool); position: relative; overflow: hidden; }
.cta-block::before { content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px; background: var(--accent); transform: translate(40%, -40%) rotate(45deg); }
.cta-block .eyebrow { color: var(--gold); margin-bottom: 0.6rem; }
.cta-block h4 { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 600; color: var(--paper-cool); margin-bottom: 0.5rem; }
.cta-block p { color: rgba(245, 241, 232, 0.75); font-size: 0.95rem; margin-bottom: 1.25rem; }
.cta-button { display: inline-block; background: var(--accent); color: var(--paper-cool); text-decoration: none; padding: 0.75rem 1.5rem; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 2px; transition: background 0.2s; }
.cta-button:hover { background: var(--accent-deep); color: var(--paper-cool); }
.cta-button::after { content: ' →'; }

/* VERDICT BOX */
.verdict-box { background: var(--paper-cool); border: 1px solid var(--rule); padding: 1.75rem; margin: 2em 0; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 600px) { .verdict-box { grid-template-columns: 1fr 1fr; } }
.verdict-box h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem; }
.verdict-box .pros h4 { color: var(--green); }
.verdict-box .cons h4 { color: var(--accent-deep); }
.verdict-box ul { list-style: none; margin: 0; }
.verdict-box li { font-size: 0.92rem; padding-left: 1.25rem; position: relative; margin-bottom: 0.5rem; line-height: 1.5; color: var(--ink-soft); }
.verdict-box .pros li::before { content: '+'; position: absolute; left: 0; color: var(--green); font-weight: 600; }
.verdict-box .cons li::before { content: '−'; position: absolute; left: 0; color: var(--accent-deep); font-weight: 600; }

/* KEY-FACTS BOX */
.keyfacts { background: var(--paper-warm); border-top: 2px solid var(--ink); padding: 1.5rem 1.75rem; margin: 2em 0; }
.keyfacts h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.keyfacts dl { display: grid; grid-template-columns: 1fr; gap: 0.5rem; margin: 0; }
@media (min-width: 560px) { .keyfacts dl { grid-template-columns: auto 1fr; column-gap: 1.5rem; } }
.keyfacts dt { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.keyfacts dd { margin: 0 0 0.5rem; color: var(--ink-soft); font-size: 0.9rem; }
@media (min-width: 560px) { .keyfacts dd { margin-bottom: 0.3rem; } }

/* RELATED */
.related { background: var(--paper-warm); padding: clamp(2.5rem,5vw,4rem) 0; border-bottom: none; }
.related h2 { font-size: 1.4rem; margin-bottom: 1.5rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--ink); }
.related-list { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 720px) { .related-list { grid-template-columns: repeat(3,1fr); } }
.related-item { padding: 1.25rem; background: var(--paper-cool); border: 1px solid var(--rule); transition: transform 0.15s; }
.related-item:hover { transform: translateY(-2px); }
.related-item .eyebrow { font-size: 0.68rem; margin-bottom: 0.5rem; display: block; }
.related-item a { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.25; }
.related-item a:hover { color: var(--accent); }

/* NEWSLETTER */
.newsletter { background: var(--ink); color: var(--paper-cool); padding: clamp(3rem, 6vw, 5rem) 0; position: relative; overflow: hidden; border-bottom: none; }
.newsletter::before { content: 'GS'; position: absolute; font-family: 'Fraunces', serif; font-weight: 900; font-size: 28rem; line-height: 0.8; color: rgba(245, 241, 232, 0.03); bottom: -3rem; right: -3rem; pointer-events: none; }
.newsletter-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.newsletter h2 { color: var(--paper-cool); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.newsletter p { color: rgba(245, 241, 232, 0.7); margin-bottom: 2rem; font-size: 1.05rem; }
.newsletter form { display: flex; gap: 0.5rem; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1 1 220px; padding: 0.85rem 1rem; background: transparent; border: 1px solid rgba(245, 241, 232, 0.3); color: var(--paper-cool); font-family: inherit; font-size: 0.95rem; border-radius: 2px; }
.newsletter input[type=email]:focus { outline: none; border-color: var(--accent); }
.newsletter input[type=email]::placeholder { color: rgba(245, 241, 232, 0.5); }
.newsletter button { background: var(--accent); color: var(--paper-cool); border: none; padding: 0.85rem 1.5rem; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; border-radius: 2px; font-family: inherit; transition: background 0.2s; }
.newsletter button:hover { background: var(--accent-deep); }
.newsletter .small { font-size: 0.75rem; color: rgba(245, 241, 232, 0.45); margin-top: 1rem; font-family: 'JetBrains Mono', monospace; }

/* FOOTER */
footer.site-foot { background: var(--paper-warm); padding: 3rem 0 2rem; font-size: 0.85rem; color: var(--ink-mute); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); margin-bottom: 2rem; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-grid h5 { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink); margin-bottom: 1rem; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 0.5rem; }
.foot-grid a { color: var(--ink-soft); text-decoration: none; transition: color 0.15s; }
.foot-grid a:hover { color: var(--accent); }
.foot-bottom { border-top: 1px solid var(--rule); padding: 1.5rem var(--gutter) 0; max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--ink-faint); }

@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero h1, .hero-lede, .hero-meta { animation: fadein 0.7s ease-out both; }
.hero-lede { animation-delay: 0.1s; }
.hero-meta { animation-delay: 0.2s; }
