/* =============================
   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;
}

[id^="plzForm-"] {
  display: flex;
  justify-content: flex-start;
  margin-top: 2rem;
  gap: 1rem;
}

[id^="result-"] {
  margin-top: 1rem;
  min-height: 50px;
  padding: 1rem;
}

[id^="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;
  border-radius: 50px;
}

.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
   ============================= */
[id^="bwMap-"] {
  width: 100%;
  height: auto;
  min-height: 600px;
}

[id^="bwMap-"] text,
[id^="bwMap-"] tspan {
  pointer-events: none;
}

[id^="bwMap-"] path {
  transition: transform 0.6s ease, opacity 0.6s ease, fill 0.5s ease;
  transform-origin: center;
  opacity: 0;
  transform: translateY(100px);
}

[id^="bwMap-"] path:hover ,[id^="bwMap-"] a.chamber:focus path{
  fill: #d1e3f7;
  cursor: pointer;
}

[id^="bwMap-"] path.highlight {
  fill: var(--dark-blue);
  animation: pulseGlow 1.5s ease-in-out infinite;
}

[id^="bwMap-"] text {
  pointer-events: none;
}

[id^="bwMap-"] a.chamber:focus, [id^="bwMap-"] a.chamber:focus-visible{
  outline:0;
  border:0;
}

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

/* =============================
   Kontaktliste
   ============================= */
.contact {
  padding: 1rem 0;
}

[id^="result-"]  .contacts {
  margin-top: 0.5rem;
}

[id^="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) {
  [id^="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,
  [id^="result-"] ,
  .form-hwk-container > * {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }

  [id^="plzForm-"] .plz-form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
  }

  [id^="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) {
  [id^="plzInput-"]  { flex-basis: 40%; }
  [id^="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 [id^="plzInput-"] {
  border-color: var(--hwk-green-dark);
  color: var(--hwk-blue-dark);
  background: #fff;
}
.bw-kammer-block--handwerkrolle .btn.btn-hwk{
  background-color: var(--hwk-green-dark)!important;
}
.bw-kammer-block--handwerkrolle .btn.btn-hwk:hover{
  background-color: var(--hwk-green-lite)!important;
}

.bw-kammer-block--handwerkrolle [id^="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 [id^="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 [id^="bwMap-"] path:hover,.bw-kammer-block--handwerkrolle [id^="bwMap-"] a.chamber:focus path {
  fill: var(--hwk-green-lite);
  cursor: pointer;
}

/* Pulsierende Animation bleibt */
.bw-kammer-block--handwerkrolle [id^="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 [id^="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));
}

.advisor-groups {
  margin-top: 1rem;
}

.advisor-group {
  padding: 1rem 0;
}

.advisor-group h4 {
  margin-bottom: 0.75rem;
  color: black;
}

.advisor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.advisor-contact {
  flex: 0 0 calc((100% - 1.5rem) / 2);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.advisor-contact__media {
  flex: 0 0 90px;
}

.advisor-contact__image,
.advisor-contact__placeholder {
  width: 90px;
  height: 140px;
  display: block;
  border-radius: 25px;
  object-fit: cover;
}

.advisor-contact__placeholder {
  background: #e5e5e5;
}

.advisor-contact__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.advisor-contact__name {
  font-weight: 700;
}

.advisor-contact__landkreis {
  font-size: 0.95rem;
  color: #666;
}

.advisor-list li {
  padding: 0.35rem 0;
}

.advisor-btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 50px;
  background-color: #3F8FE6;
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.advisor-btn:hover {
  background-color: #F3F6FA !important;
  color: #073070 !important;
}

.bw-kammer-block--handwerkrolle .advisor-group {
  border-color: color-mix(in oklab, var(--hwk-green) 35%, white);
}

.advisor-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.advisor-person {
  margin: 0;
}

.advisor-person__image,
.advisor-person__placeholder {
  width: 90px;
  height: 140px;
  border-radius: 25px;
  display: block;
  object-fit: cover;
  background: #e9e9e9;
}

.advisor-group h4 {
  margin: 0 0 0.5rem 0;
}

.advisor-group hr {
  border: 1px solid #b0cff1;
}

.advisor-group p {
  margin: 0 0 1rem 0;
}

.advisor-btn {
  margin-top: 0.5rem;
}

/* test*/
.plz-selection {
  margin-top: 2rem;
}

.plz-selection__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.plz-selection__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 110px;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #5fa2ee 0%, #4b8fdf 100%);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(59, 115, 189, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.plz-selection__item:hover,
.plz-selection__item:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 10px 24px rgba(59, 115, 189, 0.24);
  outline: none;
}

.plz-selection__main {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.plz-selection__main strong {
  font-weight: 800;
}

.plz-selection__meta {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 991px) {
  .plz-selection__list {
    grid-template-columns: 1fr;
  }

  .plz-selection__item {
    min-height: 96px;
    border-radius: 28px;
  }
}