/* ============================================================
   Wirtschaftskompass Südtirol — Global Stylesheet v2
   Warm Pulse · Manrope · Terrakotta
   ============================================================ */

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

/* ── Design Tokens ── */
:root {
  --sand:          #F7F3EE;
  --sand-deep:     #EDE6DC;
  --surface:       #FFFFFF;
  --surface-warm:  #FBF9F6;
  --terra:         #D4543A;
  --terra-dark:    #B84430;
  --terra-pale:    #FDF1EE;
  --terra-mid:     #E88268;
  --ink:           #1C1714;
  --ink-mid:       #6B5F57;
  --ink-light:     #A09590;
  --border:        #E5DDD5;
  --border-light:  #EDE7E0;
  --up:            #2D6B3A;
  --down:          #B83232;
  --neutral:       #7A6F67;

  /* Category gradients */
  --grad-tourismus: linear-gradient(140deg, #2D6A4F 0%, #52A677 55%, #95D5B2 100%);
  --grad-wohnen:    linear-gradient(140deg, #1A3A6B 0%, #3A78C9 55%, #87BEE8 100%);
  --grad-arbeit:    linear-gradient(140deg, #B84430 0%, #D4543A 45%, #F5A57B 100%);
  --grad-benzin:    linear-gradient(140deg, #5C3A08 0%, #B87A20 55%, #D4B060 100%);
  --grad-inflation: linear-gradient(140deg, #3A1A5C 0%, #7B4DC9 55%, #B89AE0 100%);
  --grad-default:   linear-gradient(140deg, #2D1F1A 0%, #6B3E30 55%, #C47A60 100%);

  --white:         #FFFFFF;
  --max:           1140px;
  --max-article:   720px;
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:       cubic-bezier(0.4, 0, 0.2, 1);
  --r:             10px;
  --r-sm:          6px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  line-height: 1.15;
}

/* ── Scroll-Fade-In ── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 238, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
  flex-shrink: 0;
}

.nav-logo:hover { color: var(--terra); }

.nav-links {
  display: flex; gap: 2rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.nav-links a {
  color: var(--ink-mid);
  transition: color .18s;
  padding: .25rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--terra);
  border-radius: 1px;
  transition: width .22s var(--ease-out);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-back {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-mid);
  display: flex; align-items: center; gap: .4rem;
  transition: color .18s;
}
.nav-back:hover { color: var(--terra); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.5rem;
  font-family: 'Manrope', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  transition: background .18s, color .18s, border-color .18s, transform .14s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--terra); color: var(--white); border-color: var(--terra); }
.btn-primary:hover { background: var(--terra-dark); border-color: var(--terra-dark); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink); }

/* ── Section wrapper ── */
.section { max-width: var(--max); margin: 0 auto; padding: 3.5rem 2.5rem; }

.section-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}

.section-label::after {
  content: '';
  height: 2px; flex: 1;
  background: var(--border);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .6rem;
  letter-spacing: -.02em;
}

.section-sub {
  font-size: .95rem;
  color: var(--ink-mid);
  font-weight: 500;
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* ============================================================
   MASTHEAD (ersetzt Hero)
   ============================================================ */
.masthead {
  background: var(--sand);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2.5rem 2rem;
}

.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.masthead-eyebrow {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: .9rem;
}

.masthead-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  max-width: 720px;
  line-height: 1.12;
}

.masthead-sub {
  font-size: .95rem;
  color: var(--ink-mid);
  font-weight: 500;
  margin-top: .75rem;
  max-width: 540px;
  line-height: 1.6;
}

/* ============================================================
   AKTUELLE ZAHLEN — Data Strip
   ============================================================ */

#daten { background: var(--sand); }

.data-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.data-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.6rem 1.4rem;
  position: relative;
  transition: transform .22s var(--ease-out), box-shadow .22s var(--ease-out), border-color .18s;
  overflow: hidden;
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.data-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease-out);
}

.data-item:hover::before { transform: scaleX(1); }

.data-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(28, 23, 20, 0.1);
  border-color: transparent;
}

.data-item .d-label {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-light);
  font-weight: 700;
  margin-bottom: .9rem;
}

.data-item .d-value {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: .5rem;
  letter-spacing: -.04em;
}

.data-item .d-unit {
  font-size: .74rem;
  color: var(--ink-light);
  font-weight: 500;
  margin-bottom: .6rem;
}

.data-item .d-trend {
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; gap: .35rem;
  margin-bottom: .9rem;
}

.up   { color: var(--up); }
.down { color: var(--down); }
.neu  { color: var(--neutral); }

.data-item .d-explain {
  padding-top: .85rem;
  border-top: 1px solid var(--border-light);
  font-size: .84rem;
  color: var(--ink-mid);
  line-height: 1.6;
  font-weight: 500;
}

.d-more {
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border-light);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s var(--ease-out), transform .22s var(--ease-out);
}

a.data-item:hover .d-more {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   THEMEN IM FOKUS — Article Cards
   ============================================================ */

#themen { background: var(--sand-deep); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.article-card {
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .2s;
  color: var(--ink);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(28, 23, 20, 0.12);
  border-color: transparent;
}

/* Card image area */
.card-image {
  height: 180px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.card-image--tourismus { background: var(--grad-tourismus); }
.card-image--wohnen    { background: var(--grad-wohnen); }
.card-image--arbeit    { background: var(--grad-arbeit); }
.card-image--benzin    { background: var(--grad-benzin); }
.card-image--inflation { background: var(--grad-inflation); }
.card-image--default   { background: var(--grad-default); }

.card-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.22) 100%);
}

/* Decorative pattern on card image */
.card-image::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.3) 0%, transparent 50%);
}

.card-body {
  padding: 1.5rem 1.6rem 1.8rem;
  flex: 1; display: flex; flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .28rem .7rem;
  border-radius: 50px;
  margin-bottom: .9rem;
}

.tag-tourismus { background: #E8F5EE; color: #1A5C38; }
.tag-wohnen    { background: #E8EFF8; color: #1A3A6B; }
.tag-arbeit    { background: var(--terra-pale); color: var(--terra-dark); }
.tag-lebensqualitaet { background: var(--terra-pale); color: var(--terra-dark); }

.article-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .7rem;
  letter-spacing: -.02em;
  color: var(--ink);
  transition: color .18s;
}

.article-card:hover h3 { color: var(--terra); }

.card-excerpt {
  font-size: .9rem;
  color: var(--ink-mid);
  font-weight: 500;
  line-height: 1.65;
  flex: 1;
}

.card-cta {
  display: flex; align-items: center; gap: .4rem;
  margin-top: 1.2rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terra);
  transition: gap .18s var(--ease-out);
}

.article-card:hover .card-cta { gap: .65rem; }

/* ============================================================
   ÜBER UNS
   ============================================================ */

#ueber { background: var(--surface); border-top: 1px solid var(--border); }

.ueber-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 3px solid var(--ink);
  margin-top: 1rem;
}

.ueber-item {
  padding: 2rem 2rem 2rem 0;
  border-right: 1px solid var(--border);
}

.ueber-item:last-child { border-right: none; }
.ueber-item:not(:first-child) { padding-left: 2rem; }

.ueber-item h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .65rem;
  color: var(--ink);
  letter-spacing: -.01em;
}

.ueber-item p {
  font-size: .88rem;
  color: var(--ink-mid);
  font-weight: 500;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--ink);
  color: rgba(247, 243, 238, .5);
  padding: 3.5rem 2.5rem;
  font-size: .9rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--terra);
}

.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 3rem; flex-wrap: wrap;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--sand);
  letter-spacing: -.01em;
}

.footer-brand span {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(247,243,238,.35);
  margin-top: .5rem;
}

.footer-links { display: flex; gap: 4rem; }

.footer-links h4 {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: .9rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: rgba(247,243,238,.38); transition: color .15s; font-weight: 500; }
.footer-links a:hover { color: var(--sand); }

.footer-bottom {
  max-width: var(--max); margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247,243,238,.08);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
  font-size: .75rem;
  color: rgba(247,243,238,.2);
  font-weight: 500;
}

footer.footer-simple {
  padding: 1.5rem 2rem;
  font-size: .85rem; text-align: center;
}

footer.footer-simple a { color: rgba(247,243,238,.5); }
footer.footer-simple a:hover { color: var(--sand); }

/* ============================================================
   ARTICLE PAGES
   ============================================================ */

.article-hero {
  height: 260px;
  position: relative;
  overflow: hidden;
}

.article-hero--tourismus { background: var(--grad-tourismus); }
.article-hero--wohnen    { background: var(--grad-wohnen); }
.article-hero--arbeit    { background: var(--grad-arbeit); }
.article-hero--benzin    { background: var(--grad-benzin); }
.article-hero--inflation { background: var(--grad-inflation); }
.article-hero--default   { background: var(--grad-default); }

.article-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(28,23,20,.35) 100%);
}

.article-hero-tag {
  position: absolute;
  bottom: 1.5rem; left: 2.5rem;
  z-index: 2;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  padding: .3rem .8rem;
  border-radius: 50px;
}

.article-wrap { max-width: var(--max-article); margin: 0 auto; padding: 3rem 2.5rem 6rem; }

.article-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -.03em;
  color: var(--ink);
}

.article-meta {
  font-size: .78rem;
  color: var(--ink-light);
  font-weight: 600;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: .04em;
}

.article-tag {
  display: inline-block;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.article-lead {
  font-size: 1.1rem;
  color: var(--ink-mid);
  font-weight: 500;
  margin-bottom: 2.5rem;
  line-height: 1.72;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.stat-row {
  display: flex; gap: 0;
  margin: 2.5rem 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r);
  overflow: hidden;
}

.stat-box {
  flex: 1;
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--border);
}

.stat-box:last-child { border-right: none; }

.stat-box .val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--terra);
  line-height: 1.1;
  margin-bottom: .4rem;
  letter-spacing: -.03em;
}

.stat-box .lbl {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-mid);
  line-height: 1.4;
}

.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 2.5rem 0 .85rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  letter-spacing: -.02em;
  color: var(--ink);
}

.article-body h2:first-child { border-top: none; padding-top: 0; }
.article-body h4 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.article-body p { margin-bottom: 1.1rem; font-size: .97rem; font-weight: 500; color: var(--ink); line-height: 1.75; }
.article-body ul { margin: .5rem 0 1.3rem 1.3rem; }
.article-body li { margin-bottom: .5rem; font-size: .97rem; font-weight: 500; line-height: 1.65; }
.article-body strong { font-weight: 800; }

.highlight {
  border-left: 3px solid #2D6A4F;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  background: #EEF7F2;
  font-size: .93rem;
  font-weight: 500;
  line-height: 1.65;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.highlight strong { color: #1A5C38; font-weight: 800; }

.callout {
  border-left: 3px solid var(--terra);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  background: var(--terra-pale);
  font-size: .93rem;
  font-weight: 500;
  line-height: 1.65;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.callout strong { color: var(--terra-dark); font-weight: 800; }

.related { margin-top: 4rem; padding-top: 2rem; border-top: 3px solid var(--ink); }
.related h3 { font-size: 1rem; font-weight: 800; margin-bottom: 1.25rem; color: var(--ink); letter-spacing: -.01em; }

.related-links {
  display: flex; gap: .75rem;
}

.related-link {
  flex: 1; background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.4rem; color: var(--ink);
  transition: border-color .18s, transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.related-link:hover {
  border-color: var(--terra);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,84,58,.1);
}

.related-link .rl-label {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: .5rem;
}

.related-link .rl-title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.timeline { margin: 1.5rem 0; border-top: 1px solid var(--border); }

.timeline-item {
  display: flex; gap: 1.25rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.timeline-dot {
  width: 48px; height: 48px;
  background: var(--terra);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 800;
  flex-shrink: 0; border-radius: var(--r-sm);
  letter-spacing: .02em;
}

.timeline-content { flex: 1; }
.timeline-content strong { font-size: .95rem; display: block; margin-bottom: .35rem; font-weight: 800; color: var(--ink); }
.timeline-content p { font-size: .88rem; color: var(--ink-mid); margin: 0; line-height: 1.6; font-weight: 500; }

.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.5rem 0; }
.compare-table thead { border-bottom: 2px solid var(--ink); }
.compare-table th { padding: .6rem .75rem; text-align: left; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-light); font-weight: 800; }
.compare-table td { padding: .7rem .75rem; border-bottom: 1px solid var(--border); font-weight: 500; }
.compare-table .highlight-row td { font-weight: 800; color: #1A5C38; background: #EEF7F2; }
.compare-table .num { text-align: right; font-weight: 700; }
.compare-table-note { font-size: .75rem; color: var(--ink-light); margin-top: .5rem; font-style: italic; font-weight: 500; }

/* ============================================================
   DATA DETAIL PAGES — Chart Components
   ============================================================ */

.chart-wrap {
  margin: 2rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.chart-header {
  padding: .9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.chart-title {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-light);
  font-weight: 800;
}

.chart-period {
  font-size: .75rem;
  color: var(--ink-light);
  font-weight: 500;
}

.chart-svg-wrap { padding: 1.5rem 1.5rem .5rem; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid-line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-baseline { stroke: var(--border); stroke-width: 1; }
.chart-area { fill: rgba(212, 84, 58, 0.08); }
.chart-line { fill: none; stroke: var(--terra); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--terra); stroke: var(--white); stroke-width: 2; }
.chart-dot-highlight { fill: var(--terra-dark); stroke: var(--white); stroke-width: 2.5; }

.chart-label-x { font-size: 10px; fill: var(--ink-light); text-anchor: middle; font-family: 'Manrope', sans-serif; font-weight: 600; }
.chart-label-y { font-size: 10px; fill: var(--ink-light); text-anchor: end; dominant-baseline: middle; font-family: 'Manrope', sans-serif; font-weight: 600; }

.chart-annotation { font-size: 9.5px; fill: var(--terra); font-family: 'Manrope', sans-serif; font-weight: 800; text-anchor: middle; }
.chart-annotation-line { stroke: var(--terra); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-source { font-size: .72rem; color: var(--ink-light); padding: .3rem 1.5rem .8rem; font-style: italic; font-weight: 500; }

/* Preiskomponenten */
.breakdown-bar { display: flex; height: 40px; border-radius: var(--r-sm); overflow: hidden; margin: 1rem 0; }
.breakdown-seg {
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
  color: rgba(247,243,238,.9); letter-spacing: .04em;
}

.seg-steuern   { background: #2D1F1A; }
.seg-rohoel    { background: #5C3A1A; }
.seg-marge     { background: var(--terra); }
.seg-sonstiges { background: #3A5C8A; }

.breakdown-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: .75rem; margin-bottom: 1.5rem; }
.breakdown-legend-item { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ink-mid); font-weight: 500; }
.breakdown-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

/* Data detail nav */
.data-nav {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
  margin-top: 3.5rem;
}

.data-nav-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.4rem;
  display: block; color: var(--ink);
  transition: border-color .18s, transform .2s var(--ease-out);
}

.data-nav-item:hover { border-color: var(--terra); transform: translateY(-2px); }

.data-nav-label {
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-light); font-weight: 800; margin-bottom: .35rem;
}

.data-nav-value {
  font-size: 1.5rem; font-weight: 800;
  color: var(--ink); line-height: 1; letter-spacing: -.03em;
}

.data-nav-name { font-size: .82rem; color: var(--ink-mid); margin-top: .2rem; font-weight: 500; }

/* ============================================================
   WIRTSCHAFTSSTRUKTUR
   ============================================================ */

.struktur-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}

.struktur-text p { font-size: .97rem; color: var(--ink-mid); line-height: 1.8; margin-bottom: 1.2rem; font-weight: 500; }
.struktur-text p:last-child { margin-bottom: 0; }
.struktur-text p:first-child { font-size: 1.02rem; color: var(--ink); }

.bar-section-title {
  font-size: .65rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-light); font-weight: 800; margin-bottom: 1.5rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--border);
}

.bar-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.bar-label { width: 140px; font-size: .88rem; color: var(--ink-mid); flex-shrink: 0; font-weight: 500; }
.bar-track { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--terra); border-radius: 2px; transition: width .9s var(--ease-out); }
.bar-fill.accent { background: var(--ink-mid); }
.bar-pct { font-size: 1rem; font-weight: 800; color: var(--ink); width: 36px; text-align: right; flex-shrink: 0; }
.bar-source { font-size: .75rem; color: var(--ink-light); margin-top: 1.25rem; font-style: italic; font-weight: 500; }

.key-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--ink); margin-top: 3.5rem; }
.key-fact { padding: 1.5rem 2rem 1.5rem 0; border-right: 1px solid var(--border); }
.key-fact:last-child { border-right: none; }
.key-fact:not(:first-child) { padding-left: 2rem; }
.key-fact .kf-label { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); font-weight: 800; margin-bottom: .5rem; }
.key-fact .kf-text { font-size: .88rem; color: var(--ink-mid); line-height: 1.6; font-weight: 500; }

/* ============================================================
   WISSEN / Concepts (Accordion)
   ============================================================ */

.wissen-bg { background: var(--surface-warm); }
.concepts-list { border-top: 3px solid var(--ink); }

.concept-item { border-bottom: 1px solid var(--border); transition: background .2s; }

.concept-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 1.3rem 0; display: flex; justify-content: space-between;
  align-items: center; gap: 2rem; text-align: left;
  transition: padding-left .2s var(--ease-out);
}

.concept-item.is-open .concept-trigger { padding-left: 1rem; }
.concept-item.is-open { background: var(--terra-pale); }

.ct-left { flex: 1; }

.ct-title { font-size: 1.1rem; font-weight: 800; color: var(--ink); transition: color .18s; margin-bottom: .2rem; letter-spacing: -.01em; }
.concept-trigger:hover .ct-title { color: var(--terra); }
.ct-teaser { font-size: .86rem; color: var(--ink-light); font-weight: 500; }

.ct-arrow {
  color: var(--ink-light); flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 50%; font-size: .65rem;
  transition: transform .28s var(--ease-out), border-color .18s, background .18s;
}

.ct-arrow.open { transform: rotate(180deg); border-color: var(--terra); background: var(--terra-pale); }

.concept-body {
  max-height: 0; overflow: hidden;
  transition: max-height .45s var(--ease-out), padding .3s var(--ease-out);
  padding: 0; font-size: .94rem; color: var(--ink-mid);
  line-height: 1.8; max-width: 680px; font-weight: 500;
}

.concept-body.open { max-height: 700px; padding-bottom: 1.75rem; }
.concept-body p { margin-bottom: 1rem; }
.concept-body p:last-child { margin-bottom: 0; }
.concept-body strong { color: var(--ink); font-weight: 800; }

.example-box {
  border-left: 3px solid var(--terra);
  padding: .85rem 1.25rem; margin: 1.25rem 0;
  font-size: .88rem; background: var(--terra-pale);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.example-box strong { color: var(--terra-dark); font-weight: 800; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .data-strip { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .struktur-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .key-facts { grid-template-columns: 1fr; }
  .key-fact { padding: 1.1rem 0; border-right: none; border-top: 1px solid var(--border); }
  .key-fact:first-child { border-top: none; }
  .key-fact:not(:first-child) { padding-left: 0; }
  .ueber-grid { grid-template-columns: 1fr; }
  .ueber-item { border-right: none; border-bottom: 1px solid var(--border); padding-left: 0; padding-right: 0; }
  .ueber-item:last-child { border-bottom: none; }
  .footer-links { gap: 2rem; }
  .data-nav { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .masthead { padding: 1.75rem 1.25rem 1.5rem; }
  .section { padding: 2.5rem 1.25rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .data-strip { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
  .article-wrap { padding: 2rem 1.25rem 4rem; }
  .article-hero { height: 200px; }
  .article-hero-tag { left: 1.25rem; }
  .stat-row { flex-direction: column; }
  .stat-box { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-box:last-child { border-bottom: none; }
  .related-links { flex-direction: column; }
  .data-item .d-value { font-size: 2.2rem; }
}
