/* Taxi Central Rosenheim — site styles */

:root {
  --brand: #ffc000;
  --brand-press: #e6ad00;
  --on-brand: #111;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);

  /* Chrome is always dark so the white logo stays legible */
  --chrome: rgba(22, 22, 23, 0.72);
  --chrome-solid: #161617;
  --chrome-text: #f5f5f7;

  --radius-l: 28px;
  --radius-m: 18px;
  --gutter: max(16px, env(safe-area-inset-left));
  --max: 1080px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101012;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --hairline: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type scale: tracking tightens and leading closes as size grows ---------- */

.display {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.headline {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.title {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
}

.lead {
  margin: 0;
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

/* ---------- Buttons: feedback on press, not on release ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.8em 1.5em;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--on-brand);
  background: var(--brand);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.button:hover { background: var(--brand-press); }

.button:active {
  transform: scale(0.96);
  transition-duration: 80ms;
}

.button--dark {
  color: var(--chrome-text);
  background: var(--chrome-solid);
}

.button--dark:hover { background: #2c2c2e; }

.button--large {
  font-size: 1.1875rem;
  padding: 0.9em 1.75em;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ---------- Navigation: translucent material, content scrolls under it ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--chrome-text);
  background: var(--chrome);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
}

.nav__brand img { height: 28px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  color: rgba(245, 245, 247, 0.86);
  transition: color 150ms ease, background-color 150ms ease;
}

.nav__link:hover { color: #fff; }
.nav__link:active { background: rgba(255, 255, 255, 0.12); transition-duration: 0ms; }

.nav__link--phone {
  color: var(--on-brand);
  background: var(--brand);
  min-height: 34px;
  padding: 0 0.9rem;
  font-weight: 600;
  transition: transform 200ms var(--ease-out), background-color 200ms ease;
}

.nav__link--phone:hover { color: var(--on-brand); background: var(--brand-press); }
.nav__link--phone:active { background: var(--brand-press); transform: scale(0.95); transition-duration: 80ms; }

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav__toggle:active { background: rgba(255, 255, 255, 0.12); }

.nav__toggle span {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 300ms var(--ease-out);
}

.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 24px; }

.nav[data-open] .nav__toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.nav[data-open] .nav__toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__phone-compact { display: none; }

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__phone-compact { display: inline-flex; }

  /* The menu grows down from the bar that opened it */
  .nav__menu {
    position: absolute;
    inset: 100% 0 auto;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--chrome-solid);
    transform-origin: top center;
    opacity: 0;
    transform: translateY(-8px) scaleY(0.96);
    visibility: hidden;
    transition:
      opacity 220ms var(--ease-out),
      transform 320ms var(--ease-out),
      visibility 0s linear 320ms;
  }

  .nav[data-open] .nav__menu {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition:
      opacity 220ms var(--ease-out),
      transform 320ms var(--ease-out),
      visibility 0s;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__links li + li { border-top: 1px solid rgba(255, 255, 255, 0.08); }

  .nav__link {
    min-height: 52px;
    padding: 0;
    border-radius: 0;
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--chrome-text);
  }

  .nav__link:active { background: transparent; opacity: 0.6; }

  .nav__links .nav__link--phone {
    color: var(--brand);
    background: transparent;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 16vh, 10rem) 0 clamp(4.5rem, 14vh, 9rem);
  text-align: center;
  color: var(--on-brand);
  background:
    radial-gradient(120% 80% at 50% 0%, #ffd34d 0%, rgba(255, 211, 77, 0) 60%),
    var(--brand);
}

.hero .display span { display: block; }

.hero .display .hero__kicker {
  margin-bottom: 0.75rem;
  font-size: clamp(1rem, 2vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.65);
}
.hero .display span:last-child { color: rgba(17, 17, 17, 0.55); }

.hero__lead {
  margin-top: 1.25rem;
  color: rgba(17, 17, 17, 0.7);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* ---------- Call strip ---------- */

.strip {
  color: var(--chrome-text);
  background: var(--chrome-solid);
}

.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 2.5rem;
}

.strip .eyebrow { color: #a1a1a6; margin-bottom: 0.25rem; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(4.5rem, 12vh, 8rem); }
.section--alt { background: var(--bg-alt); }

.about {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.about .lead { margin-top: 1.5rem; }
.about .lead + .lead { margin-top: 1rem; }

.keypoints {
  margin: 3rem 0 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.keypoints span { color: var(--brand); }
.keypoints span + span { margin-left: 0.25em; }

/* ---------- Contact tile ---------- */

.contact {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: var(--radius-l);
  color: var(--on-brand);
  background: var(--brand);
}

.contact__icon {
  display: grid;
  place-items: center;
  width: clamp(5rem, 14vw, 8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--brand);
  background: var(--on-brand);
}

.contact__icon .icon { width: 42%; height: 42%; }

.contact .title { font-weight: 600; }

.contact__number {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  border-radius: 10px;
  transition: opacity 150ms ease;
}

.contact__number:active { opacity: 0.6; transition-duration: 0ms; }

@media (max-width: 560px) {
  .contact { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ---------- Offerings ---------- */

.section-head {
  max-width: 40rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
}

.card {
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  aspect-ratio: 370 / 275;
  object-fit: cover;
}

.card__body { padding: 1.5rem 1.5rem 1.75rem; }

.card h3 {
  margin: 0 0 0.375rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
}

/* ---------- Facts ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
}

.fact {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-m);
  background: var(--bg-alt);
}

.fact__value {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}

.fact__value::after {
  content: "";
  display: block;
  width: 2rem;
  height: 4px;
  margin-top: 0.75rem;
  border-radius: 2px;
  background: var(--brand);
}

.fact h3 {
  margin: 0 0 0.375rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.fact p:last-child {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
}

.facts .reveal:nth-child(2) { transition-delay: 80ms; }
.facts .reveal:nth-child(3) { transition-delay: 160ms; }

/* ---------- FAQ ---------- */

.faq { max-width: 48rem; }
.faq .headline { margin-bottom: 2rem; text-align: center; }

.faq__list {
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.faq details + details { border-top: 1px solid var(--hairline); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.3rem;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  transition: transform 300ms var(--ease-out);
}

.faq details[open] summary::after { transform: translateY(0.3rem) rotate(-135deg); }
.faq summary:active { opacity: 0.6; }

.faq details p {
  margin: -0.25rem 0 0;
  padding: 0 1.5rem 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.faq details a { color: var(--text); text-decoration-color: var(--brand); text-underline-offset: 0.2em; }

/* ---------- Closing call ---------- */

.closing {
  padding-block: clamp(4.5rem, 12vh, 7rem);
  text-align: center;
  color: var(--on-brand);
  background: var(--brand);
}

.closing .eyebrow { color: rgba(17, 17, 17, 0.6); }
.closing .headline { max-width: 20ch; margin-inline: auto; }
.closing .button { margin-top: 2rem; }

/* ---------- Footer ---------- */

.footer {
  padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom));
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: #a1a1a6;
  background: var(--chrome-solid);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--chrome-text);
}

.footer a:hover { text-decoration: underline; }
.footer p { margin: 0; }

.footer__nap {
  flex-basis: 100%;
  margin-bottom: 0.5rem;
  font-style: normal;
  line-height: 1.6;
}

.footer__nap strong { color: var(--chrome-text); font-weight: 600; }
.footer__nap a { display: inline; min-height: 0; }

/* ---------- Floating call button (mobile) ---------- */

.float-call {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  padding: 0.85em 1.6em;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, 150%);
  opacity: 0;
  visibility: hidden;
  transition: transform 450ms var(--ease-out), opacity 300ms var(--ease-out), visibility 0s linear 450ms;
}

.float-call[data-visible] {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  transition: transform 450ms var(--ease-out), opacity 300ms var(--ease-out), visibility 0s;
}

.float-call[data-visible]:active {
  transform: translate(-50%, 0) scale(0.96);
  transition-duration: 80ms;
}

@media (min-width: 761px) {
  .float-call { display: none; }
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 44rem;
  margin-inline: auto;
  padding-block: clamp(3.5rem, 10vh, 6rem);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

.legal .headline { margin-bottom: 2.5rem; }

.legal h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.legal p,
.legal address {
  margin: 0 0 1rem;
  font-style: normal;
  color: var(--text-secondary);
}

.legal strong { color: var(--text); font-weight: 600; }

.legal hr {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}

.legal a { text-decoration-color: var(--brand); text-underline-offset: 0.2em; }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
}

.js .reveal[data-shown] { opacity: 1; transform: none; }

.cards .reveal:nth-child(2) { transition-delay: 80ms; }
.cards .reveal:nth-child(3) { transition-delay: 160ms; }

/* ---------- Accessibility preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal,
  .js .reveal[data-shown] {
    transform: none;
    transition: opacity 300ms ease;
  }

  .nav__menu,
  .nav[data-open] .nav__menu { transform: none !important; }

  .float-call,
  .float-call[data-visible] {
    transform: translate(-50%, 0);
    transition: opacity 200ms ease;
  }

  .button:active,
  .nav__link--phone:active { transform: none; }

  .faq summary::after { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--chrome-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .nav { background: #000; }
  .lead, .card p, .legal p { color: var(--text); }
  .card { border: 1px solid var(--text); box-shadow: none; }
}
