.sb-hero {
  position: relative;
  width: 100%;
  height: 35vh;
  min-height: 250px;
  max-height: 380px;
  overflow: hidden;
}

.sb-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.sb-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.sb-hero-content {
  position: absolute;
  top: 40px; left: 0; right: 0;
  padding: 2.5rem 0;
  z-index: 2;
}

.sb-hero-content-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.sb-hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: var(--fw-bold);
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.sb-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-top: var(--space-xs);
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.sb-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding-v) var(--space-xl);
}


.sb-section h1 {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: var(--lh-snug);
}

.sb-section h2 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 0.6rem;
  margin-top: 2rem;
  line-height: var(--lh-snug);
}

.sb-section h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: 1.1rem;
  margin-top: 1.5rem;
}

.sb-section h4 {
  font-size: var(--fs-lg);
  color: var(--color-text);
  margin-bottom: 1.1rem;
  margin-top: 2.1rem;
}

.sb-main-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  margin-top: 1rem;
}

.sb-main-sidebar {
  position: sticky;
  top: 6rem;
  margin-top: -100px;
}

.sb-main-sidebar img {
  width: 80%;
  height: auto;
  margin-left: auto;
  display: block;
}

@media (max-width: 900px) {
  .sb-main-layout { grid-template-columns: 1fr; }
  .sb-main-sidebar { display: none; }
}

.sb-section p {
  font-size: var(--fs-lg);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.sb-ergebnisse-layout {
  margin-top: var(--space-md);
}

.sb-ort-layout {
}


.sb-section .content-two-col {
  align-items: stretch;
}

.sb-section .content-two-col .image-col {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.sb-legende-item {
  border-bottom: 1px solid #e8e8e8;
}

.sb-legende-item:last-child { border-bottom: none; }

.sb-legende-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0;
  cursor: pointer;
  user-select: none;
}

.sb-legende-farbe {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.1);
}

.sb-legende-name {
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  flex: 1;
}

.btn-details {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(0,0,0,0.06);
  color: #555;
  font-size: 0.8rem;
  padding: 0.18rem 0.45rem;
  border-radius: 2rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sb-legende-item:hover .btn-details { background: rgba(0,0,0,0.1); }
.sb-legende-item.is-open .btn-details { background: rgba(0,0,0,0.1); }

.sb-legende-arrow {
  font-size: 1.3rem;
  transition: transform 0.2s;
  display: inline-block;
  line-height: 1;
}

.sb-legende-item.is-open .sb-legende-arrow { transform: rotate(180deg); }

.sb-legende-desc {
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: 1.6;
  padding: 0 0 0 2.1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.18s ease, padding 0.18s ease;
}

.sb-legende-item.is-open .sb-legende-desc {
  max-height: 300px;
  padding: 0 0 0.75rem 2.1rem;
}

.sb-farbe-fernwaerme  { background: #9E142D; }
.sb-farbe-ausbau2025  { background: #FF4400; }
.sb-farbe-ausbau2030  { background: repeating-linear-gradient(45deg, #FF9513, #FF9513 4px, #FFB84D 4px, #FFB84D 8px); }
.sb-farbe-ausbau2035  { background: repeating-linear-gradient(45deg, #FFCA28, #FFCA28 4px, #FFE082 4px, #FFE082 8px); }
.sb-farbe-nahwaerme   { background: #009187; }
.sb-farbe-dezentral   { background: #C7D9C1; }
.sb-farbe-pruefgebiet { background: repeating-linear-gradient(45deg, #82BDD6, #82BDD6 4px, #B0D4E3 4px, #B0D4E3 8px); }

p.sb-fussnote {
  margin-top: var(--space-sm);
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--color-text);
}


/* Kontakt-Karten */
.sb-kontakt-card {
  background: #f0faf2;
  border: 1px solid var(--color-sb-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) 1.5rem;
  margin-top: var(--space-md);
}

.sb-kontakt-card.sb-osr-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-ort-border);
}

.sb-kontakt-row {
  display: flex;
  gap: var(--space-md);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-border-light);
  align-items: baseline;
}

.sb-osr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.sb-osr-grid .sb-kontakt-card {
  max-width: none;
  margin-top: 0;
}

.sb-osr-item > p { margin-bottom: var(--space-xs); }

.sb-kontakt-row:last-child { border-bottom: none; }

.sb-kontakt-label {
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  min-width: 120px;
  flex-shrink: 0;
}

.sb-kontakt-value {
  font-size: var(--fs-base);
  color: var(--color-text);
}

.sb-kontakt-value a {
  color: var(--color-primary);
  text-decoration: none;
}

.sb-kontakt-value a:hover { text-decoration: underline; }


.sb-sp-item {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--color-text);
  padding: 0.5rem 0;
}

.sb-sp-tag {
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

.sb-ortschaften { margin-top: 0; }


.sb-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.sb-tab-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: background 0.2s, border-color 0.2s;
}

.sb-tab-btn:hover { background: var(--color-bg-soft); }

.sb-tab-btn.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.sb-tab-panel { display: none; }
.sb-tab-panel.is-active { display: block; }

/* Mobile */
@media (max-width: 900px) {
  .sb-legende-item { cursor: default; }
  .sb-legende-desc { max-height: 1000px !important; padding: 0 0 0.75rem 2.1rem !important; }
}

@media (max-width: 768px) {
  .sb-hero { height: 35vh; min-height: 220px; }
  .sb-hero-title { font-size: 1.8rem; }
  .sb-section { padding: 2.5rem var(--space-lg); }
  .sb-osr-grid { grid-template-columns: 1fr; }
  .sb-kontakt-card { padding: var(--space-lg); }
  .sb-kontakt-row { flex-direction: column; gap: 0.2rem; }
  .sb-kontakt-label { min-width: 0; }
}
