/* Yupside Website. Schrift liegt selbst gehostet unter assets/ (kein Google-Fonts-Abruf, DSGVO). */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/PlusJakartaSans-var.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --indigo: #2F3DBE;
  --indigo-dark: #24309A;
  --koralle: #FF7A59;
  --navy: #13204A;
  --text: #13204A;
  --muted: #4A5578;
  --line: #DDE1F0;
  --soft: #EEF0FB;
  --white: #FFFFFF;
  --font: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--indigo); }
a:hover { color: var(--indigo-dark); }
:focus-visible { outline: 3px solid var(--koralle); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Kopf */
.top { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.top img { height: 36px; width: auto; }
.top nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.top nav a { color: var(--text); text-decoration: none; }
.top nav a:hover { color: var(--indigo); }
@media (max-width: 720px) { .top nav { display: none; } }

/* Hero */
.hero { background: var(--soft); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 88px; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 800; text-wrap: balance; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 32px; max-width: 34em; }
.btn { display: inline-block; background: var(--indigo); color: var(--white); text-decoration: none; font-weight: 700; padding: 14px 24px; border-radius: 10px; }
.btn:hover { background: var(--indigo-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--indigo); border: 2px solid var(--indigo); padding: 12px 22px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 56px; gap: 40px; } }

/* Warenkorb-Beispiel im Hero */
.cart { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 20px 50px -30px rgba(19, 32, 74, 0.35); }
.cart .shop { font-weight: 800; letter-spacing: 0.22em; font-size: 15px; margin-bottom: 16px; }
.cart .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding-block: 8px; border-bottom: 1px solid #EEF0F5; }
.choice { margin-top: 20px; }
.choice p { margin: 0 0 12px; font-weight: 700; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { border: 1px solid #C9CEE3; border-radius: 10px; padding: 12px; font-size: 14px; line-height: 1.35; }
.opt b { display: block; font-size: 15px; }
.opt span { color: var(--muted); }
.opt.on { border: 2px solid var(--indigo); background: var(--soft); }
.by { margin-top: 12px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.by img { height: 16px; width: auto; }
.example { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: right; }

/* Abschnitte */
section { padding-block: 88px; }
section.alt { background: var(--soft); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo); margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 800; text-wrap: balance; }
.intro { color: var(--muted); max-width: 40em; margin: 0 0 40px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--koralle); color: var(--white); font-weight: 800; margin-bottom: 14px; }
.steps h3, .cards h3 { margin: 0 0 6px; font-size: 19px; }
.steps p, .cards p { margin: 0; color: var(--muted); font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cards div { border-top: 3px solid var(--indigo); padding-top: 16px; }
@media (max-width: 860px) { .steps, .cards { grid-template-columns: 1fr; } section { padding-block: 64px; } }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.note { font-size: 14px; color: var(--muted); }

/* Beta für Shops */
.beta { background: var(--indigo); color: var(--white); }
.beta .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.beta .eyebrow { color: var(--koralle); }
.beta h2 { color: var(--white); font-size: clamp(32px, 4.5vw, 48px); }
.beta .intro { color: #DCE0FA; margin-bottom: 32px; font-size: 19px; }
.ps { display: grid; gap: 18px; margin: 8px 0 24px; }
.ps div { border-left: 3px solid var(--koralle); padding-left: 16px; }
.ps b { display: block; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--koralle); margin-bottom: 4px; }
.ps p { margin: 0; color: var(--white); font-size: 18px; }
.btn.light { background: var(--white); color: var(--indigo); }
.btn.light:hover { background: var(--koralle); color: var(--white); }
.pass { background: var(--navy); border-radius: 18px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }
.pass-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px dashed rgba(255, 255, 255, 0.25); }
.pass-head img { height: 26px; width: auto; }
.pass-head span { background: var(--koralle); color: var(--white); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.pass ul { list-style: none; margin: 0; padding: 18px 0 0; display: grid; gap: 16px; }
.pass li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; }
.pass li::before { content: "✓"; grid-row: span 2; color: var(--koralle); font-weight: 800; font-size: 18px; line-height: 1.4; }
.pass li b { font-size: 17px; }
.pass li span { color: #B8BFDC; font-size: 15px; }
.pass-foot { margin-top: 20px; font-size: 13px; color: #B8BFDC; letter-spacing: 0.12em; text-transform: uppercase; text-align: right; }
@media (max-width: 860px) { .beta .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* Kontakt */
.contact { background: var(--navy); color: var(--white); }
.contact h2 { color: var(--white); }
.contact p { color: #C9CEE3; max-width: 40em; }
.contact .mail { font-size: 24px; font-weight: 800; color: var(--white); }
.contact .mail:hover { color: var(--koralle); }

.founder { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: center; }
.portrait { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 4px solid var(--koralle); }
.contact .sign { margin: 18px 0 0; font-size: 15px; color: #B8BFDC; }
@media (max-width: 720px) { .founder { grid-template-columns: 1fr; gap: 28px; } .portrait { width: 140px; height: 140px; } }

/* Fuß */
footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

/* Rechtstexte */
.legal { max-width: 760px; padding-block: 56px 88px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.todo { background: #FFF4E5; border: 1px dashed #E0A050; padding: 2px 6px; border-radius: 4px; }

.contact .btn.call { background: var(--koralle); color: var(--white); font-size: 17px; padding: 16px 28px; }
.contact .btn.call:hover { background: var(--white); color: var(--navy); }
.contact .alt { margin: 20px 0 0; font-size: 15px; }
.contact .alt a { color: var(--white); font-weight: 700; }
.contact .alt a:hover { color: var(--koralle); }
.contact .eyebrow { color: var(--koralle); }
.contact h2 { margin-bottom: 24px; }
.cart .risk { margin: 6px 0 0; font-weight: 400; font-size: 12px; color: var(--muted); }
.contact .who-line { margin: -12px 0 24px; font-size: 17px; }
.contact button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.callbox { border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--white); color: var(--text); box-shadow: 0 20px 50px -30px rgba(19, 32, 74, 0.35); }
.callbox::backdrop { background: rgba(19, 32, 74, 0.4); }
.cf { position: relative; display: grid; gap: 16px; padding: 32px; }
.cf h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.cf-sub { margin: -10px 0 4px; font-size: 15px; color: var(--muted); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.cf input:not([type=radio]) { font: inherit; font-size: 16px; color: var(--text); padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; background: var(--white); }
.cf input:not([type=radio]):focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--soft); }
.cf input.bad { border-color: var(--koralle); }
.cf fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cf legend { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; padding: 0; }
.cf-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cf-opts label { display: block; cursor: pointer; }
.cf-opts input { position: absolute; opacity: 0; pointer-events: none; }
.cf-opts span { display: block; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--text); }
.cf-opts input:checked + span { border: 1px solid var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); background: var(--soft); }
.cf-opts input:focus-visible + span { outline: 3px solid var(--koralle); outline-offset: 2px; }
.cf-opts.bad span { border-color: var(--koralle); }
.cf-go { margin-top: 4px; width: 100%; text-align: center; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.cf-x { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--muted); }
.cf-x:hover { background: var(--soft); color: var(--text); }
@media (max-width: 480px) { .cf { padding: 24px; } .cf-row { grid-template-columns: 1fr; } }
#banken .btn { margin-top: 8px; }
.contact .call-why { margin: -8px 0 24px; }
.faq { background: var(--soft); }
.faq .wrap { text-align: center; }
.faq-list { display: grid; gap: 10px; max-width: 760px; margin: 24px auto 0; text-align: left; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; font-weight: 400; color: var(--indigo); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Ab 29.11: Abschnitte aus Entwurf v2 */

.top .wrap { gap: 20px; }
.top nav { margin-left: auto; }
.btn-sm { padding: 9px 16px; font-size: 15px; }
@media (max-width: 720px) { .top nav { display: none; } }

/* Vertrauens-Zeile im Hero */
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--koralle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; flex: none; }

/* Vorteile */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.perk { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.perk:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(19, 32, 74, 0.35); }
.perk svg { width: 48px; height: 48px; margin-bottom: 16px; }
.perk h3 { margin: 0 0 6px; font-size: 20px; }
.perk p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .perks { grid-template-columns: 1fr; } }

/* Zeitleiste */
.timeline { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 20px; left: 20px; right: 20px; height: 2px; background: linear-gradient(90deg, var(--indigo), var(--koralle)); }
.timeline li { position: relative; }
.timeline .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 2px solid var(--indigo); color: var(--indigo); font-weight: 800; margin-bottom: 16px; }
.timeline li:last-child .dot { background: var(--koralle); border-color: var(--koralle); color: var(--white); }
.timeline h3 { margin: 0 0 6px; font-size: 19px; }
.timeline p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 58px; }
  .timeline::before { top: 20px; bottom: 20px; left: 20px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--indigo), var(--koralle)); }
  .timeline .dot { position: absolute; left: -58px; top: 0; }
}

/* Wachstumsgrafik */
.growth { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; }
.growth figcaption { font-weight: 800; margin-bottom: 8px; }
.growth svg { width: 100%; height: auto; display: block; overflow: visible; }
.growth .grid line { stroke: #EEF0F5; stroke-width: 1; }
.growth .ax text { font-size: 11px; fill: var(--muted); text-anchor: end; font-family: var(--font); }
.growth .ax text.l { text-anchor: start; }
.growth .ax text.r { text-anchor: end; }
.growth .line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.growth .line.up { stroke: var(--indigo); }
.growth .line.down { stroke: #9AA3C7; stroke-dasharray: 6 6; stroke-dashoffset: 0; opacity: 0; }
.growth .enddot { fill: var(--koralle); opacity: 0; }
.growth .val { font-size: 14px; font-weight: 800; fill: var(--navy); text-anchor: end; opacity: 0; font-family: var(--font); }
.growth.play .line.up { animation: draw 1.6s ease-out forwards; }
.growth.play .line.down { animation: fade .6s 1.2s ease-out forwards; }
.growth.play .enddot, .growth.play .val { animation: fade .4s 1.5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .growth .line.up { stroke-dashoffset: 0; animation: none !important; }
  .growth .line.down, .growth .enddot, .growth .val { opacity: 1; animation: none !important; }
}
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend .k { display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--indigo); }
.legend .k.down { background: repeating-linear-gradient(90deg, #9AA3C7 0 5px, transparent 5px 9px); }
.legend .k + * { margin-right: 8px; }
.growth .note { margin: 10px 0 0; font-size: 13px; }

/* Banken als eigene Zeile */
.bank { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.bank > div { max-width: 44em; }
.bank .btn { flex: none; }
@media (max-width: 860px) { .bank { flex-direction: column; align-items: flex-start; gap: 20px; } }

/* FAQ-Tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); margin-top: 16px; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--indigo); color: var(--white); }
.bank-sec { border-top: 1px solid var(--line); padding-block: 64px; }
.faq-list[hidden] { display: none; }
