/*
Theme Name: hi-com
Theme URI: https://www.hi-com.de
Author: Himmelsbach Computer GmbH
Author URI: https://www.hi-com.de
Description: Modernes, voll responsives Full-Site-Editing-Theme (Block-Theme) für die Himmelsbach Computer GmbH. Markengelb auf Anthrazit, persönlich und technisch kompetent – mit pflegbaren Leistungen, Referenzen, News und Kontaktformular. DSGVO-freundlich (lokale Schriften).
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hi-com
Tags: full-site-editing, block-patterns, custom-colors, custom-menu, blog, business, two-columns, wide-blocks
*/

/* =========================================================
   hi-com – Supplementäre Styles (Layout-Politur)
   theme.json liefert Farben, Typo, Spacing. Diese Datei
   ergänzt die Feinheiten, die Block-Markup allein nicht
   abdeckt (Masken, Sticky-Header, KPI-Band, Karten u.a.).
   ========================================================= */

:root {
  --hicom-yellow: #F5C800;
  --hicom-ink: #1a1a1a;
}

/* ---------- Allgemein ---------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.hicom-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--wp--preset--color--gold-text);
  margin-bottom: 10px;
}
.hicom-eyebrow.is-light { color: var(--hicom-yellow); }

/* Sichtbarer Tastatur-Fokus (Barrierefreiheit) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, .wp-block-button__link:focus-visible {
  outline: 3px solid var(--hicom-ink);
  outline-offset: 3px;
  border-radius: 3px;
}
.hicom-section-dark a:focus-visible,
.hicom-section-dark button:focus-visible { outline-color: var(--hicom-yellow); }

/* Skip-Link */
.skip-link.screen-reader-text {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
}
.skip-link.screen-reader-text:focus {
  left: 8px; background: var(--hicom-ink); color: var(--hicom-yellow);
  padding: 10px 16px; border-radius: 4px; font-weight: 600; font-size: 14px;
}

/* ---------- Utility-Bar ---------- */
.hicom-utility-bar {
  background: var(--hicom-ink);
  color: rgba(255,255,255,.7);
  font-size: 13px;
}
.hicom-utility-bar a { color: rgba(255,255,255,.7); text-decoration: none; }
.hicom-utility-bar a:hover { color: #fff; }

/* ---------- Header / Nav ---------- */
.hicom-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #ececec;
}
.hicom-header .wp-block-navigation a { font-weight: 500; }
.hicom-header .wp-block-site-logo img { height: 34px; width: auto; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-ink .wp-block-button__link {
  background: var(--hicom-ink); color: var(--hicom-yellow);
}
.wp-block-button.is-style-outline-ink .wp-block-button__link {
  background: transparent; color: var(--hicom-ink);
  border: 1.5px solid var(--hicom-ink);
}
.wp-block-button .wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- HERO (weicher Foto-Hero) ---------- */
.hicom-hero { position: relative; overflow: hidden; background: #fff; }
.hicom-hero__media {
  position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%;
}
.hicom-hero__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
          mask-image: linear-gradient(to right, transparent 0%, #000 34%);
}
.hicom-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,.12) 32%, transparent 56%);
  pointer-events: none;
}
.hicom-hero__inner { position: relative; z-index: 1; max-width: 660px; }
.hicom-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; background: var(--hicom-ink); border-radius: 3px;
  color: var(--hicom-yellow);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.hicom-tagline::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hicom-yellow);
}

/* ---------- KPI-Band (schlank) ---------- */
.hicom-kpi {
  background: var(--hicom-ink);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 18px clamp(24px, 5vw, 48px);
}
.hicom-kpi__item { display: flex; align-items: baseline; gap: 11px; }
.hicom-kpi__num { font-size: 28px; font-weight: 700; line-height: 1; color: var(--hicom-yellow); }
.hicom-kpi__label { font-size: 14px; font-weight: 500; color: #fff; }
.hicom-kpi__sep { width: 1px; height: 26px; background: rgba(255,255,255,.18); }

/* ---------- Service-Karten ---------- */
.hicom-card {
  padding: 30px 26px; border: 1px solid var(--wp--preset--color--border);
  border-radius: 6px; border-top: 3px solid var(--hicom-yellow);
  height: 100%;
}
.hicom-card__icon {
  width: 44px; height: 44px; background: #f6f6f4; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.hicom-card h3 { margin: 0 0 9px; }

/* ---------- Dunkle Sektion (KI) ---------- */
.hicom-section-dark { background: var(--hicom-ink); color: #fff; }
.hicom-section-dark :where(h1,h2,h3,p) { color: #fff; }
.hicom-feature-card {
  padding: 26px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px; height: 100%;
}
.hicom-feature-card.is-accent {
  background: rgba(245,200,0,.08); border-color: rgba(245,200,0,.25);
}
.hicom-feature-card p { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.6; }

/* ---------- Referenzen ---------- */
.hicom-testimonial {
  padding: 30px; background: #f6f6f4; border-radius: 8px;
  border-left: 3px solid var(--hicom-yellow); height: 100%;
}
.hicom-testimonial blockquote { margin: 0 0 22px; font-size: 15px; line-height: 1.7; color: #444; }
.hicom-testimonial cite { font-style: normal; }

/* ---------- News-Karten ---------- */
.hicom-news-card {
  background: #fff; border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px; overflow: hidden; height: 100%;
}
.hicom-news-card .wp-block-post-featured-image { margin: 0; }
.hicom-news-card .wp-block-post-featured-image img {
  width: 100%; height: 180px; object-fit: cover;
}

/* ---------- Fernwartung-CTA (gelb) ---------- */
.hicom-fernwartung { background: var(--hicom-yellow); }
.hicom-fernwartung .hicom-fw-icon {
  width: 64px; height: 64px; background: var(--hicom-ink); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- Über-uns Foto ---------- */
.hicom-photo-soft { position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px -22px rgba(0,0,0,.28); }
.hicom-photo-soft img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hicom-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; background: var(--hicom-yellow); border-radius: 50%; flex-shrink: 0;
}

/* ---------- Kontaktformular ---------- */
.hicom-form { display: grid; gap: 16px; max-width: 640px; }
.hicom-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hicom-form label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
.hicom-form input, .hicom-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d8d8d8; border-radius: 6px;
  font: inherit; font-size: 15px; background: #fff; color: var(--hicom-ink);
}
.hicom-form input:focus, .hicom-form textarea:focus { border-color: var(--hicom-ink); outline: none; }
.hicom-form .hicom-hp { position: absolute; left: -9999px; }
.hicom-form button {
  justify-self: start; padding: 15px 30px; min-height: 44px;
  background: var(--hicom-ink); color: var(--hicom-yellow);
  border: none; border-radius: 4px; font: 600 15px/1 inherit; cursor: pointer;
}
.hicom-form button:hover { background: #000; }
.hicom-form-notice { padding: 14px 18px; border-radius: 6px; font-weight: 600; }
.hicom-form-notice.ok { background: #e7f6ec; color: #16653a; }
.hicom-form-notice.err { background: #fde8e8; color: #9b1c1c; }

/* ---------- Footer ---------- */
.hicom-footer { background: var(--hicom-ink); color: rgba(255,255,255,.65); }
.hicom-footer :where(h2,h3) { color: var(--hicom-yellow); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hicom-footer a { color: rgba(255,255,255,.65); text-decoration: none; }
.hicom-footer a:hover { color: #fff; }
.hicom-footer .wp-block-site-logo img { filter: brightness(0) invert(1); height: 40px; width: auto; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .hicom-hero__media { width: 56%; }
}
@media (max-width: 900px) {
  .hicom-hero__media { position: relative; width: 100%; height: 280px; }
  .hicom-hero__media img { -webkit-mask-image: none; mask-image: none; }
  .hicom-hero__media::after { display: none; }
  .hicom-hero__inner { max-width: 100%; }
  .hicom-kpi { justify-content: flex-start; gap: 16px 24px; }
  .hicom-kpi__sep { display: none; }
}
@media (max-width: 781px) {
  .hicom-header { position: static; }
  .hicom-form .row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hicom-kpi__num { font-size: 24px; }
  .hicom-card { padding: 24px 20px; }
}

/* screen-reader helper */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
