/* ── Fonts ────────────────────────────────────── */
@font-face {
  font-family: 'FA Solid';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(fonts/fa-solid-900.woff2) format('woff2');
}

.fa { font-family: 'FA Solid'; font-weight: 900; font-style: normal; -webkit-font-smoothing: antialiased; }
.fa-phone::before    { content: '\f095'; }
.fa-mobile::before   { content: '\f3cd'; }
.fa-envelope::before { content: '\f0e0'; }

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/dmsans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/dmsans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ───────────────────────────────────── */
:root {
  --vf: 1vw;
  --section-scale: 1;
  --brand: #0077be;
  --brand-soft: #d1e6f3;
  --accent: #c75b2a;
  --accent-soft: #fbe9de;
  --bg: #f7f5f0;
  --surface: #eae6de;
  --surface-alt: #ddd8ce;
  --text: #1c1917;
  --dekra: #008143;
  --text-muted: #78716c;
  --white: #ffffff;
  --font-display: 'Outfit', Verdana, Geneva, Tahoma, sans-serif;
  --font-body: 'DM Sans', Verdana, Geneva, Tahoma, sans-serif;
}

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

body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  overflow: auto;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.theme-dark {
  --bg: #171c21;
  --surface: #2a323a;
  --surface-alt: #36424d;
  --text: #eef2f6;
  --text-muted: #c4cdd6;
  --white: #20272e;
  --brand: #5fb9f1;
  --brand-soft: #204a63;
  --accent: #e3895f;
  --accent-soft: #5e3622;
}

.theme-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.75rem, calc(0.2 * var(--vf) + 0.71rem), 1.05rem);
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Layout ───────────────────────────────────── */
main {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, minmax(min-content, 1fr));
  min-height: 100dvh;
  align-content: stretch;
}

section {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  animation: fadeIn 0.6s ease both;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero Section ─────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--white);
  padding-top: clamp(0.4rem, calc(0.75 * var(--vf) + 0.32rem), 1.2rem);
}

.hero-banner {
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.75rem, calc(0.38 * var(--vf) + 0.76rem), 1.2rem);
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  padding: clamp(0.45rem, calc(0.23 * var(--vf) + 0.55rem), 0.9rem) clamp(0.8rem, calc(0.75 * var(--vf) + 0.82rem), 1.8rem);
  margin: 0 clamp(0.4rem, calc(0.75 * var(--vf) + 0.32rem), 1.2rem);
  border-radius: 6px;
}

.hero-content {
  padding: clamp(1rem, calc(0.38 * var(--vf) + 1.16rem), 2rem);
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  margin: 0 0 clamp(0.25rem, calc(0.23 * var(--vf) + 0.3rem), 0.6rem);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.3rem, calc(2.25 * var(--vf) + 0.97rem), 3.5rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero-content h1 .highlight {
  font-size: clamp(2rem, calc(3.15 * var(--vf) + 1.66rem), 5.5rem);
  font-weight: 900;
  color: var(--brand);
}

.hero-content h1 .junior {
  color: var(--brand);
  font-weight: 700;
}

.hero-content p {
  margin: 0.2rem 0;
  font-size: clamp(0.85rem, calc(0.38 * var(--vf) + 0.81rem), 1.25rem);
  font-weight: 700;
  color: var(--text-muted);
}

.hero-content .hero-highlight {
  color: #c0392b;
  font-weight: 600;
}

.hero-open-status {
  display: inline-block;
  align-self: center;
  margin: clamp(0.4rem, calc(0.2 * var(--vf) + 0.4rem), 0.9rem) 0 0;
  padding: clamp(0.3rem, calc(0.15 * var(--vf) + 0.35rem), 0.6rem) clamp(0.6rem, calc(0.2 * var(--vf) + 0.7rem), 1rem);
  font-size: clamp(0.75rem, calc(0.2 * var(--vf) + 0.75rem), 1.05rem);
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--text);
}

.hero-open-status.is-open {
  color: #0f5132;
  background: #d1f1de;
  border-color: #85d7a5;
}

.hero-open-status.is-closed {
  color: #7f1d1d;
  background: #fde2e2;
  border-color: #f7b0b0;
}

.hero-address {
  font-style: normal;
  margin-top: clamp(0.8rem, calc(0.38 * var(--vf) + 0.91rem), 1.5rem);
  font-size: clamp(0.8rem, calc(0.3 * var(--vf) + 0.78rem), 1.15rem);
  line-height: 1.6;
  color: var(--text);
}

.hero-address a {
  color: var(--text);
  text-decoration: none;
}

.hero-address a:hover {
  color: var(--accent);
}

/* ── Leistungen Grid ──────────────────────────── */
.leistungen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--bg);
  overflow: hidden;
  padding-top: clamp(0.4rem, calc(0.75 * var(--vf) + 0.32rem), 1.2rem);
}

.leistungen-banner {
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.75rem, calc(0.38 * var(--vf) + 0.76rem), 1.2rem);
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  padding: clamp(0.45rem, calc(0.23 * var(--vf) + 0.55rem), 0.9rem) clamp(0.8rem, calc(0.75 * var(--vf) + 0.82rem), 1.8rem);
  margin: 0 clamp(0.4rem, calc(0.75 * var(--vf) + 0.32rem), 1.2rem);
  border-radius: 6px;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: clamp(2px, calc(0.2 * var(--vf)), 4px);
  flex: 1;
  padding: clamp(0.5rem, calc(0.3 * var(--vf) + 0.5rem), 1.2rem) clamp(0.7rem, calc(0.3 * var(--vf) + 0.7rem), 1.5rem) clamp(0.7rem, calc(0.3 * var(--vf) + 0.7rem), 1.5rem);
}

.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: clamp(0.55rem, calc(0.12 * var(--vf) + 0.7rem), 0.95rem);
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.25;
  padding: clamp(0.1rem, calc(0.1 * var(--vf) + 0.1rem), 0.4rem);
  overflow: hidden;
  border-radius: 4px;
}

.corner-letter {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, calc(3 * var(--vf) + 1.3rem), 5rem);
  font-weight: 900;
  color: var(--white);
  background: var(--surface-alt);
  border-radius: 4px;
  line-height: 1;
}

.service {
  background: var(--surface);
  font-size: clamp(0.6rem, calc(0.13 * var(--vf) + 0.73rem), 1rem);
}

.service-vertical {
  background: var(--surface);
  font-size: clamp(0.6rem, calc(0.13 * var(--vf) + 0.73rem), 1rem);
}

.filler {
  background: var(--surface-alt);
}

.brand-name {
  background: var(--surface-alt);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.7rem, calc(0.68 * var(--vf) + 0.59rem), 1.5rem);
  font-weight: 700;
  color: var(--text-muted);
}

.brand-gg {
  background: var(--surface-alt);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.6rem, calc(2.63 * var(--vf) + 1.13rem), 4.5rem);
  font-weight: 900;
  color: var(--brand);
  border-radius: 4px;
}

.brand-jun {
  background: var(--surface-alt);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, calc(1 * var(--vf) + 0.85rem), 2.2rem);
  font-weight: 900;
  color: var(--brand);
  border-radius: 4px;
}

/* ── Zeiten Section ───────────────────────────── */
.zeiten {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--bg);
  padding-top: clamp(0.4rem, calc(0.75 * var(--vf) + 0.32rem), 1.2rem);
}

.zeiten-banner {
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.75rem, calc(0.38 * var(--vf) + 0.76rem), 1.2rem);
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  padding: clamp(0.45rem, calc(0.23 * var(--vf) + 0.55rem), 0.9rem) clamp(0.8rem, calc(0.75 * var(--vf) + 0.82rem), 1.8rem);
  margin: 0 clamp(0.4rem, calc(0.75 * var(--vf) + 0.32rem), 1.2rem);
  border-radius: 6px;
}

.zeiten-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(1rem, calc(0.38 * var(--vf) + 1.16rem), 2rem);
  padding: clamp(1rem, calc(0.38 * var(--vf) + 1.16rem), 2rem);
}

.zeiten-block {
  width: 80%;
  justify-self: center;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.zeiten-block h2 {
  margin: 0 0 clamp(0.25rem, calc(0.15 * var(--vf) + 0.25rem), 0.6rem);
  font-family: var(--font-display);
  font-size: clamp(1rem, calc(0.38 * var(--vf) + 1.06rem), 1.6rem);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.01em;
  min-height: clamp(2.2rem, calc(0.75 * var(--vf) + 2.2rem), 3.5rem);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.zeiten-block:first-child h2 {
  color: var(--text);
}

.zeiten-block .dekra-heading {
  color: var(--dekra);
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.dekra-logo {
  height: 1.2em;
  width: auto;
}

.dekra-block .zeiten-table td,
.dekra-block .zeiten-table td:first-child {
  color: var(--dekra);
}

.zeiten-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.8rem, calc(0.23 * var(--vf) + 0.85rem), 1.15rem);
  line-height: 1.5;
}

.zeiten-table td {
  padding: 0.15rem 0;
  vertical-align: top;
}

.zeiten-table td:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  text-align: right;
  padding-right: clamp(0.5rem, calc(0.15 * var(--vf) + 0.55rem), 1rem);
}

.zeiten-table td:last-child {
  text-align: right;
}

.zeiten-pause {
  background: var(--surface-alt);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.75rem, calc(0.38 * var(--vf) + 0.76rem), 1.2rem);
  letter-spacing: 0.04em;
  text-align: center;
  padding: clamp(0.45rem, calc(0.23 * var(--vf) + 0.55rem), 0.9rem) clamp(0.8rem, calc(0.75 * var(--vf) + 0.82rem), 1.8rem);
  margin: 0 clamp(0.4rem, calc(0.75 * var(--vf) + 0.32rem), 1.2rem) clamp(0.8rem, calc(0.75 * var(--vf) + 0.82rem), 1.8rem);
}

/* ── Kontakt Section ──────────────────────────── */
.kontakt {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--white);
  padding-top: clamp(0.4rem, calc(0.75 * var(--vf) + 0.32rem), 1.2rem);
  position: relative;
}

.kontakt-banner {
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.75rem, calc(0.38 * var(--vf) + 0.76rem), 1.2rem);
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  padding: clamp(0.45rem, calc(0.23 * var(--vf) + 0.55rem), 0.9rem) clamp(0.8rem, calc(0.75 * var(--vf) + 0.82rem), 1.8rem);
  margin: 0 clamp(0.4rem, calc(0.75 * var(--vf) + 0.32rem), 1.2rem);
  border-radius: 6px;
}

.kontakt-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, calc(0.75 * var(--vf) + 1.32rem), 2.5rem);
}

.kontakt-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, calc(0.6 * var(--vf) + 0.96rem), 1.8rem);
  width: 100%;
  max-width: clamp(280px, calc(24 * var(--vf)), 400px);
}

.kontakt-item {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, calc(0.15 * var(--vf) + 0.85rem), 1.2rem);
}

.kontakt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.8rem, calc(0.6 * var(--vf) + 2.06rem), 2.8rem);
  height: clamp(1.8rem, calc(0.6 * var(--vf) + 2.06rem), 2.8rem);
  color: var(--brand);
  font-size: clamp(1.4rem, calc(0.6 * var(--vf) + 1.46rem), 2.2rem);
  flex-shrink: 0;
}

.kontakt-label {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.75rem, calc(0.23 * var(--vf) + 0.8rem), 1.1rem);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kontakt-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(1rem, calc(0.45 * var(--vf) + 1.09rem), 1.6rem);
}

.kontakt-item a:hover {
  color: var(--accent);
}

.kontakt-route {
  display: inline-block;
  margin-top: clamp(0.5rem, calc(0.15 * var(--vf) + 0.55rem), 1rem);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.65rem, calc(0.12 * var(--vf) + 0.7rem), 0.95rem);
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: center;
}

.kontakt-route:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.kontakt-map {
  width: 100%;
  max-width: clamp(280px, calc(24 * var(--vf)), 400px);
  height: clamp(100px, calc(10 * var(--vf)), 180px);
  border: 0;
  border-radius: 6px;
  margin-top: clamp(1rem, calc(0.3 * var(--vf) + 1.2rem), 2rem);
}

.kontakt-footer {
  position: absolute;
  right: clamp(1rem, calc(0.3 * var(--vf) + 1.15rem), 2rem);
  bottom: clamp(0.8rem, calc(0.3 * var(--vf) + 0.95rem), 1.5rem);
  display: flex;
  gap: clamp(0.7rem, calc(0.15 * var(--vf) + 0.85rem), 1.2rem);
}

.kontakt-impressum {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.75rem, calc(0.2 * var(--vf) + 0.71rem), 1.05rem);
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.kontakt-impressum:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Modal ────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal:target {
  display: flex;
}

.modal:target .modal-backdrop {
  animation: fadeIn 0.2s ease both;
}

.modal:target .modal-card {
  animation: modalSlideIn 0.3s ease both;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.8);
  cursor: pointer;
}

.modal-card {
  position: relative;
  width: 92vw;
  height: 85vh;
  background: var(--white);
  border-radius: 12px;
  padding: clamp(1.5rem, calc(0.5 * var(--vf) + 1.65rem), 2.5rem);
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: clamp(0.7rem, calc(0.15 * var(--vf) + 0.85rem), 1.2rem);
  overflow: auto;
}

.modal-card h2 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--brand);
  font-size: clamp(1.2rem, calc(0.3 * var(--vf) + 1.35rem), 1.8rem);
}

.modal-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: clamp(0.4rem, calc(0.1 * var(--vf) + 0.4rem), 0.8rem);
  right: clamp(0.5rem, calc(0.1 * var(--vf) + 0.6rem), 1rem);
  font-size: clamp(1.5rem, calc(0.3 * var(--vf) + 1.7rem), 2.5rem);
  line-height: 1;
  text-decoration: none;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--accent);
}

/* ── Mobile Section Navigation ────────────────── */
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0 1rem 0.5rem;
}

.section-nav a {
  font-size: calc(var(--vf) * 3.2);
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--surface-alt);
  border-radius: 0.3rem;
}

#hero:target > .section-nav a[href="#hero"],
#leistungen:target > .section-nav a[href="#leistungen"],
#zeiten:target > .section-nav a[href="#zeiten"],
#kontakt:target > .section-nav a[href="#kontakt"] {
  color: var(--brand);
  border-color: var(--brand);
  pointer-events: none;
}

.section-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Responsive ───────────────────────────────── */
@media (min-width: 768px) and (min-height: 550px) {
  :root {
    --vf: min(1vw, 1.5vh);
    --scale-w: 0.92;
    --scale-h: 0.92;
    --section-scale: min(var(--scale-w), var(--scale-h));
  }

  body {
    overflow: hidden;
  }

  main {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 100dvh;
    min-height: 0;
  }

  section {
    overflow: auto;
    min-height: 0;
  }

  section > * {
    zoom: var(--section-scale);
  }

  @supports not (zoom: 1) {
    section > * {
      transform: scale(var(--section-scale));
      transform-origin: top left;
      width: calc(100% / var(--section-scale));
    }
  }

  .section-nav {
    display: none;
  }

  .zeiten-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-card {
    width: 85vw;
    height: 80vh;
  }
}

@media (max-width: 1524px) and (min-width: 1270px) {
  :root { --scale-w: 0.90; }
}

@media (max-width: 1269px) and (min-width: 1200px) {
  :root { --scale-w: 0.85; }
}

@media (max-width: 1199px) and (min-width: 1125px) {
  :root { --scale-w: 0.82; }
}

@media (max-width: 1124px) and (min-width: 1050px) {
  :root { --scale-w: 0.75; }
}

@media (max-width: 1049px) and (min-width: 975px) {
  :root { --scale-w: 0.72; }
}

@media (max-width: 974px) and (min-width: 900px) {
  :root { --scale-w: 0.68; }
}

@media (max-width: 899px) and (min-width: 835px) {
  :root { --scale-w: 0.65; }
}

@media (max-width: 834px) and (min-width: 768px) {
  :root { --scale-w: 0.60; }
}

/* ── Height-based scaling ────────────────────── */
@media (min-width: 768px) and (max-height: 1000px) and (min-height: 900px) {
  :root { --scale-h: 0.88; }
}

@media (min-width: 768px) and (max-height: 899px) and (min-height: 800px) {
  :root { --scale-h: 0.80; }
}

@media (min-width: 768px) and (max-height: 799px) and (min-height: 700px) {
  :root { --scale-h: 0.72; }
}

@media (min-width: 768px) and (max-height: 699px) {
  :root { --scale-h: 0.65; }
}
