/* ============================================================
   Startseite — Zusatzstyles (kh-*). Gemeinsame Bausteine in sections.css.
   ============================================================ */

/* ---------- Hero: Foto mit schwebenden Karten ---------- */
.kh-hero-grid { align-items: center; }
.kh-hero-visual { position: relative; padding: 2.2rem 0 2.6rem; }
.kh-hero-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 5.4; }
.kh-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; display: block; }
.kh-hero-name { position: absolute; right: 14px; bottom: 14px; font-size: .78rem; font-weight: 600; color: #fff; background: rgba(10, 12, 30, .6); padding: .3rem .7rem; border-radius: 8px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.kh-float { position: absolute; z-index: 2; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: .8rem; }
.kh-float-ki { top: 58%; left: -2.6rem; display: flex; flex-direction: column; gap: .55rem; }
.kh-float-label { font-size: .72rem; font-weight: 700; color: var(--text-faint); letter-spacing: .04em; }
.kh-float-web { right: -2.2rem; top: 40%; width: 210px; padding: .35rem; }
.kh-result-job div { display: flex; flex-direction: column; line-height: 1.3; }
.kh-result-job b { font-size: .9rem; color: var(--text); }
.kh-result-job span { font-size: .78rem; color: var(--text-muted); }
.kh-notif-ico { width: 36px; height: 36px; border-radius: 10px; flex: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M19 8v6M22 11h-6'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (max-width: 1100px) { .kh-float-ki { left: -.8rem; } .kh-float-web { right: -.6rem; } }
@media (max-width: 900px) {
  .kh-hero-visual { padding: 0 0 2.6rem; max-width: 520px; }
  .kh-hero-name { display: none; }
  .kh-hero-photo { aspect-ratio: 16 / 12; }
  .kh-float-ki { top: auto; bottom: 0; left: .6rem; }
  .kh-float-web { top: auto; bottom: 0; right: .6rem; width: 170px; }
}
@media (max-width: 560px) { .kh-float-web { display: none; } }

/* ---------- Leistungen: 4 Karten mit Grafik (Desktop 2 x 2, mobil untereinander) ---------- */
.kh-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.kh-service { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.kh-service-visual { background: var(--surface); min-height: 300px; padding: 1.6rem; display: flex; align-items: center; justify-content: center; gap: 1rem; border-bottom: 1px solid var(--border); }
.kh-sv-ki { flex-direction: column; }
.kh-sv-ki .kx-bubble { align-self: flex-end; margin-right: 8%; }
.kh-sv-ki .kx-reco { align-self: flex-start; margin-left: 8%; }
.kh-sv-ki .kx-systems { margin-top: .4rem; justify-content: center; }
.kh-service-copy { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.kh-service-copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-top: .4rem; }
.kh-service-copy > p { color: var(--text-muted); margin-top: .6rem; }
.kh-gets { margin: 1.2rem 0 1.6rem; gap: .55rem; }
.kh-gets li { font-size: .95rem; }
.kh-service-copy > .btn { margin-top: auto; align-self: flex-start; }
/* Zwei Buttons nebeneinander, bei wenig Platz untereinander */
.kh-service-btns { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem; }

.kh-mini-ad { width: 170px; background: #fff; color: #0d0d0d; border-radius: 14px; padding: .55rem; box-shadow: var(--shadow); transform: rotate(-3deg); }
.kh-mini-ad-head { display: flex; gap: .4rem; align-items: center; margin-bottom: .45rem; }
.kh-mini-ad-head span { width: 22px; height: 22px; border-radius: 50%; background: #e4e6eb; }
.kh-mini-ad-head div { display: flex; flex-direction: column; line-height: 1.15; }
.kh-mini-ad-head b { font-size: .68rem; }
.kh-mini-ad-head em { font-style: normal; font-size: .58rem; color: #777; }
.kh-mini-ad img { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; object-position: 60% 35%; border-radius: 8px; display: block; }
.kh-mini-ad-cta { display: block; text-align: center; font-size: .7rem; color: #1570ef; padding: .45rem 0 .15rem; }
.kh-mini-form { width: 160px; background: #fff; color: #0d0d0d; border-radius: 14px; padding: .8rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .4rem; transform: rotate(2.5deg) translateY(18px); }
.kh-mini-form b { font-size: .78rem; }
.kh-mini-form span { font-size: .66rem; color: #888; border: 1px solid #e3e5ea; border-radius: 8px; padding: .4rem .5rem; }
.kh-mini-form em { font-style: normal; text-align: center; font-size: .68rem; font-weight: 700; color: #fff; background: #1570ef; border-radius: 999px; padding: .45rem 0; }
@media (max-width: 860px) { .kh-services { grid-template-columns: 1fr; } }

/* ---------- Ergebnisse ---------- */
.kh-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.kh-result-top { display: flex; flex-direction: column; gap: .5rem; }
.kh-result-top b { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.kh-result-top span { color: var(--text); font-size: 1.02rem; line-height: 1.45; max-width: 40ch; }
.kh-result-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 1.4rem 0 1rem; }
.kh-result-pills span { display: flex; flex-direction: column; align-items: center; gap: .4rem; background: var(--surface); border-radius: var(--radius); padding: .8rem .4rem; }
.kh-result-pills em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--text); }
.kh-result-pills i, .kh-result-job i { font-style: normal; }
.kh-result-job { display: flex; align-items: center; gap: .8rem; background: var(--surface); border-radius: var(--radius); padding: 1rem; margin: 1.4rem 0 1rem; }
.kh-result-job i { margin-left: auto; }
.kh-link { margin-top: auto; padding-top: .8rem; font-weight: 600; color: var(--accent); }
.kh-link:hover { color: var(--accent-hover); }
@media (max-width: 860px) { .kh-results { grid-template-columns: 1fr; } }

/* ---------- Kontakt: Formular neben den Kontaktdaten ---------- */
.kh-contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-direction: column; gap: 1rem; }
.kh-contact-list li { display: flex; flex-direction: column; font-size: 1rem; color: var(--text); }
.kh-contact-list span { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.kh-contact-list a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
.kh-contact-list a:hover { color: var(--accent); text-decoration: underline; }
.kh-contact-check { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.kh-checks { border: 0; padding: 0; margin: 0 0 1.3rem; min-width: 0; }
.kh-checks legend { font-size: .9rem; font-weight: 600; padding: 0; margin-bottom: .6rem; }
.kh-opt { font-weight: 500; color: var(--text-muted); }
.kh-check-grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.kh-check { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .9rem .5rem .7rem; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-elev); color: var(--text); font-size: .95rem; font-weight: 500; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.kh-check:hover { border-color: var(--accent); }
.kh-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.kh-check input { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 0; flex: none; display: grid; place-items: center; border: 1.5px solid var(--text-faint); border-radius: 6px; background: var(--bg-elev); cursor: pointer; }
.kh-check input:checked { background: var(--accent); border-color: var(--accent); }
.kh-check input:checked::after { content: ""; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: translate(0, -1px) rotate(45deg); }
.kh-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Browserfenster (Websites-Karte, Hero) ---------- */
.kh-sv-web .kh-browser { width: min(100%, 340px); }
.kh-browser { background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.kh-browser img { display: block; width: 100%; height: auto; }
.kh-browser-bar { display: flex; align-items: center; gap: .6rem; padding: .45rem .65rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.kh-dots { display: flex; gap: .3rem; flex: none; }
.kh-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.kh-url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; line-height: 1; color: var(--text-muted); background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: .3rem .7rem; }
.kh-browser-mini { border-radius: 12px; box-shadow: none; }
.kh-browser-mini .kh-browser-bar { padding: .3rem .5rem; }
.kh-browser-mini .kh-dots i { width: 5px; height: 5px; }

/* ---------- Monatsplan (Marketingbetreuung-Karte) ---------- */
.kh-plan { width: min(100%, 300px); background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.kh-plan-head { display: flex; justify-content: space-between; align-items: baseline; }
.kh-plan-head b { font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }
.kh-plan-head span { font-size: .78rem; color: var(--text-muted); }
.kh-plan-dots { list-style: none; padding: 0; margin: 0 0 .2rem; display: flex; gap: .55rem; }
.kh-plan-dots li { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); }
.kh-plan-dots li::after { content: ""; position: absolute; left: 10px; top: 6px; width: 6px; height: 12px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.kh-plan-task { display: flex; align-items: center; gap: .6rem; background: var(--surface); border-radius: 10px; padding: .55rem .65rem; }
.kh-plan-task b { font-size: .84rem; color: var(--text); flex: 1 1 auto; min-width: 0; }
.kh-plan-task .kx-pill { flex: none; font-style: normal; }
/* Heller Modus: dunkleres Grün, damit der kleine Text 4,5:1 auf der Pille erreicht (Standard der Pille liegt bei 4,0:1) */
.kh-plan-task .kx-pill.ok { color: #116329; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kh-plan-task .kx-pill.ok { color: #4ade80; } }
:root[data-theme="dark"] .kh-plan-task .kx-pill.ok { color: #4ade80; }
.kh-plan-ico { width: 26px; height: 26px; border-radius: 7px; flex: none; background-color: var(--accent-soft); background-repeat: no-repeat; background-position: center; background-size: 15px; }
.kh-plan-ico-page { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231570ef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
.kh-plan-ico-ad { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231570ef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11v3a1 1 0 0 0 1 1h3l6 4V7L7 10H4a1 1 0 0 0-1 1z'/%3E%3Cpath d='M17 9a4 4 0 0 1 0 6'/%3E%3C/svg%3E"); }

.kh-result-top .kh-result-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.kh-result-top h3 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.2; }
.kh-result-top > span:not(.kh-result-kicker) { color: var(--text-muted); }
.kh-h1 { font-size: clamp(2.2rem, 4.1vw, 3.4rem); }
.kh-h1 span { display: block; }
.kh-h1 span + span { color: var(--accent); }
