/* DerKassenDoc – QR Onepager */

:root {
  --navy: #083154;
  --navy-dark: #061A33;
  --teal: #0088AA;
  --teal-light: #00A6B4;
  --white: #FFFFFF;
  --text: #083154;
  --text-muted: #4a6080;
  --border: rgba(8, 49, 84, 0.1);
  --shadow: rgba(8, 49, 84, 0.1);
  --glass: rgba(255, 255, 255, 0.9);
  --whatsapp: #25d366;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --max: 28rem;
  --max-wide: 56rem;
  --ease: 0.2s ease;
  --pad-x: max(1.25rem, env(safe-area-inset-left, 0px));
  --pad-x-right: max(1.25rem, env(safe-area-inset-right, 0px));
  --pad-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
}

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

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: transparent;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--white);
  display: flex;
  justify-content: center;
}

.page-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.page-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Desktop: Hintergrund als zentrierte Spalte hinter dem Inhalt */
@media (min-width: 640px) {
  .page-bg picture {
    width: min(100%, var(--max-wide));
  }
}

@media (min-width: 1100px) {
  .page-bg picture {
    width: min(100%, 64rem);
  }
}

/* Sehr schmale Phones */
@media (max-width: 359px) {
  :root { --max: 100%; }
}

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

a { color: var(--teal); }

h1, h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(1.375rem, 4.2vw + 0.5rem, 2.125rem); }
h2 { font-size: clamp(1.0625rem, 2vw + 0.5rem, 1.25rem); }

p { margin: 0; }

.brand-name-dark { color: var(--navy); }
.brand-name-accent { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ Page */
.page {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding:
    max(1.25rem, env(safe-area-inset-top, 0px))
    var(--pad-x-right)
    var(--pad-bottom)
    var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.page-flow {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  align-self: stretch;
}

.page-primary,
.page-secondary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.page-secondary {
  padding-top: 0.5rem;
}

.page-zone-tag {
  display: inline-block;
  margin: 0 auto 0.5rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(0, 136, 170, 0.08);
  border-radius: var(--radius-full);
}

.page-zone-tag-referral {
  margin-bottom: 0.75rem;
}

/* Lead-Zone */
.lead-zone {
  gap: 0;
}

.page-card-lead {
  border-color: rgba(0, 136, 170, 0.15);
  box-shadow: 0 8px 28px rgba(0, 136, 170, 0.1);
}

.lead-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lead-divider::before,
.lead-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(8, 49, 84, 0.12);
}

.lead-divider span {
  flex-shrink: 0;
}

/* Einheitliche Lead-Buttons */
.btn-lead {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-lead svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.btn-lead-label {
  text-align: center;
}

.whatsapp-menu-trigger .btn-lead-label {
  flex: 0;
}

.whatsapp-menu-trigger .whatsapp-menu-chevron {
  margin-left: auto;
}

.btn-lead-whatsapp {
  color: var(--white);
  background: var(--whatsapp);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  list-style: none;
}

.btn-lead-whatsapp:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
}

.btn-lead-call {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 4px 16px rgba(8, 49, 84, 0.22);
}

.btn-lead-call:hover {
  background: #0a3d66;
}

.btn-lead-call-off {
  color: rgba(8, 49, 84, 0.45);
  background: rgba(8, 49, 84, 0.07);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.85;
}

.btn-lead-call-off svg {
  opacity: 0.4;
}

.btn-lead-teal {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 4px 16px rgba(0, 136, 170, 0.28);
}

.btn-lead-teal:hover {
  background: #007a96;
}

.btn-lead-outline {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(8, 49, 84, 0.12);
  box-shadow: none;
}

.btn-lead-outline:hover {
  background: var(--white);
  border-color: rgba(37, 211, 102, 0.4);
}

.lead-cta-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
}

.lead-cta-stack:has(.whatsapp-menu[open]) {
  padding-bottom: 11.5rem;
}

.lead-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* E-Mail & Visitenkarte */
.secondary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 20rem;
  margin: 0.25rem auto 0;
}

.secondary-action-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0.875rem 1rem;
  text-decoration: none;
  text-align: left;
  color: var(--navy);
  background: rgba(225, 235, 244, 0.65);
  border: 1.5px solid rgba(0, 136, 170, 0.15);
  border-radius: var(--radius-lg);
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.secondary-action-card:hover {
  background: rgba(225, 235, 244, 0.9);
  border-color: rgba(0, 136, 170, 0.28);
  transform: translateY(-1px);
}

.secondary-action-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  color: var(--teal);
  background: rgba(0, 136, 170, 0.1);
  border-radius: var(--radius-full);
}

.secondary-action-card-email .secondary-action-card-icon {
  color: var(--navy);
  background: rgba(8, 49, 84, 0.08);
}

.secondary-action-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.secondary-action-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.secondary-action-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.secondary-action-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  word-break: break-all;
}

.secondary-action-card-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--teal);
  opacity: 0.65;
}

.lead-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.lead-secondary-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.lead-secondary-btn:hover {
  color: var(--teal);
  border-color: rgba(0, 136, 170, 0.3);
  background: var(--white);
}

.page-brand-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-align: left;
  align-self: stretch;
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(8, 49, 84, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-card {
  padding: 1.125rem 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(8, 49, 84, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-card-contact {
  padding-bottom: 1rem;
}

.page-brand-logo {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.page-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
}

.page-brand-sub {
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.page-greeting {
  font-size: clamp(1.375rem, 3vw + 0.5rem, 1.75rem);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.page-welcome h1 {
  font-size: clamp(1.0625rem, 2vw + 0.5rem, 1.25rem);
  line-height: 1.45;
  font-weight: 600;
  color: var(--navy);
}

.page-welcome-lead {
  margin-top: 0.5rem;
  font-size: clamp(0.9375rem, 1vw + 0.45rem, 1rem);
  color: var(--text-muted);
  line-height: 1.55;
}

.page-welcome {
  align-self: stretch;
  text-align: center;
}

.page-portrait {
  display: flex;
  justify-content: center;
  width: 100%;
  line-height: 0;
}

.page-portrait-img {
  width: 100%;
  max-width: min(26rem, 100%);
  margin-inline: auto;
  background: transparent;
  border-radius: var(--radius-2xl);
  box-shadow: 0 12px 32px rgba(8, 49, 84, 0.1);
}

.page-intro,
.page-actions,
.page-form {
  align-self: stretch;
}

.page-intro {
  text-align: center;
}

.page-intro h2 {
  font-size: clamp(0.6875rem, 1vw + 0.35rem, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
}

.audience-tags li {
  padding: 0.3rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(0, 136, 170, 0.07);
  border: 1px solid rgba(0, 136, 170, 0.12);
  border-radius: var(--radius-full);
}

.intro-trust {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.intro-trust .trust-panel-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.trust-list-center {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.trust-list-center li {
  position: relative;
  padding-left: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.trust-list-center li + li {
  margin-top: 0.5rem;
}

.trust-list-center li::before {
  content: '✓';
  display: inline-block;
  margin-right: 0.375rem;
  font-weight: 800;
  color: var(--teal);
}

.review-box-intro {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.page-actions h2,
.page-form h2 {
  font-size: clamp(1.0625rem, 2vw + 0.5rem, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--navy);
  text-align: center;
}

.page-lead {
  margin-top: 0.625rem;
  font-size: clamp(1.0625rem, 1.4vw + 0.55rem, 1.1875rem);
  color: var(--text);
  line-height: 1.65;
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.page-lead strong {
  color: var(--navy);
  font-weight: 600;
}

.page-actions-hint {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: clamp(0.875rem, 1vw + 0.45rem, 0.9375rem);
  color: var(--text-muted);
  line-height: 1.55;
  text-align: center;
}

.page-website-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--ease);
}

.page-links {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.page-links .page-website-link {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.page-website-link:hover {
  color: var(--teal);
}

/* ------------------------------------------------------------------ Trust */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.trust-strip-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ------------------------------------------------------------------ WhatsApp menu */
.whatsapp-menu {
  margin-bottom: 0;
  min-width: 0;
  width: 100%;
}

.whatsapp-menu-trigger {
  width: 100%;
}

.whatsapp-menu-trigger::-webkit-details-marker {
  display: none;
}

.whatsapp-menu-trigger::marker {
  content: '';
}

.whatsapp-menu-chevron {
  font-size: 0.875rem;
  opacity: 0.85;
  flex-shrink: 0;
  transition: transform var(--ease);
}

.whatsapp-menu[open] .whatsapp-menu-chevron {
  transform: rotate(180deg);
}

.whatsapp-menu[open] .whatsapp-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(3.25rem + 0.375rem);
  z-index: 2;
}

.whatsapp-menu-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 0.25rem;
  background: var(--white);
  border: 1.5px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.12);
}

.whatsapp-menu-item {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-top: 1px solid var(--border);
  transition: background var(--ease), color var(--ease);
  text-align: center;
}

.whatsapp-menu-item:first-child {
  border-top: none;
}

.whatsapp-menu-item:hover {
  background: rgba(37, 211, 102, 0.08);
  color: #128c41;
}

.contact-trust-note {
  margin: 0.75rem 0 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  text-align: center;
  line-height: 1.4;
}

.page-actions {
  text-align: center;
}

.page-actions .page-zone-tag {
  display: flex;
  justify-content: center;
}

.trust-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
}

.trust-strip-value {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.2;
}

.trust-strip-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.trust-panel {
  text-align: left;
}

.trust-panel .page-zone-tag {
  text-align: left;
}

.trust-panel-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.625rem;
}

.trust-list {
  margin: 0;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.trust-list li + li {
  margin-top: 0.35rem;
}

.review-box {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.review-box-standalone {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.review-box-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.625rem;
}

.review-star {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.review-star-empty {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8c5d4' stroke-width='1.75'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.review-star-filled {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b' stroke='%23f59e0b' stroke-width='1'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.review-star-half {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='h'%3E%3Cstop offset='50%25' stop-color='%23f59e0b'/%3E%3Cstop offset='50%25' stop-color='%23b8c5d4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23h)' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.review-box-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.875rem;
}

.review-box-has-ratings .review-box-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

.review-box-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: border-color var(--ease), color var(--ease);
}

.review-box-link:hover {
  color: var(--teal);
  border-color: rgba(0, 136, 170, 0.35);
}

.review-box-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--white);
  background: #4285f4;
  border-radius: var(--radius-full);
}

/* ------------------------------------------------------------------ Referral */
.referral-card {
  text-align: center;
  background: rgba(225, 235, 244, 0.55);
  border-color: rgba(0, 136, 170, 0.12);
}

.referral-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.75rem;
  color: var(--teal);
  background: rgba(0, 136, 170, 0.1);
  border-radius: var(--radius-full);
}

.referral-card-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.referral-card-title {
  font-size: clamp(1rem, 2vw + 0.4rem, 1.125rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.referral-card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.875rem;
  max-width: 22rem;
  margin-inline: auto;
}

.referral-card-lead {
  font-size: clamp(0.9375rem, 1.5vw + 0.5rem, 1rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.referral-card .audience-tags {
  margin-bottom: 1rem;
}

.referral-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
}

.referral-share-btn-compact {
  max-width: 100%;
}

.referral-wa-btn svg {
  color: var(--whatsapp);
}

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

/* ------------------------------------------------------------------ Lead form */
.page-form-hint {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  text-align: center;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  text-align: left;
}

.lead-form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.lead-form-error {
  margin: 0 0 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #b45309;
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.25);
  border-radius: var(--radius-lg);
  line-height: 1.45;
}

.lead-form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.lead-form-field input,
.lead-form-field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid rgba(8, 49, 84, 0.12);
  border-radius: 0.75rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.lead-form-field input:focus,
.lead-form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 136, 170, 0.12);
}

.lead-form-field textarea {
  resize: vertical;
  min-height: 5rem;
}

.lead-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.lead-form-consent input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.lead-form-consent label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  cursor: pointer;
}

.lead-form-callback {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.lead-form-callback input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.lead-form-callback label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.lead-form-callback-time {
  display: none;
}

.lead-form:has(#lead-callback:checked) .lead-form-callback-time {
  display: block;
}

.lead-form-field select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid rgba(8, 49, 84, 0.12);
  border-radius: 0.75rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.lead-form-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 136, 170, 0.12);
}

.lead-form-consent label a {
  color: var(--teal);
  font-weight: 600;
}

.lead-form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lead-form-submit {
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
}

.lead-form-submit:active {
  transform: scale(0.99);
}

.lead-form-success[hidden] {
  display: none !important;
}

.lead-form-success.is-visible {
  display: block !important;
}

.lead-form-success {
  text-align: center;
  padding: 1.25rem 1rem;
  background: rgba(13, 148, 136, 0.06);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--radius-lg);
}

#lead-form[hidden],
#form-heading[hidden],
.page-form-hint[hidden] {
  display: none !important;
}

.lead-form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.12);
  border-radius: 50%;
}

.lead-form-success-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.lead-form-success-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.lead-form-success-referral {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.lead-form-success-referral-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.lead-form-success-referral .referral-share-btn {
  max-width: 20rem;
  margin-inline: auto;
}

/* ------------------------------------------------------------------ Contact (legacy, falls noch genutzt) */
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0.875rem 1rem;
  min-height: 3.625rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  text-align: left;
  border: 1.5px solid transparent;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(8, 49, 84, 0.1);
}

.contact-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.625rem;
  height: 2.625rem;
  flex-shrink: 0;
  border-radius: var(--radius-full);
}

.contact-btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-btn-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.contact-btn-label {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}

.contact-btn-value {
  font-size: 0.8125rem;
  line-height: 1.35;
  opacity: 0.85;
}

.contact-btn-arrow {
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 400;
  opacity: 0.45;
  transition: transform var(--ease), opacity var(--ease);
}

.contact-btn:hover .contact-btn-arrow {
  transform: translateX(2px);
  opacity: 0.75;
}

.contact-btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}

.contact-btn-whatsapp .contact-btn-icon {
  background: rgba(255, 255, 255, 0.18);
}

.contact-btn-whatsapp .contact-btn-value {
  color: rgba(255, 255, 255, 0.88);
}

.contact-btn-phone,
.contact-btn-email {
  background: var(--white);
  color: var(--navy);
  border-color: rgba(8, 49, 84, 0.1);
  box-shadow: 0 2px 10px rgba(8, 49, 84, 0.05);
}

.contact-btn-phone .contact-btn-icon {
  background: rgba(0, 136, 170, 0.1);
  color: var(--teal);
}

.contact-btn-phone .contact-btn-value {
  color: var(--text-muted);
}

.contact-btn-email .contact-btn-icon {
  background: rgba(8, 49, 84, 0.06);
  color: var(--navy);
}

.contact-btn-email .contact-btn-value {
  color: var(--text-muted);
  word-break: break-all;
}

.contact-btn-vcard {
  background: rgba(225, 235, 244, 0.65);
  color: var(--navy);
  border-color: rgba(8, 49, 84, 0.08);
  box-shadow: none;
}

.contact-btn-vcard .contact-btn-icon {
  background: rgba(8, 49, 84, 0.08);
  color: var(--navy);
}

.contact-btn-vcard .contact-btn-value {
  color: var(--text-muted);
}

/* ------------------------------------------------------------------ Maintenance */
.maintenance-screen {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: max(2rem, env(safe-area-inset-top, 0px)) auto max(2rem, env(safe-area-inset-bottom, 0px));
  padding: 2rem 1.5rem;
  text-align: center;
}

.is-maintenance body {
  display: block;
}

.maintenance-logo {
  margin: 0 auto 0.75rem;
  border-radius: var(--radius-full);
}

.maintenance-brand {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.maintenance-title {
  font-size: clamp(1.125rem, 2vw + 0.5rem, 1.375rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.maintenance-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 22rem;
  margin-inline: auto;
}

.maintenance-wa {
  max-width: 20rem;
  margin-inline: auto;
}

.maintenance-call {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--ease);
}

.maintenance-call:hover {
  color: var(--teal);
}

.stats-panel + .stats-panel {
  margin-top: 1.25rem;
}

/* ------------------------------------------------------------------ Footer */
.site-footer {
  padding: 1.25rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color var(--ease);
}

.footer-nav a:hover { color: var(--teal); }

.footer-sep {
  color: rgba(8, 49, 84, 0.25);
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: reduce) {
  .contact-btn:hover { transform: none; }
  .contact-btn:hover .contact-btn-arrow { transform: none; }
  .secondary-action-card:hover { transform: none; }
  .whatsapp-menu-chevron { transition: none; }
}

/* ------------------------------------------------------------------ Legal pages */
.page-legal main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding: 2rem 1.25rem 3rem;
}

.legal-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 28px var(--shadow);
}

.legal-card h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.legal-card h2 {
  font-size: 1.0625rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-card ul:not(.trust-list) {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-placeholder {
  display: inline-block;
  padding: 0.1em 0.45em;
  background: #E1EBF4;
  border-radius: 0.25rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875em;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--teal);
}

.legal-back svg { width: 1rem; height: 1rem; }

.page-legal .site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.65);
}

.page-legal .footer-nav a { color: rgba(255, 255, 255, 0.55); }
.page-legal .footer-nav a:hover { color: var(--teal-light); }
.page-legal .footer-sep { color: rgba(255, 255, 255, 0.2); }

.page-legal .page-brand {
  max-width: 40rem;
  margin-inline: auto;
  padding: 1.5rem 1.25rem 0;
}

.page-legal .site-header {
  background: transparent;
  padding: 1.5rem 1.25rem 0;
}

.page-legal .container {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.page-legal .brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: inherit;
}

.page-legal .brand-logo {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-full);
}

.page-legal .brand-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.page-legal .brand-slogan {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.page-legal .skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.page-legal .skip-link:focus { top: 1rem; }

.page-legal .footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.page-legal .footer-name {
  font-size: 1rem;
  font-weight: 700;
}

.page-legal .footer-owner {
  font-size: 0.875rem;
  color: var(--teal-light);
}

.page-legal .footer-slogan {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ------------------------------------------------------------------ Hidden stats (intern/zaehler.html) */
.stats-panel-maint {
  border-color: rgba(0, 136, 170, 0.2);
}

.maint-status {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.maint-status-active {
  color: #b45309;
}

.maint-status-inactive {
  color: #047857;
}

.maint-toggle-actions {
  margin-bottom: 0.75rem;
}

.maint-toggle-btn {
  flex: 1;
  min-width: 7rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), opacity var(--ease);
}

.maint-toggle-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.maint-toggle-on {
  color: var(--white);
  background: #b45309;
}

.maint-toggle-on.is-active {
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.25);
}

.maint-toggle-off {
  color: var(--navy);
  background: rgba(8, 49, 84, 0.06);
  border-color: rgba(8, 49, 84, 0.12);
}

.maint-toggle-off.is-active {
  color: var(--white);
  background: #047857;
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.25);
}

html.maint-pending #site-content {
  visibility: hidden;
}

html.maint-ready #site-content {
  visibility: visible;
}

.stats-back {
  display: block;
  margin: 1.5rem auto 0;
  text-align: center;
}

.stats-panel,
.stats-denied {
  max-width: 22rem;
  margin: 3rem auto;
  padding: 2rem 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 28px var(--shadow);
  text-align: center;
}

.stats-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stats-count {
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.stats-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.stats-refresh,
.stats-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.stats-refresh:disabled,
.stats-reset:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.stats-refresh {
  color: var(--white);
  background: var(--teal);
  border: none;
  margin-bottom: 0;
}

.stats-refresh:hover:not(:disabled) { background: #007a96; }

.stats-reset {
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--border);
}

.stats-reset:hover:not(:disabled) {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.35);
  background: rgba(254, 242, 242, 0.85);
}

.stats-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.stats-denied {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------------ Responsive */

/* Kleine Smartphones */
@media (max-width: 380px) {
  .page-brand-logo {
    width: 2.75rem;
    height: 2.75rem;
  }

  .page-brand-name { font-size: 1.125rem; }

  .contact-btn {
    padding: 0.8125rem 0.9375rem;
    min-height: 3.375rem;
  }

  .contact-btn-label { font-size: 0.875rem; }

  .trust-strip-value { font-size: 0.8125rem; }
  .trust-strip-label { font-size: 0.625rem; }
}

/* Landscape-Phones: kompakter */
@media (max-height: 520px) and (orientation: landscape) {
  .page {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
    gap: 0.75rem;
  }

  .page-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    align-items: start;
  }

  .page-welcome,
  .page-intro,
  .page-actions,
  .page-form,
  .page-portrait,
  .lead-zone {
    grid-column: 1 / -1;
  }

  .page-welcome h1,
  .page-lead,
  .page-actions-hint {
    text-align: left;
  }

  .page-greeting {
    text-align: left;
  }

  .page-lead { font-size: 0.9375rem; }
  .page-actions-hint { font-size: 0.8125rem; }
}

/* Tablet & Desktop – schmaler Lead-Funnel */
@media (min-width: 640px) {
  :root { --max: 32rem; }

  .page {
    padding-top: max(2rem, env(safe-area-inset-top, 0px));
    padding-inline: max(2rem, env(safe-area-inset-left, 0px)) max(2rem, env(safe-area-inset-right, 0px));
    gap: 1.75rem;
  }

  .page-flow {
    gap: 1.5rem;
  }

  .page-brand {
    padding: 1rem 1.125rem;
  }

  .page-card {
    padding: 1.25rem 1.5rem;
  }

  .page-welcome,
  .page-lead,
  .page-actions-hint,
  .page-intro h2,
  .page-actions h2,
  .page-greeting {
    text-align: center;
  }

  .page-lead {
    max-width: none;
  }

  .page-brand-logo {
    width: 3.5rem;
    height: 3.5rem;
  }

  .page-brand-name { font-size: 1.375rem; }
}

@media (min-width: 900px) {
  .page {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .page-portrait-img {
    max-width: 24rem;
  }
}

@media (min-width: 1100px) {
  :root { --max: 34rem; }
}

@media (min-width: 640px) {
  .page-legal main {
    padding-inline: max(2rem, env(safe-area-inset-left, 0px)) max(2rem, env(safe-area-inset-right, 0px));
  }
}
