/* BizCard base styles. Brand colors come from /<slug>/theme.css (CSS variables);
   these defaults apply to pages without a card (home, 404, 429). */
:root {
  --brand-primary: #1f2a44;
  --brand-accent: #2f6fed;
  --on-primary: #ffffff;
  --on-accent: #ffffff;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1b1d21;
  --muted: #5b6270;
  --line: #e2e5ea;
  --radius: 14px;
  --gap: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
}
h1, h2 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.1rem; margin-bottom: 8px; }
p { margin: 0; }
a { color: var(--brand-accent); }
img { max-width: 100%; height: auto; }

.sr-only, .offscreen {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }

/* Language switcher */
.lang-switch {
  display: flex; justify-content: flex-end; gap: 4px;
  max-width: 480px; margin: 0 auto; padding: 12px 0 8px;
}
.lang-switch a {
  min-width: 44px; min-height: 36px; padding: 6px 10px;
  border-radius: 999px; text-align: center; text-decoration: none;
  color: var(--muted); font-weight: 600; font-size: 0.85rem;
}
.lang-switch a[aria-current="true"] { background: var(--brand-primary); color: var(--on-primary); }

/* Card */
.card {
  max-width: 480px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
}
.card > * { margin-left: 20px; margin-right: 20px; }
.card > section { padding: 20px 0; border-top: 1px solid var(--line); }
.card--simple { padding: 28px 20px; }
.card--simple > * { margin: 0 0 12px; }

.card-header {
  margin: 0; padding: 28px 20px 24px; text-align: center;
  background: var(--brand-primary); color: var(--on-primary);
}
.logo {
  display: block; margin: 0 auto 12px; width: 96px; height: 96px;
  object-fit: contain; border-radius: 20px; background: var(--surface);
}
.tagline { margin-top: 6px; opacity: 0.9; }
.card--simple .tagline { color: var(--muted); opacity: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--brand-accent); }
.btn--primary { background: var(--brand-accent); color: var(--on-accent); border-color: transparent; }
.btn--accent { background: var(--brand-accent); color: var(--on-accent); border-color: transparent; }
.btn--large { width: 100%; min-height: 52px; font-size: 1.1rem; }
.btn--small { min-height: 36px; padding: 4px 12px; font-size: 0.9rem; }
.btn--ghost { background: transparent; }

.main-action { margin-top: 20px; }

.actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 16px;
}
.btn--action { padding: 10px 6px; font-size: 0.9rem; }

.address { margin-top: 12px; color: var(--muted); text-align: center; font-size: 0.95rem; }

.tools {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 16px; margin-bottom: 20px;
}

.qr { margin-top: 0; margin-bottom: 20px; text-align: center; }
.qr img { width: 250px; height: 250px; border: 1px solid var(--line); border-radius: 8px; }
.qr figcaption { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }

/* Hours */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 6px 8px; text-align: left; vertical-align: top; }
.hours th { font-weight: 500; }
.hours td { text-align: right; }
.hours tr.today { background: color-mix(in srgb, var(--brand-accent) 12%, transparent); font-weight: 700; }
.hours tr.today th { font-weight: 700; }
.badge {
  display: inline-block; margin-left: 6px; padding: 0 8px;
  border-radius: 999px; background: var(--brand-accent); color: var(--on-accent);
  font-size: 0.75rem; font-weight: 700; vertical-align: middle;
}

.note { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.fine-print { margin-top: 10px; color: var(--muted); font-size: 0.8rem; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; }
.services li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.services li:last-child { border-bottom: 0; }
/* Short prices sit beside the name; long ones ("$100 setup + $25/month...") wrap below it. */
.service-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.service-name { font-weight: 600; }
.price { font-weight: 600; color: var(--brand-primary); }
.service-desc { margin-top: 2px; color: var(--muted); font-size: 0.95rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--line); }

/* Payments + social */
.pay-links, .social { display: flex; flex-wrap: wrap; gap: 8px; }
.zelle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.zelle-label { font-weight: 600; }
.zelle-value { font-variant-numeric: tabular-nums; word-break: break-all; }

/* Footer */
.site-footer { max-width: 480px; margin: 16px auto 0; text-align: center; font-size: 0.85rem; }
.site-footer a { color: var(--muted); }

@media (min-width: 520px) {
  body { padding-top: 16px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
