/* ==========================================================================
   KTS24 – Startseite
   ========================================================================== */

/* ---------- Hero ---------- */
.hx {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: calc(100svh - var(--header-h));
    display: flex; align-items: center;
    padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 120px);
}
.hx__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.hx__bg::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(80% 70% at 60% 40%, #000 15%, transparent 75%);
    -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 15%, transparent 75%);
}
.hx__orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .7; will-change: transform; }
.hx__orb--1 { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(circle, #c4006a, transparent 65%); animation: orb1 18s ease-in-out infinite alternate; }
.hx__orb--2 { width: 520px; height: 520px; left: -180px; bottom: -220px; background: radial-gradient(circle, #5b2dff, transparent 65%); opacity: .45; animation: orb2 22s ease-in-out infinite alternate; }
.hx__orb--3 { width: 300px; height: 300px; right: 30%; bottom: 10%; background: radial-gradient(circle, #ff5ca8, transparent 65%); opacity: .3; animation: orb1 14s ease-in-out infinite alternate-reverse; }
@keyframes orb1 { to { transform: translate(-80px, 90px) scale(1.12); } }
@keyframes orb2 { to { transform: translate(120px, -60px) scale(1.08); } }

.hx__grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; width: 100%; }
@media (min-width: 1080px) { .hx__grid { grid-template-columns: 1.15fr .85fr; } }

.hx__badge {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 28px; padding: 7px 14px 7px 8px;
    border: 1px solid var(--border-strong); border-radius: 999px;
    background: rgba(255,255,255,.04); color: var(--text-soft); font-size: .88rem;
}
.hx__badge b { padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep)); color: #fff; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.hx h1 {
    margin: 0 0 28px;
    font-size: clamp(3.4rem, 9.5vw, 8.4rem);
    font-weight: 700; line-height: .92; letter-spacing: -.055em;
}
.hx h1 span { display: block; }
.hx h1 .hx__grad {
    background: linear-gradient(95deg, #ff8cc4 0%, #ff3d97 40%, #c4006a 75%, #7c2bff 110%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine 6s ease-in-out infinite alternate;
}
@keyframes shine { to { background-position: 100% 0; } }
.js .hx h1 span { opacity: 0; transform: translateY(.35em); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hx h1 span:nth-child(2) { animation-delay: .12s; }
.js .hx h1 span:nth-child(3) { animation-delay: .24s; }
.js .hx h1 .hx__grad { animation: rise .8s cubic-bezier(.2,.7,.2,1) .24s forwards, shine 6s ease-in-out 1s infinite alternate; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hx__lead { max-width: 620px; margin: 0 0 36px; color: var(--text-soft); font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.6; }
.hx__lead strong { color: #fff; font-weight: 600; }
.hx .btn { min-height: 56px; padding: 0 28px; font-size: 1rem; }
.hx__trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 36px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hx__trust li { display: inline-flex; align-items: center; gap: 9px; }
.hx__trust i { color: var(--brand-text); }

/* Terminal */
.term {
    position: relative; border-radius: 18px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(180deg, rgba(30,26,41,.92), rgba(18,15,27,.96));
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 50px 120px -30px rgba(196, 0, 106, .55), 0 0 0 1px rgba(255,92,168,.08) inset;
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
    transition: transform .6s ease;
}
.term:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
@media (max-width: 1079px) { .term { transform: none; } }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.term__bar i { width: 12px; height: 12px; border-radius: 50%; background: #3a3448; }
.term__bar i:nth-child(1) { background: #ff5f57; } .term__bar i:nth-child(2) { background: #febc2e; } .term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: 10px; color: var(--muted); font-size: .8rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.term__body {
    min-height: 318px; padding: 22px 22px 26px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.9; color: #d8d3e4;
}
.term__line { display: block; white-space: pre-wrap; word-break: break-word; }
.js .term__line { opacity: 0; }
.term__line.is-on { opacity: 1; transition: opacity .2s ease; }
.term__p { color: var(--brand-text); }
.term__ok { color: var(--ok); }
.term__dim { color: var(--muted); }
.term__hl { color: #fff; font-weight: 600; }
.term__cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -2px; background: var(--brand-text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); background: rgba(196,0,106,.08); font-size: .85rem; }
.term__foot strong { color: #fff; font-family: var(--font-display); font-size: 1.25rem; }
.term__foot span { color: var(--muted); }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-2); }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker li {
    display: inline-flex; align-items: center; gap: 14px; padding: 20px 28px;
    color: var(--text-soft); font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; white-space: nowrap;
}
.ticker li::after { content: "✦"; margin-left: 28px; color: var(--brand-text); font-size: .8rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Big section headings ---------- */
.big-head { margin-bottom: clamp(36px, 5vw, 64px); }
.big-head h2 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -.045em; margin-bottom: 18px; }
.big-head h2 em { font-style: normal; color: var(--brand-text); }
.big-head p { max-width: 640px; color: var(--muted); font-size: 1.12rem; }
.big-head--split { display: grid; gap: 20px; align-items: end; }
@media (min-width: 960px) { .big-head--split { grid-template-columns: 1.3fr 1fr; } .big-head--split p { margin: 0 0 6px; } }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 18px; grid-template-columns: repeat(6, 1fr); }
.bento > * { grid-column: span 6; }
@media (min-width: 760px) {
    .bento > * { grid-column: span 3; }
    .bento .b-vps { grid-column: span 6; }
}
@media (min-width: 1080px) {
    .bento { grid-auto-rows: minmax(250px, auto); }
    .bento .b-vps { grid-column: 1 / span 4; grid-row: 1 / span 2; }
    .bento .b-ded { grid-column: 5 / span 2; }
    .bento .b-web { grid-column: 5 / span 2; }
    .bento .b-mail { grid-column: 1 / span 3; }
    .bento .b-panel { grid-column: 4 / span 3; }
}
.tile {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column;
    padding: clamp(24px, 3vw, 36px); border-radius: 24px;
    border: 1px solid var(--border); background: linear-gradient(160deg, var(--surface-2), var(--surface));
    color: inherit; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
a.tile:hover { color: inherit; transform: translateY(-4px); border-color: rgba(255,92,168,.45); box-shadow: 0 30px 70px -30px var(--brand-glow); }
.tile::after {
    content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--tile-accent, 196, 0, 106), .28), transparent 65%);
    transition: transform .5s ease;
}
a.tile:hover::after { transform: scale(1.25); }
.tile__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; background: rgba(var(--tile-accent, 196, 0, 106), .16); color: rgb(var(--tile-accent-text, 255, 92, 168)); font-size: 1.3rem; margin-bottom: 22px; }
.tile h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.03em; margin-bottom: 10px; }
.tile p { color: var(--muted); margin-bottom: 0; }
.tile__price { margin-top: auto; padding-top: 26px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: .92rem; }
.tile__price strong { color: #fff; font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.tile__go { position: absolute; right: clamp(20px, 3vw, 30px); bottom: clamp(20px, 3vw, 30px); display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border-strong); color: #fff; transition: background .25s ease, transform .25s ease; }
a.tile:hover .tile__go { background: #fff; color: #120f1b; transform: rotate(-45deg); }
.tile--vps { --tile-accent: 124, 92, 255; --tile-accent-text: 168, 148, 255; }
.tile--ded { --tile-accent: 196, 0, 106; }
.tile--web { --tile-accent: 255, 150, 60; --tile-accent-text: 255, 178, 122; }
.tile--mail { --tile-accent: 32, 190, 160; --tile-accent-text: 79, 224, 192; }
.tile--panel { --tile-accent: 255, 92, 168; background: linear-gradient(135deg, #2a0f22, #5a0b38 60%, #8a0052); border-color: rgba(255,92,168,.35); }
.tile--panel p { color: #f0dbe7; }
.tile--vps h3 { font-size: clamp(2rem, 4vw, 3.4rem); }
.tile--vps .tile__price strong { font-size: clamp(2.6rem, 5vw, 4rem); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.03); color: var(--text-soft); font-size: .85rem; }
.tile__visual { position: absolute; right: 0; bottom: 0; width: 55%; max-width: 420px; opacity: .9; pointer-events: none; z-index: -1; }
@media (max-width: 1079px) { .tile__visual { display: none; } }
.rack { display: grid; gap: 8px; padding: 0 36px 36px 0; }
.rack div { position: relative; height: 26px; border-radius: 6px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); }
.rack div::before, .rack div::after { content: ""; position: absolute; top: 9px; width: 7px; height: 7px; border-radius: 50%; }
.rack div::before { left: 12px; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: led 2.4s ease-in-out infinite; }
.rack div::after { left: 26px; background: #a894ff; box-shadow: 0 0 10px #a894ff; animation: led 1.7s ease-in-out infinite reverse; }
.rack div:nth-child(2n)::before { animation-duration: 3.1s; } .rack div:nth-child(3n)::after { animation-duration: 1.2s; }
@keyframes led { 50% { opacity: .25; } }

/* ---------- Numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--border); }
.numbers > div { padding: 36px 28px 8px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 760px) { .numbers > div + div { padding-left: 28px; border-left: 1px solid var(--border); } }
.numbers strong {
    display: block; margin-bottom: 10px;
    font-family: var(--font-display); font-size: clamp(3rem, 6.5vw, 5.6rem); font-weight: 700; line-height: 1; letter-spacing: -.05em;
    background: linear-gradient(180deg, #fff 30%, #b6aec8); -webkit-background-clip: text; background-clip: text; color: transparent;
    font-variant-numeric: tabular-nums;
}
.numbers span { display: block; padding-bottom: 28px; color: var(--muted); font-size: 1rem; }

/* ---------- Full-bleed data center ---------- */
.dcband { position: relative; overflow: hidden; isolation: isolate; padding: clamp(96px, 14vw, 180px) 0; }
.dcband__img { position: absolute; inset: -10% 0; z-index: -2; background: url('/kts24/images/datacenter/rack_room1.webp') center / cover no-repeat; will-change: transform; }
.dcband::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,11,20,.97) 0%, rgba(13,11,20,.85) 45%, rgba(13,11,20,.35) 100%), linear-gradient(0deg, rgba(13,11,20,.9), transparent 35%, transparent 70%, rgba(13,11,20,.9)); }
.dcband h2 { max-width: 760px; font-size: clamp(2.4rem, 5.6vw, 4.8rem); line-height: 1; letter-spacing: -.045em; }
.dcband h2 em { font-style: normal; color: var(--brand-text); }
.dcband p { max-width: 600px; color: var(--text-soft); font-size: 1.15rem; }
.dcband__facts { display: grid; gap: 14px; max-width: 760px; margin: 36px 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.dcband__facts div { padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(13,11,20,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dcband__facts strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.1; }
.dcband__facts span { color: var(--muted); font-size: .86rem; }

/* ---------- Reasons ---------- */
.reasons { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
@media (min-width: 900px) { .reasons { grid-template-columns: 1fr 1fr; } .reasons > div:nth-child(odd) { padding-right: 48px; border-right: 1px solid var(--border); } .reasons > div:nth-child(even) { padding-left: 48px; } }
.reasons > div { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; padding: 34px 0; border-bottom: 1px solid var(--border); }
.reasons b { grid-row: span 2; color: var(--brand-text); font-family: var(--font-display); font-size: 1rem; font-weight: 600; padding-top: 6px; }
.reasons h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -.025em; }
.reasons p { margin: 0; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(96px, 13vw, 170px) 0; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: 1100px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(196,0,106,.45), transparent); }
.final h2 { max-width: 980px; margin: 0 auto 24px; font-size: clamp(2.8rem, 7.5vw, 6.6rem); line-height: .95; letter-spacing: -.055em; }
.final p { max-width: 560px; margin: 0 auto 40px; color: var(--text-soft); font-size: 1.2rem; }
.final .btn-row { justify-content: center; }
.final .btn { min-height: 58px; padding: 0 32px; font-size: 1.02rem; }

@media (prefers-reduced-motion: reduce) {
    .js .hx h1 span, .js .term__line { opacity: 1; transform: none; }
    .ticker__track { animation: none; }
}
.final h2 .grad { background: linear-gradient(95deg, #ff8cc4, #ff3d97 45%, #c4006a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Feinschliff */
.hx h1 { font-size: clamp(3rem, 7.2vw, 7rem); }
@media (min-width: 600px) { .hx h1 span { white-space: nowrap; } }
.numbers strong { font-size: clamp(2.4rem, 4.6vw, 4.4rem); white-space: nowrap; }
