/* ============================================================
   Medic Care – Rems-Murr-Kreis GmbH  ·  Stylesheet
   ============================================================ */

:root {
  --teal-800: #085F5A;
  --teal-700: #0B7A73;
  --teal-600: #0F8F86;
  --teal-500: #14A79C;
  --teal-400: #3FC1B6;
  --teal-100: #D6F1EE;
  --teal-50:  #F0FAF9;
  --navy:     #0F2233;
  --ink:      #1B2A3A;
  --muted:    #5D6C7B;
  --line:     #E2EAE9;
  --bg:       #FFFFFF;
  --bg-soft:  #F6FAF9;
  --amber:    #F2A65A;
  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 10px 30px -12px rgba(15, 34, 51, .18);
  --shadow-lg:0 30px 60px -20px rgba(15, 34, 51, .28);
  --container:1180px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-800); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.015em;
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-teal { background: linear-gradient(135deg, var(--teal-700), var(--teal-500)); color: #fff; }
.section-teal h2, .section-teal h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-700); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--teal-500); border-radius: 2px; }
.section-head.center .eyebrow::before { display: none; }
.section-teal .eyebrow { color: rgba(255,255,255,.85); }
.section-teal .eyebrow::before { background: rgba(255,255,255,.7); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
  font-family: var(--font-body);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(15,143,134,.6); }
.btn-primary:hover { background: var(--teal-700); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--teal-600); color: var(--teal-700); background: transparent; }
.btn-outline:hover { background: var(--teal-50); }
.btn-white { background: #fff; color: var(--teal-700); }
.btn-white:hover { background: var(--teal-50); color: var(--teal-800); }
.btn-ghost-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.85); font-size: .86rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: var(--teal-400); }
.topbar svg { width: 15px; height: 15px; color: var(--teal-400); }
.topbar-left { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-right { display: inline-flex; align-items: center; gap: .5rem; }
.topbar-right .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61,220,151,.25); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--navy); }
.brand img { width: 52px; height: 46px; object-fit: contain; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.brand-name span { color: var(--teal-600); }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.nav { display: flex; gap: .25rem; }
.nav a {
  padding: .6rem .95rem; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: .96rem;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--teal-50); color: var(--teal-700); }
.nav a.active { background: var(--teal-100); color: var(--teal-800); font-weight: 600; }
.header-cta { display: flex; gap: .6rem; align-items: center; }
.nav-toggle {
  display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 10px;
  align-items: center; justify-content: center; color: var(--navy);
}
.nav-toggle:hover { background: var(--teal-50); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 500px at 85% -10%, var(--teal-100), transparent 60%),
  radial-gradient(600px 400px at -10% 110%, #E9F6F4, transparent 60%), #fff; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem); }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--teal-600); }
.hero .lead { font-size: 1.2rem; margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.trust { display: flex; gap: 1.2rem 1.5rem; flex-wrap: wrap; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.trust li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--muted); font-weight: 500; }
.trust svg { width: 20px; height: 20px; color: var(--teal-600); flex: none; }
.hero-visual { position: relative; }
.hero-visual .photo {
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; position: relative;
}
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -6% -8% 10%; border-radius: 32px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); z-index: -1; opacity: .9;
}
.float-card {
  position: absolute; background: #fff; border-radius: 16px; padding: .9rem 1.1rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .8rem; min-width: 190px;
}
.float-card .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-100); color: var(--teal-700); display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 22px; height: 22px; }
.float-card strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1rem; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: .8rem; }
.float-card.a { left: -2.5rem; bottom: 2.5rem; }
.float-card.b { right: -1.5rem; top: 2rem; }

/* ---------- Stats strip ---------- */
.stats { border-block: 1px solid var(--line); background: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.75rem 1.5rem; display: flex; gap: 1rem; align-items: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; flex: none; }
.stat .ic svg { width: 24px; height: 24px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); line-height: 1.2; }
.stat span { font-size: .88rem; color: var(--muted); }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.reverse > .split-media { order: -1; }
.split-media { position: relative; }
.split-media img { border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.split-media .badge-quote {
  position: absolute; left: -1.5rem; bottom: -1.5rem; background: var(--navy); color: #fff; border-radius: 16px;
  padding: 1.1rem 1.35rem; max-width: 300px; box-shadow: var(--shadow-lg);
}
.badge-quote q { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; display: block; margin-bottom: .3rem; }
.badge-quote q::before, .badge-quote q::after { color: var(--teal-400); }
.badge-quote small { color: rgba(255,255,255,.7); font-size: .8rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .7rem; }
.check-list svg { width: 22px; height: 22px; color: var(--teal-600); flex: none; margin-top: .1rem; }
.check-list.two-col { columns: 2; column-gap: 2rem; }
.check-list.two-col li { break-inside: avoid; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-100); }
.card .ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100)); color: var(--teal-700);
}
.card .ic svg { width: 28px; height: 28px; }
.card p:last-child { margin-bottom: 0; }
.card.dark { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.85); }
.card.dark h3 { color: #fff; }
.card.dark .ic { background: rgba(255,255,255,.1); color: var(--teal-400); }

/* Service showcase */
.service-card {
  position: relative; overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  display: grid; grid-template-rows: 240px auto; transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 2rem; }
.service-card .tag {
  position: absolute; top: 1.25rem; left: 1.25rem; background: rgba(255,255,255,.95); color: var(--teal-800);
  padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.service-card ul { margin: 1rem 0 1.5rem; }
.service-card li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; margin-bottom: .5rem; color: var(--ink); }
.service-card li svg { width: 18px; height: 18px; color: var(--teal-600); flex: none; margin-top: .2rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.step { position: relative; padding: 2rem 1.5rem 1.5rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--teal-100); line-height: 1; display: block; margin-bottom: .75rem;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Page hero (subpages) */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%;
  background: radial-gradient(closest-side, rgba(20,167,156,.35), transparent); pointer-events: none;
}
.page-hero .container { padding-block: clamp(3.5rem, 6vw, 5.5rem); position: relative; z-index: 1; max-width: 900px; }
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,.8); max-width: 680px; }
.page-hero .eyebrow { color: var(--teal-400); }
.page-hero .eyebrow::before { background: var(--teal-400); }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 1.5rem; display: flex; gap: .5rem; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }

/* Comparison table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 1.1rem 1.4rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { background: var(--teal-50); color: var(--navy); font-family: var(--font-head); font-weight: 700; }
.compare th:first-child, .compare td:first-child { color: var(--muted); font-weight: 600; width: 24%; background: var(--bg-soft); }
.table-wrap { overflow-x: auto; }

/* Benefits pills */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: .93rem; }
.pill svg { width: 16px; height: 16px; color: var(--teal-600); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; background: url("logo-mark.svg") no-repeat right -60px center / 420px; opacity: .07;
}
.cta-band .container { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.cta-band h2 { margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin: 0; }
.cta-band .actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; flex: none; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h4 { margin-bottom: .2rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-card a.big { font-size: 1.1rem; font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.25rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; color: var(--navy); }
label .req { color: var(--teal-600); }
input[type=text], input[type=email], input[type=tel], input[type=file], select, textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(20,167,156,.15); }
textarea { min-height: 130px; resize: vertical; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); font-weight: 400; }
.checkbox input { margin-top: .25rem; accent-color: var(--teal-600); width: 18px; height: 18px; flex: none; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.form-success { display: none; padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-800); }
.form-success.show { display: block; }

/* Legal text */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: .5rem 1.5rem; margin: 1rem 0 1.5rem; }
.legal dt { color: var(--muted); font-weight: 600; }
.legal dd { margin: 0; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1em; }
.legal li { margin-bottom: .35rem; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding-top: 4.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: #fff; }
.footer li { margin-bottom: .55rem; }
.footer .brand { color: #fff; margin-bottom: 1.2rem; }
.footer .brand-sub { color: rgba(255,255,255,.55); }
.footer .brand img { filter: brightness(1.15); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--teal-400); flex: none; margin-top: .2rem; }
.bpa { display: inline-flex; align-items: center; gap: .8rem; background: #fff; border-radius: 12px; padding: .5rem .8rem; margin-top: 1rem; }
.bpa img { height: 34px; width: auto; }
.bpa span { color: var(--navy); font-size: .78rem; line-height: 1.3; max-width: 180px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.7); }

/* Cookie banner */
.cookie {
  position: fixed; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; z-index: 200; max-width: 640px; margin-inline: auto;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1.4rem 1.6rem; border: 1px solid var(--line);
  display: none; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookie.show { display: flex; }
.cookie p { margin: 0; font-size: .9rem; color: var(--muted); flex: 1 1 320px; }
.cookie .actions { display: flex; gap: .5rem; }

/* Utilities */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav a { padding: .55rem .7rem; font-size: .92rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { gap: 2.5rem; }
  .float-card.a { left: -.5rem; }
  .float-card.b { right: -.5rem; }
}
@media (max-width: 900px) {
  .topbar-right { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 1rem; border-radius: 12px; font-size: 1.05rem; }
  .header-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse > .split-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .check-list.two-col { columns: 1; }
}
@media (max-width: 640px) {
  .header .container { min-height: 72px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 1.15rem; }
  .topbar-left a:nth-child(2) { display: none; }
  .header-cta .btn-primary { padding: .6rem 1rem; font-size: .88rem; }
  .grid-2, .grid-3, .grid-4, .steps, .form-grid { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(2) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .float-card { position: static; margin-top: 1rem; }
  .hero-visual::before { display: none; }
  .split-media .badge-quote { position: static; margin-top: 1rem; max-width: none; }
  .legal dl { grid-template-columns: 1fr; gap: .1rem 0; }
  .legal dt { margin-top: .6rem; }
  .topbar .container { justify-content: center; }
  .topbar-left { gap: 1rem; }
  .card, .form-card { padding: 1.5rem; }
}

/* ---------- Additions for the ASP.NET version ---------- */
.form-error { padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: #fdecea; color: #C0392B; margin-bottom: 1rem; font-size: .92rem; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin-bottom: 1rem; }
.admin-edit-bar { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 150; background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); }
.admin-edit-bar:hover { background: var(--teal-700); color: #fff; }

/* Comparison table as stacked cards on phones */
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare td { border-bottom: 0; padding: .6rem 1rem; }
  .compare td:first-child, .compare th:first-child { width: 100%; background: var(--teal-50); padding: .7rem 1rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
  .compare td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; color: var(--teal-700); margin-bottom: .15rem; }
  .compare td:last-child { padding-bottom: .9rem; }
}

/* Compact site header on small phones */
@media (max-width: 480px) {
  .header .container { gap: .5rem; min-height: 64px; }
  .brand { gap: .5rem; min-width: 0; }
  .brand img { width: 42px; height: 37px; }
  .brand-name { font-size: .98rem; }
  .header-cta { gap: .35rem; flex: none; }
  .header-cta .btn-primary { padding: .5rem .8rem; font-size: .8rem; }
  .brand > span { min-width: 0; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; display: block; }
  .nav-toggle { width: 40px; height: 40px; }
  .hero h1 { font-size: 2rem; }
}
