/* ============================================================
   idontworkhere.studio — Stylesheet (Refined / "H")
   Schibsted Grotesk · Grasgrün · Grain — clean, kein Preset-Look
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg:        #0B0D0B;
  --bg-soft:   #111410;
  --surface:   #14171200;
  --card:      #131612;
  --ink:       #F4F3EC;
  --dim:       #8B8F85;
  --mute:      #5F635A;
  --green:     #6FE05A;
  --green-dim: #57C244;
  --green-soft:rgba(111, 224, 90, 0.14);
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.16);

  --display: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1140px;
  --gutter: clamp(1.4rem, 4vw, 3rem);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* film grain — no grid, no glow */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--green); color: #0B0D0B; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.accent { color: var(--green); }
.mute { color: var(--mute); }

/* underline signature — used on hero + manifesto accent phrases */
.u {
  color: var(--green);
  position: relative;
  white-space: nowrap;
}
.u::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.02em;
  height: 2px;
  background: var(--green);
  opacity: 0.5;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--green);
  color: #0B0D0B;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-family: var(--display);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.7rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--green); color: #0B0D0B; }
.btn--primary:hover { background: #fff; }

.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--lg { font-size: 1.1rem; padding: 1.05rem 2.1rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 13, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.nav__logo .s { color: var(--green); }

.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--dim);
  transition: color 0.2s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: var(--ink); }
.nav__cta {
  color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 0.5rem 1.15rem;
  border-radius: 100px;
  transition: all 0.25s var(--ease);
}
.nav__cta:hover { background: var(--green); color: #0B0D0B; border-color: var(--green); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-bottom: 2.4rem;
  animation: fade-up 0.7s var(--ease) both;
}
.hero__eyebrow .d {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: 2rem;
  animation: fade-up 0.7s var(--ease) 0.08s both;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--dim);
  max-width: 47ch;
  margin-bottom: 2.6rem;
  animation: fade-up 0.7s var(--ease) 0.16s both;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  animation: fade-up 0.7s var(--ease) 0.24s both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MARQUEE / TICKER
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.15rem;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  animation: scroll-x 38s linear infinite;
}
.marquee__track span {
  font-family: var(--display);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: var(--dim);
}
.marquee__dot { color: var(--green) !important; font-size: 0.7em !important; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(5rem, 11vw, 8.5rem); }
.section__head { margin-bottom: 3.5rem; }
.section__label {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 1.1rem;
}
.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.section__intro {
  color: var(--dim);
  max-width: 52ch;
  margin-top: 1.1rem;
  font-size: 1.05rem;
}
.section__intro em { color: var(--mute); font-style: italic; }

/* ---------- Services (Index-Stil) ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.svc {
  border-top: 1px solid var(--line);
  padding: 1.8rem 1.8rem 2.2rem 0;
  transition: border-color 0.3s var(--ease);
}
.svc:hover { border-top-color: var(--green); }
.svc__n {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.svc__n b { color: var(--green); font-weight: 600; }
.svc__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0.8rem 0 0.6rem;
}
.svc__text { color: var(--dim); font-size: 0.96rem; line-height: 1.55; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Work / Arbeiten ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.work-item { display: block; }
.work-item__thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.work-item__thumb[data-hue="1"] { background: linear-gradient(140deg, #16221a, #0e150f); }
.work-item__thumb[data-hue="2"] { background: linear-gradient(140deg, #1d2016, #12140d); }
.work-item__thumb[data-hue="3"] { background: linear-gradient(140deg, #14201f, #0d1413); }
.work-item__thumb[data-hue="4"] { background: linear-gradient(140deg, #1c1a22, #110f14); }
.work-item__emoji { transition: transform 0.5s var(--ease); }
.work-item:hover .work-item__thumb { border-color: var(--green); }
.work-item:hover .work-item__emoji { transform: scale(1.12) rotate(-5deg); }
.work-item__meta { padding: 1.2rem 0.2rem 0; }
.work-item__tag {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--green);
  margin-bottom: 0.45rem;
}
.work-item__meta h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.work-item__desc { color: var(--dim); font-size: 0.95rem; line-height: 1.5; margin-top: 0.5rem; }

/* CTA-Kachel */
.work-item__thumb--cta {
  background: var(--green-soft);
  border: 1px dashed var(--green-dim);
}
.work-item--cta .work-item__emoji { color: var(--green); font-weight: 300; }
.work-item--cta:hover .work-item__thumb--cta { border-color: var(--green); border-style: solid; }

/* Kostenloses-Tool-Karte */
.work-item--tool .work-item__thumb { position: relative; }
.work-item__badge {
  position: absolute; top: 0.7rem; right: 0.7rem;
  font-family: var(--display); font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--green); color: #0B0D0B;
  padding: 0.28rem 0.62rem; border-radius: 100px;
}
.work-item__actions { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.btn--sm { font-size: 0.85rem; padding: 0.62rem 1.15rem; }

@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Gratis-Tool-Sektion ---------- */
.tool { background: var(--bg-soft); }
.tool__grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: 2.6rem;
}
.steps { list-style: none; display: grid; gap: 1.5rem; }
.steps__item { display: flex; gap: 1rem; align-items: flex-start; }
.steps__n {
  flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  color: var(--green); background: var(--green-soft); border: 1px solid var(--green-dim);
}
.steps__txt h3 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.steps__txt p { color: var(--dim); font-size: 0.95rem; line-height: 1.5; margin-top: 0.25rem; }
.tool__cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 2rem; }
.tool__note { color: var(--mute); font-size: 0.82rem; margin-top: 1.1rem; font-family: var(--display); letter-spacing: 0.02em; }

/* Browser-Mockup */
.mock {
  border-radius: var(--radius); border: 1px solid var(--line-2); overflow: hidden; background: #fff;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.75);
  transform: perspective(1300px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}
.tool__preview:hover .mock { transform: perspective(1300px) rotateY(0) rotateX(0); }
.mock__bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 0.85rem; background: #eef0f1; border-bottom: 1px solid #e1e3e5; }
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: #cfd3d7; }
.mock__dot:nth-child(1) { background: #ff5f57; }
.mock__dot:nth-child(2) { background: #febc2e; }
.mock__dot:nth-child(3) { background: #28c840; }
.mock__url { margin-left: 0.55rem; font-size: 0.72rem; color: #6b7280; background: #fff; border: 1px solid #e1e3e5; padding: 0.2rem 0.75rem; border-radius: 100px; }
.mock__badge { margin-left: auto; font-size: 0.66rem; font-weight: 700; color: #067647; background: #e6f4ea; border-radius: 100px; padding: 0.22rem 0.6rem; font-family: var(--display); white-space: nowrap; }
.mock__body { padding: 0.9rem; background: #fbfbfa; }

/* Mini-Sheet im Mockup */
.sheet { border: 1px solid #d6d9dc; border-radius: 7px; overflow: hidden; }
.sheet__title { background: #d9ead3; color: #24301f; text-align: center; font-family: var(--display); font-weight: 700; font-size: 0.72rem; padding: 0.42rem; border-bottom: 1px solid #b9d3a9; }
.sheet__head { display: grid; grid-template-columns: 104px 1fr; background: #e5f0de; border-bottom: 1px solid #cfe0c4; }
.sheet__head span { font-family: var(--display); font-weight: 700; font-size: 0.66rem; color: #33402c; padding: 0.32rem 0.55rem; }
.sheet__head span:first-child { border-right: 1px solid #cfe0c4; }
.sheet__row { display: grid; grid-template-columns: 104px 1fr; border-bottom: 1px solid #edeef0; }
.sheet__row:last-child { border-bottom: 0; }
.sheet__row .tc { font-size: 0.66rem; color: #3b4147; padding: 0.45rem 0.5rem; text-align: center; border-right: 1px solid #edeef0; white-space: nowrap; }
.sheet__row .an { padding: 0.5rem 0.6rem; display: grid; gap: 5px; align-content: center; }
.sheet__row .an::before, .sheet__row .an::after { content: ""; height: 5px; border-radius: 3px; background: #e2e5e8; }
.sheet__row .an::before { width: 94%; }
.sheet__row .an::after { width: 68%; }
.sheet__row .an.short::before { width: 56%; }
.sheet__row .an.short::after { display: none; }

@media (max-width: 860px) {
  .tool__grid { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .tool__preview { order: -1; }
}

/* ---------- About / Manifesto ---------- */
.section--about { border-top: 1px solid var(--line); }
.manifesto {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 4rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}
.stat__num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__label { display: block; color: var(--dim); margin-top: 0.6rem; font-size: 0.95rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Contact ---------- */
.section--contact { padding-bottom: clamp(6rem, 14vw, 11rem); }
.contact-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
}
.contact-box__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  margin: 1rem 0;
}
.contact-box__text {
  color: var(--dim);
  max-width: 46ch;
  margin: 0 auto 2.5rem;
  font-size: 1.08rem;
}
.contact-box__socials {
  display: flex; justify-content: center; gap: 2rem;
  margin-top: 2.5rem;
  font-family: var(--display);
  font-size: 0.9rem;
}
.contact-box__socials a { color: var(--dim); transition: color 0.2s var(--ease); }
.contact-box__socials a:hover { color: var(--green); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 3.5rem; }
.footer__inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-start;
  gap: 2rem;
}
.footer__brand .nav__logo { font-size: 1.1rem; }
.footer__brand p { color: var(--mute); font-size: 0.9rem; margin-top: 0.5rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__links a { color: var(--dim); font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--green); }
.footer__copy {
  width: 100%; color: var(--mute); font-size: 0.85rem;
  border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1rem;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal { padding-top: 8rem; padding-bottom: 5rem; min-height: 100vh; }
.legal .container { max-width: 760px; }
.legal h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.025em; margin-bottom: 2.5rem;
}
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin: 2.5rem 0 0.8rem; }
.legal h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; font-weight: 600; }
.legal p, .legal li { color: var(--dim); margin-bottom: 0.8rem; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.legal .back {
  display: inline-block; margin-bottom: 3rem;
  font-family: var(--display); font-size: 0.9rem; color: var(--dim); text-decoration: none;
}
.legal .back:hover { color: var(--green); }
.legal .placeholder {
  background: var(--green-soft);
  border: 1px dashed var(--green-dim);
  border-radius: 8px; padding: 0.15rem 0.5rem;
  color: var(--green); font-family: var(--display); font-size: 0.9em;
}
.legal .note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 8px; padding: 1.2rem 1.4rem; margin-bottom: 2.5rem; font-size: 0.92rem;
}
.legal .note strong { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   LAB / PROTOTYP-DESIGNER
   ============================================================ */
.lab__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.lab__label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin-bottom: 0.8rem;
}
.lab__inputrow { display: flex; gap: 0.6rem; }
.lab__inputrow input {
  flex: 1;
  min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 0.95rem 1.35rem;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease);
}
.lab__inputrow input::placeholder { color: var(--mute); }
.lab__inputrow input:focus { outline: none; border-color: var(--green); }
.lab__inputrow .btn { white-space: nowrap; }

.lab__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.chip {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.42rem 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.chip:hover { border-color: var(--green); color: var(--ink); }
.lab__hint { color: var(--mute); font-size: 0.85rem; margin-top: 1.4rem; }

/* ---------- Phone frame ---------- */
.phone {
  width: min(300px, 82vw);
  aspect-ratio: 300 / 620;
  margin-inline: auto;
  background: #08090A;
  border: 1px solid var(--line-2);
  border-radius: 46px;
  padding: 11px;
  position: relative;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.phone__island {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 26px;
  background: #08090A;
  border-radius: 100px;
  z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%;
  background: #F7F7F3;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  color: #16160F;
  display: flex;
  flex-direction: column;
}

/* ---------- Generated app UI ---------- */
.app {
  --acc: #6C5CE7;
  --acc-tint: color-mix(in srgb, var(--acc) 14%, #ffffff);
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: app-in 0.5s var(--ease) both;
}
@keyframes app-in { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }

.app__status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 20px 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.app__status span:last-child { font-size: 10px; color: #45453d; letter-spacing: 0.08em; }

.app__head { display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px; }
.app__icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 13px;
  background: var(--acc);
  display: grid; place-items: center;
  font-size: 22px;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--acc) 40%, transparent);
}
.app__name { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.05; letter-spacing: -0.01em; }
.app__tag { font-size: 11px; color: #6c6c63; margin-top: 2px; }

.app__hero {
  margin: 0 16px 12px;
  background: var(--acc);
  border-radius: 16px;
  padding: 14px 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.app__hero::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
}
.app__hero small { font-size: 11px; opacity: 0.9; }
.app__hero b { display: block; font-family: var(--display); font-size: 19px; margin-top: 2px; }
.app__bars { display: flex; align-items: flex-end; gap: 5px; height: 30px; margin-top: 12px; position: relative; z-index: 1; }
.app__bars i { flex: 1; background: rgba(255,255,255,0.55); border-radius: 3px 3px 0 0; }

.app__list { display: flex; flex-direction: column; gap: 7px; padding: 0 16px; flex: 1; }
.app__row {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid #ECECE4;
  border-radius: 12px;
  padding: 9px 11px;
}
.app__row .ri {
  width: 28px; height: 28px; flex: none;
  border-radius: 8px;
  background: var(--acc-tint);
  display: grid; place-items: center;
  font-size: 14px;
}
.app__row .rl { font-size: 12.5px; font-weight: 500; flex: 1; }
.app__row .rc { color: #c3c3ba; font-size: 15px; }

.app__cta {
  margin: 12px 16px 8px;
  background: var(--acc);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
}
.app__tabs {
  display: flex; justify-content: space-around; align-items: center;
  padding: 9px 8px 12px;
  border-top: 1px solid #ECECE4;
  background: #fff;
}
.app__tabs i { font-size: 18px; filter: grayscale(1); opacity: 0.35; }
.app__tabs i.on { filter: none; opacity: 1; }

/* ---------- Skeleton (Ladezustand) ---------- */
.skel { display: flex; flex-direction: column; gap: 12px; padding: 40px 18px 18px; height: 100%; }
.skel .b {
  border-radius: 9px;
  background: linear-gradient(90deg, #e9e9e2 25%, #f4f4ee 50%, #e9e9e2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.15s linear infinite;
}
.skel .b.h { height: 46px; }
.skel .b.hero { height: 92px; }
.skel .b.row { height: 40px; }
.skel .b.w60 { width: 60%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 860px) {
  .lab__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .lab__preview { order: -1; }
}
@media (max-width: 420px) {
  .lab__inputrow { flex-wrap: wrap; }
  .lab__inputrow .btn { width: 100%; }
}

@media (max-width: 760px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    background: var(--bg-soft);
    border-left: 1px solid var(--line);
    padding: 2rem var(--gutter);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav.is-open .nav__links { transform: translateX(0); }
  .nav__links a { font-size: 1.3rem; color: var(--ink); }
  .nav__cta { align-self: stretch; text-align: center; }

  .svc-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
}
