:root {
  --bg-main: #07110D; --bg-section: #0C1C15; --bg-card: #10251D; --green-main: #0F2F24; --green-soft: #164B38; --green-accent: #8FBFA3; --green-light: #CFE7D8; --text-main: #F4F7F3; --text-muted: #AAB8AF; --border-soft: #244C3A; --danger: #F2A6A6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hit-dark-theme { margin: 0; background: var(--bg-main); color: var(--text-main); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.hit-dark-theme::before { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at top right, rgba(143, 191, 163, 0.16), transparent 28rem), radial-gradient(circle at left 30%, rgba(22, 75, 56, 0.24), transparent 32rem), linear-gradient(180deg, #07110D 0%, #0B1913 100%); }
a { color: var(--green-accent); text-decoration: none; } a:hover { color: var(--green-light); }
h1, h2, h3, h4 { margin: 0 0 1rem; color: var(--text-main); letter-spacing: -0.035em; line-height: 1.05; }
h1 { font-size: clamp(2.8rem, 7vw, 6.2rem); } h2 { font-size: clamp(2rem, 4vw, 3.4rem); } h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; color: var(--text-muted); } ul { color: var(--text-muted); padding-left: 1.2rem; } li + li { margin-top: .35rem; }
.hit-container, .hit-section > .hit-container, .hit-page-hero > .hit-container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.hit-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 17, 13, 0.78); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(36, 76, 58, 0.55); }
.hit-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hit-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text-main); } .hit-brand:hover { color: var(--text-main); }
.hit-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, var(--green-accent), var(--green-soft)); color: #06100C; font-weight: 900; }
.hit-brand strong { display: block; font-size: 1.05rem; } .hit-brand small { display: block; color: var(--text-muted); font-size: .78rem; margin-top: -2px; }
.hit-nav { display: flex; align-items: center; gap: 22px; } .hit-menu { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.hit-menu a { color: var(--text-muted); font-weight: 650; font-size: .94rem; } .hit-menu a:hover { color: var(--text-main); }
.hit-nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--bg-card); padding: 10px; } .hit-nav-toggle span { display: block; height: 2px; background: var(--text-main); margin: 5px 0; }
.hit-btn, button.hit-btn, .hit-form button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 14px 22px; border: 1px solid transparent; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.hit-btn:hover, .hit-form button[type="submit"]:hover { transform: translateY(-1px); } .hit-btn-primary, .hit-form button[type="submit"] { background: var(--green-accent); color: #07110D; } .hit-btn-primary:hover, .hit-form button[type="submit"]:hover { background: var(--green-light); color: #07110D; } .hit-btn-ghost { background: rgba(143, 191, 163, 0.05); border-color: var(--border-soft); color: var(--text-main); } .hit-btn-small { padding: 10px 16px; font-size: .92rem; }
.hit-hero { min-height: 82vh; display: flex; align-items: center; padding: 88px 0; } .hit-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: center; gap: 56px; }
.hit-eyebrow { display: inline-flex; color: var(--green-accent); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1rem; } .hit-lead { max-width: 760px; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hit-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; } .hit-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hit-trust span, .hit-check-list span { display: inline-flex; border: 1px solid var(--border-soft); background: rgba(16, 37, 29, .65); border-radius: 999px; padding: 8px 12px; color: var(--green-light); font-size: .9rem; }
.hit-hero-card, .hit-card, .hit-wide-card, .hit-price-card, .hit-contact-info { background: linear-gradient(145deg, rgba(16, 37, 29, .95), rgba(8, 17, 13, .92)); border: 1px solid var(--border-soft); border-radius: 28px; box-shadow: 0 28px 80px rgba(0, 0, 0, .28); }
.hit-hero-card { padding: 34px; position: relative; overflow: hidden; } .hit-signal { width: 110px; height: 110px; border: 1px solid rgba(143, 191, 163, .4); border-radius: 999px; margin-bottom: 28px; background: radial-gradient(circle, rgba(143,191,163,.42) 0 8px, transparent 9px), radial-gradient(circle, transparent 0 34px, rgba(143,191,163,.16) 35px 36px, transparent 37px), radial-gradient(circle, transparent 0 56px, rgba(143,191,163,.16) 57px 58px, transparent 59px); }
.hit-section, .hit-page-hero { padding: 98px 0; } .hit-page-hero { background: linear-gradient(180deg, rgba(12, 28, 21, .88), rgba(7, 17, 13, .35)); border-bottom: 1px solid var(--border-soft); } .hit-page-hero p { max-width: 780px; font-size: 1.12rem; }
.hit-section-alt { background: rgba(12, 28, 21, .62); border-top: 1px solid rgba(36, 76, 58, .42); border-bottom: 1px solid rgba(36, 76, 58, .42); } .hit-section-head { max-width: 780px; margin-bottom: 36px; }
.hit-grid-3, .hit-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } .hit-card, .hit-price-card, .hit-contact-info { padding: 28px; } .hit-card p:last-child, .hit-price-card p:last-child, .hit-contact-info p:last-child { margin-bottom: 0; }
.hit-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 54px; align-items: center; } .hit-check-list { display: flex; flex-wrap: wrap; gap: 10px; }
.hit-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; } .hit-steps article { padding: 22px; border-left: 1px solid var(--border-soft); background: rgba(16,37,29,.34); border-radius: 18px; } .hit-steps span { display: inline-flex; color: var(--green-accent); font-weight: 900; margin-bottom: 14px; }
.hit-price-card strong { display: block; color: var(--green-light); font-size: 1.6rem; margin: .6rem 0 1rem; letter-spacing: -0.04em; } .hit-price-card-wide { grid-column: span 2; } .hit-note { margin-top: 24px; color: var(--green-light); font-size: .95rem; }
.hit-service-list { display: grid; gap: 22px; } .hit-wide-card { padding: 34px; margin-bottom: 22px; } .hit-wide-card ul { columns: 2; }
.hit-contact-grid { display: grid; grid-template-columns: minmax(260px, .45fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.hit-form { display: grid; gap: 18px; } .hit-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .hit-form label { display: grid; gap: 8px; } .hit-form label span { color: var(--text-main); font-weight: 750; }
.hit-form input, .hit-form select, .hit-form textarea { width: 100%; color: var(--text-main); background: #08130F; border: 1px solid var(--border-soft); border-radius: 16px; padding: 13px 14px; font: inherit; }
.hit-form input:focus, .hit-form select:focus, .hit-form textarea:focus { outline: 2px solid rgba(143, 191, 163, .45); border-color: var(--green-accent); }
.hit-checkbox { grid-template-columns: auto 1fr !important; align-items: start; } .hit-checkbox input { width: auto; margin-top: 6px; } .hit-hp-wrap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.hit-notice { border-radius: 18px; padding: 14px 16px; margin: 24px auto 0; max-width: 1120px; font-weight: 700; } .hit-notice-ok { background: rgba(143, 191, 163, .15); border: 1px solid rgba(143, 191, 163, .4); color: var(--green-light); } .hit-notice-error { background: rgba(242, 166, 166, .12); border: 1px solid rgba(242, 166, 166, .35); color: var(--danger); }
.hit-legal { max-width: 860px; } .hit-legal h2 { font-size: 1.55rem; margin-top: 2rem; } .hit-legal h2:first-child { margin-top: 0; }
.hit-cta { padding: 86px 0; text-align: center; background: radial-gradient(circle at center top, rgba(143,191,163,.15), transparent 26rem), rgba(12, 28, 21, .78); border-top: 1px solid var(--border-soft); } .hit-cta p { max-width: 660px; margin-inline: auto; font-size: 1.1rem; }
.hit-footer { padding: 64px 0 24px; border-top: 1px solid var(--border-soft); background: #060D0A; } .hit-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr .8fr; gap: 28px; } .hit-brand-footer { margin-bottom: 18px; } .hit-footer h3 { font-size: 1rem; margin-bottom: 12px; } .hit-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(36, 76, 58, .5); color: var(--text-muted); font-size: .9rem; }
@media (max-width: 980px) { .hit-hero-grid, .hit-split, .hit-contact-grid { grid-template-columns: 1fr; } .hit-grid-3, .hit-price-grid, .hit-steps { grid-template-columns: 1fr 1fr; } .hit-price-card-wide { grid-column: auto; } .hit-footer-grid { grid-template-columns: 1fr 1fr; } .hit-nav-toggle { display: block; } .hit-nav { position: absolute; inset: 78px 20px auto 20px; display: none; flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; background: rgba(7, 17, 13, .97); border: 1px solid var(--border-soft); border-radius: 24px; } .hit-nav.is-open { display: flex; } .hit-menu { flex-direction: column; align-items: flex-start; } }
@media (max-width: 640px) { .hit-container, .hit-section > .hit-container, .hit-page-hero > .hit-container { width: min(100% - 28px, 1120px); } .hit-header-inner { min-height: 70px; } .hit-hero, .hit-section, .hit-page-hero, .hit-cta { padding: 66px 0; } .hit-grid-3, .hit-price-grid, .hit-steps, .hit-form-grid, .hit-footer-grid { grid-template-columns: 1fr; } .hit-wide-card ul { columns: 1; } .hit-footer-bottom { flex-direction: column; } }


/* --- Hartkopf-IT Fix v2: Gutenberg-Layout, Header und Kontaktbereich --- */

/* WordPress-Adminbar: Sticky Header nicht unter die Admin-Leiste schieben */
body.admin-bar .hit-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .hit-header {
    top: 46px;
  }
}

/* Gutenberg-Gruppen mit Klasse hit-page-hero korrekt zentrieren.
   In der editierbaren Version liegt kein .hit-container innerhalb dieser Gruppe. */
.wp-block-group.hit-page-hero {
  padding: 92px 0;
  background: linear-gradient(180deg, rgba(12, 28, 21, .88), rgba(7, 17, 13, .35));
  border-bottom: 1px solid var(--border-soft);
}

.wp-block-group.hit-page-hero > * {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.wp-block-group.hit-page-hero > h1 {
  max-width: 980px;
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 1.02;
}

.wp-block-group.hit-page-hero > p:not(.hit-eyebrow) {
  max-width: 780px;
  font-size: 1.12rem;
}

.wp-block-group.hit-page-hero > .hit-eyebrow {
  margin-bottom: 1rem;
}

/* Große Überschriften in Karten begrenzen, damit lange Wörter wie
   Kontaktinformationen nicht in den nächsten Bereich laufen. */
.hit-card h2,
.hit-contact-info h2,
.hit-price-card h2,
.hit-wide-card h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.hit-contact-info h2 {
  font-size: clamp(1.45rem, 1.9vw, 1.9rem);
}

/* Kontaktbereich stabilisieren */
.hit-contact-grid {
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
}

.hit-contact-info,
.hit-card,
.hit-form,
.hit-form-grid,
.hit-form label {
  min-width: 0;
}

.hit-contact-info {
  overflow: hidden;
}

.hit-form input,
.hit-form select,
.hit-form textarea {
  min-width: 0;
}

/* Falls in der Kontaktkarte eine zusätzliche Überschrift "Kontaktformular"
   im Editor ergänzt wurde, bekommt sie normalen Abstand statt Überlappung. */
.hit-card > h2:first-child {
  margin-bottom: 24px;
}

/* WordPress-Block-Standardabstände im Theme entschärfen */
body.hit-dark-theme .wp-block-group,
body.hit-dark-theme .wp-block-html {
  margin-top: 0;
  margin-bottom: 0;
}

/* Mobile Feinjustierung */
@media (max-width: 980px) {
  .hit-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wp-block-group.hit-page-hero {
    padding: 64px 0;
  }

  .wp-block-group.hit-page-hero > * {
    width: min(100% - 28px, 1120px);
  }

  .wp-block-group.hit-page-hero > h1 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .hit-card h2,
  .hit-contact-info h2,
  .hit-price-card h2,
  .hit-wide-card h2 {
    font-size: 1.65rem;
  }
}
