/* HausKaufenPolen Content AI 1.0.6 — premium layout aligned to the main HKP visual identity */
.hkp-ai-article,.hkp-ai-related,.hkp-ai-hub{
  --hkp-ink:#111111;--hkp-text:#4b5563;--hkp-muted:#6b7280;--hkp-green:#9dbb08;--hkp-green-dark:#829d06;
  --hkp-soft:#f7f8f5;--hkp-line:rgba(15,23,42,.09);--hkp-shadow:0 12px 28px rgba(0,0,0,.05);
  font-family:inherit!important;box-sizing:border-box
}
.hkp-ai-article *,.hkp-ai-related *,.hkp-ai-hub *{box-sizing:border-box}
.hkp-ai-article{max-width:1120px;margin:0 auto;padding:12px 0 20px;font-size:17px;line-height:1.8;color:var(--hkp-text)}
.hkp-ai-article p{margin:0 0 18px;color:var(--hkp-text);font-family:inherit!important;font-weight:400}
.hkp-ai-article h2,.hkp-ai-article h3,.hkp-ai-related h2,.hkp-ai-related h3{font-family:inherit!important;color:var(--hkp-ink)!important;letter-spacing:-.02em}
.hkp-ai-article h2{margin:0 0 17px;font-size:30px;line-height:1.2;font-weight:800!important}
.hkp-ai-article h2:after{content:"";display:block;width:58px;height:4px;margin-top:12px;border-radius:999px;background:var(--hkp-green)}
.hkp-ai-article h3{margin:28px 0 11px;font-size:22px;line-height:1.3;font-weight:800!important}
.hkp-ai-article strong{color:var(--hkp-ink);font-weight:800}
.hkp-ai-article a{color:var(--hkp-ink);text-underline-offset:3px}
.hkp-ai-article ul,.hkp-ai-article ol{margin:12px 0 20px;padding-left:24px}
.hkp-ai-article li{margin:9px 0;padding-left:4px}.hkp-ai-article li::marker{color:var(--hkp-green-dark);font-weight:800}

.hkp-ai-intro{position:relative;overflow:hidden;margin:12px 0 30px;padding:36px 38px 34px;background:linear-gradient(145deg,#fff 0%,#fbfcfa 72%,#f4f7e9 100%);border:1px solid var(--hkp-line);border-radius:28px;box-shadow:var(--hkp-shadow)}
.hkp-ai-intro:before{content:"HAUSKAUFENPOLEN RATGEBER";display:inline-flex;align-items:center;min-height:30px;margin:0 0 18px;padding:7px 14px;border-radius:999px;background:var(--hkp-green);color:#fff;font-size:11px;font-weight:900;letter-spacing:.075em;text-transform:uppercase}
.hkp-ai-intro:after{content:"";position:absolute;right:-70px;top:-105px;width:240px;height:240px;border:1px solid rgba(157,187,8,.25);border-radius:50%;pointer-events:none}
.hkp-ai-intro p{position:relative;z-index:1;max-width:920px}.hkp-ai-intro p:first-of-type{font-size:20px;line-height:1.72;color:#252b32;font-weight:500}.hkp-ai-intro p:last-child{margin-bottom:0}

.hkp-ai-summary{margin:0 0 30px;padding:28px 30px;border-radius:24px;background:linear-gradient(180deg,#fbfdf4 0%,#f4f8e5 100%);border:1px solid rgba(157,187,8,.28);box-shadow:0 12px 28px rgba(0,0,0,.035)}
.hkp-ai-summary h2{font-size:24px;margin-bottom:14px}.hkp-ai-summary ul{margin-bottom:0}
.hkp-ai-section{margin:0 0 24px;padding:34px;background:#fff;border:1px solid var(--hkp-line);border-radius:26px;box-shadow:var(--hkp-shadow)}
.hkp-ai-section:hover{border-color:rgba(157,187,8,.30)}.hkp-ai-section p:last-child,.hkp-ai-section ul:last-child,.hkp-ai-section ol:last-child{margin-bottom:0}
.hkp-ai-section ul,.hkp-ai-section ol{padding:18px 22px 18px 42px;background:#f8f9f7;border:1px solid rgba(15,23,42,.07);border-radius:18px}
.hkp-ai-callout{margin:28px 0;padding:25px 28px 24px 32px;background:#fafced;border:1px solid rgba(157,187,8,.30);border-left:5px solid var(--hkp-green);border-radius:20px;box-shadow:0 10px 24px rgba(0,0,0,.035)}
.hkp-ai-callout>strong{display:block;margin:0 0 7px;font-size:19px}.hkp-ai-callout p:last-child{margin-bottom:0}
.hkp-ai-checklist{position:relative;overflow:hidden;margin:30px 0;padding:34px;background:#111;border:1px solid #111;border-radius:26px;box-shadow:0 18px 38px rgba(0,0,0,.13)}
.hkp-ai-checklist:after{content:"";position:absolute;right:-80px;top:-100px;width:260px;height:260px;border:1px solid rgba(157,187,8,.28);border-radius:50%}
.hkp-ai-checklist h2,.hkp-ai-checklist h3,.hkp-ai-checklist strong{position:relative;z-index:1;color:#fff!important}.hkp-ai-checklist h2:after{background:var(--hkp-green)}
.hkp-ai-checklist p,.hkp-ai-checklist li{position:relative;z-index:1;color:#eceff1}.hkp-ai-checklist ul,.hkp-ai-checklist ol{position:relative;z-index:1;background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.10);border-radius:18px;padding:18px 22px 18px 42px}.hkp-ai-checklist li::marker{color:var(--hkp-green)}
.hkp-ai-conclusion{margin:30px 0 10px;padding:31px 34px;border-radius:24px;background:linear-gradient(180deg,#fbfdf4 0%,#f3f7e2 100%);border:1px solid rgba(157,187,8,.26);box-shadow:0 12px 28px rgba(0,0,0,.035)}.hkp-ai-conclusion p:last-child{margin-bottom:0}

/* Related offers — deliberately mirrors the card language used on the HKP home/property listing */
.hkp-ai-related{max-width:1280px;margin:52px auto 28px;padding:34px 0 4px;border-top:1px solid var(--hkp-line)}
.hkp-ai-related-head{margin:0 0 24px}.hkp-ai-related-kicker{display:inline-flex;margin:0 0 11px;padding:7px 12px;border-radius:999px;background:var(--hkp-green);color:#fff;font-size:11px;font-weight:900;letter-spacing:.065em;text-transform:uppercase}
.hkp-ai-related-head h2{margin:0 0 8px!important;font-size:30px!important;line-height:1.18!important;font-weight:800!important}.hkp-ai-related-head h2:after{display:none!important}.hkp-ai-related-head p{margin:0;color:var(--hkp-muted);font-size:16px;line-height:1.65}
.hkp-ai-property-grid{display:grid;grid-template-columns:1fr;gap:22px}
.hkp-ai-property-card{position:relative;display:grid;grid-template-columns:minmax(250px,270px) minmax(0,1fr);min-height:260px;overflow:hidden;background:#fff;border:1px solid rgba(15,23,42,.09);border-radius:28px;box-shadow:0 12px 28px rgba(0,0,0,.05);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.hkp-ai-property-card.is-top{border:2px solid var(--hkp-green)}.hkp-ai-property-card:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(0,0,0,.085);border-color:rgba(157,187,8,.70)}
.hkp-ai-property-image{display:block;overflow:hidden;background:#f3f4f6;min-height:100%}.hkp-ai-property-image img{display:block!important;width:100%!important;height:100%!important;min-height:260px!important;max-width:none!important;object-fit:cover!important;transition:transform .35s ease}.hkp-ai-property-card:hover .hkp-ai-property-image img{transform:scale(1.025)}
.hkp-ai-property-body{position:relative;padding:29px 170px 27px 32px;min-width:0}.hkp-ai-property-body h3{margin:0 0 13px!important;font-size:28px!important;line-height:1.22!important;font-weight:800!important;color:#111!important;max-width:850px}.hkp-ai-property-body h3 a,.hkp-ai-property-body h3 a:visited{color:#111!important;text-decoration:none!important;border:0!important;box-shadow:none!important}.hkp-ai-property-body h3 a:hover{color:#111!important;text-decoration:none!important}
.hkp-ai-property-price{position:absolute;top:26px;right:28px;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 19px;border-radius:999px;background:#111;color:#fff;font-size:16px;font-weight:800;white-space:nowrap;line-height:1}
.hkp-ai-property-top{display:inline-flex;align-items:center;justify-content:center;margin:0 0 13px;padding:8px 14px;border-radius:999px;background:var(--hkp-green);color:#fff;font-size:12px;font-weight:900;letter-spacing:.03em;line-height:1}
.hkp-ai-property-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 21px;margin:0 0 15px}.hkp-ai-property-meta-item{display:inline-flex;align-items:center;gap:8px;color:#374151;font-size:16px;font-weight:700;line-height:1.4}.hkp-ai-meta-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;color:#8b9198;font-size:22px;font-weight:400;line-height:1}
.hkp-ai-property-body p{margin:0 0 17px!important;color:#5c6674!important;font-size:16px!important;line-height:1.62!important;max-width:920px}
.hkp-ai-property-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 17px;border-radius:13px;background:#111;color:#fff!important;font-size:14px;font-weight:800;text-decoration:none!important;border:0!important;box-shadow:0 8px 18px rgba(0,0,0,.12);transition:transform .18s ease,background .18s ease}.hkp-ai-property-link:hover{background:#000;color:#fff!important;transform:translateY(-1px)}.hkp-ai-property-link span{color:var(--hkp-green);font-size:18px}

/* Article hub on Immobilien overview — same typography and accents */
.hkp-ai-hub{margin:36px 0 46px;padding:36px 0 4px}.hkp-ai-hub__head{margin:0 0 20px}.hkp-ai-hub__eyebrow{display:inline-block;margin:0 0 12px;padding:8px 14px;border-radius:999px;background:var(--hkp-green);color:#fff;font-size:11px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.hkp-ai-hub__head h2{margin:0 0 10px;font-family:inherit!important;font-size:30px;line-height:1.18;color:#111;font-weight:800}.hkp-ai-hub__head p{margin:0;max-width:800px;font-size:16px;line-height:1.75;color:#6b7280}
.hkp-ai-hub__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.hkp-ai-hub-card{overflow:hidden;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:24px;box-shadow:var(--hkp-shadow);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.hkp-ai-hub-card:hover{transform:translateY(-4px);border-color:rgba(157,187,8,.55);box-shadow:0 18px 38px rgba(0,0,0,.085)}
.hkp-ai-hub-card__image{display:block;aspect-ratio:16/10;overflow:hidden;background:#f1f5f9}.hkp-ai-hub-card__image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}.hkp-ai-hub-card:hover .hkp-ai-hub-card__image img{transform:scale(1.03)}
.hkp-ai-hub-card__body{padding:23px 23px 25px}.hkp-ai-hub-card__meta{display:inline-block;margin:0 0 10px;padding:6px 10px;border-radius:999px;background:#f2f6dc;color:#6f8400;font-size:11px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
.hkp-ai-hub-card h3{margin:0 0 11px;font-family:inherit!important;font-size:20px;line-height:1.32;color:#111;font-weight:800}.hkp-ai-hub-card h3 a,.hkp-ai-hub-card h3 a:visited{color:#111!important;text-decoration:none!important}.hkp-ai-hub-card p{margin:0 0 18px;font-size:15px;line-height:1.7;color:#64748b}.hkp-ai-hub-card__link{display:inline-flex;align-items:center;gap:8px;color:#111!important;font-weight:850;text-decoration:none!important}.hkp-ai-hub-card__link span{color:var(--hkp-green);transition:transform .18s ease}.hkp-ai-hub-card__link:hover span{transform:translateX(3px)}

@media(max-width:991px){.hkp-ai-hub__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hkp-ai-property-body{padding-right:30px}.hkp-ai-property-price{position:static;margin:0 0 13px}}
@media(max-width:767px){
 .hkp-ai-article{font-size:16px;line-height:1.75;padding-top:4px}.hkp-ai-article h2,.hkp-ai-related-head h2{font-size:25px!important}.hkp-ai-article h3{font-size:20px}
 .hkp-ai-intro,.hkp-ai-section,.hkp-ai-checklist,.hkp-ai-conclusion{padding:23px 20px;border-radius:20px}.hkp-ai-summary{padding:22px 20px;border-radius:19px}.hkp-ai-intro p:first-of-type{font-size:17px}
 .hkp-ai-related{padding-top:26px}.hkp-ai-property-card{grid-template-columns:1fr;border-radius:22px}.hkp-ai-property-image{aspect-ratio:16/10;min-height:0}.hkp-ai-property-image img{min-height:0!important;height:100%!important}.hkp-ai-property-body{padding:22px}.hkp-ai-property-body h3{font-size:22px!important}.hkp-ai-property-price{font-size:14px;min-height:40px;padding:0 15px}.hkp-ai-property-meta{gap:9px 15px}.hkp-ai-property-meta-item{font-size:14px}.hkp-ai-property-body p{font-size:15px!important}
 .hkp-ai-hub{margin-top:24px;padding-top:22px}.hkp-ai-hub__grid{grid-template-columns:1fr}.hkp-ai-hub__head h2{font-size:25px}.hkp-ai-hub-card__body{padding:20px}
}

/* 1.0.7 — robust brand cards + persistent admin-bar upload buttons */
.hkp-ai-related .hkp-ai-property-grid{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  max-width:none!important;
  gap:22px!important;
}
.hkp-ai-related .hkp-ai-property-card{
  display:flex!important;
  flex-direction:row!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:255px!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  clear:both!important;
  overflow:hidden!important;
}
.hkp-ai-related .hkp-ai-property-card > .hkp-ai-property-image{
  display:block!important;
  flex:0 0 270px!important;
  width:270px!important;
  min-width:270px!important;
  max-width:270px!important;
  min-height:255px!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
}
.hkp-ai-related .hkp-ai-property-card > .hkp-ai-property-image img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:255px!important;
  max-height:none!important;
  margin:0!important;
  object-fit:cover!important;
}
.hkp-ai-related .hkp-ai-property-card > .hkp-ai-property-body{
  display:block!important;
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:30px 180px 28px 32px!important;
  float:none!important;
  position:relative!important;
}
.hkp-ai-related .hkp-ai-property-body h3{
  display:block!important;
  width:auto!important;
  max-width:900px!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  hyphens:auto!important;
}
.hkp-ai-related .hkp-ai-property-body h3 a{
  display:inline!important;
  white-space:normal!important;
}
@media(max-width:991px){
  .hkp-ai-related .hkp-ai-property-card > .hkp-ai-property-body{padding-right:30px!important}
}
@media(max-width:767px){
  .hkp-ai-related .hkp-ai-property-card{flex-direction:column!important;min-height:0!important}
  .hkp-ai-related .hkp-ai-property-card > .hkp-ai-property-image{
    flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:0!important;aspect-ratio:16/10!important
  }
  .hkp-ai-related .hkp-ai-property-card > .hkp-ai-property-image img{height:100%!important;min-height:0!important}
  .hkp-ai-related .hkp-ai-property-card > .hkp-ai-property-body{width:100%!important;padding:22px!important}
}

/* 1.0.8 — visitor switch: horizontal cards / vertical cards side by side */
.hkp-ai-related .hkp-ai-related-head{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:22px!important;
}
.hkp-ai-related .hkp-ai-related-copy{min-width:0;flex:1 1 auto}
.hkp-ai-view-toggle{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:5px;
  padding:5px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:14px;
  background:#f5f6f3;
  box-shadow:0 6px 18px rgba(0,0,0,.035);
}
.hkp-ai-view-btn{
  appearance:none;
  border:0;
  margin:0;
  min-height:40px;
  padding:0 13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:10px;
  background:transparent;
  color:#5e6570;
  font:inherit;
  font-size:13px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.hkp-ai-view-btn:hover{color:#111;background:#fff}
.hkp-ai-view-btn.is-active{background:#111;color:#fff;box-shadow:0 5px 13px rgba(0,0,0,.13)}
.hkp-ai-view-btn:focus-visible{outline:3px solid rgba(157,187,8,.35);outline-offset:2px}
.hkp-ai-view-icon{width:19px;height:16px;display:grid;gap:3px;flex:0 0 19px}
.hkp-ai-view-icon i{display:block;background:currentColor;border-radius:2px;opacity:.95}
.hkp-ai-view-icon--horizontal{grid-template-rows:1fr 1fr}
.hkp-ai-view-icon--horizontal i{width:19px;height:6px}
.hkp-ai-view-icon--vertical{grid-template-columns:1fr 1fr}
.hkp-ai-view-icon--vertical i{width:8px;height:16px}

/* Vertical means the CARD itself is vertical, while cards sit next to each other. */
.hkp-ai-related.hkp-ai-layout-vertical .hkp-ai-property-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:22px!important;
}
.hkp-ai-related.hkp-ai-layout-vertical .hkp-ai-property-card{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  height:100%!important;
  border-radius:24px!important;
}
.hkp-ai-related.hkp-ai-layout-vertical .hkp-ai-property-card > .hkp-ai-property-image{
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:0!important;
  aspect-ratio:16/10!important;
}
.hkp-ai-related.hkp-ai-layout-vertical .hkp-ai-property-card > .hkp-ai-property-image img{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  aspect-ratio:16/10!important;
  object-fit:cover!important;
}
.hkp-ai-related.hkp-ai-layout-vertical .hkp-ai-property-card > .hkp-ai-property-body{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  width:100%!important;
  padding:25px 25px 24px!important;
}
.hkp-ai-related.hkp-ai-layout-vertical .hkp-ai-property-body h3{
  margin:0 0 12px!important;
  max-width:none!important;
  font-size:23px!important;
  line-height:1.25!important;
}
.hkp-ai-related.hkp-ai-layout-vertical .hkp-ai-property-price{
  position:static!important;
  align-self:flex-start!important;
  order:-2;
  margin:0 0 12px!important;
  min-height:39px;
  padding:0 15px;
  font-size:14px;
}
.hkp-ai-related.hkp-ai-layout-vertical .hkp-ai-property-top{align-self:flex-start}
.hkp-ai-related.hkp-ai-layout-vertical .hkp-ai-property-meta{gap:8px 14px}
.hkp-ai-related.hkp-ai-layout-vertical .hkp-ai-property-meta-item{font-size:14px}
.hkp-ai-related.hkp-ai-layout-vertical .hkp-ai-property-body p{font-size:15px!important;line-height:1.62!important}
.hkp-ai-related.hkp-ai-layout-vertical .hkp-ai-property-link{align-self:flex-start;margin-top:auto}

@media(max-width:767px){
  .hkp-ai-related .hkp-ai-related-head{align-items:flex-start!important;flex-direction:column!important}
  .hkp-ai-view-toggle{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .hkp-ai-view-btn{justify-content:center}
  .hkp-ai-related.hkp-ai-layout-vertical .hkp-ai-property-grid{grid-template-columns:1fr!important}
}
