/* web/styles.css — BAUMATCH Website
   Markenfarben aus assets/brand/icon.png bzw. app.json (#1d4ed8). */

:root {
  --blue-900: #14286b;
  --blue-700: #1d4ed8;
  --blue-500: #3b82f6;
  --blue-300: #93c5fd;
  --blue-050: #eff6ff;

  --ink: #11181c;
  --ink-soft: #46525a;
  --ink-faint: #6b7780;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(17, 24, 28, .05), 0 8px 24px rgba(17, 24, 28, .06);
  --shadow-lg: 0 2px 4px rgba(17, 24, 28, .06), 0 24px 48px rgba(20, 40, 107, .14);

  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-700); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; padding-inline: 0; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: .04em; font-size: 1.05rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand img { border-radius: 8px; }

.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .96rem; font-weight: 550; }
.site-nav a:hover { color: var(--blue-700); }

.lang-switch {
  font-variant: all-small-caps; letter-spacing: .06em;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}

.back-link { margin-left: auto; color: var(--ink-soft); text-decoration: none; font-size: .95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 1rem; font-weight: 650; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 6px 18px rgba(29, 78, 216, .3); }
.btn-primary:hover { background: #1a45c0; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.btn-outline { background: #fff; color: var(--blue-700); border-color: var(--line); box-shadow: var(--shadow); }
.btn-outline:hover { border-color: var(--blue-300); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #dbeafe 0%, var(--blue-500) 45%, var(--blue-700) 100%);
  color: #fff;
  padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 10vw, 120px);
}
.hero::after {
  content: ''; position: absolute; inset: auto -10% -60% 40%;
  height: 70%; background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero .kicker {
  display: inline-block; margin-bottom: 18px;
  font-weight: 700; letter-spacing: .22em; font-size: .82rem;
  text-transform: uppercase; color: rgba(255, 255, 255, .82);
}
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.94); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: rgba(255,255,255,.8); }

.hero-art { display: grid; place-items: center; }
.hero-art img {
  width: min(300px, 70%); border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

/* ---------- Fakten ---------- */
.facts { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 36px 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.fact-value { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--blue-700); letter-spacing: -.02em; }
.fact-label { font-size: .92rem; color: var(--ink-faint); }

/* ---------- Sections ---------- */
section.band { padding: clamp(56px, 8vw, 96px) 0; }
section.band.soft { background: var(--bg-soft); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .step {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 12px; background: var(--blue-050); color: var(--blue-700);
  font-weight: 800; font-size: 1.05rem;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }

/* ---------- Zielgruppen / Preise ---------- */
.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow);
}
.price-card.featured { border-color: var(--blue-300); box-shadow: var(--shadow-lg); }
.price-tag { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--blue-700); }
.price-per { font-size: 1rem; font-weight: 600; color: var(--ink-faint); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.price-card li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-soft); }
.price-card li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--blue-700); font-weight: 800;
}
.fineprint { font-size: .87rem; color: var(--ink-faint); }

/* ---------- Gewerke ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: .93rem; color: var(--ink-soft);
}

/* ---------- App-Mockups ----------
   Nachgebaute UI mit erfundenen Daten – keine echten Nutzerdaten.
   Kann später 1:1 durch echte Screenshots ersetzt werden (siehe DEPLOY.md). */
.shots {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px; justify-items: center;
}
.shot { width: 100%; max-width: 280px; }

.phone {
  border-radius: 34px; padding: 10px;
  background: linear-gradient(160deg, #2b3444, #131923);
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  aspect-ratio: 9 / 17.5; overflow: hidden;
  border-radius: 26px; background: #fff;
  display: flex; flex-direction: column;
}
.phone-notch {
  height: 20px; display: grid; place-items: center; flex: 0 0 auto;
}
.phone-notch::before {
  content: ''; width: 52px; height: 4px; border-radius: 999px; background: #d7dde6;
}
.mock { flex: 1 1 auto; padding: 4px 12px 0; overflow: hidden; font-size: 11px; }
.mock-h { font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 8px; }

.mock-row {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 11px;
  padding: 7px 8px; margin-bottom: 7px;
}
.mock-av {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center;
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .01em;
}
.mock-av.b1 { background: #1d4ed8; } .mock-av.b2 { background: #0ea5e9; }
.mock-av.b3 { background: #6366f1; } .mock-av.b4 { background: #0891b2; }
.mock-meta { min-width: 0; flex: 1 1 auto; }
.mock-name { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-sub { color: var(--ink-faint); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-pill {
  flex: 0 0 auto; background: var(--blue-050); color: var(--blue-700);
  border-radius: 8px; padding: 4px 8px; font-size: 10px; font-weight: 650;
}

.mock-bubble {
  max-width: 78%; padding: 7px 10px; margin-bottom: 7px; line-height: 1.4;
  border-radius: 13px;
}
.mock-bubble.in { background: #f1f5f9; color: var(--ink); border-bottom-left-radius: 4px; }
.mock-bubble.out {
  background: var(--blue-700); color: #fff; margin-left: auto;
  border-bottom-right-radius: 4px;
}
.mock-day { text-align: center; color: var(--ink-faint); font-size: 9px; margin: 4px 0 8px; }

.mock-job {
  border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px; margin-bottom: 8px;
}
.mock-job-title { font-weight: 750; color: var(--ink); }
.mock-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 9px; }
.mock-chip {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 8px; font-size: 9px; color: var(--ink-soft);
}
.mock-chip.on { background: var(--blue-050); border-color: var(--blue-300); color: var(--blue-700); font-weight: 650; }

.mock-tabs {
  flex: 0 0 auto; display: flex; justify-content: space-around;
  border-top: 1px solid var(--line); padding: 7px 0 9px;
  font-size: 9px; color: var(--ink-faint);
}
.mock-tabs span.on { color: var(--blue-700); font-weight: 700; }

.shot-caption {
  text-align: center; margin-top: 12px; font-size: .92rem; color: var(--ink-faint);
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .93rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--blue-300); outline-offset: 1px; border-color: var(--blue-500);
}
.form-field textarea { min-height: 132px; resize: vertical; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; font-size: .92rem; color: var(--ink-soft); }
.form-consent input { margin-top: 4px; flex: 0 0 auto; width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-size: .95rem; }
.form-status.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.contact-side dt { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-top: 18px; }
.contact-side dd { margin: 4px 0 0; font-weight: 600; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff; text-align: center; padding: clamp(56px, 8vw, 88px) 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.86); max-width: 52ch; margin-inline: auto; }
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 40px 20px; text-align: center; color: var(--ink-faint); font-size: .92rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-bottom: 14px; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--blue-700); text-decoration: underline; }
.site-footer p { margin: 0; }

.social { display: flex; gap: 14px; justify-content: center; margin-bottom: 18px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-soft);
}
.social a:hover { color: var(--blue-700); border-color: var(--blue-300); }

/* ---------- Rechtstext-Seiten ---------- */
.legal-page { background: var(--bg); }
.legal-wrap { max-width: 760px; margin: 48px auto 72px; padding-inline: 20px; }
.legal-wrap h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.legal-wrap h2 { font-size: 1.25rem; margin-top: 2.2em; }
.legal-wrap p, .legal-wrap li { color: var(--ink-soft); }
.legal-wrap ul { padding-left: 22px; }
.legal-wrap li { margin-bottom: 8px; }
.legal-updated { color: var(--ink-faint); font-size: .92rem; }
.legal-notice {
  background: var(--blue-050); border-left: 3px solid var(--blue-500);
  padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: .93rem; color: var(--ink-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(220px, 55%); }
  .cards, .duo { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .site-nav { gap: 14px; }
  .site-nav .hide-sm { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
