/* JoniK – gemeinsame Stile für alle Seiten. Keine externen Schriften oder Dienste. */
:root {
  --sky: #EAF4FF;
  --card: #FFFFFF;
  --ink: #0B2A5B;
  --ink-2: #46607F;
  --blue: #0159A8;
  --blue-dark: #014A8C;
  --blue-soft: #E1EEFB;
  --orange: #E8710A;
  --orange-text: #C25500;
  --orange-soft: #FFE9D3;
  --indigo: #4B45B8;
  --indigo-soft: #E8E7FA;
  --green: #1F7A45;
  --green-soft: #E6F5EC;
  --shadow: 0 2px 10px rgba(11, 42, 91, 0.07);
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.k { color: var(--orange-text); }

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

/* ---------- Kopf ---------- */
.site-head { padding-block: 18px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 22px; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 1px 4px rgba(11, 42, 91, 0.18); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 16px; padding: 8px 14px; border-radius: 20px; }
.nav a:hover { background: var(--card); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--card); color: var(--blue); box-shadow: var(--shadow); }

main { display: flex; flex-direction: column; gap: 72px; padding-block: 24px 72px; }

.eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 4vw, 36px); }
.lead { color: var(--ink-2); max-width: 62ch; margin-top: 12px; }

/* ---------- Knöpfe ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 26px; font-weight: 700; font-size: 17px; text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-soft { background: var(--card); color: var(--blue); box-shadow: 0 1px 4px rgba(11, 42, 91, 0.14); }
.btn-soft:hover { background: var(--blue-soft); }

/* ---------- Startseite: Kopfbereich ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; }
.hero .lead { font-size: 19px; margin-top: 18px; }

/* Animiertes iPhone (nur CSS) */
.phone-col { display: flex; justify-content: center; }
.phone { width: 270px; max-width: 100%; aspect-ratio: 270 / 540; border: 9px solid var(--ink); border-radius: 44px; background: var(--sky); position: relative; overflow: hidden; box-shadow: 0 24px 50px rgba(11, 42, 91, 0.22); }
.ph-title { position: absolute; inset: 22px 0 auto 0; text-align: center; font-family: var(--display); font-weight: 700; font-size: 15px; }
.ph-stage { position: absolute; inset: 70px 14px 168px 14px; }
.ph-card { position: absolute; inset: 0 0 auto 0; background: #fff; border-radius: 22px; padding: 16px 14px 14px; box-shadow: 0 2px 10px rgba(11, 42, 91, 0.1); display: flex; flex-direction: column; gap: 12px; }
.ph-text { position: relative; min-height: 96px; }
.ph-text span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.22; }
.ph-chip { align-self: center; font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 12px; padding: 2px 10px; }
.ph-buttons { display: flex; gap: 8px; justify-content: center; }
.ph-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.ph-btn svg { width: 20px; height: 20px; }
.ph-btn.speak { background: var(--blue); }
.ph-btn.share { background: var(--blue-soft); }
.ph-btn.translate { background: var(--blue-soft); }
.ph-btn.translate svg { stroke: var(--blue); }
.ph-bars { position: absolute; inset: 0 0 auto 0; height: 150px; background: #fff; border-radius: 22px; box-shadow: 0 2px 10px rgba(11, 42, 91, 0.1); display: flex; align-items: center; justify-content: center; gap: 5px; opacity: 0; }
.ph-bars i { display: block; width: 6px; height: 60px; border-radius: 3px; background: var(--orange); transform: scaleY(0.2); }
.ph-mic { position: absolute; left: 50%; bottom: 40px; width: 92px; height: 92px; margin-left: -46px; display: grid; place-items: center; }
.ph-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(232, 113, 10, 0.3); }
.ph-micbtn { width: 70px; height: 70px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(232, 113, 10, 0.4); position: relative; }
.ph-micbtn svg { width: 32px; height: 32px; }
.ph-wave { opacity: 0; }

/* Ablauf: 14 s, Start mitten im fertigen Ergebnis */
.phone *, .phone { animation-duration: 14s; animation-iteration-count: infinite; animation-delay: -7.5s; animation-timing-function: ease-in-out; }
.ph-card { animation-name: card; }
.ph-bars { animation-name: rec; }
.ph-bars i { animation-name: bar; }
.ph-bars i:nth-child(2) { animation-delay: -7.2s; }
.ph-bars i:nth-child(3) { animation-delay: -6.9s; }
.ph-bars i:nth-child(4) { animation-delay: -7.35s; }
.ph-bars i:nth-child(5) { animation-delay: -7.05s; }
.ph-ring { animation-name: ring; }
.ph-de { animation-name: de; }
.ph-en, .ph-chip { animation-name: en; }
.ph-btn.speak { animation-name: speak; }
.ph-wave { animation-name: wave; }
.ph-btn.translate { animation-name: trans; }
@keyframes card { 0%, 14% { opacity: 0; } 30%, 94% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes rec { 0%, 10% { opacity: 0; } 14%, 28% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes bar { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }
@keyframes ring { 0%, 10% { transform: scale(1); opacity: 0.3; } 14% { opacity: 1; } 22% { transform: scale(1.18); opacity: 0.2; } 30%, 100% { transform: scale(1); opacity: 0.3; } }
@keyframes de { 0%, 33% { opacity: 0; } 38%, 70% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes en { 0%, 74% { opacity: 0; } 79%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes speak { 0%, 46% { transform: scale(1); } 52%, 62% { transform: scale(1.14); } 68%, 100% { transform: scale(1); } }
@keyframes wave { 0%, 46% { opacity: 0; } 52%, 62% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes trans { 0%, 70% { background: var(--blue-soft); } 76%, 94% { background: var(--blue); } 98%, 100% { background: var(--blue-soft); } }

/* ---------- Karten ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 18px; margin-top: 28px; }
.card { background: var(--card); border-radius: 24px; padding: 22px 22px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { font-size: 20px; }
.card p { color: var(--ink-2); font-size: 16px; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 4px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-orange { background: var(--orange-soft); color: #B85600; }
.i-blue { background: var(--blue-soft); color: var(--blue); }
.i-indigo { background: var(--indigo-soft); color: var(--indigo); }
.i-green { background: var(--green-soft); color: var(--green); }

/* ---------- Schritte ---------- */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--card); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps li::before { content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--display); font-weight: 800; display: grid; place-items: center; }
.steps h3 { font-size: 19px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* ---------- Datenschutz-Band ---------- */
.privacy { background: var(--ink); color: #fff; border-radius: 28px; padding: 34px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.privacy h2 { color: #fff; }
.privacy p { color: #D5E3F7; margin-top: 12px; }
.privacy a { color: #fff; }
.privacy ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.privacy li { display: flex; gap: 12px; }
.privacy li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- Bezugs-Karten ---------- */
.tag { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 12px; }
.tag.ios { background: var(--blue-soft); color: var(--blue); }
.tag.mac { background: var(--orange-soft); color: #9A4800; }
.card ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 16px; display: flex; flex-direction: column; gap: 4px; }
.card .btn { align-self: flex-start; margin-top: 6px; }
.note { font-size: 15px; color: var(--ink-2); background: var(--blue-soft); border-radius: 14px; padding: 12px 14px; }

/* ---------- Fragen ---------- */
.faq { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--display); font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Kontakt-Kasten ---------- */
.contact { background: var(--card); border-radius: 28px; padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.contact h2 { font-size: clamp(24px, 3.5vw, 30px); }
.contact p { color: var(--ink-2); margin-top: 6px; }
.mail { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 3vw, 24px); overflow-wrap: anywhere; }

/* ---------- Textseiten (Datenschutz, Impressum) ---------- */
.doc { background: var(--card); border-radius: 28px; padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow); max-width: 820px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc h3 { font-size: 18px; margin-top: 22px; }
.doc p, .doc ul, .doc address { margin-top: 10px; }
.doc p, .doc li { color: #2A4468; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 4px; }
.doc address { font-style: normal; }
.doc .lead { font-size: 18px; }
.doc .stand { margin-top: 36px; font-size: 15px; color: var(--ink-2); }
.todo { background: #FFF3B0; border-radius: 4px; padding: 0 4px; }

/* ---------- Fuß ---------- */
.site-foot { border-top: 1px solid rgba(11, 42, 91, 0.1); padding-block: 28px 40px; font-size: 15px; color: var(--ink-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot a { color: var(--ink-2); }
.site-foot a:hover { color: var(--blue); }

@media (max-width: 820px) {
  body { font-size: 16px; }
  main { gap: 56px; padding-block: 12px 56px; }
  .hero, .privacy { grid-template-columns: minmax(0, 1fr); }
  .hero .lead { font-size: 18px; }
  .phone-col { order: 2; }
  .privacy { padding: 28px 22px; }
}
@media (max-width: 520px) {
  .site-head .wrap { flex-direction: column; align-items: flex-start; }
  .nav { margin-inline: -10px; gap: 2px; }
  .nav a { padding: 6px 10px; font-size: 15px; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone *, .phone { animation: none !important; }
  .ph-card, .ph-de { opacity: 1; }
  .ph-en, .ph-chip, .ph-bars, .ph-wave { opacity: 0; }
}
