/* Öffentliche Startseite online-plan.ch – baut auf style.css (Farben, Buttons) auf */

.home { --max: 1120px; font-size: 16px; }
.home h1, .home h2, .home h3 { letter-spacing: -.02em; line-height: 1.15; }
.home h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 14px; }
.home h3 { font-size: 1.1rem; margin: 0 0 6px; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0 0 12px; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }

/* Navigation */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 17px; }
.site-nav nav { display: flex; align-items: center; gap: 4px; }
.site-nav nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; opacity: .8; }
.site-nav nav a:not(.btn):hover { opacity: 1; background: var(--surface); }
.site-nav .btn.small { margin-left: 6px; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 72px 16px 80px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); margin: 0 0 20px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta .btn { min-height: 48px; padding: 0 22px; font-size: 16px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.checks li { position: relative; padding-left: 26px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317643a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Handy-Mockup */
.phone {
  justify-self: center; width: min(310px, 100%); aspect-ratio: 9 / 15.5;
  border-radius: 44px; padding: 12px; background: #16181d;
  box-shadow: 0 30px 60px -20px rgba(16, 18, 24, .45), inset 0 0 0 2px #2b2e35;
  transform: rotate(2deg);
}
.phone-screen { height: 100%; border-radius: 33px; overflow: hidden; background: #f3f4f6; display: flex; flex-direction: column; color: #16181d; }
.ph-bar { display: flex; align-items: center; gap: 8px; padding: 30px 14px 12px; background: #16181d; color: #fff; }
.ph-bar div { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.ph-bar b { font-size: 13px; }
.ph-bar i { font-style: normal; font-size: 9px; opacity: .65; text-transform: uppercase; letter-spacing: .08em; }
.ph-logo { width: 26px; height: 26px; border-radius: 7px; background: #c21f30; }
.ph-btn { width: 30px; height: 22px; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); }
.ph-weeks { display: flex; gap: 6px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #e3e5ea; }
.ph-weeks span { display: flex; flex-direction: column; align-items: center; padding: 4px 8px; border-radius: 7px; border: 1px solid #e3e5ea; font-size: 10px; font-weight: 700; }
.ph-weeks small { font-size: 8px; font-weight: 400; color: #6b7280; }
.ph-weeks .on { background: #c21f30; border-color: #c21f30; color: #fff; }
.ph-weeks .on small { color: #fff; opacity: .85; }
.ph-plan { margin: 12px; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 8px; display: grid; gap: 4px; }
.ph-row { display: grid; grid-template-columns: 34px repeat(6, 1fr); gap: 3px; align-items: center; }
.ph-row span { height: 18px; border-radius: 4px; background: #f3f4f6; font-size: 9px; font-weight: 700; display: flex; align-items: center; }
.ph-row span:first-child { background: none; }
.ph-row.head span { background: none; height: 14px; justify-content: center; color: #6b7280; font-size: 8px; text-transform: uppercase; }
.ph-row .a { background: #f6c9a8; }
.ph-row .b { background: #a9c7ea; }
.ph-row .c { background: #c4e2b0; }
.ph-stand { margin-top: auto; padding: 12px; text-align: center; font-size: 9px; color: #6b7280; }

/* Sektionen */
.section { max-width: var(--max); margin: 0 auto; padding: 80px 16px; }
.section.alt { max-width: none; background: var(--surface); border-block: 1px solid var(--line); padding-inline: max(16px, calc((100% - var(--max)) / 2)); }
.section > h2 { max-width: 22em; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.features p { color: var(--muted); margin: 0; font-size: 15px; }
.f-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 18px; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

.gav { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.gav .checks { flex-direction: column; }
.gav .checks li { font-weight: 500; }
.gav > div > p { color: var(--muted); }
.gav-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 20px; }
.gav-table > div { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.gav-table > div:last-child { border-bottom: 0; }
.gav-table .gt-head { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }

.price {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 36px; border-radius: 20px; background: var(--bar); color: var(--bar-ink);
}
.price h2 { margin-bottom: 8px; }
.price p { margin: 0; max-width: 40em; opacity: .8; }
.price .btn { min-height: 48px; padding: 0 24px; }

.faq { margin-top: 28px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.contact > div > p { color: var(--muted); font-size: 1.05rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; }
.contact-form input, .contact-form textarea { margin-top: 6px; }
.contact-form .btn { min-height: 46px; padding: 0 24px; }
.contact-form .msg { grid-column: 1 / -1; }
.contact-form p { margin: 0; }
.field-error { display: block; color: var(--err-ink); font-weight: 500; margin-top: 4px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent h3 { font-size: 1.3rem; }

.site-footer {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 28px max(16px, calc((100% - var(--max)) / 2)); border-top: 1px solid var(--line); font-size: 14px;
}
.site-footer > div:first-child { display: flex; flex-direction: column; }

@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .phone { width: min(260px, 80%); }
  .gav, .contact { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .site-nav nav a:not(.btn) { display: none; }
  .features, .steps { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .section { padding-block: 56px; }
  .price { padding: 24px; }
  .gav-table > div { grid-template-columns: 56px 1fr auto; font-size: 14px; }
}

/* Rechtstexte */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 6px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink); line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
