@font-face { font-family: "Bricolage"; src: url(fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "JetBrains"; src: url(fonts/jetbrains.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --paper: #FBF4E8;
  --paper-2: #F3E8D6;
  --ink: #1C1612;
  --ink-2: #4A3F36;
  --swift: #F05138;
  --swift-deep: #B8321E;
  --droid: #3DDC84;
  --droid-deep: #0C6B3C;
  --code-bg: #1C1612;
  --radius: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.6 "Bricolage", ui-sans-serif, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--droid); color: var(--ink); }
:focus-visible { outline: 3px solid var(--swift); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
code { font-family: "JetBrains", ui-monospace, monospace; font-size: 0.86em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 6px; }
h1, h2, h3 { line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); font-weight: 800; }
h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

/* Kopfzeile */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand b { color: var(--droid-deep); font-weight: 800; }
.brand-mark { width: 34px; height: 34px; }
.top nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.8rem); font-size: 1rem; }
.top nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.top nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 700; font-size: 1.1rem; padding: 0.95rem 1.5rem; border-radius: 999px;
  box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--ink) 60%, transparent);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), background 200ms;
}
.btn svg { width: 1.25em; height: 1.25em; }
.btn:hover { transform: translateY(-2px); background: var(--swift-deep); box-shadow: 0 16px 30px -12px color-mix(in oklab, var(--swift) 70%, transparent); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-small { font-size: 0.95rem; padding: 0.55rem 1rem; box-shadow: none; }
.btn-big { font-size: 1.3rem; padding: 1.15rem 2rem; background: var(--paper); color: var(--ink); }
.btn-big:hover { background: var(--droid); }

section { padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 5vw, 4rem); max-width: 1320px; margin: 0 auto; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: clamp(3rem, 7vw, 6rem); }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 5.2rem); font-weight: 800; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--droid-deep); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -0.04em; right: -0.04em; bottom: 0.04em; height: 0.28em; z-index: -1;
  background: var(--droid); border-radius: 0.12em; transform-origin: left; transform: scaleX(1);
}
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink-2); max-width: 34em; margin: 1.6rem 0 2.2rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.cta-note { font-size: 0.95rem; color: var(--ink-2); }

/* Code-Morph */
.morph { position: relative; margin: 0; min-height: 640px; }
.morph-card {
  position: absolute; width: min(100%, 470px); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -28px color-mix(in oklab, var(--ink) 55%, transparent), 0 8px 18px -10px color-mix(in oklab, var(--ink) 30%, transparent);
}
.card-swift { top: 0; left: 0; background: var(--swift); transform: rotate(-4deg); }
.card-droid { bottom: 0; right: 0; background: var(--droid); transform: rotate(3deg); }
.card-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem; font: 600 0.85rem "JetBrains", monospace; color: var(--ink); }
.card-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 16px 0 0 color-mix(in oklab, var(--ink) 45%, transparent), 32px 0 0 color-mix(in oklab, var(--ink) 25%, transparent); margin-right: 2.2rem; }
.morph pre { margin: 0 0.55rem 0.55rem; padding: 1rem 1.1rem; background: var(--code-bg); border-radius: calc(var(--radius) - 8px); overflow-x: auto; }
.morph code { background: none; padding: 0; font-size: clamp(0.72rem, 1.05vw, 0.86rem); line-height: 1.65; color: #EFE6D8; }
.morph .k { color: #FF8A73; } .morph .t { color: #8FE6B4; } .morph .s { color: #FFD27A; } .morph .a { color: #C9A8FF; }
.card-droid .k { color: #FF8A73; }
.morph-arrow { position: absolute; left: 40%; top: 46%; width: 120px; z-index: 2; transform: rotate(12deg); }
.morph-arrow path { stroke-dasharray: 160; stroke-dashoffset: 0; }

/* Ein Moment: Kotlin-Karte „druckt" sich nach der Swift-Karte */
@media (prefers-reduced-motion: no-preference) {
  .js .card-swift { animation: drop-in 900ms var(--ease-out) both; }
  .js .morph-arrow path { animation: draw 700ms var(--ease-out) 650ms both; }
  .js .card-droid { animation: drop-in-r 900ms var(--ease-out) 900ms both; }
  .js .card-droid pre code { animation: print 1300ms steps(10, end) 1300ms both; }
  .js .hero h1 em::after { animation: swipe 800ms var(--ease-out) 1900ms both; }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(40px) rotate(-10deg); filter: blur(6px); } }
@keyframes drop-in-r { from { opacity: 0; transform: translateY(40px) rotate(10deg); filter: blur(6px); } }
@keyframes draw { from { stroke-dashoffset: 160; } }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes swipe { from { transform: scaleX(0); } }
.morph.replay .card-droid pre code { animation: print 1300ms steps(10, end) both; }

/* Schritte */
.steps h2 { max-width: 12em; }
.step-list { list-style: none; padding: 0; margin: 3.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: s; }
.step-list li { position: relative; padding-top: 1rem; counter-increment: s; }
.step-list li::before {
  content: counter(s); position: absolute; top: -0.6rem; right: 0; font-size: 7rem; font-weight: 800; line-height: 1;
  color: color-mix(in oklab, var(--ink) 8%, transparent); letter-spacing: -0.05em;
}
.step-list svg { width: 72px; height: 72px; margin-bottom: 1.2rem; }
.step-list p { color: var(--ink-2); margin: 0.6rem 0 0; max-width: 30em; }
.step-list li:nth-child(2) { margin-top: 3rem; }
.step-list li:nth-child(3) { margin-top: 6rem; }

/* Beweis */
.proof { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  background: var(--ink); color: var(--paper); border-radius: 40px; max-width: calc(1320px - 2rem); margin-inline: auto; }
.proof p { color: color-mix(in oklab, var(--paper) 78%, var(--ink)); max-width: 32em; }
.proof h2 { color: var(--paper); }
.proof code { background: color-mix(in oklab, var(--paper) 14%, transparent); color: var(--paper); }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.7rem; }
.ticks li { display: flex; gap: 0.7rem; align-items: center; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--droid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231C1612' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.phones { position: relative; height: clamp(420px, 48vw, 620px); }
.phone { position: absolute; width: clamp(150px, 17vw, 240px); height: auto; border-radius: 28px; border: 7px solid #000; background: #000;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,0.7); transition: transform 500ms var(--ease-out); }
.p1 { left: 0; top: 8%; transform: rotate(-7deg); }
.p2 { left: 33%; top: 0; z-index: 2; }
.p3 { right: 0; top: 12%; transform: rotate(7deg); }
.phones:hover .p1 { transform: rotate(-10deg) translateX(-12px); }
.phones:hover .p3 { transform: rotate(10deg) translateX(12px); }

/* Mapping */
.section-lead { color: var(--ink-2); max-width: 40em; font-size: 1.2rem; margin: 1.2rem 0 2.6rem; }
.map-table { border-top: 3px solid var(--ink); }
.map-table .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); }
.map-table .row span:first-child { font-family: "JetBrains", monospace; font-size: 0.95rem; color: var(--swift-deep); }
.map-table .row span:last-child { font-weight: 600; }
.map-table .row:not(.head):hover { background: linear-gradient(90deg, color-mix(in oklab, var(--swift) 10%, transparent), color-mix(in oklab, var(--droid) 18%, transparent)); }
.map-table .head span { font: 800 0.95rem "Bricolage"; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink) !important; }
.honest { margin-top: 3.5rem; padding: 2rem clamp(1.4rem, 3vw, 2.4rem); background: var(--paper-2); border-radius: var(--radius); max-width: 52em; }
.honest p { margin: 0.7rem 0 0; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 900px; }
.faq h2 { margin-bottom: 2rem; }
details { border-bottom: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--swift) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%231C1612' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat; transition: transform 300ms var(--ease-out), background-color 200ms; }
details[open] summary::after { transform: rotate(45deg); background-color: var(--droid); }
details p { margin: 0 0 1.4rem; color: var(--ink-2); max-width: 44em; }

/* Download */
.download { text-align: center; background: var(--swift); border-radius: 40px; max-width: calc(1320px - 2rem); margin: 0 auto 3rem; position: relative; overflow: hidden; }
.download::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -18%; bottom: -55%; border-radius: 50%; background: var(--droid); }
.download > * { position: relative; }
.download h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.download p { font-size: 1.25rem; margin: 1rem auto 2.2rem; max-width: 30em; }
.download .small { font-size: 0.95rem; margin-top: 1.4rem; }

footer { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; padding: 2rem clamp(1rem, 5vw, 4rem) 3rem; color: var(--ink-2); font-size: 0.95rem; max-width: 1320px; margin: 0 auto; }
footer .small { flex-basis: 100%; font-size: 0.82rem; }

/* Mobil */
@media (max-width: 900px) {
  .hero, .proof { grid-template-columns: 1fr; }
  .morph { min-height: 600px; }
  .morph-card { width: min(92%, 470px); }
  .morph-arrow { left: 30%; top: 44%; width: 90px; }
  .step-list { grid-template-columns: 1fr; }
  .step-list li:nth-child(n) { margin-top: 0; }
  .top nav a:not(.btn) { display: none; }
  .map-table .row { grid-template-columns: 1fr; gap: 0.3rem; }
  .map-table .head { display: none; }
  .phones { height: 120vw; max-height: 560px; }
  .phone { width: 38%; }
  .p2 { left: 31%; }
  .proof, .download { border-radius: 28px; margin-inline: 0.75rem; }
}

/* Geräte-Grafiken (statt Screenshots) */
.devices { display: flex; align-items: center; justify-content: center; gap: clamp(0.8rem, 2.5vw, 2rem); }
.device { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.device figcaption { font-weight: 600; color: color-mix(in oklab, var(--paper) 85%, var(--ink)); display: flex; gap: 0.5rem; align-items: center; }
.tag { font: 700 0.75rem "JetBrains", monospace; padding: 0.25rem 0.6rem; border-radius: 999px; color: var(--ink); }
.tag-swift { background: var(--swift); } .tag-droid { background: var(--droid); }
.screen {
  position: relative; width: clamp(200px, 19vw, 260px); aspect-ratio: 9 / 19.2; overflow: hidden;
  background: #fff; color: #111; font: 400 13px/1.3 -apple-system, "Bricolage", sans-serif;
  border: 9px solid #0c0c0c; box-shadow: 0 0 0 1.5px #3a3a3a, 0 40px 70px -25px rgba(0,0,0,0.75);
}
.ios .screen { border-radius: 44px; transform: rotate(-4deg); box-shadow: 0 0 0 1.5px #3a3a3a, 0 40px 70px -25px rgba(0,0,0,0.75), 0 0 80px -20px color-mix(in oklab, var(--swift) 60%, transparent); }
.android .screen { border-radius: 30px; background: #FDF8FD; transform: rotate(4deg); box-shadow: 0 0 0 1.5px #3a3a3a, 0 40px 70px -25px rgba(0,0,0,0.75), 0 0 80px -20px color-mix(in oklab, var(--droid) 60%, transparent); }
.island { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 32%; height: 22px; border-radius: 20px; background: #0c0c0c; }
.punch { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 11px; height: 11px; border-radius: 50%; background: #0c0c0c; }
.sb { display: flex; justify-content: space-between; padding: 10px 20px 0; font-size: 11px; font-weight: 600; height: 34px; }
.android .sb { padding: 8px 16px 0; height: 28px; font-weight: 500; }
.sb-icons { display: flex; gap: 3px; align-items: center; } .sb-icons i { width: 9px; height: 7px; border-radius: 2px; background: #111; }
.ios-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; padding: 10px 16px 8px; }
.ios-search { margin: 0 14px 12px; padding: 7px 10px; border-radius: 10px; background: #EEEEF0; color: #8a8a8e; font-size: 12px; }
.ios-list { margin: 0 14px; background: #F2F2F7; border-radius: 12px; overflow: hidden; }
.ios-list .row { background: #fff; margin: 0; border-bottom: 0.5px solid #e2e2e6; }
.row { display: flex; align-items: center; gap: 9px; padding: 11px 12px; font-size: 13px; }
.row .t { flex: 1; } .strike { text-decoration: line-through; color: #8a8a8e; }
.check { width: 17px; height: 17px; border-radius: 50%; border: 2px solid #c4c4c8; flex: none; }
.check.done { border-color: #34C759; background: #34C759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.pri { width: 8px; height: 8px; border-radius: 50%; } .pri.mid { background: #007AFF; } .pri.high { background: #FF3B30; }
.ios-tabs { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; padding: 8px 0 22px; border-top: 0.5px solid #ddd; background: rgba(250,250,250,0.94); font-size: 10px; color: #8a8a8e; }
.ios-tabs span, .md-nav span { display: flex; flex-direction: column; align-items: center; gap: 3px; } .ios-tabs .on { color: #007AFF; }
.ic { width: 18px; height: 16px; display: block; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-image: var(--m); mask-image: var(--m); }
.ic.list { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='3.5' cy='6' r='1.8'/%3E%3Ccircle cx='3.5' cy='12' r='1.8'/%3E%3Ccircle cx='3.5' cy='18' r='1.8'/%3E%3C/svg%3E"); }
.ic.gear { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='black' stroke-width='3.2' stroke-dasharray='3 2.3'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E"); }
.md-bar { display: flex; justify-content: space-between; align-items: center; font-size: 20px; padding: 12px 16px; }
.md-plus { color: #007AFF; font-size: 24px; font-weight: 300; }
.md-search { margin: 4px 14px 10px; padding: 11px 12px; border: 1px solid #79747E; border-radius: 4px; color: #49454F; font-size: 12px; }
.md-list { margin: 0 14px; }
.md-list .row { border-bottom: 1px solid #CAC4D0; padding: 12px 4px; }
.md-nav { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; padding: 10px 0 18px; background: #F3EDF7; font-size: 10px; color: #49454F; }
.md-nav .pill { display: grid; place-items: center; width: 52px; height: 26px; border-radius: 13px; background: #E8DEF8; }
.md-nav .on { font-weight: 700; color: #1D192B; }
.bridge { color: var(--droid); width: 70px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .ios .screen, .android .screen { transition: transform 600ms var(--ease-out); }
  .devices:hover .ios .screen { transform: rotate(-6deg) translateY(-6px); }
  .devices:hover .android .screen { transform: rotate(6deg) translateY(-6px); }
}
@media (max-width: 900px) {
  .devices { gap: 0.4rem; }
  .screen { width: 38vw; border-width: 6px; font-size: 9px; }
  .device figcaption { font-size: 0.8rem; flex-wrap: wrap; justify-content: center; }
  .ios .screen { border-radius: 30px; } .android .screen { border-radius: 22px; }
  .row { padding: 8px; font-size: 10px; } .ios-title { font-size: 18px; } .md-bar { font-size: 15px; }
  .bridge { width: 22px; }
  .proof { overflow: hidden; }
}

.proof > * { min-width: 0; }
