/*
Theme Name: VKP Clean
Theme URI: https://immobilien-verkaeuferportal.at/
Author: MAWOGE
Description: Schlankes, Divi-freies Theme fuer das Immobilien-Verkaeuferportal. Gibt das bestehende .kp-Design (design-system.css) ueber natives WordPress aus. Header via MegaMenu, Footer-Menues, kein Page-Builder.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: vkp-clean
*/

/* ============ Reset / Basis ============ */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--ds-font-text,'Inter',system-ui,sans-serif);color:var(--ds-ink,#33474f);background:#fff;-webkit-font-smoothing:antialiased;line-height:1.65}
img{max-width:100%;height:auto;display:block}
a{color:var(--ds-brand-600,#0b8fab);text-decoration:none}
main{display:block}

/* ============ Header ============ */
.site-header{position:sticky;top:0;z-index:9999;background:#fff;
  box-shadow:0 1px 0 rgba(10,61,77,.08),0 8px 28px -20px rgba(10,61,77,.35)}
.site-header .bar{max-width:1280px;margin:0 auto;padding:0 24px;min-height:96px;
  display:flex;align-items:center;gap:1rem}
.site-header .logo img{height:70px;width:auto}
@media(max-width:980px){.site-header .bar{min-height:78px}.site-header .logo img{height:56px}}
.bh-nav{margin-left:auto;display:flex;align-items:center;gap:.1rem}
.bh-item{position:relative}
.bh-item.has-mega{position:static}
.bh-item>a{display:flex;align-items:center;gap:.34rem;padding:.6rem .72rem;border-radius:10px;
  color:#0c2b34;font-weight:600;font-size:14.5px;line-height:1;white-space:nowrap;cursor:pointer;transition:.15s}
.bh-item>a:hover,.bh-item:hover>a{background:var(--ds-brand-50,#ecfafd);color:var(--ds-brand-600,#0b8fab)}
.bh-item>a .car{width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);opacity:.55;display:inline-block}
.bh-search{font-size:1.15rem;line-height:1}

/* Dropdown */
.bh-drop{position:absolute;top:calc(100% + 2px);left:0;min-width:240px;background:#fff;
  border:1px solid var(--ds-line,#e4ebee);border-radius:14px;box-shadow:0 26px 60px -22px rgba(10,61,77,.45);
  padding:8px;opacity:0;visibility:hidden;transform:translateY(8px);transition:.18s;z-index:60}
.bh-item:hover .bh-drop{opacity:1;visibility:visible;transform:translateY(0)}
.bh-drop a{display:block;padding:.58rem .8rem;border-radius:9px;font-weight:500;font-size:14.5px;
  color:var(--ds-ink,#33474f);white-space:nowrap}
.bh-drop a:hover{background:var(--ds-brand-50,#ecfafd);color:var(--ds-brand-600,#0b8fab)}

/* Mega */
.bh-mega{position:absolute;top:100%;left:0;right:0;background:#fff;border-top:1px solid #eef4f6;
  box-shadow:0 30px 60px -26px rgba(10,61,77,.45);opacity:0;visibility:hidden;transform:translateY(8px);
  transition:.2s;z-index:60}
.bh-item.has-mega:hover .bh-mega{opacity:1;visibility:visible;transform:translateY(0)}
.bh-mega .mwrap{max-width:1280px;margin:0 auto;padding:26px 24px 30px;display:grid;
  grid-template-columns:repeat(3,1fr);gap:1.6rem}
.bh-col .bh-dh{font-family:var(--ds-font-text,'Inter',sans-serif);font-weight:700;font-size:12px;
  letter-spacing:.07em;text-transform:uppercase;color:var(--ds-brand-600,#0b8fab);margin-bottom:.5rem}
.bh-col .bh-dh a{color:inherit;padding:0;margin:0;font:inherit;font-size:inherit;font-weight:inherit;
  letter-spacing:inherit;text-transform:inherit;display:inline;text-decoration:none}
.bh-col a{display:block;padding:.5rem .6rem;border-radius:9px;font-weight:500;font-size:14px;color:var(--ds-ink,#33474f)}
.bh-col a:hover{background:var(--ds-brand-50,#ecfafd);color:var(--ds-brand-600,#0b8fab)}

.cta{flex:0 0 auto;background:var(--ds-accent,#16c79a);color:#04241c;font-weight:700;
  padding:.74rem 1.35rem;border-radius:999px;font-size:14.5px;line-height:1;margin-left:.5rem;
  box-shadow:0 9px 22px -8px rgba(22,199,154,.6);transition:.18s;white-space:nowrap}
.cta:hover{background:var(--ds-accent-dark,#0fa982);transform:translateY(-2px)}
.menu-toggle{display:none;margin-left:auto;background:none;border:0;font-size:1.6rem;cursor:pointer;color:#0c2b34}

@media(max-width:980px){
  .menu-toggle{display:block}
  .bh-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;flex-direction:column;
    align-items:stretch;gap:0;padding:.5rem 16px 1rem;box-shadow:0 20px 40px -20px rgba(10,61,77,.4);
    max-height:82vh;overflow-y:auto}
  .bh-nav.open{display:flex}
  .bh-item{position:static}
  .bh-item>a{justify-content:space-between;font-size:1rem;padding:.7rem .4rem}
  /* Dropdowns/Mega auf Mobile statisch ausgeklappt */
  .bh-drop,.bh-mega{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;
    border:0;border-top:0;padding:0 0 .4rem 1rem;min-width:0;background:transparent}
  .bh-mega .mwrap{display:block;padding:0}
  .bh-col{margin:.4rem 0}
  .cta{margin:.7rem 0 0;text-align:center}
}

/* ============ Footer ============ */
.site-footer{background:var(--ds-brand-900,#062a36);color:#9fc0ca;padding:4.5rem 0 1.5rem;
  font-family:var(--ds-font-text,'Inter',sans-serif);font-size:.93rem}
.site-footer .inner{max-width:1180px;margin:0 auto;padding:0 24px}
.site-footer .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2rem;
  padding-bottom:2rem;border-bottom:1px solid rgba(255,255,255,.1)}
.site-footer h4{color:#fff;font-size:.85rem;text-transform:uppercase;letter-spacing:.06em;margin:0 0 1rem}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer a{color:#9fc0ca;display:block;padding:.28rem 0}
.site-footer a:hover{color:#fff}
.site-footer .brand img{height:58px;margin-bottom:1.1rem;filter:brightness(0) invert(1);opacity:.92}
.site-footer .bottom{display:flex;justify-content:space-between;align-items:center;padding-top:1.4rem;flex-wrap:wrap;gap:1rem 1.6rem;color:#6f97a3}
.site-footer .bottom .hint{font-size:.74rem;line-height:1.45;max-width:280px;opacity:.85}
@media(max-width:780px){.site-footer .cols{grid-template-columns:1fr 1fr}}

/* ============ Helfer: 4er-Kartenreihe (Home-Services) ============ */
.kp-feats.cols4{grid-template-columns:repeat(4,1fr)}
@media(max-width:1024px){.kp-feats.cols4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.kp-feats.cols4{grid-template-columns:1fr}}

/* Genau 4 Elemente in 3-spaltigen Rastern -> 2x2 statt 3+1 (kein einsames Element).
   cols4 (z.B. Home-Services) ist bewusst 4-in-Reihe und ausgenommen. */
.kp-tcards:has(> :last-child:nth-child(4)),
.kp-feats:not(.cols4):has(> :last-child:nth-child(4)),
.kp-grid:has(> :last-child:nth-child(4)){grid-template-columns:repeat(2,1fr)}

/* ============ Bewertungen (Site Reviews) ============ */
.vkp-rating-top{padding-top:1.3rem;padding-bottom:0}
.vkp-rating-top .kp-inner{display:flex;justify-content:center;text-align:center}
.vkp-rating-top .glsr{--glsr-star-empty-color:#d9e2e6;--glsr-star-full-color:#e9b949;font-family:var(--ds-font-text,'Inter',sans-serif)}
.vkp-rating-form{padding-top:2.6rem}
.vkp-rating-form .glsr{--glsr-star-empty-color:#d9e2e6;--glsr-star-full-color:#e9b949}
.vkp-rating-form .glsr-button,.vkp-rating-form button[type=submit]{background:var(--ds-accent,#16c79a)!important;
  color:#04241c!important;border:0!important;border-radius:999px!important;font-weight:700!important;padding:.8em 1.7em!important;cursor:pointer}
.vkp-rating-form input,.vkp-rating-form textarea,.vkp-rating-form select{border:1px solid var(--ds-line,#e4ebee)!important;border-radius:10px!important}

/* ============ Newsfeed / Ratgeber-Uebersicht ============ */
.newsfeed-cats{margin-bottom:2.6rem}
.newsfeed-cats a.active{background:var(--ds-brand-500,#0bb9d9);color:#fff;border-color:var(--ds-brand-500,#0bb9d9)}
.newsfeed-cats a.active b{color:#fff}
.nf-cat{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  color:var(--ds-brand-600,#0b8fab);background:var(--ds-brand-50,#ecfafd);padding:.25rem .65rem;
  border-radius:999px;margin-bottom:.6rem}
.newsfeed-grid .kp-feat .b{display:flex;flex-direction:column;align-items:flex-start}
/* Pagination */
.pagination{margin-top:2.6rem;display:flex;justify-content:center}
.pagination .nav-links{display:flex;gap:.5rem;flex-wrap:wrap}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;
  padding:0 .6rem;border:1px solid var(--ds-line,#e4ebee);border-radius:10px;font-weight:600;
  color:var(--ds-brand-700,#0e5468);text-decoration:none;transition:.15s}
.pagination .page-numbers:hover{border-color:var(--ds-brand-400,#3fcce6);background:var(--ds-brand-50,#ecfafd)}
.pagination .page-numbers.current{background:var(--ds-brand-500,#0bb9d9);color:#fff;border-color:var(--ds-brand-500,#0bb9d9)}

/* ============ Artikel-Bild (Banner im Fliesstext) ============ */
.kp-figure{display:block;width:100%;max-height:440px;object-fit:cover;border-radius:18px;
  box-shadow:0 24px 60px -28px rgba(10,61,77,.45);margin:1.6rem 0 .6rem}

/* Bild in einer kp-split2-Spalte (Querformat, natuerlich – NICHT als Hochkant-Portrait) */
.kp-splitimg{align-self:start}
.kp-splitimg img{display:block;width:100%;height:auto;border-radius:16px;
  box-shadow:0 18px 44px -24px rgba(10,61,77,.4)}

/* Defensiv: einfacher kp-hero, falls Innen-Container/Lead vom Standard abweichen (Lesbarkeit) */
.kp-hero .kp-inner{position:relative;z-index:2;max-width:880px;margin:0 auto;text-align:center;color:#fff}
.kp-hero .kp-inner h1{color:#fff!important}
.kp-hero .kp-inner .kp-lead,.kp-hero .kp-sub{color:#dcedf2}

/* Defensiv: vereinzelte Helfer-Klassen aus dem Content sinnvoll abfangen */
.kp-formcard{background:#fff;border:1px solid var(--ds-line,#e4ebee);border-radius:16px;
  padding:1.6rem 1.8rem;box-shadow:0 14px 40px -24px rgba(10,61,77,.3)}
/* Tabellen im Content einheitlich gestalten */
.kp-wrap table{width:100%;border-collapse:collapse;margin:1.4rem 0;font-size:.97rem;
  border:1px solid var(--ds-line,#e4ebee);border-radius:12px;overflow:hidden}
.kp-wrap thead th{background:var(--ds-brand-50,#ecfafd);color:var(--ds-brand-900,#062a36);
  text-align:left;padding:.7rem .9rem;font-weight:700}
.kp-wrap td,.kp-wrap th{padding:.7rem .9rem;border-top:1px solid var(--ds-line,#e4ebee);vertical-align:top}
.kp-wrap tbody tr:hover td{background:var(--ds-surface-2,#f5f9fb)}

/* ============ Verwandte Beitraege (Artikel-Footer) ============ */
a.kp-feat{text-decoration:none;color:inherit;transition:transform .2s ease,box-shadow .2s ease}
a.kp-feat:hover{transform:translateY(-4px);box-shadow:0 22px 48px -24px rgba(10,61,77,.45)}
a.kp-feat .b h4{color:var(--ds-brand-900,#062a36)}
.article-back{display:inline-block;font-weight:700;color:var(--ds-brand-600,#0b8fab);
  border-bottom:2px solid var(--ds-brand-400,#3fcce6);padding-bottom:2px;transition:.15s}
.article-back:hover{color:var(--ds-brand-500,#0bb9d9);border-color:var(--ds-brand-500,#0bb9d9)}

/* ============ Autoren-Box ============ */
.author-box{display:flex;gap:1.6rem;align-items:center;background:#fff;border:1px solid var(--ds-line,#e4ebee);
  border-radius:18px;padding:1.6rem 1.8rem;box-shadow:0 14px 40px -24px rgba(10,61,77,.3)}
.author-photo{flex:0 0 auto}
.author-photo img{width:104px;height:104px;border-radius:50%;object-fit:cover;object-position:center top;
  border:3px solid var(--ds-brand-50,#ecfafd)}
.author-kicker{font-family:var(--ds-font-text,'Inter',sans-serif);font-weight:700;font-size:.72rem;
  letter-spacing:.12em;text-transform:uppercase;color:var(--ds-brand-600,#0b8fab)}
.author-main h3{font-family:var(--ds-font-display,'Sen',sans-serif);font-weight:800;font-size:1.3rem;
  margin:.15rem 0 .5rem;color:var(--ds-brand-900,#062a36)}
.author-bio{color:var(--ds-ink-soft,#5d717a);font-size:.97rem;line-height:1.6;margin:0 0 .7rem}
.author-more{margin-top:1.6rem}
.author-more h4{font-family:var(--ds-font-display,'Sen',sans-serif);font-weight:800;font-size:1.05rem;
  color:var(--ds-brand-900,#062a36);margin:0 0 1rem}
.author-more-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.author-more-item{display:flex;gap:.8rem;align-items:center;background:#fff;border:1px solid var(--ds-line,#e4ebee);
  border-radius:12px;padding:.7rem .8rem;text-decoration:none;transition:.18s}
.author-more-item:hover{border-color:var(--ds-brand-400,#3fcce6);transform:translateY(-2px);
  box-shadow:0 14px 30px -20px rgba(10,61,77,.4)}
.author-more-item img{width:52px;height:52px;border-radius:8px;object-fit:cover;flex:0 0 auto}
.author-more-item span{font-weight:600;font-size:.9rem;line-height:1.3;color:var(--ds-brand-900,#062a36)}
@media(max-width:760px){.author-box{flex-direction:column;text-align:center}
  .author-more-grid{grid-template-columns:1fr}.author-more-item{text-align:left}}
