/* ============================================================
   KSS – Krone Service Solutions · Version 1 (Kunden-Briefing 14.07.2026)
   Farbwelt: Schwarz / Weiß / Grau + Limette #B7C93D (Vorgabe Tom Krone)
   ============================================================ */

:root {
    --bg: #0b0b0c;
    --bg-2: #101012;
    --panel: #151517;
    --panel-2: #1a1a1d;
    --line: #26262a;
    --ink: #f2f2f0;
    --soft: #a3a5a1;
    --lime: #b7c93d;
    --lime-bright: #cbdd52;
    --lime-dim: rgba(183, 201, 61, .14);
    --radius: 10px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
    --font-display: "Archivo", "Plus Jakarta Sans", sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 100px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: #0b0b0c; }

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Fortschrittsbalken ---------- */
.progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--lime); z-index: 200;
}

/* ---------- Header ---------- */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px clamp(20px, 5vw, 56px);
    background: linear-gradient(rgba(11,11,12,.92), rgba(11,11,12,.78) 70%, transparent);
    transition: background .3s, padding .3s, box-shadow .3s;
}
header.scrolled {
    background: rgba(11, 11, 12, .96);
    padding: 10px clamp(20px, 5vw, 56px);
    box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0,0,0,.4);
    backdrop-filter: blur(10px);
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-lockup { height: 136px; width: auto; transition: height .3s; filter: drop-shadow(0 2px 12px rgba(0,0,0,.45)); }
header.scrolled .logo-lockup { height: 76px; }
.logo-lockup-footer { height: 190px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main {
    font-family: var(--font-display); font-weight: 800; font-size: 21px;
    letter-spacing: .04em; color: var(--ink);
}
.logo-sub { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); font-weight: 700; margin-top: 3px; }
nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); }
nav a {
    text-decoration: none; color: var(--soft); font-size: 13.5px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 2px; position: relative; transition: color .2s;
}
nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
    height: 2px; background: var(--lime); transition: right .28s cubic-bezier(.22,1,.36,1);
}
nav a:hover { color: var(--ink); }
nav a:hover::after { right: 0; }
nav a.nav-cta {
    border: 1px solid var(--lime); color: var(--lime);
    padding: 10px 20px; border-radius: 4px; transition: .2s;
}
nav a.nav-cta::after { display: none; }
nav a.nav-cta:hover { background: var(--lime); color: #0b0b0c; }
.nav-toggle {
    display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
    color: var(--lime); font-size: 22px; line-height: 1; padding: 8px 12px; cursor: pointer;
}
.nav-toggle:hover, .nav-toggle:focus-visible { border-color: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; font-weight: 700; font-size: 13.5px;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 15px 26px; border-radius: 4px;
    transition: background .2s, color .2s, border-color .2s;
    will-change: transform;
}
.btn-primary { background: var(--lime); color: #0b0b0c; }
.btn-primary:hover { background: var(--lime-bright); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn .arr { font-family: var(--font-body); transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 92vh;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center; gap: clamp(24px, 4vw, 60px);
    padding: 205px clamp(20px, 5vw, 56px) 70px;
    overflow: hidden; max-width: 1400px; margin: 0 auto;
}
.hero-logo {
    height: clamp(150px, 16vw, 215px); width: auto;
    margin-bottom: 28px;
    filter: drop-shadow(0 4px 18px rgba(0,0,0,.5));
    animation: wordUp .7s cubic-bezier(.22,1,.36,1) both;
}
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }
.hero-kicker {
    color: var(--lime); font-size: 13px; font-weight: 700;
    letter-spacing: .3em; text-transform: uppercase; margin-bottom: 22px;
}
.hero-copy { min-width: 0; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, calc(5vw - 8px), 64px);
    font-weight: 800; line-height: 1.04; letter-spacing: -.01em;
    text-transform: uppercase; margin-bottom: 26px;
    overflow-wrap: break-word;
}
.hero h1 .dot { color: var(--lime); }
.hero h1.split .w { display: inline-block; opacity: 0; animation: wordUp .6s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes wordUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-claim {
    font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; color: var(--ink); margin-bottom: 14px;
}
.hero-sub { color: var(--soft); max-width: 54ch; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img {
    width: 100%; height: auto; aspect-ratio: 4 / 3.1; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow);
    filter: grayscale(1) contrast(1.05);
}
.hero-media::after {
    content: ""; position: absolute; inset: 0; border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
    background: linear-gradient(200deg, transparent 55%, rgba(11,11,12,.55));
    pointer-events: none;
}
.hero-media .media-tag {
    position: absolute; left: 18px; bottom: 18px; z-index: 2;
    background: rgba(11,11,12,.82); border: 1px solid var(--line);
    color: var(--soft); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
    padding: 8px 14px; border-radius: 4px; backdrop-filter: blur(6px);
}
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 170px; }
    .hero-media { order: -1; margin-top: 10px; }
    .hero-media img { aspect-ratio: 4 / 3; }
}

/* ---------- Marquee (Laufzeile) ---------- */
.marquee {
    overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--bg-2); padding: 16px 0; position: relative;
}
.marquee-track {
    display: inline-flex; align-items: center; gap: 34px; white-space: nowrap;
    animation: marquee 30s linear infinite; will-change: transform;
    padding-right: 34px;
}
.marquee span {
    font-family: var(--font-display); font-weight: 700; font-size: 14px;
    letter-spacing: .22em; text-transform: uppercase; color: var(--soft);
}
.marquee i { color: var(--lime); font-style: normal; font-size: 12px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sektionen ---------- */
.section { padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 56px); max-width: 1280px; margin: 0 auto; }
.section.secondary { background: var(--bg-2); max-width: none; }
.section.secondary > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.section-kicker {
    color: var(--lime); font-size: 12.5px; font-weight: 700;
    letter-spacing: .28em; text-transform: uppercase; margin-bottom: 14px;
}
.section h2 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08;
    text-transform: uppercase; letter-spacing: -.005em;
    max-width: 24ch; margin-bottom: 18px;
}
.section h2 .dot { color: var(--lime); }
.section-intro { color: var(--soft); max-width: 62ch; margin-bottom: 46px; }

/* ---------- Leistungs-Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px 24px; display: flex; flex-direction: column;
    transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(183, 201, 61, .55); }
.card-icon {
    width: 52px; height: 52px; border-radius: 8px;
    background: var(--lime-dim); color: var(--lime);
    display: grid; place-items: center; margin-bottom: 20px;
    font-size: 24px;
}
.card h3 {
    font-family: var(--font-display); font-weight: 800; font-size: 19px;
    text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; margin-bottom: 16px;
}
.card ul { list-style: none; margin-bottom: 22px; }
.card li {
    color: var(--soft); font-size: 14.5px; padding: 5px 0 5px 26px; position: relative;
}
.card li::before {
    content: "✓"; position: absolute; left: 0; top: 5px;
    color: var(--lime); font-weight: 700;
}
.card .card-link {
    margin-top: auto; color: var(--lime); font-weight: 700; font-size: 13px;
    letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.card .card-link .arr { transition: transform .2s; }
.card:hover .card-link .arr { transform: translateX(5px); }

/* ---------- Vorher / Nachher ---------- */
.ba-slider,
.section.secondary > .ba-slider {
    position: relative; max-width: 820px; margin: 0 auto;
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    --pos: 50%;
    touch-action: none; cursor: col-resize;
}
.ba-slider img { width: 100%; height: auto; max-height: 540px; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.ba-over {
    position: absolute; inset: 0; overflow: hidden;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-over img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.ba-handle {
    position: absolute; top: 0; bottom: 0; left: var(--pos);
    width: 3px; background: var(--lime); transform: translateX(-50%);
}
.ba-handle span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--lime); color: #0b0b0c;
    display: grid; place-items: center; font-weight: 800;
    box-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.ba-handle span::before { content: "⇄"; font-size: 19px; }
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible span { box-shadow: 0 0 0 4px rgba(203, 221, 82, .6), 0 4px 18px rgba(0,0,0,.5); }
.ba-tag {
    position: absolute; top: 16px; background: rgba(11,11,12,.8);
    color: var(--ink); font-size: 11.5px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    padding: 7px 13px; border-radius: 4px; border: 1px solid var(--line);
}
.ba-tag.before { left: 16px; }
.ba-tag.after { right: 16px; color: var(--lime); border-color: rgba(183,201,61,.4); }
.ba-hint { text-align: center; color: var(--soft); font-size: 13.5px; margin-top: 16px; }

.tech-note {
    display: flex; align-items: center; gap: 26px;
    max-width: 900px; margin: 46px auto 0;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px; color: var(--soft);
}
.tech-note img {
    width: 190px; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px;
    filter: grayscale(1) contrast(1.05);
}
.tech-note strong { color: var(--ink); }
@media (max-width: 640px) { .tech-note { flex-direction: column; align-items: flex-start; } .tech-note img { width: 100%; } }

/* ---------- Über uns + Kennzahlen ---------- */
.about-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(28px, 5vw, 70px); align-items: center;
}
.about-media img {
    border-radius: var(--radius); box-shadow: var(--shadow);
    filter: grayscale(1) contrast(1.05); width: 100%; height: auto;
    aspect-ratio: 4 / 4; max-height: 560px; object-fit: cover;
}
.about-grid p { color: var(--soft); margin-bottom: 18px; max-width: 58ch; }
.stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px; margin-top: 36px;
}
.stat-tile { border-top: 2px solid var(--lime); padding-top: 14px; }
.stat-tile .num {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(26px, 2.6vw, 34px); color: var(--ink); line-height: 1;
}
.stat-tile .lbl {
    font-size: 11px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--lime); margin: 8px 0 4px;
}
.stat-tile .sub { font-size: 12.5px; color: var(--soft); line-height: 1.45; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-media { order: -1; } .about-media img { aspect-ratio: 16/9; } }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-inner {
    max-width: 1280px; margin: 0 auto;
    padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 56px);
    display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); flex-wrap: wrap;
}
.cta-icon {
    flex: 0 0 auto; width: 62px; height: 62px; border-radius: 50%;
    border: 1px solid var(--lime); color: var(--lime);
    display: grid; place-items: center; font-size: 24px;
}
.cta-inner h2 {
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    font-size: clamp(20px, 2.6vw, 30px); line-height: 1.15; flex: 1 1 320px;
}
.cta-inner .cta-sub { color: var(--soft); flex: 1 1 240px; font-size: 15px; }

/* ---------- Kontakt ---------- */
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.contact-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-detail {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 22px;
}
.cd-label {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em;
    text-transform: uppercase; color: var(--lime); margin-bottom: 8px;
}
.contact-detail a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-detail a:hover { color: var(--lime); }
.contact-detail span:not(.cd-label) { color: var(--ink); font-weight: 600; }

/* ---------- Unterseiten ---------- */
.subhero {
    padding: 200px clamp(20px, 5vw, 56px) 60px;
    max-width: 1280px; margin: 0 auto;
}
.breadcrumb {
    font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--soft); margin-bottom: 26px;
}
.breadcrumb a { color: var(--soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb .sep { margin: 0 8px; color: var(--soft); opacity: .4; }
.subhero h1 {
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    font-size: clamp(28px, 7.4vw, 60px); line-height: 1.05; margin-bottom: 18px;
    overflow-wrap: break-word;
}
.subhero h1 .dot { color: var(--lime); }
.subhero .lead { color: var(--soft); max-width: 62ch; }

.detail-list { display: grid; gap: 14px; max-width: 900px; }
.detail-item {
    display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px;
    transition: border-color .25s;
}
.detail-item:hover { border-color: rgba(183,201,61,.45); }
.detail-check {
    width: 46px; height: 46px; border-radius: 8px;
    background: var(--lime-dim); color: var(--lime);
    display: grid; place-items: center; font-size: 19px; font-weight: 800;
}
.detail-item h3 {
    font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
    font-size: 17px; margin-bottom: 6px;
    overflow-wrap: break-word; hyphens: auto;
}
.detail-item p { color: var(--soft); font-size: 14.5px; }

.other-services { margin-top: 70px; }
.other-services h2 { font-size: clamp(20px, 2.4vw, 28px); }
.chip-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.chip {
    text-decoration: none; color: var(--ink); font-weight: 700; font-size: 13px;
    letter-spacing: .1em; text-transform: uppercase;
    border: 1px solid var(--line); border-radius: 4px; padding: 12px 18px;
    transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Nach-oben + Footer ---------- */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 46px; height: 46px; border-radius: 6px;
    background: var(--panel-2); border: 1px solid var(--line); color: var(--lime);
    display: grid; place-items: center; text-decoration: none; font-size: 18px;
    opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: opacity .25s, transform .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--lime); }

footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid {
    max-width: 1280px; margin: 0 auto;
    padding: clamp(44px, 6vw, 70px) clamp(20px, 5vw, 56px) 30px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px;
}
.footer-brand-block .logo-img { height: 52px; margin-bottom: 14px; }
.footer-brand-block .fb-name {
    font-family: var(--font-display); font-weight: 800; font-size: 17px;
    text-transform: uppercase; line-height: 1.25;
}
.footer-brand-block .fb-tag {
    font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
    color: var(--soft); margin-top: 6px;
}
.footer-grid h4 {
    font-size: 12px; font-weight: 700; letter-spacing: .2em;
    text-transform: uppercase; color: var(--lime); margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--soft); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.footer-grid a:hover { color: var(--lime); }
.footer-grid .plain { color: var(--soft); font-size: 14.5px; }
.footer-bottom {
    border-top: 1px solid var(--line);
    max-width: 1280px; margin: 0 auto;
    padding: 20px clamp(20px, 5vw, 56px);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    color: var(--soft); font-size: 13px;
}
.footer-bottom a { color: var(--soft); text-decoration: none; margin-left: 18px; }
.footer-bottom a:hover { color: var(--lime); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.visible { animation: revealUp .7s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes revealUp { to { opacity: 1; transform: none; } }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee-track { animation: none; }
    .reveal { opacity: 1; transform: none; }
    .reveal.visible { animation: none; }
    .hero h1.split .w { opacity: 1; animation: none; }
}

/* ---------- Mobil: Burger-Menü ---------- */
@media (max-width: 760px) {
    .nav-toggle { display: grid; place-items: center; }
    nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: rgba(11, 11, 12, .98); backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--line);
        padding: 10px 20px 20px;
        opacity: 0; transform: translateY(-8px); pointer-events: none;
        transition: opacity .22s, transform .22s cubic-bezier(.22,1,.36,1);
    }
    header.nav-open nav { opacity: 1; transform: none; pointer-events: auto; }
    nav a:not(.nav-cta) { display: block; padding: 13px 2px; font-size: 15px; border-bottom: 1px solid var(--line); }
    nav a::after { display: none; }
    nav a.nav-cta { margin-top: 14px; text-align: center; padding: 13px 20px; }
    .logo-lockup { height: 88px; }
    header.scrolled .logo-lockup { height: 62px; }
    .section { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    nav { transition: none; }
}
