/* Chessory – Startseite
   Farbwelt vom Logo: Schwarz, Weiß, Grün (#53b848), Grau (#b5b5b5) */

:root {
  --bg: #070707;
  --bg-2: #101211;
  --bg-3: #181b19;
  --line: #262a27;
  --text: #f3f5f3;
  --muted: #a3aaa5;
  --green: #53b848;
  --green-2: #6fd163;
  --grey: #b5b5b5;
  --radius: 20px;
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
/* Deutsche Überschriften sind länger: etwas kleiner, damit der Hero-Titel nicht auf vier Zeilen umbricht */
html[lang="de"] .hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: -999px; top: 8px; background: var(--green); color: #000;
  padding: .6em 1em; border-radius: 8px; z-index: 100; font-weight: 600;
}
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(64px, 10vw, 120px) 0; }
.alt { background: var(--bg-2); }
.eyebrow {
  color: var(--green); font-weight: 650; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem;
}
.lead { color: var(--muted); font-size: 1.2rem; max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.accent { color: var(--green); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 7, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .98rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.lang { display: flex; gap: 4px; font-size: .85rem; }
.lang a {
  text-decoration: none; padding: 4px 9px; border-radius: 8px; color: var(--muted);
  border: 1px solid transparent;
}
.lang a[aria-current="true"] { color: var(--text); border-color: var(--line); background: var(--bg-3); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; margin-left: auto;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 650; font-size: 1.02rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #031003; }
.btn-primary:hover { background: var(--green-2); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--bg-3); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.fine { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

/* Hero */
.hero { padding-top: clamp(48px, 8vw, 96px); overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 80%;
  background: radial-gradient(ellipse at 70% 30%, rgba(83, 184, 72, .18), transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero .lead { margin-top: 1.2rem; }

/* Medien-Platzhalter (später durch echte Bilder/Videos ersetzen) */
.ph {
  position: relative; display: grid; place-items: center; text-align: center;
  background:
    linear-gradient(135deg, rgba(83,184,72,.10), rgba(181,181,181,.06)),
    repeating-conic-gradient(#171a18 0% 25%, #101311 0% 50%) 0 0 / 56px 56px;
  border: 1px dashed #3a413c; border-radius: 14px; color: var(--muted);
  font-size: .85rem; padding: 12px; overflow: hidden; width: 100%; height: 100%;
}
.ph strong { display: block; color: var(--text); font-size: .95rem; margin-bottom: 2px; }
.ph .play {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(83,184,72,.9);
  display: grid; place-items: center; margin: 0 auto 10px;
}
.ph .play::after {
  content: ""; border-left: 16px solid #031003; border-top: 10px solid transparent;
  border-bottom: 10px solid transparent; margin-left: 4px;
}

/* Echte Screenshots (statt .ph-Platzhalter) */
.device img { width: 100%; height: auto; display: block; }
.device.ipad:has(img) { aspect-ratio: auto; }
.device.ipad img { border-radius: 14px; }
.device.iphone img { border-radius: 28px; height: 100%; object-fit: cover; }
.imgshot { aspect-ratio: auto !important; }
.imgshot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
/* Bildimport-Ablauf: Schritt 1 + 2 nebeneinander, Schritt 3 groß darunter, nichts beschnitten */
.flow:has(.imgshot) { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.7fr); gap: 28px; }
.flow:has(.imgshot) figure:last-of-type { grid-column: 1 / -1; width: min(880px, 100%); margin-inline: auto; }
.flow:has(.imgshot) .arrow:last-of-type { grid-column: 1 / -1; justify-self: center; transform: rotate(90deg); }
.flow .imgshot img { aspect-ratio: auto; object-fit: contain; }

/* Vergrößern per Klick */
.imgshot img, .device img, .stepshot img { cursor: zoom-in; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 14px; cursor: zoom-out; display: block; margin: auto; }

/* Geräterahmen */
.device { background: #000; border: 2px solid #34393a; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px #000; }
.ipad { border-radius: 26px; padding: 12px; aspect-ratio: 4 / 3; }
.ipad .ph { border-radius: 14px; }
.iphone { border-radius: 38px; padding: 10px; aspect-ratio: 9 / 19; width: 100%; max-width: 230px; }
.iphone .ph { border-radius: 28px; }
.mac { border-radius: 14px 14px 0 0; padding: 10px 10px 12px; aspect-ratio: 16 / 10; position: relative; }
.mac::after {
  content: ""; position: absolute; left: -6%; right: -6%; bottom: -14px; height: 14px;
  background: linear-gradient(#3a3f40, #1d2021); border-radius: 0 0 18px 18px;
}
.mac .ph { border-radius: 6px; }
.shot { position: relative; }

/* Hero-Gerätegruppe */
.hero-devices { position: relative; padding-bottom: 8%; }
.hero-devices .iphone { position: absolute; right: -2%; bottom: 0; width: 28%; max-width: none; transform: rotate(4deg); }

/* "So funktioniert's" – drei Schritte direkt unter dem Hero */
.how { padding: clamp(48px, 7vw, 80px) 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.2rem; counter-reset: how; }
.how-step {
  position: relative; display: block; text-decoration: none; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 24px; counter-increment: how; transition: border-color .2s, transform .2s;
}
.how-step:hover { border-color: rgba(83,184,72,.6); transform: translateY(-3px); }
.how-step::before {
  content: counter(how); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #031003; font-weight: 750; margin-bottom: 14px; line-height: 1;
}
.how-step h3 { margin-bottom: .35em; }
.how-step p { color: var(--muted); margin: 0; }
.how-step + .how-step::after {
  content: "→"; position: absolute; left: -17px; top: 50%; transform: translate(-50%, -50%);
  color: var(--green); font-size: 1.4rem;
}

/* Download-Button, solange es noch keinen App-Store-Link gibt */
.btn-soon { cursor: default; opacity: .85; }
.btn-soon:hover { transform: none; background: var(--green); }

/* Feature-Streifen */
.strip { padding: 28px 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .98rem; }
.strip li::before { content: "♞"; color: var(--green); margin-right: 8px; }

/* Zweispaltige Abschnitte */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .8rem; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23031003' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 3rem; }
.card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.alt .card { background: var(--bg); }
.card .shot { aspect-ratio: 16 / 10; margin-bottom: 22px; }
.card p { color: var(--muted); margin: 0; }
.tag {
  align-self: flex-start;
  display: inline-block; font-size: .78rem; font-weight: 650; color: var(--green);
  border: 1px solid rgba(83,184,72,.4); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px;
}

/* KI-Bildimport – Ablauf */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 20px; align-items: center; margin-top: 3.5rem; }
.flow figure { margin: 0; }
.flow .shot { aspect-ratio: 4 / 3; }
.flow figcaption { margin-top: 14px; text-align: center; font-weight: 650; }
.flow figcaption small { display: block; color: var(--muted); font-weight: 400; font-size: .92rem; }
.arrow { color: var(--green); font-size: 2.2rem; line-height: 1; }
.spotlight {
  background: radial-gradient(ellipse at 50% 0%, rgba(83,184,72,.16), transparent 65%), var(--bg-2);
  border-block: 1px solid var(--line);
}

/* Geräte-Abschnitt */
.devices-row { display: grid; grid-template-columns: 1.1fr 2fr 1.2fr; gap: 36px; align-items: end; margin-top: 3.5rem; }
.devices-row figure { margin: 0; }
.devices-row figcaption { text-align: center; margin-top: 26px; color: var(--muted); font-size: .95rem; }
.devices-row figcaption strong { display: block; color: var(--text); }
.devices-row .iphone { margin: 0 auto; }
.note {
  margin: 3rem auto 0; max-width: 46em; text-align: center; padding: 20px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3);
}

/* KI-Coach: Erklärungs-Karten (Beispiel-Darstellung) */
.coach-bubble {
  position: absolute; left: -6%; bottom: 16%; width: min(270px, 58%);
  background: rgba(16, 18, 17, .94); border: 1px solid rgba(83,184,72,.45);
  border-radius: 16px; padding: 12px 14px; font-size: .84rem; line-height: 1.45;
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 40px rgba(83,184,72,.15);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.coach-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 650; font-size: .85rem; }
.coach-head .dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #031003;
  display: grid; place-items: center; font-size: .95rem; flex: none;
}
.coach-head small { color: var(--muted); font-weight: 400; margin-left: auto; }
.coach-bubble p, .explain p { margin: 0; color: #d9ddda; }
.mv { font-weight: 650; color: var(--text); white-space: nowrap; }
.bad { color: #ff8a7a; }
.good { color: var(--green-2); }

.coach-section {
  background: radial-gradient(ellipse at 20% 10%, rgba(83,184,72,.18), transparent 55%), var(--bg);
  border-block: 1px solid var(--line);
}
.coach-section h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.coach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 3.5rem; }
.coach-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 26px; padding: 30px;
  display: flex; flex-direction: column; gap: 18px;
}
.coach-card h3 { font-size: 1.5rem; margin: 0; }
.coach-card > p { color: var(--muted); margin: 0; }
.coach-card .shot { aspect-ratio: 16 / 10; }
.explain {
  background: var(--bg-3); border: 1px solid rgba(83,184,72,.35); border-radius: 18px;
  padding: 18px 20px; font-size: .95rem; line-height: 1.55; margin-top: auto;
}
.compare { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: .85rem; }
.compare span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; background: var(--bg); }
.example { font-size: .78rem; color: var(--muted); margin-top: 10px; display: block; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 3rem; }
.benefits div { border-top: 2px solid var(--green); padding-top: 16px; }
.benefits strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.benefits span { color: var(--muted); }

/* Anleitungsbereich */
.page-head { padding: clamp(48px, 8vw, 88px) 0 clamp(24px, 4vw, 40px); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--text); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding-bottom: clamp(64px, 10vw, 120px); }
.guide-card {
  display: flex; flex-direction: column; text-decoration: none; background: var(--bg-3);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s, border-color .2s;
}
.guide-card:hover { transform: translateY(-4px); border-color: rgba(83,184,72,.6); }
.guide-card .shot { aspect-ratio: 16 / 10; margin-bottom: 20px; }
.guide-card h2 { font-size: 1.35rem; margin-bottom: .4em; letter-spacing: -.01em; }
.guide-card p { color: var(--muted); margin: 0 0 1rem; }
.guide-card .more { margin-top: auto; color: var(--green); font-weight: 650; }
.guide-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.guide-meta span { font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.article { max-width: 820px; margin: 0 auto; padding: 0 24px clamp(48px, 8vw, 96px); }
.article .shot { margin: 2rem 0; }
.article .shot.wide { aspect-ratio: 16 / 9; }
.article h2 { font-size: 1.7rem; margin-top: 2.4rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.4rem 0; display: grid; gap: 1.2rem; }
.steps li { counter-increment: s; position: relative; padding-left: 56px; min-height: 40px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #031003; display: grid; place-items: center; font-weight: 750; line-height: 1;
}
/* Anleitungsschritte mit Screenshot und hervorgehobenem Bedienelement */
.stepshot { margin: 1rem 0 0; }
.ringwrap { position: relative; }
.ringwrap img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); }
.ring {
  position: absolute; border: 3px solid var(--green-2); border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(83,184,72,.28), 0 0 26px rgba(83,184,72,.55);
}
.ring.round { border-radius: 50%; }
.tipbox { border-left: 3px solid var(--green); background: var(--bg-3); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 2rem 0; }
.tipbox strong { color: var(--green); }
.related { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 3rem; }
.related ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.related a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--bg-3); }
.related a:hover { border-color: var(--green); }
.guides-teaser { text-align: center; }

/* FAQ (ausklappbar ohne JavaScript) */
.faq { max-width: 820px; margin: 0 auto; padding: 0 24px clamp(48px, 8vw, 96px); display: grid; gap: 12px; }
.faq details { background: var(--bg-3); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(83,184,72,.5); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--green); font-size: 1.6rem; line-height: 1; font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 22px 20px; color: #d3d8d4; }
.faq .answer p { margin: 0 0 .8em; }
.faq .answer p:last-child { margin: 0; }
.faq a { color: var(--green); }

/* Geräte-Seite */
.device-block { padding: clamp(48px, 7vw, 88px) 0; }
.device-block + .device-block { border-top: 1px solid var(--line); }
.device-block .device.iphone { margin: 0 auto; max-width: 260px; }
.device-block .device.mac { margin-bottom: 18px; }
.page-cta { text-align: center; }

/* Rechtsseiten & Kontakt */
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal a { color: var(--green); }
.ph-inline { border: 1px dashed #3a413c; border-radius: 6px; padding: 2px 8px; color: var(--muted); }

/* Schluss-CTA */
.final { text-align: center; }
.final .lead { margin-left: auto; margin-right: auto; }
.final img { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 28px; }
.final .cta-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .94rem; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot ul { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* Einblend-Animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .flow, .flow:has(.imgshot) { grid-template-columns: 1fr; }
  .flow:has(.imgshot) .arrow:last-of-type { grid-column: auto; }
  .arrow { transform: rotate(90deg); text-align: center; }
  .devices-row { grid-template-columns: 1fr; }
  .coach-grid, .benefits, .how-steps { grid-template-columns: 1fr; }
  .how-step + .how-step::after { content: "↓"; left: 50%; top: -17px; }
  .coach-bubble { position: relative; left: auto; bottom: auto; width: auto; margin-top: 24px; }
  /* Auf schmalen Bildschirmen: iPhone im Hero ausblenden (wird sonst von der Coach-Karte verdeckt; im Geräte-Bereich weiter unten sichtbar) */
  .hero-devices .iphone { display: none; }
  .hero-devices { padding-bottom: 0; }
  .devices-row .iphone { max-width: 200px; }
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; }
  .lang { margin-left: 0; }
}
