/* ==========================================================================
   mediprintcare — shared site stylesheet
   ========================================================================== */

/* ==========================================================================
   Self-hosted fonts (no external requests to Google — DSGVO/GDPR)
   ========================================================================== */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/sora-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/figtree-variable.woff2') format('woff2');
}

:root {
  --blue: #00408C;
  --blue-mid: #1a5aa0;
  --blue-light: #e8f0fa;
  --blue-rule: #c5d8f0;
  --green: #2a7a3b;
  --green-bg: #eaf4ec;
  --yellow: #b8860b;
  --yellow-bg: #fdf6e3;
  --red: #b83228;
  --red-bg: #faeaea;
  --ink: #111827;
  --muted: #6b7280;
  --rule: #e5eaf2;
  --surface: #f9fafb;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Figtree', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-brand span { font-weight: 300; color: #9ab0d1; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta {
  background: var(--blue);
  color: white !important;
  padding: 9px 18px;
  border-radius: 7px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
}
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: white;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-mid); box-shadow: 0 6px 18px rgba(0,64,140,0.25); }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue-rule); }
.btn-secondary:hover { border-color: var(--blue); background: var(--blue-light); }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* ── HERO ── */
.hero {
  padding: 72px 48px 64px;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto auto;
  gap: 56px;
  align-items: center;
}
.hero-heading { grid-column: 1; grid-row: 1; }
.hero-body { grid-column: 1; grid-row: 2; }
.hero-visual { grid-column: 2; grid-row: 1 / 3; }
.hero-eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.hero-sub {
  margin-top: 18px;
  font-size: 18.5px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 46ch;
}
.hero-ctas { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ── DOOR SIGNATURE VISUAL ── */
.door-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 340px;
  margin: 0 auto;
}
.door-frame {
  position: absolute; inset: 0;
  border-radius: 14px;
  background: linear-gradient(155deg, #eef3fa 0%, #e2eaf6 100%);
  border: 1px solid var(--blue-rule);
}
.door-panel {
  position: absolute;
  left: 12%; right: 12%; top: 8%; bottom: 8%;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--rule);
  box-shadow: 0 20px 40px rgba(0,40,100,0.10);
}
.door-panel::before {
  content: '';
  position: absolute;
  left: 14px; right: 14px; top: 14px; bottom: 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.door-handle {
  position: absolute;
  right: 8%;
  top: 46%;
  width: 10px; height: 46px;
  background: #cbd5e1;
  border-radius: 5px;
}
.door-memo {
  position: absolute;
  left: 20%;
  top: 44%;
  background: var(--blue);
  color: white;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 13px;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0,64,140,0.35);
  animation: memo-in 1.8s ease-out 0.3s both;
  max-width: 130px;
  line-height: 1.35;
}
.door-memo::after {
  content: '';
  position: absolute;
  left: -5px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 6px solid var(--blue);
}
@keyframes memo-in {
  0% { opacity: 0; transform: translateY(6px) scale(0.96); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.door-legend {
  position: absolute;
  bottom: -46px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  white-space: nowrap;
}
.door-legend .dot-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.door-legend .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
  .door-memo { animation: none; }
}

/* ── SECTION ── */
.section { padding: 64px 48px; max-width: 1024px; margin: 0 auto; box-sizing: content-box; }
.section-tight { padding: 40px 48px; }
.section-eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 30ch;
}
.section-lead {
  margin-top: 14px;
  font-size: 17.5px;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.7;
}
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.bg-surface { background: var(--surface); }
.bg-blue { background: var(--blue); color: white; }

/* ── CARDS ── */
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 26px 26px;
}
.card.blue { background: var(--blue-light); border-color: var(--blue-rule); }
.card.white { background: var(--white); }
.card-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.card-title.label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.card p { color: var(--muted); font-size: 16px; }
.card ul li {
  padding: 5px 0;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.card ul li::before { content: '—'; color: var(--blue); flex-shrink: 0; }

/* ── CALLOUT ── */
.callout {
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
  padding: 20px 24px;
  border-radius: 0 10px 10px 0;
  font-size: 17px;
}
.callout strong.label {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

/* ── COLOR SYSTEM CHIPS ── */
.color-chip-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.color-chip {
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}
.color-chip-swatch { height: 54px; }
.color-chip-body { padding: 12px 10px; background: var(--white); }
.color-chip-name { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; }
.color-chip-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── PRICE CARDS ── */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 18px; }
.price-card {
  border: 1px solid var(--blue-rule);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border: 2px solid var(--blue); position: relative; }
.price-tag {
  position: absolute; top: -1px; right: 18px;
  background: var(--blue); color: white;
  font-family: 'Sora', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 0 0 6px 6px;
}
.price-card-head {
  background: var(--blue);
  padding: 16px 20px;
  font-family: 'Sora', sans-serif;
  font-size: 14.5px; font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
}
.price-card-body { padding: 20px; background: var(--white); flex: 1; display: flex; flex-direction: column; }
.price-amount { font-family: 'Sora', sans-serif; font-size: 32px; font-weight: 700; color: var(--blue); }
.price-amount span { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.price-card-body ul { margin: 16px 0 20px; flex: 1; }
.price-card-body ul li {
  font-size: 15.5px; color: var(--ink); padding: 4px 0;
  display: flex; gap: 8px; align-items: flex-start;
}
.price-card-body ul li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── STEPS ── */
.steps-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.step-block { text-align: left; }
.step-num-badge {
  font-family: 'Sora', sans-serif;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  margin-bottom: 14px;
}
.step-block-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.step-block p { color: var(--muted); font-size: 15.5px; }

/* ── FORM ── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--blue-rule);
  border-radius: 8px;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── DOWNLOAD LIST ── */
.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--white);
}
.download-icon {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.download-info { flex: 1; }
.download-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16.5px; color: var(--ink); }
.download-meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--blue);
  color: rgba(255,255,255,0.55);
  padding: 48px 48px 26px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
}
.footer-brand span { font-weight: 300; color: rgba(255,255,255,0.4); }
.footer-claim { margin-top: 12px; font-size: 20px; font-weight: 500; font-style: normal; color: rgba(255,255,255,0.92); max-width: 30ch; line-height: 1.35; letter-spacing: 0.01em; }
.footer-col-title {
  font-family: 'Sora', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 4px 0;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  max-width: 1120px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}

/* ── PAGE HEADER (subpages) ── */
.page-header {
  padding: 56px 48px 44px;
  background: var(--blue-light);
  border-bottom: 1px solid var(--blue-rule);
}
.page-header-inner { max-width: 1120px; margin: 0 auto; }

.placeholder-inline { color: #9ca3af; font-style: italic; }

/* ── SELBSTANALYSE TOOL ── */
.analysis-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  max-width: 440px;
}
.analysis-toggle button {
  flex: 1;
  padding: 13px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--blue-rule);
  background: var(--white);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.analysis-toggle button.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.analysis-panel { display: none; }
.analysis-panel.active { display: block; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.check-item:hover { border-color: var(--blue-rule); }
.check-item.checked { border-color: var(--blue); background: var(--blue-light); }
.check-item input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); cursor: pointer; }
.check-item-body { flex: 1; }
.check-item-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.check-item-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.check-item-count {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 6px;
  padding: 4px 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.counter-box {
  position: sticky;
  top: 76px;
  background: var(--blue);
  color: white;
  border-radius: 12px;
  padding: 22px 24px;
  text-align: center;
}
.counter-box .counter-num { font-family: 'Sora', sans-serif; font-size: 40px; font-weight: 700; line-height: 1; }
.counter-box .counter-label { font-size: 12.5px; color: rgba(255,255,255,0.7); margin-top: 6px; }

.result-box {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--rule);
  background: var(--surface);
}
.result-box.ready { border-color: var(--green); background: var(--green-bg); }
.result-box.over { border-color: var(--yellow); background: var(--yellow-bg); }
.result-box .result-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; color: var(--ink); }
.result-box .result-text { font-size: 13.5px; color: var(--ink); line-height: 1.5; margin-bottom: 12px; }

.pflege-select {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
}
.pflege-select label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}
.pflege-select label:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }
.pflege-select input { accent-color: var(--blue); width: 18px; height: 18px; }

/* ── LEGAL DOC ── */
.legal-doc { max-width: 760px; margin: 0 auto; padding: 56px 48px 80px; }
.legal-doc h2 {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  margin-top: 34px;
  margin-bottom: 12px;
  color: var(--blue);
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { margin-bottom: 12px; color: var(--ink); font-size: 16.5px; }
.legal-doc .placeholder { color: #9ca3af; font-style: italic; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; padding: 48px 24px; gap: 32px; }
  .hero-heading, .hero-body, .hero-visual { grid-column: 1; grid-row: auto; }
  .hero-visual { width: 100%; max-width: 260px; margin: 0 auto; }
  .card-row, .card-row-3, .steps-row { grid-template-columns: 1fr; }
  .color-chip-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
    box-shadow: 0 12px 24px rgba(0,40,100,0.08);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .nav-links .nav-cta { margin-top: 12px; text-align: center; }

  .section { padding: 44px 24px; }
  .container { padding: 0 24px; }
  .page-header { padding: 40px 24px; }
  .legal-doc { padding: 40px 24px 60px; }
}

@media (max-width: 560px) {
  .hero-title { font-size: 34px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .price-grid { grid-template-columns: 1fr; }
  .counter-box { position: static; margin-bottom: 20px; }
  .analysis-toggle { max-width: none; }
}
