:root {
  --blue: #18bcf2;
  --night: #0b1220;
  --ink: #0f1b2d;
  --muted: #55657c;
  --soft: #f3f8fc;
  --line: #dbe6f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--soft); color: var(--ink); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { width: min(1040px, 100% - 40px); margin-inline: auto; }
a { color: inherit; }
a:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }

.hero { background: radial-gradient(900px 500px at 80% 20%, rgb(24 188 242 / .28), transparent 70%), var(--night); color: #fff; padding: 72px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 700; letter-spacing: .04em; }
h1 { font-size: clamp(46px, 8vw, 84px); line-height: 1.02; margin: 8px 0 16px; letter-spacing: -.02em; }
.lead { font-size: 21px; color: #cdd9ea; max-width: 30ch; margin-bottom: 28px; }
.btn { display: inline-block; background: var(--blue); color: #04121b; font-weight: 800; font-size: 19px; text-decoration: none; padding: 16px 30px; border-radius: 14px; box-shadow: 0 14px 34px rgb(24 188 242 / .35); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgb(24 188 242 / .45); }
.btn:focus-visible { outline-color: #fff; }
.meta { margin-top: 16px; font-size: 15px; color: #9fb0c8; }
.meta strong { color: #fff; }

.hero-art { perspective: 900px; display: flex; justify-content: center; }
.tile { width: min(300px, 100%); animation: float 7s ease-in-out infinite; transform-style: preserve-3d; }
.tile img { display: block; width: 100%; height: auto; border-radius: 22%; box-shadow: -30px 40px 70px rgb(0 0 0 / .55); }
@keyframes float {
  0%, 100% { transform: rotateY(-18deg) rotateX(8deg) translateY(0); }
  50% { transform: rotateY(14deg) rotateX(-4deg) translateY(-14px); }
}

main { padding: 56px 0 64px; display: grid; gap: 48px; }
main > section { min-width: 0; }
h2 { font-size: 30px; margin-bottom: 20px; }
.hint { color: var(--muted); margin: -8px 0 20px; }
.steps + .hint { margin: 14px 0 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.steps li > div::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: #04121b; font-weight: 800; margin-bottom: 10px; }
.steps img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--night); }
.steps li > div { padding: 16px 18px 20px; }
h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15.5px; overflow-wrap: anywhere; }
.note { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--blue); border-radius: 16px; padding: 26px 28px; }
.note ul { padding-left: 20px; display: grid; gap: 8px; }

footer { background: var(--night); color: #9fb0c8; padding: 24px 0; font-size: 15px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { padding: 10px 0; }
.badge { display: flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; }
.badge img { width: 38px; height: 37px; object-fit: contain; }

.note p { margin-bottom: 10px; }
.note .small { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.more { display: inline-block; padding: 8px 0; font-weight: 800; }

/* Pamje nga telefoni: nebeneinander, am Handy zur Seite wischen */
.phones { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 22px; }
.phones img { display: block; width: 100%; height: auto; border: 6px solid var(--night); border-radius: 28px; background: var(--night); }
.phones figcaption { margin-top: 10px; text-align: center; font-weight: 700; }
.phones:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }

/* Pamje nga televizori: 2 Spalten, am Handy wischen */
.screens { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.screens figure { background: var(--night); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgb(11 18 32 / .18); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.screens li { display: flex; }
.screens li figure { flex: 1; display: flex; flex-direction: column; }
.screens figcaption { flex: 1; }
.screens figure:hover { transform: translateY(-4px); box-shadow: 0 26px 50px rgb(11 18 32 / .28); }
.screens img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.screens figcaption { padding: 14px 18px 16px; color: #9fb0c8; font-size: 15px; }
.screens figcaption strong { display: block; color: #fff; font-size: 17px; }
.screens:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }
.small-credit { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Rechtsseiten */
.legal { padding: 40px 0 64px; max-width: 760px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 21px; margin: 28px 0 8px; }
.legal p, .legal ul { margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.back { display: inline-block; padding: 10px 0; font-weight: 700; }

/* Hero-Intro und Ein-/Ausblenden beim Scrollen */
.intro { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-text > :nth-child(5) { animation-delay: .32s; }
.hero-art { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s, transform .6s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 36px 0 48px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; }
  .tile { width: 150px; }
  .lead { margin-inline: auto; font-size: 19px; }
  .btn { display: block; }
  main { padding: 36px 0 44px; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .phones { display: flex; justify-content: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  .phones li { flex: 0 0 70%; scroll-snap-align: start; }
  .screens { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  .screens li { flex: 0 0 86%; scroll-snap-align: start; }
  .note { padding: 20px; }
  .foot { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .intro, .tile { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .screens figure { transition: none; }
}

/* tv.buop.al/m3u – schlicht: Info-Bild + Formular */
.m3u-top { border-bottom: 1px solid var(--line); background: #fff; }
.m3u-top .wrap { padding-top: 16px; padding-bottom: 16px; }
.m3u-top a { font-weight: 800; text-decoration: none; color: inherit; }
.m3u-page main.m3u-main { padding-top: 36px; padding-bottom: 56px; }
.m3u-main h1 { font-size: clamp(28px, 4.5vw, 40px); margin: 0 0 10px; }
.m3u-main .lead { color: var(--muted); margin: 0 0 28px; padding: 0; border: 0; font-size: 17px; max-width: none; }
.m3u-grid { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.m3u-info { margin: 0; }
.m3u-info img { display: block; width: 100%; height: auto; }
.m3u-info figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
.m3u-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.m3u-form { display: grid; gap: 18px; }
.m3u-form .field { display: grid; gap: 7px; }
.m3u-form label { font-weight: 800; }
.m3u-form label span { font-weight: 400; color: var(--muted); }
.m3u-form input { font: inherit; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--soft); width: 100%; }
.m3u-form input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgb(24 188 242 / .2); }
.m3u-form #code { text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: 22px; max-width: 240px; }
.m3u-form input::placeholder { color: #a3b1c2; font-weight: 400; }
.m3u-form #code::placeholder { letter-spacing: .18em; font-weight: 600; }
.m3u-form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.m3u-note { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.msg { padding: 14px 16px; border-radius: 12px; font-weight: 700; margin-bottom: 20px; }
.msg.ok { background: #e3f9ee; color: #0d6b3c; }
.msg.err { background: #fdecec; color: #a12121; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) {
  .m3u-grid { grid-template-columns: 1fr; }
  .m3u-info { max-width: 260px; margin: 0 auto; text-align: center; }
  .m3u-card { padding: 20px 16px; }
  .m3u-form #code { max-width: none; }
  .m3u-form .btn { justify-self: stretch; text-align: center; }
}

/* ===== buop CAM ===== */
/* Monitor im Hero: wechselnde Aufteilungen */
.monitor { position: relative; width: min(440px, 100%); aspect-ratio: 16 / 10; background: #131d30; border: 1px solid #24324d; border-radius: 22px; padding: 12px; box-shadow: -30px 40px 70px rgb(0 0 0 / .55), 0 0 0 1px rgb(24 188 242 / .08); animation: float 7s ease-in-out infinite; }
.mon-grid { display: grid; gap: 5px; width: 100%; height: 100%; transition: all .4s; }
.mon-grid i { position: relative; overflow: hidden; border-radius: 7px; background: linear-gradient(135deg, hsl(calc(195 + var(--h, 0) * .08) 60% 22%), hsl(calc(205 + var(--h, 0) * .05) 55% 12%)); animation: pop .45s cubic-bezier(.2, .8, .2, 1) both; }
.mon-grid i::before { content: ""; position: absolute; top: 7px; left: 7px; width: 7px; height: 7px; border-radius: 50%; background: #ff5d6c; box-shadow: 0 0 0 3px rgb(255 93 108 / .25); animation: rec 1.6s ease-in-out infinite; }
.mon-grid i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .07) 50%, transparent 70%); animation: scan 3.2s linear infinite; }
.mon-count { position: absolute; right: -14px; bottom: -14px; min-width: 52px; height: 52px; padding: 0 10px; border-radius: 16px; background: var(--blue); color: #04121b; font: 800 24px/52px system-ui, sans-serif; text-align: center; box-shadow: 0 10px 28px rgb(24 188 242 / .45); }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes rec { 50% { opacity: .35; } }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Funktionen */
.feats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feats li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 20px; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.feats li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(11 18 32 / .1); }
.feats p { color: var(--muted); font-size: 15.5px; }
.fi { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgb(24 188 242 / .12); margin-bottom: 14px; }
.fi svg { width: 24px; height: 24px; fill: none; stroke: #0a8fbf; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Aufteilungen als Symbole */
.lays { display: flex; flex-wrap: wrap; gap: 14px; }
.lay { display: grid; justify-items: center; gap: 6px; width: 92px; padding: 14px 12px 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .25s, border-color .25s; }
.lay:hover { transform: translateY(-3px); border-color: var(--blue); }
.lay svg { width: 62px; height: 46px; }
.lay rect { fill: var(--blue); }
.lay.tv rect { fill: #0f1b2d; }
.lay small { font-weight: 700; color: var(--muted); font-size: 13px; }

/* Marken */
.brands { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.brands li { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; font-weight: 600; }

/* Schritte ohne Bilder */
.steps-text li > div { padding: 22px 22px 24px; }

@media (max-width: 960px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feats { grid-template-columns: 1fr; } .monitor { width: 100%; } .mon-count { right: 8px; bottom: -16px; } .lay { width: calc(25% - 11px); padding: 10px 6px 8px; } .lay svg { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .monitor, .mon-grid i, .mon-grid i::before, .mon-grid i::after { animation: none; } }
