/* Design angelehnt an www.hit-cockpit.de.
   Liegt ueber dem alten Porto-Theme: Kopf, Fuss und Startseite haben eigenes
   Markup, die Unterseiten werden hier nur optisch angeglichen.
   Farben kommen aus color-mode.css. */

/* Grundlagen ------------------------------------------------------------- */
/* Kein scroll-behavior: smooth auf html: Das SmoothScroll des Porto-Themes
   (vendor/common/common.js, nur Chrome) scrollt per window.scrollBy und wird
   davon so ausgebremst, dass sich die Seite mit dem Mausrad kaum bewegt. */

body {
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body .body {
    background: var(--bg);
}

p,
li,
td,
th,
label {
    color: var(--text);
}

p {
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
    color: var(--text);
    font-family: inherit;
    font-weight: 700;
    letter-spacing: -.01em;
    text-transform: none;
}

h4 {
    font-size: 21.6px;
    line-height: 1.3;
}

h5 {
    font-size: 16.8px;
    line-height: 1.4;
}

a,
a:hover,
a:focus {
    color: var(--accent);
    text-underline-offset: .15em;
}

a:hover {
    color: var(--accent-hover);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

hr,
hr.tall {
    height: 1px;
    border: 0;
    background: var(--border);
    background-image: none;
}

.hit-accent {
    color: var(--accent);
}

/* Schaltflaechen --------------------------------------------------------- */
.hit-btn,
.hit-btn:hover,
.hit-btn:focus,
.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
    text-decoration: none;
}

.hit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.hit-btn-lg {
    padding: 13px 24px;
    border-radius: 10px;
    font-size: 16.8px;
}

.hit-btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.hit-btn-primary,
.hit-btn-primary:focus,
.btn-primary,
.btn-primary:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

.hit-btn-primary:hover,
.btn-primary:hover,
.btn-primary:active {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--accent-text);
}

.btn-primary {
    border-radius: 8px;
    font-weight: 600;
}

.hit-btn-light,
.hit-btn-light:hover,
.hit-btn-light:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: #0b3a66;
}

.hit-btn-light:hover {
    transform: translateY(-1px);
}

.hit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 1.4em;
}

/* Kopfzeile ------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1001;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.site-header-inner::before,
.site-header-inner::after {
    display: none;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    margin-right: auto;
}

.site-logo {
    display: block;
    width: auto;
    height: 46px;
    color: var(--logo-color);
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li {
    line-height: 1.3;
}

.site-nav a:not(.hit-btn) {
    display: block;
    padding: 7px 8px;
    border-radius: 6px;
    color: var(--text);
    font-size: 15px;
    text-decoration: none;
}

.site-nav a:not(.hit-btn):hover {
    background: var(--surface-2);
    color: var(--text);
}

.site-nav a[aria-current="page"] {
    color: var(--accent);
    font-weight: 600;
}

.site-nav .hit-btn {
    margin-left: 4px;
}

.site-nav .hit-btn .fa {
    font-size: 12px;
}

@media (max-width: 1199px) {
    .site-nav {
        order: 3;
        width: 100%;
    }

    .site-nav .hit-btn {
        margin-left: 0;
    }
}

@media (max-width: 479px) {
    .site-logo {
        height: 38px;
    }

    .site-nav a:not(.hit-btn) {
        padding: 6px 8px;
        font-size: 14px;
    }
}

/* Leitsatz unter der Kopfzeile (alle Seiten) --------------------------- */
.hit-intro {
    padding: clamp(28px, 5vw, 52px) 0 clamp(24px, 4vw, 40px);
    background:
        radial-gradient(900px 380px at 90% -20%, var(--hero-glow), transparent 70%),
        radial-gradient(600px 300px at -10% 120%, var(--hero-glow), transparent 70%);
    border-bottom: 1px solid var(--border);
}

.hit-intro p {
    max-width: 860px;
    margin: 0;
    color: var(--text);
    font-size: clamp(20px, 2.2vw, 25px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.hit-intro p em {
    color: var(--accent);
    font-style: normal;
}

.hit-intro p span {
    display: block;
    margin-top: .6em;
    color: var(--muted);
    font-size: clamp(16px, 1.6vw, 17.6px);
    font-weight: 400;
    letter-spacing: 0;
}

/* Inhaltsbereich -------------------------------------------------------- */
.main {
    padding-top: 40px;
}

/* Grosser Cockpit-Block ------------------------------------------------- */
.main > .hit-cockpit-hero:first-child {
    margin-top: -40px;
}

.hit-cockpit-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 7vw, 88px) 0 clamp(44px, 6vw, 80px);
    color: #ffffff;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(110, 162, 255, .35), transparent 70%),
        radial-gradient(700px 360px at -10% 110%, rgba(255, 200, 61, .12), transparent 70%),
        linear-gradient(135deg, var(--hero-from), var(--hero-to));
}

.hit-cockpit-hero .container {
    position: relative;
}

.hit-cockpit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

@media (min-width: 992px) {
    .hit-cockpit-grid {
        grid-template-columns: 1fr 1.15fr;
    }
}

.hit-cockpit-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.1em;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    font-size: 14.4px;
}

.hit-cockpit-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ccf7a;
}

.hit-cockpit-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 24px;
}

.hit-cockpit-brand strong {
    font-weight: 800;
}

.hit-cockpit-mark {
    width: 44px;
    height: 44px;
    flex: none;
}

.hit-cockpit-hero h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.hit-cockpit-audience {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.hit-cockpit-hero .hit-cockpit-audience li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
    font-size: 14.4px;
    font-weight: 600;
    line-height: 1.3;
}

.hit-cockpit-audience .fa {
    color: #ffc83d;
}

.hit-cockpit-hero p.hit-cockpit-lead {
    max-width: 560px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(16.8px, 2vw, 19.2px);
    line-height: 1.6;
}

.hit-cockpit-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 20px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

@media (min-width: 480px) {
    .hit-cockpit-points {
        grid-template-columns: 1fr 1fr;
    }
}

.hit-cockpit-hero .hit-cockpit-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.4;
}

.hit-cockpit-points .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    color: #ffc83d;
    font-size: 14px;
}

.hit-cockpit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

.hit-cockpit-hero .hit-cockpit-url {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    font-weight: 600;
}

.hit-cockpit-visual .hit-ill {
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

/* Abschnitte ------------------------------------------------------------ */
.hit-section {
    padding: clamp(48px, 7vw, 96px) 0;
}

.hit-section-alt,
.hit-services {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.hit-eyebrow {
    display: inline-block;
    margin-bottom: .6em;
    color: var(--accent);
    font-size: 13.6px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hit-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

@media (min-width: 880px) {
    .hit-split {
        grid-template-columns: 1fr 1.3fr;
    }
}

.hit-split h2.hit-split-title {
    margin: 0;
    font-size: clamp(28.8px, 4vw, 44.8px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.hit-figure .hit-ill {
    box-shadow: var(--shadow-lg);
}

/* Illustrationen --------------------------------------------------------- */
.hit-ill {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.hit-ill .ci-panel { fill: var(--surface); stroke: var(--border); }
.hit-ill .ci-bar { fill: var(--surface-2); }
.hit-ill .ci-input { fill: var(--surface); stroke: var(--border); }
.hit-ill .ci-card { fill: var(--surface); stroke: var(--border); }
.hit-ill .ci-text { fill: var(--text); }
.hit-ill .ci-muted { fill: var(--muted); }
.hit-ill .ci-accent { fill: var(--accent); }
.hit-ill .ci-on-accent { fill: var(--accent-text); }
.hit-ill .ci-warn-soft { fill: var(--warn-soft); }
.hit-ill .ci-line { stroke: var(--border); }
.hit-ill .ci-bars { fill: var(--accent); fill-opacity: .35; }
.hit-ill .ci-trend { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.hit-ill .ci-kw { fill: var(--accent); font-weight: 600; }
.hit-ill .ci-comment { fill: var(--ok); }
.hit-ill .ci-soft { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.hit-ill .ci-line-accent { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.hit-ill .ci-flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 6; opacity: .7; }

@media (prefers-reduced-motion: no-preference) {
    .hit-ill .ci-flow { animation: hit-dash 1.6s linear infinite; }
}

@keyframes hit-dash {
    to { stroke-dashoffset: -24; }
}

/* Editorfenster mit klickbaren Dateireitern (views/code-editor.ejs) ----- */
.hit-editor .ci-tab { cursor: pointer; outline: none; }
.hit-editor .ci-tab-bg { fill: transparent; transition: fill .25s ease; }
.hit-editor .ci-tab-label { fill: var(--muted); transition: fill .25s ease; }
.hit-editor .ci-tab:hover .ci-tab-bg { fill: var(--accent-soft); }
.hit-editor .ci-tab:hover .ci-tab-label { fill: var(--text); }
.hit-editor .ci-tab.is-active .ci-tab-bg { fill: transparent; }
.hit-editor .ci-tab-indicator { fill: var(--accent); }
.hit-editor .ci-tab-progress { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: left center; }
.hit-editor .ci-tab-progress.is-running { opacity: .55; animation: ci-progress var(--ci-wait, 6s) linear both; }
.hit-editor .ci-tab.is-active .ci-tab-label { fill: var(--accent-text); }
.hit-editor .ci-tab:focus-visible .ci-tab-bg { stroke: var(--accent); stroke-width: 2; }
.hit-editor .ci-code-font { white-space: pre; }
.hit-editor .ci-code { display: none; }
.hit-editor .ci-code.is-active { display: inline; }
.hit-ill .ci-str { fill: #c2410c; }
.hit-editor .ci-cursor { fill: var(--accent); opacity: 0; }
.hit-editor .ci-packet { fill: var(--accent); opacity: 0; }
.hit-editor .ci-dot { transform-box: fill-box; transform-origin: center; }
.hit-editor .ci-status { transition: opacity .2s ease; }
.hit-editor .ci-status.is-changing { opacity: 0; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hit-ill .ci-str { fill: #fdba74; }
}
:root[data-theme="dark"] .hit-ill .ci-str { fill: #fdba74; }

@media (prefers-reduced-motion: no-preference) {
    /* Zeilen erscheinen nacheinander wie getippt */
    .hit-editor.is-ready .ci-code.is-active .ci-codeline {
        animation: ci-type .5s cubic-bezier(.2, .7, .3, 1) both;
        animation-delay: calc(var(--i) * 75ms);
    }
    .hit-editor .ci-cursor.is-on { animation: ci-blink 1s steps(1) infinite; }
    .hit-editor .ci-dot.is-pulse { animation: ci-pulse .6s ease-out; }
    .hit-editor .ci-tab-label { transform-box: fill-box; transform-origin: center; }
    .hit-editor .ci-tab.is-pop .ci-tab-label { animation: ci-pop .35s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
    .hit-editor .ci-cursor.is-on { opacity: 1; }
}

@keyframes ci-type {
    from { opacity: 0; transform: translateX(-8px); clip-path: inset(0 100% 0 0); }
    60% { opacity: 1; }
    to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes ci-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@keyframes ci-pop {
    0% { transform: scale(1); }
    45% { transform: scale(.92); }
    100% { transform: scale(1); }
}
@keyframes ci-blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes ci-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.7); }
    100% { transform: scale(1); }
}

/* Leistungskacheln ------------------------------------------------------ */
.hit-services {
    padding: clamp(48px, 7vw, 96px) 0;
}

.hit-services h2.hit-section-title {
    margin: 0 0 clamp(24px, 4vw, 40px);
    color: var(--text);
    font-size: clamp(27.2px, 3.6vw, 40px);
    font-weight: 800;
    letter-spacing: -.02em;
    text-align: center;
}

.hit-service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 600px) {
    .hit-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .hit-service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.hit-service-card,
.hit-service-card:hover,
.hit-service-card:focus {
    text-decoration: none;
}

.hit-service-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hit-service-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.hit-service-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}

.hit-service-icon svg {
    width: 28px;
    height: 28px;
}

.hit-service-card h3 {
    margin: 4px 0 2px;
    color: var(--text);
    font-size: 18.4px;
    font-weight: 700;
    line-height: 1.3;
}

.main .hit-service-card p {
    flex: 1;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.hit-service-more {
    margin-top: auto;
    padding-top: 10px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
}

.hit-service-card-accent {
    border-color: transparent;
    background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
}

.hit-service-card-accent:hover {
    border-color: transparent;
}

.hit-service-card-accent .hit-service-icon {
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
}

.hit-service-card-accent h3,
.main .hit-service-card-accent p,
.hit-service-card-accent .hit-service-more {
    color: #ffffff;
}

.main .hit-service-card-accent p {
    opacity: .88;
}

/* Cockpit-Band auf Unterseiten ----------------------------------------- */
.hit-cockpit-strip {
    clear: both;
    padding: 48px 0 0;
}

.hit-cockpit-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
    color: #ffffff;
}

.hit-cockpit-strip p {
    flex: 1 1 320px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 16.8px;
    line-height: 1.5;
}

.hit-cockpit-strip p strong {
    color: #ffffff;
}

.hit-cockpit-strip .hit-btn-primary,
.hit-cockpit-strip .hit-btn-primary:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: #0b3a66;
}

.hit-cockpit-strip .hit-btn-primary:hover {
    background: #e5eefc;
    border-color: #e5eefc;
    color: #0b3a66;
}

/* Fusszeile ------------------------------------------------------------- */
/* Fusszeile per Flex-Layout unten halten; das alte Skript in index.ejs setzt
   sonst einen Inline-Abstand */
#container.body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#container.body > .main {
    flex: 1 0 auto;
}

#footer.site-footer {
    margin-top: 56px !important;
    padding: 40px 0 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
}

.hit-cockpit-strip + #footer.site-footer {
    margin-top: 48px !important;
}

#footer.site-footer a {
    color: var(--accent) !important;
}

#footer.site-footer a:hover {
    color: var(--accent-hover) !important;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px 48px;
}

@media (min-width: 880px) {
    .site-footer-grid {
        grid-template-columns: 1fr 1.3fr;
    }
}

.site-logo-footer {
    height: 40px;
    margin-bottom: 16px;
}

.site-footer-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-list li {
    display: flex;
    gap: 10px;
    color: var(--text);
    line-height: 1.5;
}

.site-footer-list .fa {
    width: 16px;
    padding-top: 3px;
    flex: none;
    color: var(--accent);
    text-align: center;
}

.site-footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-tags li {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 24px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

#footer .site-footer-bottom p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Unterseiten: Porto-Bausteine angleichen ------------------------------- */
.thumbnail {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.img-rounded {
    border-radius: 10px;
}

.feature-box .feature-box-icon {
    width: 36px;
    height: 36px;
    line-height: 36px;
    top: 0;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
}

.feature-box .feature-box-icon i.fa {
    color: var(--accent);
}

ul.list.icons li i,
.list-skills li i {
    color: var(--accent);
}

.main ul.list li {
    margin-bottom: 8px;
}

/* Tabs */
.nav-tabs {
    border-bottom-color: var(--border);
}

.nav-tabs li a,
.nav-tabs li a:hover {
    background: var(--surface-2);
    border-color: var(--border);
    border-top-color: var(--border);
    color: var(--accent);
}

.nav-tabs li.active a,
.nav-tabs li.active a:hover,
.nav-tabs li.active a:focus {
    background: var(--surface);
    border-left-color: var(--border);
    border-right-color: var(--border);
}

.tabs ul.nav-tabs a,
.tabs ul.nav-tabs a:hover,
.tabs ul.nav-tabs li.active a {
    color: var(--accent);
}

.tabs ul.nav-tabs a:hover,
.tabs ul.nav-tabs a:focus,
.tabs ul.nav-tabs li.active a {
    border-top-color: var(--accent);
}

.tab-content {
    background: var(--surface);
    border-color: var(--border);
    border-radius: 0 0 12px 12px;
}

/* Tabellen */
tr {
    background-color: var(--surface);
    border-color: var(--border);
}

tr:hover {
    background-color: var(--surface-2);
}

.table-striped > tbody > tr:nth-child(odd) {
    background-color: var(--surface-2);
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    border-top-color: var(--border);
}

/* Formulare */
.form-control {
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--surface);
    color: var(--text);
    box-shadow: none;
}

textarea.form-control {
    height: auto;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-control::placeholder {
    color: var(--muted);
}

.shop .quantity .minus,
.shop .quantity .plus {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
    text-shadow: none;
}

.shop .quantity .qty {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
}

/* Bilder auf Kontakt / Jobs */
.contact-image {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* Reduzierte Bewegung --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hit-btn,
    .hit-service-card {
        transition: none;
    }

    .hit-btn-light:hover,
    .hit-service-card:hover {
        transform: none;
    }
}

/* Moderne Haekchen (wie hit-cockpit.de) --------------------------------- */
.hit-checks,
.main ul.list.icons {
    display: grid;
    gap: 10px;
    margin: 1.2em 0;
    padding: 0;
    list-style: none;
}

.hit-checks li,
.main ul.list.icons li {
    position: relative;
    margin: 0;
    padding-left: 32px;
    line-height: 1.55;
}

.hit-checks li::before,
.main ul.list.icons li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ok-soft) var(--check-img) center / 20px no-repeat;
}

/* altes Font-Awesome-Haekchen ausblenden, der Text bleibt unveraendert */
.main ul.list.icons li > i.fa-check-circle {
    display: none;
}

/* Lange Listen auf Software und Systembetreuung als Karte, zweispaltig */
.page-software ul.list.list-skills,
.page-support ul.list.list-skills {
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

@media (min-width: 992px) {
    .page-software ul.list.list-skills,
    .page-support ul.list.list-skills {
        grid-template-columns: 1fr 1fr;
        gap: 12px 36px;
    }
}

.page-software h4,
.page-support h4 {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.02em;
}

/* Systembetreuung: Fernwartung als Hinweiskarte */
.page-support .col-sm-7 {
    float: none;
    width: auto;
    max-width: 760px;
    margin: 0 15px;
    padding: 22px 24px;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--accent-soft);
}

.page-support .col-sm-7 h4 {
    margin: 0 0 6px;
    font-size: 20px;
}

.page-support .col-sm-7 p {
    margin: 0;
}

/* Bildergalerie (Software) ---------------------------------------------- */
.hit-gallery-page {
    display: grid;
    gap: clamp(28px, 4vw, 44px);
    margin: clamp(32px, 5vw, 56px) 0 32px;
}

.hit-gallery-group h3.hit-gallery-title {
    margin: 0 0 14px;
    font-size: 20px;
}

.hit-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 16px;
}

.hit-gallery-figure {
    margin: 0;
}

.hit-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hit-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
    transition: transform .3s ease;
}

.hit-gallery-item:hover,
.hit-gallery-item:focus-visible {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.hit-gallery-item:hover img {
    transform: scale(1.03);
}

.hit-gallery-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(11, 18, 32, .72);
    color: #ffffff;
    font-size: 15px;
    opacity: 0;
    transition: opacity .2s ease;
}

.hit-gallery-item:hover .hit-gallery-zoom,
.hit-gallery-item:focus-visible .hit-gallery-zoom {
    opacity: 1;
}

.hit-gallery-figure figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

/* Grossansicht (Magnific Popup) */
.hit-lightbox.mfp-bg {
    background: #0b1220;
    opacity: .92;
}

.hit-lightbox img.mfp-img {
    padding: 40px 0;
    border-radius: 14px;
}

.hit-lightbox .mfp-figure::after {
    top: 40px;
    bottom: 40px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.hit-lightbox .mfp-title,
.hit-lightbox .mfp-counter {
    color: #e6ebf0;
    font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.hit-lightbox .mfp-bottom-bar {
    margin-top: -36px;
}

.hit-lightbox .mfp-close {
    opacity: .85;
}

.hit-lightbox button.mfp-arrow {
    opacity: .8;
}

.hit-lightbox button.mfp-arrow:hover {
    opacity: 1;
}

/* Referenzen: Symbole mittig, Produkt-Link als kleines Etikett ---------- */
.feature-box .feature-box-icon {
    display: grid;
    place-items: center;
    margin-top: 2px;
    padding: 0;
}

.feature-box .feature-box-icon i.fa {
    position: static;
    top: auto;
    margin: 0;
    font-size: 16px;
    line-height: 1;
}

.feature-box-info .btn-primary {
    display: inline-block;
    margin: 0 0 0 4px;
    padding: 1px 10px;
    border: 0;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    vertical-align: baseline;
}

.feature-box-info .btn-primary:hover,
.feature-box-info .btn-primary:focus {
    background: var(--accent);
    color: var(--accent-text);
}

/* Illustrationen im flachen Stil (Kontakt, Jobs) ----------------------- */
.hit-side-ill {
    max-width: 440px;
    margin: 0 auto;
}

.hit-ill-flat {
    border-radius: 0;
    overflow: visible;
}

.hit-ill .ci-blob { fill: var(--accent-soft); }
.hit-ill .ci-blob-2 { fill: var(--accent-soft); opacity: .6; }
.hit-ill .ci-shadow { filter: drop-shadow(0 8px 16px rgba(16, 24, 40, .12)); }
.hit-ill .ci-stand { fill: var(--border); }
.hit-ill .ci-bubble-in { fill: var(--surface-2); }
.hit-ill .ci-line-soft { fill: var(--muted); opacity: .45; }
.hit-ill .ci-on-accent-fill { fill: var(--accent-text); }
.hit-ill .ci-on-accent-line { fill: none; stroke: var(--accent-text); stroke-width: 3; stroke-linejoin: round; }
.hit-ill .ci-env { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.hit-ill .ci-ok-fill { fill: var(--ok); }
.hit-ill .ci-check { fill: none; stroke: #ffffff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.hit-ill .ci-person { fill: var(--accent); }
.hit-ill .ci-person-2 { fill: #e0a106; }
.hit-ill .ci-person-3 { fill: #1f9d55; }

/* Stellenanzeige (Jobs) ------------------------------------------------- */
.hit-job {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hit-job-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

@media (min-width: 992px) {
    .hit-job-grid {
        grid-template-columns: 1.6fr 1fr;
    }
}

.hit-job h2.hit-job-title {
    margin: 0 0 12px;
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.hit-job p.hit-job-lead {
    max-width: 640px;
    color: var(--muted);
    font-size: 18px;
}

.hit-job-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 8px 28px;
    margin-top: 8px;
}

.hit-job-cols h3 {
    margin: 12px 0 0;
    font-size: 16px;
}

.hit-job-cols .hit-checks {
    margin-top: 10px;
    font-size: 15px;
}

.hit-muted {
    color: var(--muted);
    font-size: 15px;
}

.hit-notice-card {
    margin-top: 28px;
    padding: 20px 24px;
    border-left: 4px solid var(--border);
    border-radius: 0 12px 12px 0;
    background: var(--surface);
}

.hit-notice-card h4 {
    margin-top: 0;
}

.hit-notice-card p {
    margin: 0;
}

/* Kontakt: Ueberschrift steht im alten Markup direkt in der Zeile */
.page-contact .row > h4 {
    padding: 0 15px;
}

/* Fotos (Kontakt, Partner & Karriere): echte CC0-Fotos, natuerlich belassen */
.hit-photo {
    max-width: 460px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hit-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Kontakt: Hochformat 4:5 */
.hit-photo-kontakt img {
    aspect-ratio: 4 / 5;
}

:root[data-theme="dark"] .hit-photo img {
    filter: brightness(.92);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hit-photo img {
        filter: brightness(.92);
    }
}

/* Sprachumschalter und Werkzeuge in der Kopfzeile ----------------------- */
.site-tools {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
}

.hit-lang,
.hit-lang:focus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.hit-lang:hover {
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
}

.hit-legal-note {
    margin: 0 0 24px;
    padding: 12px 16px;
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    background: var(--accent-soft);
}

/* Listen mit Symbolen (Software, Systembetreuung) ----------------------- */
h3.hit-list-head {
    margin: 32px 0 16px;
    font-size: 20px;
}

.hit-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 16px;
}

.hit-tech-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.main h4.hit-tech-title {
    margin: 2px 0 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
}

.hit-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main .hit-chips li {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;
}

.hit-li-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 17px;
}

.hit-icon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 12px 28px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.main .hit-icon-list li {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 0;
    line-height: 1.5;
}

.hit-icon-list-cards {
    gap: 16px;
    margin: 24px 0;
}

.main .hit-icon-list-cards li {
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

/* Kontaktformular ------------------------------------------------------- */
.hit-form-card {
    margin: 48px 0 0;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.main h2.hit-form-title {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -.02em;
}

.main p.hit-form-intro {
    margin: 0 0 22px;
    color: var(--muted);
}

.hit-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 18px;
}

@media (min-width: 640px) {
    .hit-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.hit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.hit-field label {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.hit-req {
    color: var(--err);
}

.hit-opt {
    color: var(--muted);
    font-weight: 400;
}

.hit-field input,
.hit-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    line-height: 1.4;
}

.hit-field textarea {
    min-height: 140px;
    resize: vertical;
}

.hit-field input:focus,
.hit-field textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.hit-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.main p.hit-form-privacy {
    margin: 4px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.hit-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.hit-form-actions button[disabled] {
    opacity: .7;
    cursor: progress;
}

.hit-form-hint {
    color: var(--muted);
    font-size: 14px;
}

.main p.hit-form-status {
    margin: 18px 0 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
}

.main p.hit-form-status.is-ok {
    background: var(--ok-soft);
    color: var(--text);
    border-left: 4px solid var(--ok);
}

.main p.hit-form-status.is-error {
    background: var(--warn-soft);
    color: var(--text);
    border-left: 4px solid var(--err);
}

/* Kopfzeile: auf breiten Fenstern etwas engere Menueabstaende, damit
   Menue, Sprache und Farbschema in eine Zeile passen */
@media (min-width: 1200px) {
    .site-header-inner {
        column-gap: 10px;
    }

    .site-logo {
        height: 42px;
    }

    .site-nav ul {
        column-gap: 2px;
    }

    .site-nav a:not(.hit-btn) {
        padding-left: 6px;
        padding-right: 6px;
    }

    .hit-theme-switch button {
        width: 28px;
    }
}

/* Kontakt: Formular genau so breit wie die Adressspalte links */
@media (min-width: 992px) {
    .page-contact .hit-form-card {
        width: calc(50% - 15px);
    }
}

/* Kontaktformular: Sicherheitsfrage */
.hit-human-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.hit-human-task {
    color: var(--text);
}

.hit-field .hit-human-row input {
    width: 90px;
    text-align: center;
}

.hit-human label .fa {
    color: var(--accent);
}

/* Kontaktformular: Kaestchen "Ich bin kein Roboter" (eigener Spamschutz) */
.hit-robot {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 340px;
    margin: 4px 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    box-shadow: var(--shadow);
}

.hit-robot[hidden] {
    display: none;
}

.hit-robot-box {
    position: relative;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: none;
    padding: 0;
    border: 2px solid var(--muted);
    border-radius: 6px;
    background: var(--surface);
    cursor: pointer;
}

.hit-robot-box:hover {
    border-color: var(--accent);
}

.hit-robot-box .fa-check {
    display: none;
    color: #ffffff;
    font-size: 15px;
}

.hit-robot-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid var(--accent-soft);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: hit-spin .8s linear infinite;
}

.hit-robot.is-checking .hit-robot-box {
    border-color: transparent;
    background: transparent;
}

.hit-robot.is-checking .hit-robot-spinner {
    display: block;
}

.hit-robot.is-done .hit-robot-box {
    border-color: var(--ok);
    background: var(--ok);
    cursor: default;
}

.hit-robot.is-done .fa-check {
    display: block;
}

.hit-robot.is-failed .hit-robot-box {
    border-color: var(--err);
}

@keyframes hit-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hit-robot-spinner { animation-duration: 2s; }
}

.hit-robot-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.hit-robot-state {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.hit-robot.is-failed .hit-robot-state {
    color: var(--err);
}

.hit-robot-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    max-width: 82px;
    color: var(--muted);
    text-align: center;
}

.hit-robot-brand .fa {
    color: var(--accent);
    font-size: 20px;
}

.hit-robot-brand small {
    font-size: 10px;
    line-height: 1.2;
}

.hit-field[hidden] {
    display: none;
}

/* Startseite: Neu im HIT Cockpit (macOS-Agent, WordPress-Plugin) ------- */
.hit-news {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.hit-news-head {
    max-width: 720px;
    margin: 0 auto clamp(24px, 4vw, 40px);
    text-align: center;
}

.main h2.hit-news-title {
    margin: 0 0 10px;
    font-size: clamp(27px, 3.6vw, 40px);
    font-weight: 800;
    letter-spacing: -.02em;
}

.main p.hit-news-lead {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.hit-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 880px) {
    .hit-news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hit-news-card {
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
}

.hit-news-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hit-news-card h3 {
    margin: 4px 0 8px;
    font-size: 20px;
}

.main .hit-news-card p {
    margin: 0;
    color: var(--muted);
}

.hit-news-card .hit-checks {
    margin-bottom: 0;
}

.hit-news-badges {
    display: inline-flex;
    gap: 6px;
}

.hit-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hit-badge-new {
    background: var(--ok-soft);
    color: var(--text);
}

.hit-badge-beta {
    background: var(--warn-soft);
    color: var(--text);
}

.hit-news-actions {
    margin-top: 28px;
    text-align: center;
}

/* Neuerungen wie auf hit-cockpit.de: Demo-Button, Systemleiste, kleine Kacheln */
.hit-btn-outline-light,
.hit-btn-outline-light:focus {
    background: transparent;
    border-color: rgba(255, 255, 255, .6);
    color: #ffffff;
}

.hit-btn-outline-light:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #ffffff;
    color: #ffffff;
}

.hit-btn-ghost,
.hit-btn-ghost:focus {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.hit-btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hit-cockpit-systems {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.hit-cockpit-systems li {
    padding: 4px 11px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    font-weight: 600;
}

.hit-news-more {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
}

@media (min-width: 620px) {
    .hit-news-more {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1100px) {
    .hit-news-more {
        grid-template-columns: repeat(4, 1fr);
    }
}

.main a.hit-news-mini,
a.hit-news-mini {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

.main a.hit-news-mini:hover,
a.hit-news-mini:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none;
}

.hit-news-mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 19px;
}

.hit-news-mini strong {
    font-size: 17px;
    line-height: 1.3;
}

.hit-news-mini-text {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.5;
}

.hit-news-mini-link {
    margin-top: auto;
    padding-top: 4px;
    color: var(--accent);
    font-size: 14.5px;
    font-weight: 600;
}

.hit-news-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
    a.hit-news-mini,
    .main a.hit-news-mini {
        transition: none;
    }

    a.hit-news-mini:hover,
    .main a.hit-news-mini:hover {
        transform: none;
    }
}

/* Projektnachricht unter den Neuigkeiten -------------------------------- */
.hit-news-project {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: clamp(20px, 4vw, 44px);
    margin-top: 36px;
}

@media (min-width: 880px) {
    .hit-news-project {
        grid-template-columns: 1.1fr 1fr;
    }
}

.hit-news-project h3 {
    margin: 6px 0 12px;
    line-height: 1.2;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    letter-spacing: -.01em;
}

.main .hit-news-card p.hit-project-claim {
    margin-top: 18px;
    color: var(--text);
    font-weight: 600;
}

.hit-project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.hit-project-preview {
    position: relative;
    display: block;
    padding: 0 0 28px 28px;
    transition: transform .25s ease;
}

.hit-project-preview:hover {
    transform: translateY(-4px);
}

.hit-project-window {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #14181f;
    box-shadow: var(--shadow-lg);
}

.hit-project-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
}

.hit-project-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
}

.hit-project-bar i:nth-child(2) { background: #febc2e; }
.hit-project-bar i:nth-child(3) { background: #28c840; }

.hit-project-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.hit-project-phone {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 23%;
    overflow: hidden;
    border: 4px solid #4a5363;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
    .hit-project-preview { transition: none; }
    .hit-project-preview:hover { transform: none; }
}
