/* Weitblick Systeme · Fallback-Seite für Domains ohne eigene Anwendung */

:root {
  --navy: #0b1a44;
  --navy-2: #24325c;
  --muted: #56627f;
  --blue: #1f5eff;
  --blue-2: #3d8bff;
  --blue-deep: #1238b8;
  --bg: #f5f7fc;
  --card: rgba(255, 255, 255, .78);
  --line: rgba(11, 26, 68, .09);
  --ok: #12a46b;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(11, 26, 68, .05), 0 12px 32px -12px rgba(11, 26, 68, .16), 0 40px 80px -40px rgba(31, 94, 255, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font);
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

/* ---------- Hintergrund ---------- */

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.bg__grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, rgba(11, 26, 68, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 26, 68, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 60% 40%, #000 20%, transparent 75%);
}

.bg__blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .55;
  will-change: transform;
}
.bg__blob--a { width: 46vmax; height: 46vmax; right: -12vmax; top: -16vmax; background: radial-gradient(circle, #9fc0ff 0%, transparent 65%); animation: drift-a 22s ease-in-out infinite alternate; }
.bg__blob--b { width: 38vmax; height: 38vmax; left: -14vmax; bottom: -18vmax; background: radial-gradient(circle, #b9ccff 0%, transparent 65%); animation: drift-b 26s ease-in-out infinite alternate; }
.bg__blob--c { width: 26vmax; height: 26vmax; right: 18vw; bottom: -8vmax; background: radial-gradient(circle, #a9e4ff 0%, transparent 65%); opacity: .4; animation: drift-a 30s ease-in-out infinite alternate-reverse; }

@keyframes drift-a { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(7vmax, -4vmax, 0) scale(1.12); } }

.bg__circuit {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .25) 48%, #000 66%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .25) 48%, #000 66%);
}
@media (max-width: 1080px) { .bg__circuit { -webkit-mask-image: none; mask-image: none; opacity: .5; } }
.bg__circuit .traces path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s var(--ease) .4s forwards; }
.bg__circuit .nodes circle { opacity: 0; animation: fade 1s ease 1.8s forwards; }
.bg__circuit .pulses { opacity: .7; }

.bg__spot {
  position: absolute; width: 640px; height: 640px; left: 0; top: 0;
  margin: -320px 0 0 -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 94, 255, .09), transparent 60%);
  transform: translate3d(var(--mx, 70vw), var(--my, 30vh), 0);
  transition: transform .5s var(--ease);
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Layout ---------- */

.hero {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  max-width: 1240px; margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  display: flex; flex-direction: column;
}

.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top__logo { width: 208px; height: auto; }

.status {
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 600; color: var(--navy-2); white-space: nowrap;
  box-shadow: 0 1px 2px rgba(11, 26, 68, .04);
}
.status__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.status__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.status__sep { width: 1px; height: 14px; background: var(--line); }
.status__host { font-weight: 500; color: var(--muted); max-width: 26ch; overflow: hidden; text-overflow: ellipsis; }

@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.hero__grid {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
  padding: clamp(24px, 4.5vh, 56px) 0;
}

/* ---------- Text ---------- */

.eyebrow {
  margin: 0 0 22px; display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, rgba(31, 94, 255, .45), rgba(31, 94, 255, .08) 60%) border-box;
  border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; color: var(--blue-deep); letter-spacing: .01em;
  box-shadow: 0 6px 20px -10px rgba(31, 94, 255, .45);
}
.eyebrow img { width: 24px; height: auto; padding: 4px; box-sizing: content-box; background: #eef3ff; border-radius: 999px; }

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 3.9vw, 3.5rem);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 800;
  color: var(--navy);
  text-wrap: balance;
}
.grad {
  background: linear-gradient(100deg, var(--blue-deep) 0%, var(--blue) 40%, var(--blue-2) 70%, var(--blue) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.lead {
  margin: 24px 0 0; max-width: 54ch;
  font-size: clamp(1.02rem, 1.25vw, 1.14rem); color: var(--muted);
}
.lead strong { color: var(--navy); font-weight: 650; overflow-wrap: anywhere; }

.caps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; max-width: 560px; }
.cap {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .55); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 14.5px; color: var(--muted); line-height: 1.45;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), background .35s;
}
.cap strong { display: block; color: var(--navy); font-size: 15.5px; font-weight: 700; margin-bottom: 2px; }
.cap__icon {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(145deg, #2a6bff, #1238b8); box-shadow: 0 6px 14px -6px rgba(31, 94, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.cap__icon svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .cap:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .9); border-color: rgba(31, 94, 255, .22); box-shadow: 0 14px 30px -18px rgba(31, 94, 255, .55); }
}

.actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; max-width: 560px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 15.5px; color: #fff;
  background: linear-gradient(135deg, #2a6bff, #1238b8);
  box-shadow: 0 10px 24px -10px rgba(31, 94, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn[hidden] { display: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(31, 94, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn:hover svg { transform: translateX(3px); }

.owner { flex: 1 1 280px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.owner summary {
  list-style: none; cursor: pointer; min-height: 50px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 14.5px; font-weight: 650; color: var(--navy-2); border-radius: 14px;
}
.owner summary::-webkit-details-marker { display: none; }
.owner summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); flex: none; }
.owner[open] summary svg { transform: rotate(180deg); }
.owner__body { padding: 0 16px 14px; font-size: 14px; color: var(--muted); animation: open .4s var(--ease); }
.owner__body p { margin: 0 0 8px; }
.owner__body p:last-child { margin: 0; color: var(--navy); font-weight: 600; }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } }

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 10px; }

/* ---------- Visual ---------- */

.visual { position: relative; padding: 36px 26px 44px; perspective: 1400px; }

.window {
  position: relative; z-index: 2;
  border-radius: var(--radius); background: var(--card);
  border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
  overflow: hidden;
}
.window::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .7) 0%, transparent 32%);
  opacity: .5;
}

.window__bar { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe4ef; }
.dots i:first-child { background: #ff6b6b; opacity: .75; }
.dots i:nth-child(2) { background: #ffc24b; opacity: .75; }
.dots i:nth-child(3) { background: #36c88a; opacity: .75; }
.window__title { flex: 1; font-size: 13px; font-weight: 650; color: var(--navy-2); }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: rgba(18, 164, 107, .1); color: var(--ok); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 16px 4px; }
.kpi { padding: 11px 12px; border-radius: 13px; background: rgba(245, 247, 252, .9); border: 1px solid var(--line); min-width: 0; }
.kpi span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong { display: block; margin-top: 2px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi--ok strong { color: var(--ok); }
.kpi strong.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: translateY(-3px); color: var(--blue); } }

.chart { position: relative; margin: 10px 16px 6px; height: 78px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart__line { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.2s var(--ease) 1s forwards; }
.chart__area { opacity: 0; animation: fade 1.2s ease 1.9s forwards; }
.chart__label { position: absolute; left: 0; top: 0; font-size: 11.5px; font-weight: 600; color: var(--muted); }

.feed { list-style: none; margin: 0; padding: 6px 12px 14px; display: grid; gap: 8px; height: 228px; overflow: hidden; align-content: start; }
.row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 13px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(11, 26, 68, .04);
  animation: row-in .7s var(--ease) both;
}
.row.out { animation: row-out .45s var(--ease) forwards; }
@keyframes row-in { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
@keyframes row-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
.row__av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: var(--blue-deep); background: #eaf0ff; }
.row__txt { min-width: 0; }
.row__txt b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__txt small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; transition: background .4s, color .4s; }
.chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chip--new { background: #eaf0ff; color: var(--blue-deep); }
.chip--work { background: #fff4dc; color: #a26200; }
.chip--done { background: rgba(18, 164, 107, .12); color: var(--ok); }

/* Zettel, der ins System wandert */
.paper {
  position: absolute; z-index: 1; left: -6px; top: 4px; width: 132px; padding: 18px 14px 16px;
  background: #fffdf4; border-radius: 4px;
  box-shadow: 0 10px 22px -12px rgba(11, 26, 68, .35), 0 1px 0 rgba(11, 26, 68, .06);
  transform: rotate(-8deg);
  animation: paper 6.5s var(--ease) 1.2s infinite;
}
.paper__pin { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a8a, #d63c3c); box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.paper__line { display: block; height: 5px; margin: 0 0 9px; border-radius: 3px; background: rgba(11, 26, 68, .16); }
.paper__line.w80 { width: 80%; } .paper__line.w60 { width: 60%; } .paper__line.w90 { width: 90%; } .paper__line.w40 { width: 40%; }
.paper__scribble { display: block; margin-top: 4px; font: italic 600 14px/1 "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; color: #d63c3c; transform: rotate(-4deg); }
@keyframes paper {
  0% { opacity: 0; transform: translate3d(-30px, -10px, 0) rotate(-14deg); }
  14%, 46% { opacity: 1; transform: translate3d(0, 0, 0) rotate(-8deg); }
  64% { opacity: 0; transform: translate3d(120px, 150px, 0) rotate(0deg) scale(.55); }
  100% { opacity: 0; transform: translate3d(120px, 150px, 0) rotate(0deg) scale(.55); }
}

.toast {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px;
  padding: 11px 14px 11px 11px; border-radius: 15px;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -18px rgba(11, 26, 68, .4), 0 2px 6px rgba(11, 26, 68, .05);
  font-size: 12px; color: var(--muted); line-height: 1.3; white-space: nowrap;
}
.toast strong { display: block; color: var(--navy); font-size: 13px; }
.toast__icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--ok); flex: none; }
.toast__icon--alt { background: linear-gradient(145deg, #2a6bff, #1238b8); }
.toast__icon svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast--a { right: -4px; bottom: 6px; animation: float 6s ease-in-out 2.4s infinite, pop .8s var(--ease) 2s both; }
.toast--b { right: 4px; top: 0; animation: float 7s ease-in-out 3s infinite reverse, pop .8s var(--ease) 2.6s both; }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.92); } }

/* ---------- Footer ---------- */

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.foot__sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(11, 26, 68, .25); }

/* ---------- Einblenden ---------- */

.reveal { opacity: 0; transform: translateY(18px); animation: reveal .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 44px; }
  .copy { max-width: 680px; }
  .visual { max-width: 560px; width: 100%; margin: 0 auto; }
}

@media (max-width: 640px) {
  .hero { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); padding-top: max(18px, env(safe-area-inset-top)); }
  .top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .top__logo { width: 172px; }
  .status { font-size: 12.5px; max-width: 100%; }
  .status__host { max-width: 40vw; }
  .hero__grid { padding-top: 30px; padding-bottom: 28px; }
  .eyebrow { font-size: 12.5px; margin-bottom: 18px; }
  h1 { font-size: clamp(2rem, 9.6vw, 3rem); letter-spacing: -.03em; }
  .foot__sep { display: none; }
  .foot { flex-direction: column; align-items: flex-start; gap: 2px; }
  .lead { margin-top: 18px; font-size: 1rem; }
  .caps { margin-top: 26px; }
  .cap { padding: 13px 14px; font-size: 14px; }
  .actions > * { flex-basis: 100%; }
  .btn { justify-content: center; }
  .visual { padding: 30px 4px 54px; }
  .paper { width: 104px; left: -2px; top: 0; padding: 14px 11px 12px; }
  .paper__scribble { font-size: 12px; }
  .kpis { gap: 7px; padding: 12px 12px 2px; }
  .kpi { padding: 9px 9px; }
  .kpi span { font-size: 10.5px; }
  .kpi strong { font-size: 16px; }
  .chart { margin: 8px 12px 4px; height: 64px; }
  .feed { padding: 4px 9px 11px; height: 214px; }
  .row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; padding: 9px 10px; }
  .row__av { width: 32px; height: 32px; font-size: 11.5px; }
  .toast--a { right: 6px; bottom: 4px; }
  .toast--b { display: none; }
  .foot { font-size: 12.5px; }
}

@media (max-width: 380px) {
  .chip--done span { display: none; }
  .chip { padding: 5px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .bg__circuit .pulses, .paper { display: none; }
  .window { transform: none !important; }
}
