/* Baustellenseite in einfy.de's design (tokens, type, glass, ink pill with the turning ring of einfy greens:
   einfy/public/assets/glass.css). Only the logo comes from the customer. Light first, dark follows the system. */
@font-face { font-family: "Inter"; src: url("/_baustelle/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --accent: #138a45; --accent-text: color-mix(in srgb, var(--accent) 85%, #000);
  --fg: #1d1d1f; --fg-2: #424245; --fg-3: #6e6e73;
  --page: #fbfbfd; --page-glow: rgba(19, 138, 69, .06); --card: #ffffff; --tile: #f2f2f5; --line: #e5e5ea;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 24px 50px -30px rgba(0, 0, 0, .28);
  --g-bg: rgba(255, 255, 255, .6); --g-edge: rgba(255, 255, 255, .9);
  --g-bevel-hi: rgba(255, 255, 255, .95); --g-bevel-lo: rgba(255, 255, 255, .08);
  --g-shadow: 0 1px 2px rgba(10, 20, 35, .05), 0 18px 40px -22px rgba(10, 20, 35, .35);
  --ink-pill: #1d1d1f; --ink-pill-fg: #f5f5f7; --plus-bg: rgba(19, 138, 69, .1);
  --r-s: 6px; --r-m: 8px; --r-l: 12px; --grid: rgba(19, 138, 69, .07);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --accent: #4be38a; --accent-text: var(--accent);
  --fg: #f5f5f7; --fg-2: #d2d2d7; --fg-3: #a1a1a6;
  --page: #0e0f12; --page-glow: rgba(75, 227, 138, .075); --card: #17181c; --tile: #1f2025; --line: #26272c;
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 50px -30px rgba(0, 0, 0, .8);
  --g-bg: rgba(28, 30, 36, .55); --g-edge: rgba(255, 255, 255, .14);
  --g-bevel-hi: rgba(255, 255, 255, .4); --g-bevel-lo: rgba(255, 255, 255, .02);
  --g-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -24px rgba(0, 0, 0, .85);
  --ink-pill: #f5f5f7; --ink-pill-fg: #1d1d1f; --plus-bg: rgba(75, 227, 138, .12); --grid: rgba(75, 227, 138, .06);
  color-scheme: dark;
} }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  position: relative; isolation: isolate; overflow-x: hidden;
  margin: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; color: var(--fg);
  background: radial-gradient(1100px 620px at 50% -180px, var(--page-glow), transparent 70%) no-repeat, var(--page);
  font: 400 17px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.011em;
  font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-s); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* glass capsule, like einfy.de's nav */
.glass { position: relative; isolation: isolate; background: var(--g-bg); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 0 18px -6px var(--g-edge), var(--g-shadow); }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(150deg, var(--g-bevel-hi) 0%, var(--g-bevel-lo) 22%, var(--g-bevel-lo) 62%, color-mix(in srgb, var(--g-bevel-hi) 60%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; filter: blur(.5px); }
.bar { justify-self: center; margin-top: 14px; width: min(760px, 100% - 24px); min-height: 58px; padding: 0 10px 0 22px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar__name { font-weight: 650; font-size: 15px; letter-spacing: -.02em; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--plus-bg);
  color: var(--accent-text); font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.state i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); animation: beat 2.4s var(--ease) infinite; }
@keyframes beat { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* centre: the customer's logo on a card, then einfy's hero type */
.stage { display: grid; justify-items: center; align-content: center; text-align: center; padding: clamp(40px, 8vh, 96px) 20px 48px; }
.mark { margin: 0 0 clamp(28px, 5vh, 44px); line-height: 0; perspective: 900px; }
.tilt { position: relative; display: block; padding: clamp(22px, 4vw, 40px) clamp(26px, 5vw, 52px); border-radius: var(--r-l); isolation: isolate;
  background: var(--card); box-shadow: var(--card-shadow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  animation: fill .7s var(--ease) 1s both, float 7s ease-in-out 2.4s infinite; }
/* light spot that follows the pointer (set by baustelle.js) */
.tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(360px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, .5), transparent 60%); mix-blend-mode: soft-light; }
.mark svg.frame { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; overflow: visible; pointer-events: none; z-index: 3; }
.frame rect { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: draw 1.1s var(--ease) .3s forwards, fade .6s ease 1.6s forwards; }
.logo-in { display: block; clip-path: inset(0 100% 0 0); animation: wipe 1s var(--ease) 1.2s forwards; }
.logo-in svg, .logo-in img { display: block; width: min(64vw, 360px); height: auto; max-height: 34vh; color: var(--fg); }
.logo-in img { border-radius: var(--r-s); }
/* a band of light crosses the logo once after it appears, then every few seconds */
.shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 1; }
.shine::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%; transform: skewX(-18deg) translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, .55)), transparent);
  animation: sweep 7s var(--ease) 2s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 0; } }
@keyframes fill { from { background: transparent; box-shadow: none; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes sweep { 0% { transform: skewX(-18deg) translateX(-100%); } 22%, 100% { transform: skewX(-18deg) translateX(560%); } }
@keyframes float { 50% { translate: 0 -6px; } }

/* blueprint grid behind everything: fades in, drifts slowly, fades out to the edges */
body::before { content: ""; position: fixed; inset: -60px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask: radial-gradient(ellipse 60% 55% at 50% 45%, #000 30%, transparent 75%); mask: radial-gradient(ellipse 60% 55% at 50% 45%, #000 30%, transparent 75%);
  animation: gridin 1.5s ease both, drift 24s linear infinite; }
@keyframes gridin { from { opacity: 0; } }
@keyframes drift { to { transform: translate(44px, 44px); } }
.word { display: block; font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.status { margin: 0; max-width: 16ch; font-size: clamp(36px, 6vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.lede { margin: 18px 0 0; max-width: 560px; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--fg-3); text-wrap: pretty; }

/* einfy's ink pill with the turning ring of greens: here a status, not a button */
.pill { display: inline-flex; align-items: center; gap: 12px; height: 52px; margin: 30px 0 0; padding: 0 24px 0 8px; border-radius: 999px;
  background: var(--ink-pill); color: var(--ink-pill-fg); font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 16px -6px rgba(255, 255, 255, .35), 0 18px 36px -18px rgba(10, 20, 35, .6); }
.ring { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 70%); }
.ring::before, .ring::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, #0f6e37, #138a45, #3fd57e, #b6f7d0, #4be38a, #138a45, #0f6e37);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ring 7s linear infinite; }
.ring::after { inset: -3px; padding: 4px; filter: blur(5px); opacity: .55; }
.ring svg { width: 17px; height: 17px; }
@keyframes ring { to { transform: rotate(360deg); } }

/* footer like einfy.de: quiet bar, the einfy logo component on the right */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; width: min(1040px, 100% - 40px); margin: 0 auto;
  padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 14px; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 4px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-s); text-decoration: none; }
.foot nav a:hover { color: var(--fg); background: var(--tile); }
.by { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.logo { --logo: 22px; display: inline-flex; align-items: center; gap: calc(var(--logo) * .31); color: var(--fg); }
.logo__icon { width: var(--logo); height: var(--logo); border-radius: calc(var(--logo) * .28); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .45); }
.logo__word { font-size: calc(var(--logo) * .78); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.logo__word b { color: var(--accent-text); font-weight: 800; }
.by:hover .logo__word { text-decoration: underline; text-decoration-thickness: 1.5px; }
@media (max-width: 640px) { .foot { justify-content: center; text-align: center; } .foot__copy { width: 100%; } }

/* entrance like einfy.de */
.mark, .status, .lede, .pill { animation: rise .9s var(--ease) both; }
.status { animation-delay: .12s; } .lede { animation-delay: .22s; } .pill { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .mark, .status, .lede, .pill, .ring::before, .ring::after, .state i, .tilt, .shine::after, body::before { animation: none; }
  .frame rect { animation: none; opacity: 0; } .logo-in { animation: none; clip-path: none; } }

/* Impressum / Datenschutz */
.doc { width: min(760px, 100% - 40px); margin: 0 auto; padding: 48px 0 64px; }
.doc__mark { display: inline-block; line-height: 0; margin-bottom: 28px; }
.doc__mark svg, .doc__mark img { width: 150px; height: auto; color: var(--fg); }
.doc__mark .word { font-size: 24px; line-height: 1.2; }
.doc__card { padding: clamp(24px, 4vw, 44px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--card-shadow); }
.doc h1 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; }
.doc h2 { margin: 28px 0 6px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.doc p, .doc li { margin: 0 0 10px; color: var(--fg-2); }
.doc .todo { background: #fff3c4; color: #3b2f00; padding: 1px 5px; border-radius: 4px; }
