/* ==========================================================================
   artevie|me - Regionsseiten (Fassung 14.11.2026)
   Ergaenzt /css/artevie.css. Wird NUR auf /region und den sechs
   Regionsseiten geladen. Farben, Rundungen und Schrift kommen aus
   artevie.css, hier stehen nur die neuen Bausteine.
   ========================================================================== */

/* ---------- Einstieg ---------- */
.region .intro { padding-top: clamp(1.75rem, 4vw, 3.25rem); }
.region .intro-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.region.home h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.12; }
.region .intro h1 span:last-child { color: var(--navy-500); }

.pfad ol { display: flex; flex-wrap: wrap; gap: 0.15rem 0; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: var(--step-small); color: var(--ink-muted); }
.pfad li + li::before { content: "/"; margin-inline: 0.55rem; color: var(--line-strong); }
.pfad a { display: inline-block; padding-block: 0.35rem; color: var(--ink-muted); text-decoration: underline 1px transparent; text-underline-offset: 0.25em; transition: color 250ms, text-decoration-color 250ms; }
.pfad a:hover { color: var(--navy); text-decoration-color: currentColor; }
.pfad [aria-current] { padding-block: 0.35rem; font-weight: 600; color: var(--navy); }

/* ---------- Lagekarte ---------- */
.lage { margin: 0; justify-self: center; width: 100%; max-width: 30rem; }
.lage-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 34px rgba(0, 32, 96, 0.16)); }
.lage figcaption { margin-top: 1rem; text-align: center; font-size: 0.82rem; color: var(--ink-muted); }
.lage-grund { fill: var(--paper); }
.lage-ring { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
.lage-ring:last-of-type { stroke: var(--line-strong); stroke-dasharray: none; }
.lage-km { font-family: var(--font-display); font-weight: 700; font-size: 9.5px; letter-spacing: 0.08em; fill: var(--ink-muted); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.lage-rhein { fill: none; stroke: var(--teal); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.lage-weg { stroke: var(--navy); stroke-width: 1.25; opacity: 0.35; }
.lage text { font-family: var(--font-display); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.lage-fern circle { fill: var(--navy-500); opacity: 0.55; }
.lage-fern text { font-size: 10.5px; font-weight: 400; fill: var(--ink-muted); }
.lage-ort circle { fill: var(--navy); }
.lage-ort text { font-size: 13px; font-weight: 700; fill: var(--navy); }
.lage-sitz circle:first-child { fill: var(--teal); stroke: var(--navy); stroke-width: 1.5; }
.lage-sitz circle + circle { fill: var(--navy); }
.lage-sitz text { font-size: 13px; font-weight: 700; fill: var(--navy); }
.lage a { text-decoration: none; }
.lage a .lage-ort text { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lage a:hover .lage-ort circle, .lage a:focus-visible .lage-ort circle { fill: var(--teal-900); }

@media (prefers-reduced-motion: no-preference) {
  .js .lage-weg { stroke-dasharray: 600; stroke-dashoffset: 600; animation: lage-weg 1400ms var(--ease-soft) 500ms forwards; }
  @keyframes lage-weg { to { stroke-dashoffset: 0; } }
}

/* ---------- Text und Ortsliste ---------- */
.ort-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prosa p { max-width: 38em; margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-muted); }
.prosa h2 + p { margin-top: 1.75rem; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--navy); }

.orte { padding: clamp(1.25rem, 2.5vw, 1.75rem); background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px rgba(0, 32, 96, 0.05), var(--shadow-soft); }
.orte ul { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.orte li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.orte li span:first-child { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.orte li span:last-child { white-space: nowrap; color: var(--ink-muted); }

/* ---------- Was Betriebe beschaeftigt ---------- */
.punkte { margin: 2.5rem 0 0; border-top: 1px solid var(--line); }
.punkt { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 0.5rem clamp(1.5rem, 5vw, 4rem); padding: 1.6rem 0.25rem; border-bottom: 1px solid var(--line); }
.punkt dt { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.3; text-wrap: balance; }
.punkt dd { margin: 0; max-width: 36em; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-muted); }

/* ---------- Fragen ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.home .kammern { margin-top: 1.5rem; max-width: 30em; font-size: 0.98rem; line-height: 1.6; color: var(--ink-muted); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: center; padding: 1.25rem 0.25rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-strong); border-radius: 50%; background: linear-gradient(var(--navy), var(--navy)) no-repeat 50% / 0.9rem 2px, linear-gradient(var(--navy), var(--navy)) no-repeat 50% / 2px 0.9rem; transition: rotate 400ms var(--ease-soft), background-color 300ms; }
.faq details[open] summary::after { rotate: 45deg; background-color: var(--teal); border-color: var(--teal); }
.faq details p { max-width: 38em; padding: 0 0.25rem 1.5rem; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-muted); }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover::after { background-color: var(--mist); }
  .faq details[open] summary:hover::after { background-color: var(--teal-600); }
}

.textlink { color: var(--navy); font-weight: 600; text-decoration: underline 2px var(--teal); text-underline-offset: 0.3em; white-space: nowrap; transition: text-decoration-color 250ms; }
.textlink:hover { text-decoration-color: var(--navy); }
.region .bridge { max-width: 30em; font-size: clamp(1.15rem, 2vw, 1.5rem); }

@media (max-width: 1040px) {
  .region .intro-grid, .ort-grid, .faq-grid { grid-template-columns: 1fr; }
  .lage { max-width: 24rem; margin-top: 0.5rem; }
  .punkt { grid-template-columns: 1fr; padding-block: 1.3rem; }
}

/* ==========================================================================
   Startseite: Abschnitt "Einsatzgebiet" und Kurzfakt "Vor Ort"
   Wird von bauen-komplett.py an region.css angehaengt.
   ========================================================================== */
.gebiet-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.home .gebiet-grid h2 + .lead { margin-top: 1rem; }
.gebiet-liste { margin: 2.25rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.gebiet-liste a {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.6fr) minmax(0, 1fr) auto;
  gap: 0.2rem 1.25rem;
  align-items: baseline;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
  transition: background-color 300ms, padding-inline 400ms var(--ease-soft);
}
.gebiet-liste b { font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.3; }
.gebiet-liste span { font-size: 0.98rem; color: var(--ink-muted); }
.gebiet-liste svg { align-self: center; transition: transform 400ms var(--ease-soft); }
.gebiet-liste a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: var(--r-sm); }
@media (hover: hover) and (pointer: fine) {
  .gebiet-liste a:hover { background: var(--paper); padding-inline: 0.9rem; }
  .gebiet-liste a:hover svg { transform: translateX(5px); }
}

.facts dd a { color: inherit; text-decoration: underline 2px var(--teal); text-underline-offset: 0.3em; transition: text-decoration-color 250ms; }
.facts dd a:hover { text-decoration-color: var(--navy); }
@media (min-width: 1041px) {
  .facts dl.fakten-vier { grid-template-columns: 1.2fr 1.15fr 1.15fr 0.9fr; }
  .facts dl.fakten-vier div { padding-inline: clamp(0.9rem, 1.6vw, 1.5rem); }
  .facts dl.fakten-vier div:first-child { padding-left: 0; }
  .facts dl.fakten-vier dd { font-size: clamp(0.95rem, 1.25vw, 1.15rem); }
}

@media (max-width: 1040px) {
  .gebiet-grid { grid-template-columns: 1fr; }
  .gebiet-liste a { grid-template-columns: minmax(0, 1fr) auto; }
  .gebiet-liste b { grid-column: 1; }
  .gebiet-liste span { grid-column: 1; grid-row: 2; }
  .gebiet-liste svg { grid-column: 2; grid-row: 1 / span 2; }
}
