:root {
  --primary: #1c6ed5;
  --primary-dark: #1558b0;
  --text: #3f4b57;
  --heading: #1f2d3d;
  --light-bg: #f6f9fc;
  --border: #e6edf3;
  --accent: #5b8fb9;

  /* Neu: Senkung positiv = grün, Erhöhung negativ = rot */
  --trend-down: #2f9e44;
  --trend-up: #d9480f;
}

/* BASE */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
  background: #ffffff;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 25px;
}

/* STICKY HEADER */
.wacc-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
}

.sticky-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* SWISSGRID STICKY */
.swissgrid-sticky-header .sticky-container {
  align-items: stretch;
}

.sticky-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 130px 1.55fr 1.15fr;
  gap: 20px;
  align-items: stretch;
}

.sticky-year-card,
.sticky-total-card,
.sticky-lines-card,
.sticky-side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sticky-year-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.sticky-year-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b8794;
  margin-bottom: 8px;
}

.sticky-year {
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}

.sticky-main-col,
.sticky-side-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sticky-total-card {
  padding: 14px 16px 12px;
  border-left: 4px solid var(--primary);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.sticky-total-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #5f6b7a;
  margin-bottom: 6px;
}

.sticky-total-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sticky-total-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.sticky-total-trend {
  font-size: 0.95rem;
  font-weight: 700;
}

.sticky-lines-card,
.sticky-side-card {
  padding: 12px 16px;
}

.sticky-main-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.sticky-line {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: baseline;
  padding: 5px 0;
}

.sticky-line + .sticky-line {
  border-top: 1px dashed #edf2f7;
}

.sticky-line-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--heading);
}

.sticky-inline-unit {
  font-weight: 600;
  color: #6b7a8c;
}

.sticky-line-value {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.sticky-line-trend {
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.sticky-publication {
  text-align: right;
  font-size: 0.72rem;
  color: #8a94a3;
  margin-top: 2px;
}

/* HEADLINES */
h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading);
  margin: 40px 0 20px;
  position: relative;
  padding-bottom: 14px;
}

h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

h2 {
  margin-top: 60px;
  font-size: 28px;
  font-weight: 600;
  color: var(--heading);
  position: relative;
  padding-bottom: 12px;
}

h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin-top: 10px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 30px;
  color: var(--heading);
}

.lead {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 30px;
}

/* KPI GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.kpi-box {
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px 16px;
  text-align: center;
  border-radius: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.kpi-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.kpi-box-highlight {
  border-left: 4px solid var(--primary);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.kpi-value {
  display: block;
  font-size: 1.8rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--primary);
}

.kpi-unit {
  font-size: 0.85rem;
  color: #6b7a8c;
  margin-left: 2px;
}

.kpi-label {
  text-transform: none;
  font-size: 0.8rem;
  letter-spacing: 0;
  color: #6b7a8c;
  margin-top: 6px;
  line-height: 1.35;
}

.kpi-trend {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* CALCULATION GRID */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: #fff;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.calc-result-bar {
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
  background: var(--primary);
  color: #fff;
  padding: 12px;
  border-radius: 6px;
}

/* TABLES */
.wacc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 15px;
}

.wacc-table th {
  background: #f3f7fb;
  padding: 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}

.wacc-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.wacc-table tr:hover {
  background: #fafcff;
}

/* Neu: Senkung grün, Erhöhung rot */
.trend-neg {
  color: var(--trend-down);
  font-weight: 700;
}

.trend-pos {
  color: var(--trend-up);
  font-weight: 700;
}

/* BLOCKQUOTE */
blockquote {
  background: #f7fafc;
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  margin: 30px 0;
  border-radius: 6px;
}

/* ALERT */
.alert-vse {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  padding: 24px;
  border-radius: 8px;
  margin: 35px 0;
}

.alert-vse h3 {
  color: #c53030;
  margin-top: 0;
}

/* CHART */
.chart-wrapper {
  position: relative;
  height: 460px;
  width: 100%;
  margin: 50px 0;
  background: #fff;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

/* CTA CONTACT */
.contact-cta {
  background: linear-gradient(135deg, #1c6ed5, #1558b0);
  color: #fff;
  padding: 55px 40px;
  border-radius: 14px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(28, 110, 213, 0.25);
}

.contact-cta h2 {
  color: #fff;
  border: none;
  margin-top: 0;
}

.contact-cta p {
  opacity: 0.95;
  font-size: 17px;
  margin-bottom: 20px;
}

/* CTA BUTTON */
.contact-button {
  display: inline-block;
  background: #ffffff;
  color: var(--primary) !important;
  padding: 16px 34px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.contact-button:hover {
  background: #f2f6ff;
  transform: translateY(-2px);
}

.cta-box {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 26px;
  border-radius: 8px;
  margin: 50px 0;
}

.cta-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
}

.cta-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.cta-author-text {
  font-size: 0.9rem;
  line-height: 1.4;
}

.cta-role {
  color: #666;
  font-size: 0.85rem;
}

.cta-box h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.cta-box p {
  margin-bottom: 12px;
  color: #444;
}

.cta-link {
  color: #1c6ed5;
  font-weight: 600;
  text-decoration: none;
}

.cta-link:hover {
  text-decoration: underline;
}

/* FORMULA */
.formula-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0056b3;
  padding: 25px;
  border-radius: 8px;
  margin: 30px 0;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.formula-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 15px;
  font-weight: 700;
}

.formula-display {
  font-size: 1.6rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.math {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
}

.math-term {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 600;
}

.math-term sub {
  font-style: normal;
  font-size: 0.7em;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

.math-dot {
  margin: 0 4px;
  font-style: normal;
}

.math-plus,
.math-equal {
  margin: 0 10px;
  color: #0056b3;
}

.math-bracket {
  color: #94a3b8;
  font-weight: 300;
}

/* MOBILE */
@media (max-width: 1100px) {
  .sticky-grid {
    grid-template-columns: 110px 1fr;
  }

  .sticky-side-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .sticky-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sticky-year {
    font-size: 2.4rem;
  }

  .sticky-publication {
    text-align: left;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 28px;
  }

  .container {
    padding: 18px;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .sticky-line {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .sticky-total-value-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-wrapper {
    height: 320px;
  }
}

@media (max-width: 576px) {
  .formula-display {
    font-size: 1.2rem;
  }
}


.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.chart-note {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: -24px;
  margin-bottom: 22px;
}


.explain-item {
  margin: 34px 0;
}

.explain-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.explain-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f3f7fb;
  border: 1px solid #e6edf3;
}

.explain-icon svg {
  width: 20px;
  height: 20px;
  stroke: #1c6ed5;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.explain-head h3 {
  margin: 0;
}

.explain-icon svg {
  width: 24px;   /* Oder die von dir gewünschte Größe */
  height: 24px;
  display: block;
  stroke-width: 2px;
  color: #0070bc; /* Beispiel: Swissgrid-Blau oder deine Primärfarbe */
}

.explain-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footnotes {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: #5f6b7a;
}

.footnotes h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--heading);
}

.footnotes ol {
  margin: 0;
  padding-left: 20px;
}

.footnotes li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.footnotes sup {
  font-size: 0.75em;
}

.footnotes a {
  color: var(--primary);
  text-decoration: none;
}

.footnotes a:hover {
  text-decoration: underline;
}


.fazit-box {
  margin: 22px 0;
  padding: 18px 20px;
  background: #f8fbff;
  border: 1px solid #dbe7f3;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
}

.fazit-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.footnotes {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: #5f6b7a;
}

.footnotes h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--heading);
}

.footnotes ol {
  margin: 0;
  padding-left: 20px;
}

.footnotes li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.footnotes a {
  color: var(--primary);
  text-decoration: none;
}

.footnotes a:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .wacc-sticky-header.swissgrid-sticky-header {
    position: static;
    top: auto;
    z-index: auto;
    backdrop-filter: none;
    box-shadow: none;
    background: #fff;
  }
}





 :root {
  --primary-blue: #1a2b48;
  --whatsapp-green: #25D366;
  --bg-light: #f8fafd;
  --text-gray: #555;
  --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-section {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  padding: 60px 20px;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap; /* Wichtig für Mobile */
}

.contact-column {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  flex: 1;
  min-width: 300px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.contact-column:hover {
  transform: translateY(-5px);
}

/* Profil-Säule Besonderheiten */
.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.position {
  color: var(--text-gray);
  font-weight: 500;
  margin-bottom: 15px;
}

/* Buttons */
.btn {
  display: block;
  padding: 12px;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  margin-top: 10px;
}

.btn-call { background-color: var(--primary-blue); }
.btn-whatsapp { background-color: var(--whatsapp-green); }

/* Icons & Links */
.icon { font-size: 2rem; margin-bottom: 10px; }
.email-link { 
  color: var(--primary-blue); 
  font-weight: 700; 
  text-decoration: none; 
  display: block;
  margin-bottom: 10px;
}

.divider {
  height: 1px;
  background: #eee;
  margin: 30px 0;
}

address {
  font-style: normal;
  line-height: 1.6;
  color: var(--text-gray);
}

.map-container {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden; /* Damit die runden Ecken auch am iframe greifen */
  box-shadow: inset 0 0 0 1px #eee; /* Leichter Rand */
  line-height: 0; /* Verhindert Abstände unter dem iframe */
}

.map-container iframe {
  filter: grayscale(20%) contrast(90%); /* Optionaler "Clean Look" */
}