/* created4me.ch  Homepage */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/Unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0b11;
  --bg-2: #13131c;
  --card: #16161f;
  --line: #2a2a38;
  --text: #f3f0e8;
  --muted: #9a98a6;
  --lime: #c8ff2e;
  --violet: #7b5cff;
  --coral: #ff5a3c;
  --mint: #2ee59d;
  --terra: #B4532A;
  --tt-rot: #e0262c;
  --radius: 28px;
  --wrap: 1240px;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* Körnung über allem */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.logo .four {
  display: inline-grid; place-items: center;
  width: 1.35em; height: 1.35em;
  margin: 0 .08em;
  border-radius: 50%;
  background: var(--lime);
  color: var(--bg);
  font-size: .8em;
  transform: rotate(-12deg);
  transition: transform .4s cubic-bezier(.2,.9,.3,1.4);
}
.logo:hover .four { transform: rotate(348deg); }
.nav { display: flex; gap: 28px; font-weight: 500; font-size: 16px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav { margin-left: auto; }

/* ---------- Sprachwahl ---------- */
.lang { position: relative; margin-left: 22px; }
.lang summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--text);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang[open] summary::after { transform: translateY(1px) rotate(225deg); }
.lang summary:hover, .lang[open] summary { border-color: var(--lime); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 170px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.lang-menu a { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 15px; }
.lang-menu a b { font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.lang-menu a:hover { background: var(--card); color: var(--text); }
.lang-menu a[aria-current] { color: var(--text); }
.lang-menu a[aria-current] b { color: var(--lime); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 12vw, 150px) 0 clamp(48px, 8vw, 96px);
  isolation: isolate;
}
.blob {
  position: absolute; z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob.b1 { width: 520px; height: 520px; background: var(--violet); top: -120px; right: -120px; }
.blob.b2 { width: 380px; height: 380px; background: var(--lime); bottom: -60px; left: -140px; opacity: .22; animation-delay: -6s; }
.blob.b3 { width: 260px; height: 260px; background: var(--coral); top: 40%; right: 30%; opacity: .25; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, 40px) scale(1.1); }
  100% { transform: translate(40px, -30px) scale(.95); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 var(--lime);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 70%, transparent); }
  100% { box-shadow: 0 0 0 12px transparent; }
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 9.4vw, 136px);
  line-height: .95;
  letter-spacing: -.045em;
  margin: 28px 0 0;
}
.hero h1 .line { display: block; }
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}
.hero h1 .hl {
  position: relative;
  color: var(--bg);
  padding: 0 .12em;
  display: inline-block;
  transform: rotate(-2deg);
}
.hero h1 .hl::before {
  content: "";
  position: absolute; inset: .08em -.02em .02em;
  background: var(--lime);
  z-index: -1;
  border-radius: .12em;
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
  margin-top: clamp(32px, 6vw, 64px);
}
.hero-bottom p {
  margin: 0;
  max-width: 540px;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
}
.hero-bottom p strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--bg); }
.btn-primary:hover { background: var(--text); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Laufband ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--lime);
  color: var(--bg);
  overflow: hidden;
  transform: rotate(-1.5deg);
  margin: 20px -20px 0;
}
.marquee-track {
  display: flex; width: max-content;
  animation: scroll 28s linear infinite;
}
.marquee span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 34px);
  text-transform: uppercase;
  padding: 18px 0;
  white-space: nowrap;
}
.marquee span::after { content: "✶"; margin: 0 28px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Projekte ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -.04em;
  margin: 0;
}
.section-head h2 sup {
  font-size: .32em;
  color: var(--lime);
  vertical-align: top;
  margin-left: 6px;
  letter-spacing: 0;
}
.section-head p { color: var(--muted); max-width: 380px; margin: 0; }

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s;
}
.project:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent, var(--lime)) 60%, var(--line)); }
.project.featured { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; padding: 44px; }

.project-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag {
  font-size: 13px; font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lime) 14%, transparent);
  color: var(--lime);
}
.status .pulse { width: 6px; height: 6px; }
.project-num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--muted);
  margin-left: auto;
}

.project h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -.05em;
  line-height: .9;
  margin: 36px 0 12px;
}
.project h3 .accent { color: var(--accent, var(--lime)); }
.project .lead {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 16px;
}
.project .desc { color: var(--muted); margin: 0 0 28px; max-width: 520px; }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  margin: 0 0 32px;
}
.facts div { padding: 18px 12px 0 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(16px, 1.6vw, 20px); }

.project-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- TryIt Vorher/Nachher Mockup ---------- */
.mock {
  position: relative;
  align-self: center;
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0f0f16;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(123, 92, 255, .45);
}
.mock-bar {
  position: absolute; inset: 0 0 auto; height: 34px; z-index: 3;
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px;
  background: #1c1c26;
  border-bottom: 1px solid var(--line);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a48; }
.mock-bar i:nth-child(1) { background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar .url {
  margin-left: 12px; flex: 1;
  height: 20px; border-radius: 6px;
  background: #2a2a36;
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; padding: 0 10px;
}
.mock-screen { position: absolute; inset: 34px 0 0; }

/* Alt: Neunzigerjahre */
.old {
  background: #c0c0c0;
  font-family: "Times New Roman", serif;
  color: #000;
  padding: 14px;
  display: grid;
  grid-template-columns: 26% 1fr;
  gap: 10px;
}
.old .o-head {
  grid-column: 1 / -1;
  background: #000080; color: #ffff00;
  font-size: 18px; font-weight: bold; text-align: center;
  padding: 6px;
  border: 3px outset #8080ff;
}
.old .o-nav { background: #fff; border: 2px inset #999; padding: 8px; font-size: 11px; line-height: 1.8; }
.old .o-nav u { color: #0000ee; display: block; }
.old .o-main { background: #fff; border: 2px inset #999; padding: 10px; font-size: 11px; }
.old .o-main .blink { color: red; font-weight: bold; animation: blink 1s steps(2) infinite; }
.old .o-main .counter { display: inline-block; margin-top: 8px; background: #000; color: #0f0; font-family: monospace; padding: 2px 6px; }
.old .o-main .uc { display: inline-block; margin-top: 8px; background: #ff0; border: 1px solid #000; padding: 2px 6px; font-weight: bold; }
@keyframes blink { 50% { opacity: 0; } }

/* Neu: modern */
.new {
  background: #f6f4ef;
  color: #15151d;
  font-family: var(--body);
  clip-path: inset(0 0 0 var(--cut, 50%));
  animation: wipe 7s cubic-bezier(.65,0,.35,1) infinite;
}
@property --cut { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@keyframes wipe {
  0%, 12%   { --cut: 88%; }
  45%, 62%  { --cut: 8%; }
  100%      { --cut: 88%; }
}
.new .n-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-size: 11px; font-weight: 600; }
.new .n-nav b { font-family: var(--display); font-size: 13px; }
.new .n-nav span { display: flex; gap: 12px; color: #666; font-weight: 500; }
.new .n-hero {
  margin: 4px 16px;
  border-radius: 14px;
  padding: 22px 20px;
  background: linear-gradient(135deg, var(--violet), #3b1fd1);
  color: #fff;
}
.new .n-hero strong { display: block; font-family: var(--display); font-size: clamp(16px, 2vw, 24px); line-height: 1.05; letter-spacing: -.03em; }
.new .n-hero em { display: inline-block; margin-top: 12px; font-style: normal; font-size: 10px; font-weight: 600; background: var(--lime); color: #111; padding: 6px 12px; border-radius: 999px; }
.new .n-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 16px; }
.new .n-cards i { height: 46px; border-radius: 10px; background: #e8e5dc; }
.new .n-cards i:nth-child(2) { background: #ddd8ff; }

.handle {
  position: absolute; z-index: 2;
  top: 34px; bottom: 0;
  left: var(--cut, 50%);
  width: 3px; margin-left: -1.5px;
  background: var(--lime);
  animation: wipe 7s cubic-bezier(.65,0,.35,1) infinite;
}
.handle::after {
  content: "‹ ›";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--lime); color: var(--bg);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
}
.mock-label {
  position: absolute; z-index: 3; bottom: 14px;
  font-family: var(--display); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 10px; border-radius: 8px;
}
.mock-label.l-old { left: 14px; background: #000; color: #fff; }
.mock-label.l-new { right: 14px; background: var(--lime); color: var(--bg); }


/* ---------- nochfrei Buchungsseite Mockup ---------- */
.project.featured .mock.nf { box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--mint) 40%, transparent); }
.nf-screen {
  position: absolute; inset: 34px 0 0;
  padding: clamp(14px, 2.2vw, 26px);
  display: flex; flex-direction: column; gap: clamp(8px, 1.2vw, 14px);
  font-size: clamp(12px, 1.15vw, 15px);
}
.nf-head b { display: block; font-family: var(--display); font-size: clamp(16px, 1.8vw, 22px); letter-spacing: -.03em; }
.nf-head span { color: var(--muted); font-size: .9em; }
.nf-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.nf-chips u { text-decoration: none; font-size: .85em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.nf-chips u.on { background: var(--mint); border-color: var(--mint); color: var(--bg); font-weight: 600; }
.nf-screen ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nf-screen li {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px;
  padding: clamp(8px, 1vw, 12px) 14px;
  border-radius: 14px; border: 1px solid var(--line); background: #16161f;
}
.nf-screen time { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
.nf-screen li span { color: var(--muted); font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nf-screen li em { font-style: normal; font-weight: 700; font-size: .8em; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--mint); }
.nf-screen li em.deal { background: var(--coral); color: #fff; }
.nf-screen li strong {
  position: absolute; inset: -1px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mint); color: var(--bg); font-family: var(--display); font-size: .95em; letter-spacing: -.02em;
  opacity: 0;
}
.nf-toast {
  margin-top: auto; align-self: center;
  padding: 8px 14px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: .85em; text-align: center;
  opacity: 0;
}
/* Ablauf (8 s): Termin 2 wird angetippt, gebucht, verschwindet, Hinweis erscheint, dann von vorn */
.nf-screen .s2        { animation: nf-tap 8s infinite; }
.nf-screen .s2 strong { animation: nf-booked 8s infinite; }
.nf-toast             { animation: nf-toast 8s infinite; }
@keyframes nf-tap    { 0%, 24% { transform: none; opacity: 1; } 27% { transform: scale(.97); } 30%, 52% { transform: none; opacity: 1; } 60%, 92% { opacity: .0; transform: translateX(14px); } 100% { opacity: 1; transform: none; } }
@keyframes nf-booked { 0%, 27% { opacity: 0; } 31%, 54% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes nf-toast  { 0%, 58% { opacity: 0; transform: translateY(8px); } 63%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* ---------- machmit Buchungsseite Mockup (Nachbau der echten App: Papier, Fraunces/Manrope) ---------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
/* Kachel in den Farben von machmit.created4me.ch: Papier, Karte, Tinte, Terrakotta, Salbei für «Live» */
.project.mm-card {
  --card: #F5EFE6; --line: #E6DCCE; --text: #26211C; --muted: #5E554C; --lime: #5F7A55;
  color: var(--text);
}
.project.mm-card:hover { border-color: #D6C9B8; }
.project.flip.mm-card .status { background: #E5ECDD; color: #4A6142; }
.project.mm-card .tag { border-color: #D6C9B8; }
.project.mm-card .btn-primary { background: var(--terra); color: #fff; }
.project.mm-card .btn-primary:hover { background: #8F3F1E; }
.project.featured .mock.mm { box-shadow: 0 1px 2px rgba(38,33,28,.05), 0 30px 60px -20px rgba(38,33,28,.28); }
.mock.mm .mock-bar { background: #EFE6D9; }
.mock.mm .mock-bar .url { background: #FFFCF7; color: #857B71; }
.mock.mm { background: #F5EFE6; }
.mm-screen {
  position: absolute; inset: 34px 0 0; overflow: hidden;
  padding: clamp(10px, 1.2vw, 16px) clamp(12px, 1.8vw, 22px);
  font-family: "Manrope", system-ui, sans-serif; color: #26211C; line-height: 1.35;
  font-size: clamp(11px, 1.02vw, 13.5px);
  --frei: #5F7A55; --knapp: #C27C1A; --voll: #9C9086;
}
.mm-marke { display: flex; align-items: center; gap: 6px; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: .95em; color: #5E554C; }
.mm-punkte { display: inline-flex; gap: 3px; }
.mm-punkte i { width: 5px; height: 5px; border-radius: 50%; background: #B4532A; }
.mm-punkte i:nth-child(2) { opacity: .6; }
.mm-punkte i:nth-child(3) { background: transparent; box-shadow: inset 0 0 0 1.3px #B4532A; }
.mm-studio { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.75em; letter-spacing: -.01em; line-height: 1.1; margin: .15em 0 .3em; }
.mm-woche { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.1em; margin-bottom: .45em; }
.mm-lektion {
  display: grid; grid-template-columns: 3.3em minmax(0, 1fr) auto; gap: .9em; align-items: center;
  background: #FFFCF7; border-radius: 14px; border-left: 4px solid var(--k);
  padding: .55em .9em .55em .5em; margin-bottom: .45em;
  box-shadow: 0 1px 2px rgba(38,33,28,.05), 0 6px 24px rgba(38,33,28,.06);
}
.f-terra  { --k: #B4532A; }
.f-indigo { --k: #44508A; }
.f-salbei { --k: #5F7A55; }
.mm-datum { text-align: center; line-height: 1.05; }
.mm-datum b { display: block; font-size: .78em; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--k); }
.mm-datum strong { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.75em; margin: 1px 0; }
.mm-datum span { font-size: .78em; font-weight: 600; color: #8C8278; }
.mm-name { font-weight: 800; }
.mm-zeit { font-size: .88em; color: #5E554C; }
.mm-matten { display: flex; gap: 3px; margin-top: .45em; }
.mm-matten i { flex: 0 1 .8em; min-width: 5px; height: 5px; border-radius: 3px; background: var(--k); }
.mm-matten i.weg { background: #D6C9B8; opacity: .7; }
.mm-platz { position: relative; font-size: .82em; font-weight: 800; margin-top: .3em; color: var(--frei); }
.mm-platz.knapp, .mm-platz .knapp { color: var(--knapp); }
.mm-platz.voll { color: var(--voll); }
.mm-platz .nach { position: absolute; left: 0; top: 0; opacity: 0; }
.mm-aktion { display: grid; justify-items: end; align-items: center; }
.mm-aktion > * { grid-area: 1 / 1; }
.mm-knopf { display: inline-block; border-radius: 99px; padding: .6em 1.1em; font-weight: 800; font-size: .95em; background: var(--k); color: #fff; white-space: nowrap; }
.mm-knopf.rand { background: transparent; color: var(--k); box-shadow: inset 0 0 0 1.5px var(--k); }
.mm-dabei { font-size: .82em; font-weight: 800; color: var(--frei); white-space: nowrap; text-align: right; line-height: 1.2; opacity: 0; }
.mm-lektion.ist-voll { opacity: .78; box-shadow: none; }
/* Ablauf (8 s): «Buchen» bei Yin Yoga wird angetippt, ein Platz wird belegt, «Sie sind dabei», dann von vorn */
.mm-tap                 { animation: mm-ring 8s infinite; }
.mm-tap .mm-knopf       { animation: mm-knopf 8s infinite; }
.mm-tap .mm-dabei       { animation: mm-an 8s infinite; }
.mm-tap .mm-matten .neu { animation: mm-matte 8s infinite; }
.mm-tap .vor            { animation: mm-aus 8s infinite; }
.mm-tap .nach           { animation: mm-an 8s infinite; }
@keyframes mm-knopf { 0%, 22% { transform: none; opacity: 1; } 25% { transform: scale(.92); } 28% { transform: none; opacity: 1; } 32%, 92% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes mm-an    { 0%, 31% { opacity: 0; } 35%, 90% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes mm-aus   { 0%, 31% { opacity: 1; } 35%, 90% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes mm-matte { 0%, 31% { background: var(--k); opacity: 1; } 35%, 90% { background: #D6C9B8; opacity: .7; } 95%, 100% { background: var(--k); opacity: 1; } }
@keyframes mm-ring  { 0%, 31% { box-shadow: 0 1px 2px rgba(38,33,28,.05), 0 6px 24px rgba(38,33,28,.06); } 35%, 90% { box-shadow: 0 0 0 2px #5F7A55, 0 6px 24px rgba(38,33,28,.06); } 95%, 100% { box-shadow: 0 1px 2px rgba(38,33,28,.05), 0 6px 24px rgba(38,33,28,.06); } }

/* ---------- TrueToy Shop Mockup (Nachbau von truetoy.created4me.ch: Anthrazit, Rot, Poster mit «Jetzt kaufen») ---------- */
.project.tt-card { --card: #151413; --line: #2e2b28; --muted: #a59d93; }
.project.tt-card .btn-primary { background: var(--tt-rot); color: #fff; }
.project.tt-card .btn-primary:hover { background: #b81a20; }
.project.featured .mock.tt { aspect-ratio: 16 / 11.6; background: #151413; box-shadow: 0 40px 80px -30px rgba(224, 38, 44, .4); }
.mock.tt .mock-bar { background: #1e1c1a; }
.mock.tt .mock-bar .url { background: #2a2724; }
.tt-screen {
  position: absolute; inset: 34px 0 0; overflow: hidden;
  padding: clamp(12px, 1.6vw, 20px);
  display: flex; flex-direction: column; gap: clamp(8px, 1.1vw, 14px);
  font-size: clamp(10px, 1vw, 13px); color: #f4efe8;
}
.tt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tt-head b { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: 1.15em; }
.tt-head b span { color: var(--tt-rot); }
.tt-chips { display: flex; gap: 5px; }
.tt-chips u { text-decoration: none; font-size: .85em; padding: 3px 9px; border-radius: 999px; border: 1px solid #2e2b28; color: #a59d93; white-space: nowrap; }
.tt-chips u.on { background: #f4efe8; border-color: #f4efe8; color: #151413; font-weight: 600; }
.tt-grid { --gap: clamp(8px, 1vw, 12px); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.tt-pin { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tt-bild { display: block; aspect-ratio: 2 / 3; border-radius: 8px; background: #1e1c1a center / cover no-repeat; }
.b-lambo  { background-image: url("../img/truetoy/lamborghini-revuelto.webp"); }
.b-jaguar { background-image: url("../img/truetoy/jaguar-e-type.webp"); }
.b-trice  { background-image: url("../img/truetoy/triceratops.webp"); }
.tt-pin b { font-size: .9em; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-pin em { align-self: flex-start; font-style: normal; font-weight: 600; font-size: .8em; padding: 4px 9px; border-radius: 999px; background: var(--tt-rot); color: #fff; }
.tt-toast {
  position: absolute; left: 50%; top: 42%; transform: translateX(-50%);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  padding: 6px 14px; border-radius: 999px; background: #f4efe8; color: #151413; font-weight: 700; font-size: .9em; white-space: nowrap;
  opacity: 0;
}
/* Ablauf (9 s): erstes und drittes Poster tauschen den Platz, Hinweis «Neu gemischt», mittlerer Knopf wird angetippt, dann zurück */
.tt-pin.p1 { animation: tt-rechts 9s cubic-bezier(.65,0,.35,1) infinite; }
.tt-pin.p3 { animation: tt-links 9s cubic-bezier(.65,0,.35,1) infinite; }
.tt-pin.p2 em { animation: tt-tipp 9s infinite; }
.tt-toast { animation: tt-toast 9s infinite; }
@keyframes tt-rechts { 0%, 14% { transform: none; } 24%, 64% { transform: translateX(calc(200% + 2 * var(--gap))); } 74%, 100% { transform: none; } }
@keyframes tt-links  { 0%, 14% { transform: none; } 24%, 64% { transform: translateX(calc(-200% - 2 * var(--gap))); } 74%, 100% { transform: none; } }
@keyframes tt-toast  { 0%, 20% { opacity: 0; transform: translate(-50%, 8px); } 26%, 42% { opacity: 1; transform: translate(-50%, 0); } 48%, 100% { opacity: 0; } }
@keyframes tt-tipp   { 0%, 48% { transform: none; } 51% { transform: scale(.9); } 54%, 100% { transform: none; } }

/* ---------- CheckAI KI-Chat Mockup ---------- */
.project.featured.flip { grid-template-columns: 1.15fr 1fr; }
.project.featured.flip > .mock { order: -1; }
.project.flip .status { background: color-mix(in srgb, var(--violet) 22%, transparent); color: #b6a6ff; }

.mock.chat { box-shadow: 0 40px 80px -30px rgba(200, 255, 46, .25); }
.chat-screen {
  position: absolute; inset: 34px 0 0;
  padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 60%), #101018;
  font-size: clamp(11px, 1.2vw, 14px);
}
.chat-screen .q {
  align-self: flex-end; max-width: 78%;
  background: #2a2a38; color: var(--text);
  padding: 10px 14px; border-radius: 16px 16px 4px 16px;
}
.chat-screen .a { position: relative; max-width: 88%; color: var(--text); }
.chat-screen .a p { margin: 0 0 8px; }
.chat-screen ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; counter-reset: r; }
.chat-screen li {
  counter-increment: r;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 10px;
  background: #1a1a25; border: 1px solid var(--line);
}
.chat-screen li::before { content: counter(r); font-family: var(--display); font-size: 11px; color: var(--muted); }
.chat-screen li b { font-weight: 600; white-space: nowrap; }
.chat-screen li span { flex: 1; height: 6px; border-radius: 4px; background: #2a2a38; }
.chat-screen li.you { border-color: var(--lime); background: color-mix(in srgb, var(--lime) 10%, #1a1a25); }
.chat-screen li.you em {
  font-style: normal; font-size: 10px; font-weight: 700;
  background: var(--lime); color: var(--bg);
  padding: 3px 8px; border-radius: 999px;
}
.chat-screen .dots { position: absolute; top: 2px; left: 0; display: flex; gap: 5px; }
.chat-screen .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.chat-screen .dots i:nth-child(2) { animation-delay: .15s; }
.chat-screen .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .4; } }

.chat-screen .score {
  margin-top: auto;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--violet); color: #fff;
}
.chat-screen .score span { font-size: 11px; opacity: .8; }
.chat-screen .score strong { font-family: var(--display); font-size: clamp(13px, 1.4vw, 17px); text-align: right; }
.chat-screen .score i { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; }
.chat-screen .score u { display: block; height: 100%; width: 61%; background: var(--lime); transform-origin: left; }

/* Ablauf: Frage, Tippen, Antwort zeilenweise, Wertung (8 s Schleife) */
.chat-screen .q     { animation: c-q 8s infinite; }
.chat-screen .dots  { animation: c-dots 8s infinite; }
.chat-screen .a1    { animation: c-a1 8s infinite; }
.chat-screen .r1    { animation: c-r1 8s infinite; }
.chat-screen .r2    { animation: c-r2 8s infinite; }
.chat-screen .r3    { animation: c-r3 8s infinite; }
.chat-screen .score { animation: c-sc 8s infinite; }
.chat-screen .score u { animation: c-bar 8s infinite; }
@keyframes c-q    { 0% { opacity: 0; transform: translateY(8px); } 6%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes c-dots { 0%, 8% { opacity: 0; } 10%, 22% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes c-a1   { 0%, 24% { opacity: 0; } 28%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes c-r1   { 0%, 30% { opacity: 0; transform: translateX(-10px); } 35%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes c-r2   { 0%, 37% { opacity: 0; transform: translateX(-10px); } 42%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes c-r3   { 0%, 44% { opacity: 0; transform: translateX(-10px); } 49%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes c-sc   { 0%, 54% { opacity: 0; transform: translateY(8px); } 58%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes c-bar  { 0%, 58% { transform: scaleX(0); } 72%, 100% { transform: scaleX(1); } }

/* ---------- Platzhalter ---------- */
.project.soon {
  grid-column: span 3;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: transparent;
  border: 2px dashed var(--line);
  min-height: 160px;
}
.project.soon:hover { border-color: var(--violet); }
.soon h3 { font-size: clamp(24px, 3vw, 36px); margin: 0 0 6px; letter-spacing: -.03em; }
.soon p { color: var(--muted); margin: 0; }
.plus {
  flex: none;
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  font-size: 34px; color: var(--muted);
  transition: transform .4s, background .3s, color .3s, border-color .3s;
}
.project.soon:hover .plus { transform: rotate(90deg); background: var(--violet); border-color: var(--violet); color: #fff; }

/* ---------- Über ---------- */
.about {
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.about h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05; letter-spacing: -.04em;
  margin: 0;
}
.about h2 .accent { color: var(--lime); }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li {
  display: grid; grid-template-columns: 56px 1fr; gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.principles li:first-child { padding-top: 0; }
.principles b { font-family: var(--display); color: var(--lime); font-size: 14px; padding-top: 4px; }
.principles strong { display: block; font-size: 20px; }
.principles span { color: var(--muted); }

/* ---------- FAQ (pro Projekt) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-jump { display: flex; gap: 10px; flex-wrap: wrap; margin: -16px 0 44px; }
.faq-jump a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.faq-jump a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--text)); }
.faq-jump a:hover { border-color: var(--accent, var(--text)); color: var(--accent, var(--text)); }

.faq-group {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.faq-group:first-of-type { border-top: 0; padding-top: 0; }
.faq-group h3 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -.045em; line-height: 1;
  margin: 0 0 10px;
}
.faq-group h3 .accent { color: var(--accent, var(--lime)); }
.faq-group .faq-intro { color: var(--muted); margin: 0; font-size: 16px; }

.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color .25s;
}
.faq-list details[open] { border-color: color-mix(in srgb, var(--accent, var(--lime)) 55%, var(--line)); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px;
  font-weight: 600; font-size: 18px; line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  font-size: 18px; font-weight: 500; color: var(--muted);
  transition: transform .3s, background .3s, color .3s, border-color .3s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--accent, var(--lime)); border-color: var(--accent, var(--lime)); color: var(--bg); }
.faq-list summary:focus-visible { outline: 2px solid var(--accent, var(--lime)); outline-offset: 2px; border-radius: 18px; }
.faq-list .answer { padding: 0 22px 20px; color: var(--muted); }
.faq-list .answer p { margin: 0 0 10px; }
.faq-list .answer p:last-child { margin-bottom: 0; }
.faq-list .answer strong { color: var(--text); font-weight: 600; }
.faq-list .answer a { color: var(--text); }

/* ---------- Unterseite (Impressum) ---------- */
.page { padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px); }
.page h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 7vw, 88px);
  letter-spacing: -.045em; line-height: .95;
  margin: 0 0 clamp(36px, 5vw, 56px);
}
.page h1 .accent { color: var(--lime); }
.page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 56px; }
.page-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.page-card h2, .legal h2 {
  font-family: var(--display); font-weight: 500;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lime); margin: 0 0 14px;
}
.page-card p { margin: 0 0 6px; }
.page-card .muted { color: var(--muted); }
.legal { max-width: 760px; }
.legal section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal strong { color: var(--text); font-weight: 600; }
.stand { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- Kontakt / Footer ---------- */
.contact {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
  background:
    radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--violet) 55%, transparent), transparent 60%);
  border-top: 1px solid var(--line);
}
.contact p { color: var(--muted); margin: 0 0 20px; }
.contact a.big {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(20px, 6.4vw, 80px);
  letter-spacing: -.04em;
  text-decoration: none;
  background: linear-gradient(90deg, var(--text), var(--text)) no-repeat 0 100% / 0 4px;
  transition: background-size .4s, color .2s;
  overflow-wrap: anywhere;
}
.contact a.big:hover { background-size: 100% 4px; color: var(--lime); }

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Einblenden beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .project.featured, .project.featured.flip { grid-template-columns: 1fr; padding: 32px; }
  .project.featured.flip > .mock { order: 0; }
  .mock.chat, .mock.nf, .mock.mm, .mock.tt { aspect-ratio: auto; }
  .nf-screen, .mm-screen, .tt-screen { position: relative; inset: auto; margin-top: 34px; }
  .project.featured .mock.tt { aspect-ratio: auto; }
  .chat-screen { position: relative; inset: auto; margin-top: 34px; }
  .projects { grid-template-columns: 1fr 1fr; }
  .project.featured, .project.soon { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-cta { justify-content: flex-start; }
  .faq-group { grid-template-columns: 1fr; gap: 20px; }
  .page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { gap: 18px; font-size: 15px; }
  .nav a.hide-sm { display: none; }
  .lang { margin-left: 14px; }
  .lang summary { padding: 6px 9px; }
}
@media (max-width: 480px) {
  .tt-chips u:nth-child(3) { display: none; }
  .mm-dabei { white-space: normal; max-width: 6.2em; }
  .nav { gap: 14px; }
  .nav a[href$="#kontakt"] { display: none; }
  .lang { margin-left: 12px; }
  .logo { font-size: 20px; }
  .projects { grid-template-columns: 1fr; }
  .project, .project.featured { padding: 24px; border-radius: 22px; }
  .project.soon { flex-direction: column-reverse; align-items: flex-start; }
  .hero h1 .outline { -webkit-text-stroke-width: 1.5px; }
  .old { grid-template-columns: 1fr; }
  .old .o-nav { display: none; }
  .blob.b1 { width: 320px; height: 320px; }
  .faq-list summary { padding: 16px 18px; font-size: 17px; }
  .faq-list .answer { padding: 0 18px 18px; }
  .page-card { padding: 24px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .chat-screen .dots { display: none; }
  html { scroll-behavior: auto; }
}
