/* =============================
   Grundlayout & Karte
   ============================= */
.bw-kammer-map {
  max-width: 1200px;
  max-height: 900px;
}



.bw-kammer-block {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.bw-kammer-block > * {
  flex: 1 1 50%;
  max-width: 50%;
}
.svg-container {
  max-height: 800px;
  max-width: 40%;
  margin-left: auto;
}

.form-hwk-container {
  display: flex;
  flex-direction: column;
}

#plzForm {
  display: flex;
  justify-content: flex-start;
  margin-top: 2rem;
  gap: 1rem;
}

#result {
  margin-top: 1rem;
  min-height: 50px;
  padding: 1rem;
}

#plzInput {
  flex: 0 0 40% !important;
  width: auto !important;
  min-width: 4.5rem;
  max-width: none !important;
  margin-bottom: 0 !important;
  height: 44px;
  margin-left: 1rem;
  padding: 0.2rem;
  font-size: inherit;
  text-align: center;
  border: 1px solid var(--dark-blue);
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 1rem;
}

.btn.btn-hwk {
  background-color: #a3c7ed;
  color: #466594;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.btn.btn-hwk:hover,.btn.btn-hwk:focus{
  background-color: #d1e3f7;
}
.chamber:focus-visible {
  outline: none;           
}

.contact a {
  color: #073070;
  text-decoration: none;
  border-bottom: 1px solid #5c86c6;
  font-weight: 700;
}

.contact a:hover {
  color: #408FE5;
}

/* =============================
   SVG Karte & Animationen
   ============================= */
#bwMap {
  width: 100%;
  height: auto;
  min-height: 600px;
}

#bwMap path {
  transition: transform 0.6s ease, opacity 0.6s ease, fill 0.5s ease;
  transform-origin: center;
  opacity: 0;
  transform: translateY(100px);
}

#bwMap path:hover ,#bwMap a.chamber:focus path{
  fill: #d1e3f7;
  cursor: pointer;
}

#bwMap path.highlight {
  fill: var(--dark-blue);
  animation: pulseGlow 1.5s ease-in-out infinite;
}

#bwMap text {
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { fill: #d1e3f7; }
  50% { fill: #95b2ce; }
}

/* =============================
   Kontaktliste
   ============================= */
.contact {
  padding: 1rem 0;
  border-top: 1px solid #b0cff1;
}

.contact:last-child {
  border-bottom: 1px solid #b0cff1;
}

#result .contacts {
  margin-top: 0.5rem;
}

#result .contact {
  opacity: 0;
  transform: translateX(-16px);
  animation: slideInLeft 420ms ease forwards;
  will-change: transform, opacity;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-260px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  #result .contact {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.zip-suggestion,
.link-hwk h3 {
  color: #073070;
  text-decoration: none;
  border-bottom: 1px solid #5c86c6;
  font-weight: 700;
}

.link-hwk {
  text-decoration: none;
}

.zip-suggestion:hover,
.link-hwk h3:hover {
  color:#408FE5;
}

/* =============================
   Responsive
   ============================= */
@media only screen and (max-width: 768px) {
  .bw-kammer-block {
    flex-direction: column;
    gap: 0;
  }

  .bw-kammer-block > *,
  .svg-container,
  #result,
  .form-hwk-container > * {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }

  #plzForm.plz-form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
  }

  #plzForm .btn.btn-hwk {
    flex: 1 1 60% !important;  
    width: auto !important;
    min-width: 0;            
    max-width: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 44px;
    margin-right: 2rem;
  }
}

/* Extra-small phones */
@media (max-width: 380px) {
  #plzInput { flex-basis: 40%; }
  #plzForm .btn.btn-hwk {
    flex-basis: 60%;
    font-size: 0.95em; 
  }
}
/* ========================================
   Handwerkrolle: Grün als Primärfarbe
   ======================================== */
.bw-kammer-block--handwerkrolle {
  --hwk-green: #fcfef5;
  --hwk-green-dark: #409318;
  --hwk-green-lite: #EAF5BF;
  --hwk-blue-dark: #002F6C;
  --hwk-blue: #466594;
  border: 2px solid var(--hwk-green-dark);
  border-radius: 12px;
}

.bw-kammer-block--handwerkrolle #plzInput {
  border-color: var(--hwk-green-dark);
  color: var(--hwk-blue-dark);
  background: #fff;
}

.bw-kammer-block--handwerkrolle #plzInput:focus {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--hwk-green) 25%, white);
}

/* ========================================
   Karte / Animation
   ======================================== */
.bw-kammer-block--handwerkrolle #bwMap path {
  fill: color-mix(in oklab, var(--hwk-green) 80%, white);
  transition: fill 0.4s ease, transform 0.4s ease, opacity 0.6s ease;
  stroke:var(--hwk-blue-dark);
}

.bw-kammer-block--handwerkrolle #bwMap path:hover,.bw-kammer-block--handwerkrolle #bwMap a.chamber:focus path {
  fill: var(--hwk-green-lite);
  cursor: pointer;
}

/* Pulsierende Animation bleibt */
.bw-kammer-block--handwerkrolle #bwMap path.highlight {
  animation: pulseGlowOrange 1.6s ease-in-out infinite;
}

@keyframes pulseGlowOrange {
  0%, 100% { fill: var(--hwk-green); }
  50%      { fill: var(--hwk-green-lite); }
}

/* ========================================
   Kontakte / Rahmen / Tiefe
   ======================================== */
.bw-kammer-block--handwerkrolle #result .contact {
  border-color: color-mix(in oklab, var(--hwk-green) 35%, white);
}

.bw-kammer-block--handwerkrolle .svg-container {
  filter: drop-shadow(0 0 3px color-mix(in oklab, var(--hwk-green) 25%, #044565));
}
