/* ==========================================================================
   03 – ORGANE DER KOMMUNE IN NIEDERSACHSEN
   Seitenspezifisch – benötigt NkomVG_Style.css als Basis
   ========================================================================== */

:root {
  --tanne-90: rgba(0,85,56,0.9);
  --tanne-20: rgba(0,85,56,0.12);
  --klee-15: rgba(0,137,57,0.15);
  --himmel-15: rgba(11,161,221,0.15);
}

/* --- Header-Anpassungen --- */
header {
  text-align: left;
}

header::before {
  content: '';
  position: absolute;
  top: -60%; right: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--sonne);
  opacity: 0.07;
  pointer-events: none;
}

.header-tag {
  background: rgba(255,241,122,0.15);
  border: 1px solid rgba(255,241,122,0.3);
  color: var(--sonne);
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

header h1 {
  font-style: italic;
}

.header-sub {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: rgba(245,241,233,0.85);
  max-width: 640px;
  line-height: 1.5;
}

/* --- Gruene Type Substitute --- */
.gruene-type {
  font-family: 'PT Sans', sans-serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* --- Störer (runde Sticker) --- */
.stoerer {
  background: var(--himmel);
  color: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
  box-shadow: 0 4px 16px rgba(11,161,221,0.35);
  flex-shrink: 0;
}

.stoerer > span {
  transform: rotate(-7deg);
  display: block;
}

/* --- Layout --- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 2rem 0;
}

/* Section-Headers */
.sec-header { margin-bottom: 1.5rem; }
.sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--tanne);
  color: var(--sonne);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.sec-header h2 {
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  text-transform: uppercase;
  color: var(--tanne);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.sec-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* --- Cards --- */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.card-body { padding: 1.25rem; }

/* --- Callout-Varianten (seitenintern) --- */
.callout-tanne  { background: var(--tanne-20); border-left-color: var(--tanne); }
.callout-klee   { background: var(--klee-15);  border-left-color: var(--klee); }
.callout-himmel { background: var(--himmel-15); border-left-color: var(--himmel); }
.callout-warn   { background: rgba(192,57,43,0.08); border-left-color: #C0392B; }

/* --- Info-Blocks (lokale Variante) --- */
.info-block { margin-bottom: 1.2rem; }
.info-block:last-child { margin-bottom: 0; }
.info-block h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tanne);
  margin-bottom: 0.4rem;
}
.info-block p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* --- Ehrenamt Badge --- */
.ea-badge {
  display: inline-block;
  background: var(--sonne);
  color: var(--tanne);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  position: absolute;
  top: -8px; right: -4px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.ea-border {
  border: 2px solid var(--sonne) !important;
  box-shadow: 0 0 10px rgba(255,241,122,0.3) !important;
  position: relative;
}

.legend-sw.ea {
  border: 2px solid var(--sonne);
  box-shadow: 0 0 6px rgba(255,241,122,0.5);
  background: white;
}

/* --- Node-Varianten (Organe) --- */
.n-volk { background: var(--tanne); color: var(--sand); min-width: 200px; }
.n-rat  { background: var(--himmel); color: var(--sand); min-width: 140px; }
.n-hvb  { background: var(--klee); color: var(--sand); min-width: 140px; }
.n-va   { background: linear-gradient(135deg, #b83000, #922B21); color: white; min-width: 180px; border: 2px solid rgba(255,255,255,0.2); }
.n-va .node-ttl { font-size: 0.95rem; }
.n-aus  { background: linear-gradient(135deg, #3D5A80, #2B4057); color: white; min-width: 130px; }
.n-verw { background: linear-gradient(135deg, var(--tanne), #003d28); color: var(--sand); min-width: 140px; }
.n-prof { background: linear-gradient(135deg, #5C3D6B, #3A2345); color: white; min-width: 140px; }

.node-ttl {
  font-style: italic;
}

.rel-tag {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 0.1rem 0;
  opacity: 0.7;
}

/* --- CTA Gemeinderat --- */
.cta-gemeinderat {
  background: linear-gradient(135deg, var(--klee), var(--tanne));
  color: var(--sand);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}
.cta-gemeinderat::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--sonne);
  opacity: 0.08;
}
.cta-gemeinderat .cta-inner { position: relative; z-index: 1; }
.cta-gemeinderat h2 {
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.cta-gemeinderat p {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.9;
  max-width: 560px;
}
.cta-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
  max-width: 400px;
}
.cta-fact {
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.8rem;
  text-align: center;
}
.cta-fact .fact-num { font-size: 1.3rem; font-weight: 700; color: var(--sonne); display: block; }
.cta-fact .fact-lbl { font-size: 0.68rem; font-weight: 600; opacity: 0.85; margin-top: 0.2rem; display: block; }
.cta-fact .fact-icon { font-size: 1.2rem; margin-bottom: 0.2rem; display: block; }

.cta-stoerer-wrap { display: flex; justify-content: center; margin-top: 1.5rem; }
.cta-stoerer { width: 110px; height: 110px; font-size: 0.85rem; padding: 0.8rem; animation: pulse 2.5s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(11,161,221,0.35); }
  50%      { box-shadow: 0 4px 30px rgba(11,161,221,0.55); }
}

/* Org-Title Italic */
.org-title {
  font-style: italic;
}

/* --- Samtgemeinde-Diagramm --- */
.sg-dia {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.sg-row  { display: flex; justify-content: center; gap: 1.5rem; width: 100%; flex-wrap: wrap; }
.sg-col  { display: flex; flex-direction: column; align-items: center; gap: 0; flex: 1; min-width: 240px; max-width: 380px; }
.sg-ch   { font-weight: 700; font-style: italic; font-size: 0.88rem; text-align: center; margin-bottom: 0.6rem; padding: 0.35rem 0.8rem; border-radius: 8px; width: 100%; }
.sg-n    { border-radius: 10px; padding: 0.5rem 0.8rem; text-align: center; font-size: 0.82rem; width: 100%; position: relative; }
.sg-n .sg-t { font-weight: 700; font-style: italic; font-size: 0.85rem; }
.sg-n .sg-s { font-size: 0.68rem; opacity: 0.8; margin-top: 0.1rem; }
.sg-arr  { text-align: center; font-size: 0.58rem; color: var(--text-muted); padding: 0.25rem 0; }
.sg-bridge { display: flex; justify-content: center; padding: 0.6rem 0; width: 100%; margin-top: 0.8rem; }
.sg-bridge-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sand);
  background: var(--tanne);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  text-align: center;
  line-height: 1.5;
  max-width: 560px;
}

/* --- Table --- */
.vtable    { width: 100%; border-collapse: collapse; margin: 0.6rem 0; font-size: 0.82rem; }
.vtable th { text-align: left; font-weight: 700; padding: 0.4rem 0.6rem; background: var(--sand); border-bottom: 2px solid rgba(0,85,56,0.15); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.vtable td { padding: 0.4rem 0.6rem; border-bottom: 1px solid rgba(0,85,56,0.08); vertical-align: top; }

/* --- Kraft-Amtes Items --- */
.ki       { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.6rem 0.8rem; border-radius: 8px; margin-bottom: 0.5rem; }
.ki strong { font-size: 0.88rem; }
.ki span   { font-size: 0.88rem; color: var(--text-muted); }

/* --- Scroll Target --- */
.scroll-target { scroll-margin-top: 1rem; }

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
  .row-dual { gap: 0.6rem; }
  .node { padding: 0.5rem 0.6rem; }
  .node-ttl { font-size: 0.8rem; }
  .node-sub { font-size: 0.62rem; }
  .node-ico { font-size: 0.95rem; }
  .card-body { padding: 1rem; }
  .cta-facts { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .cta-fact { padding: 0.6rem 0.4rem; }
  .cta-fact .fact-num { font-size: 1.1rem; }
  .sg-col { min-width: 200px; }
}

@media (min-width: 768px) {
  .organi-col {
    flex: 0 0 52%;
    max-width: 520px;
    position: sticky;
    top: 1rem;
  }
  .container { padding: 0 1.5rem; }
  header { padding: 3rem 1.5rem 2.5rem; }
  .row-dual { gap: 2rem; }
}

@media (min-width: 1024px) {
  .container { max-width: 960px; }
  .organi-col { flex: 0 0 540px; }
}
