/*
╔════════════════════════════════════════════════════════════╗
║                                                            ║
║          Freiwillige Feuerwehr Steinabrückl               ║
║                  Website – Notruf 122                     ║
║                                                            ║
╚════════════════════════════════════════════════════════════╝
*/

/* Website der Freiwilligen Feuerwehr Steinabrueckl */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --ink: #181818;
  --muted: #454545;
  --fire-red: #c1121f;
  --fire-red-dark: #900f18;
  --charcoal: #1f1f1f;
  --white: #ffffff;
  --panel: #fbfbfb;
  --radius: 18px;
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.2);
  --font-ui:
    'Manrope', 'Segoe UI Variable', 'Aptos', 'Segoe UI', system-ui,
    -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-display:
    'Manrope', 'Segoe UI Variable Display', 'Segoe UI Variable',
    'Aptos Display', 'Aptos', 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-size: 125%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soften-in {
  from {
    opacity: 0;
    filter: blur(2px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.site-header,
.social,
.site-footer {
  width: 92vw;
  max-width: 1120px;
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.06);
  animation: rise-in 520ms ease-out both;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-home {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.brand-home:focus-visible {
  outline: 3px solid rgba(193, 18, 31, 0.45);
  outline-offset: 6px;
  border-radius: 12px;
}

.wappen {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: transparent;
  padding: 4px;
  box-shadow: none;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.brand-home:hover .eyebrow,
.brand-home:hover h1 {
  color: var(--fire-red-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0;
}

h1 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.hero-content h2 {
  font-size: clamp(2rem, 8vw, 4.2rem);
  min-height: 1.18em;
  letter-spacing: -0.04em;
}

.emergency {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(140deg, var(--fire-red), var(--fire-red-dark));
  border-radius: 999px;
  padding: 0.52rem 1.1rem 0.48rem 0.9rem;
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.emergency-icon {
  width: 1.55em;
  height: 1.55em;
  flex-shrink: 0;
  display: block;
  align-self: center;
  position: relative;
  top: 0.05em;
}

.emergency-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  height: 1.55em;
}

.emergency-label {
  font-size: 0.66em;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 1;
}

.emergency-text .emergency-number {
  font-size: 0.86em;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.emergency:hover,
.emergency:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(144, 15, 24, 0.3);
}

.emergency:focus-visible,
.social-card:focus-visible {
  outline: 3px solid #111;
  outline-offset: 2px;
}

.emergency-text .emergency-number {
  font-family: var(--font-ui);
  font-weight: 700;
}

.hero {
  width: 92vw;
  max-width: 1120px;
  margin: 0.2rem auto 2rem;
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  overflow: clip;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.14);
  min-height: 58vh;
  animation: soften-in 620ms ease-out 130ms both;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 58vh;
  object-fit: cover;
  display: block;
  filter: saturate(1.07) contrast(1.07);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(0, 0, 0, 0.84) 18%,
      rgba(0, 0, 0, 0.52) 56%,
      rgba(0, 0, 0, 0.24) 100%
    ),
    linear-gradient(0deg, rgba(193, 18, 31, 0.22), rgba(193, 18, 31, 0.08));
}

.hero-content {
  position: absolute;
  left: clamp(1rem, 3.5vw, 2.4rem);
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1.1rem, 4vw, 2.4rem);
  color: var(--white);
  max-width: 630px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-kicker {
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.95;
}

.typing-text {
  display: inline;
}

.typing-caret {
  display: inline-block;
  width: 0.08em;
  height: 0.95em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  background-color: rgba(255, 255, 255, 0.96);
  animation: caret-blink 1s steps(1, end) infinite;
}

@keyframes caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

.hero-text {
  margin: 0.55rem 0 0;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
}

.social {
  margin: 0 auto 2.4rem;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.16);
  padding: clamp(1rem, 3.2vw, 1.7rem);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.08);
  animation: rise-in 540ms ease-out 220ms both;
}

h3 {
  font-size: clamp(1.5rem, 3.8vw, 2.15rem);
  margin-bottom: 0.35rem;
}

.social > p {
  margin: 0;
  font-size: 1.1rem;
}

.social-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.social-card {
  text-decoration: none;
  color: var(--white);
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 1rem 1rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.social-card:hover,
.social-card:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.facebook {
  background: linear-gradient(140deg, #0f3c8b, #164fba);
}

.instagram {
  background: linear-gradient(140deg, #a61773, #d03862 40%, #e3642f 100%);
}

.network {
  font-size: clamp(1.28rem, 3.5vw, 1.65rem);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.012em;
}

.cta {
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.site-footer {
  text-align: center;
  color: #383838;
  padding: 0.2rem 0 1.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 1rem;
}

.legal-link-wrap {
  margin-top: 0.2rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.6rem;
}

.footer-link {
  font-size: 0.78rem;
  color: #626262;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #2f2f2f;
  border-color: #2f2f2f;
}

.legal-link {
  font-size: 0.72rem;
  color: #626262;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.legal-link:hover,
.legal-link:focus-visible {
  color: #2f2f2f;
  border-color: #2f2f2f;
}

@media (min-width: 720px) {
  .site-header {
    padding: 1rem 1.15rem;
  }

  .wappen {
    width: 66px;
    height: 66px;
  }

  .social-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: center;
    gap: 0.55rem;
    padding: 0.84rem 0.78rem;
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
      0 10px 22px rgba(0, 0, 0, 0.1),
      0 2px 6px rgba(0, 0, 0, 0.06);
  }

  .wappen {
    display: block;
    width: 42px;
    height: 42px;
    padding: 2px;
  }

  .brand-wrap {
    gap: 0.5rem;
    min-width: 0;
  }

  .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .brand-home h1 {
    font-size: clamp(1.08rem, 5.4vw, 1.34rem);
    line-height: 1.03;
  }

  .emergency {
    margin-top: 0;
    border-radius: 12px;
    padding: 0.34rem 0.58rem 0.3rem 0.5rem;
    gap: 0.28rem;
    box-shadow: 0 10px 18px rgba(144, 15, 24, 0.24);
  }

  .emergency-icon {
    width: 1.44em;
    height: 1.44em;
  }

  .emergency-label {
    display: none;
  }

  .emergency-text .emergency-number {
    font-size: 0.82em;
    line-height: 0.95;
  }

  .social {
    border-radius: 14px;
    padding: 0.82rem 0.82rem 0.9rem;
    margin-bottom: 1.65rem;
  }

  .social h3 {
    font-size: clamp(1.2rem, 6.2vw, 1.45rem);
    margin-bottom: 0.25rem;
  }

  .social > p {
    font-size: 0.92rem;
    color: #4d4d4d;
  }

  .social-grid {
    margin-top: 0.62rem;
    gap: 0.52rem;
    grid-template-columns: 1fr 1fr;
  }

  .social-card {
    min-height: 54px;
    padding: 0.58rem 0.64rem 0.56rem;
    border-radius: 12px;
    justify-content: center;
    gap: 0.5rem;
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.15),
      0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .network {
    font-size: 0.97rem;
    letter-spacing: 0.005em;
  }

  .cta {
    display: none;
  }

  .hero {
    min-height: 52vh;
  }

  .hero-image {
    min-height: 52vh;
  }

  .hero-kicker {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing-caret {
    animation: none;
    opacity: 0;
  }
}

@media (min-width: 1080px) {
  .site-header,
  .hero,
  .social {
    width: 90vw;
    max-width: 1240px;
  }

  .hero {
    min-height: 66vh;
  }

  .hero-image {
    min-height: 66vh;
  }
}

/* ========== HAMBURGER MENU & NAVIGATION ========== */

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hamburger-btn {
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all 240ms ease;
}

.hamburger-btn span {
  width: 24px;
  height: 2.4px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 240ms ease;
  display: block;
}

.hamburger-btn:hover span {
  background: var(--fire-red);
}

.hamburger-btn[aria-expanded='true'] span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px);
}

.hamburger-btn[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn[aria-expanded='true'] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(193, 18, 31, 0.1), transparent 42%),
    linear-gradient(180deg, #fffdfc 0%, #f6f1ed 100%);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 320ms ease,
    visibility 320ms ease;
  padding: 1.5rem;
  overflow-y: auto;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

.menu-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: all 200ms ease;
}

.menu-close svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
  transition: color 200ms ease;
}

.menu-close:hover svg {
  color: var(--fire-red);
}

.menu-close:focus-visible {
  outline: 3px solid var(--fire-red);
  outline-offset: 2px;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  width: min(90vw, 680px);
  text-align: center;
}

.menu-link {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.7vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-block;
  padding: 0.35rem 0;
  position: relative;
  transition: color 200ms ease;
  cursor: pointer;
  border: none;
  background: none;
  text-align: center;
}

.menu-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 100%;
  height: 2px;
  background: var(--fire-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.menu-link:hover::after,
.menu-link:focus-visible::after {
  transform: scaleX(1);
}

.menu-link:hover,
.menu-link:focus-visible {
  color: var(--ink);
}

.menu-link:focus-visible {
  outline: 3px solid var(--fire-red);
  outline-offset: 4px;
}

.menu-meta {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.menu-legal-link {
  color: rgba(24, 24, 24, 0.72);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.menu-legal-link:hover,
.menu-legal-link:focus-visible {
  color: var(--ink);
  border-color: rgba(24, 24, 24, 0.4);
}

.menu-legal-link:focus-visible {
  outline: 3px solid rgba(193, 18, 31, 0.2);
  outline-offset: 5px;
}

/* ========== PAGE CONTENT ========== */

.page-content {
  animation: soften-in 400ms ease-out both;
}

.page-content.hidden {
  display: none;
}

.page-section {
  width: 92vw;
  max-width: 1120px;
  margin: 0 auto 2.4rem;
  padding-top: 0.4rem;
}

.page-section h2 {
  margin-bottom: 1.3rem;
  animation: rise-in 520ms ease-out both;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* ========== TEAM PAGE ========== */

.team-photo-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  padding: 0.45rem;
  background: #f3f3f3;
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.14);
  animation: soften-in 620ms ease-out 130ms both;
}

.team-photo {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  transform: scale(1);
  transition: transform 260ms ease;
}

.team-photo-container:hover .team-photo,
.team-photo-container:focus-within .team-photo {
  transform: scale(1.025);
}

.team-claim {
  max-width: 800px;
  margin: 0.8rem auto 0;
  text-align: center;
  font-size: clamp(0.94rem, 1.8vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}

/* ========== FLEET PAGE: VEHICLE GRID ========== */

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  animation: rise-in 540ms ease-out 220ms both;
}

.vehicle-box {
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.08);
  transition:
    transform 240ms ease-out,
    box-shadow 240ms ease-out;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.vehicle-box:hover {
  transform: scale(1.05);
  box-shadow:
    0 28px 48px rgba(0, 0, 0, 0.18),
    0 8px 14px rgba(0, 0, 0, 0.12);
}

.vehicle-image-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(
    135deg,
    rgba(193, 18, 31, 0.15),
    rgba(193, 18, 31, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vehicle-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-image-fallback {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: 0.75rem;
}

.vehicle-image-placeholder {
  width: 60px;
  height: 60px;
  opacity: 0.3;
  color: var(--fire-red);
}

.vehicle-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vehicle-name {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.vehicle-short {
  margin: 0.22rem 0 0.82rem;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.vehicle-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.vehicle-more-btn {
  margin-top: auto;
  margin-bottom: 0;
  padding: 0.6rem 1.2rem;
  background: var(--fire-red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 160ms ease-out,
    transform 160ms ease-out;
  font-family: var(--font-ui);
}

.vehicle-more-btn:hover {
  background: var(--fire-red-dark);
  transform: translateY(-2px);
}

.vehicle-more-btn:active {
  transform: translateY(0);
}

@media (max-width: 560px) {
  .header-actions {
    gap: 0.5rem;
  }

  .hamburger-btn {
    width: 40px;
    height: 40px;
    padding: 6px;
  }

  .menu-nav {
    gap: 1.1rem;
  }

  .menu-link {
    font-size: clamp(1.2rem, 6.8vw, 1.5rem);
  }

  .menu-meta {
    bottom: 1rem;
  }

  .menu-legal-link {
    font-size: 0.72rem;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .vehicle-box {
    border-radius: 14px;
    box-shadow:
      0 12px 24px rgba(0, 0, 0, 0.1),
      0 3px 8px rgba(0, 0, 0, 0.06);
  }

  .vehicle-box:hover {
    transform: scale(1.015);
    box-shadow:
      0 16px 26px rgba(0, 0, 0, 0.12),
      0 4px 10px rgba(0, 0, 0, 0.08);
  }

  .vehicle-image-wrap {
    aspect-ratio: 2.25 / 1;
  }

  .vehicle-content {
    padding: 0.9rem 0.9rem 0.85rem;
  }

  .vehicle-name {
    font-size: 0.98rem;
    margin-bottom: 0.6rem;
  }

  .vehicle-specs {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .vehicle-spec {
    line-height: 1.3;
  }

  .vehicle-spec-label {
    font-size: 0.72rem;
    margin-bottom: 0.12rem;
  }

  .vehicle-spec-value {
    font-size: 0.88rem;
  }

  .page-section h2 {
    font-size: 1.14rem;
  }
}

@media (min-width: 720px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .page-section {
    width: 90vw;
    max-width: 1240px;
  }

  .vehicle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 390px) {
  .site-header {
    padding: 0.72rem 0.66rem;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .social-card {
    min-height: 50px;
    padding: 0.52rem 0.58rem 0.5rem;
  }
}

/* ========== VEHICLE DETAILS MODAL ========== */

.vehicle-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 1rem;
  overflow-y: auto;
}

.vehicle-modal.open {
  display: flex;
  flex-direction: column;
  animation: fade-in 240ms ease-out;
}

.vehicle-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  animation: fade-in 240ms ease-out;
}

.vehicle-modal-panel {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 720px;
  margin: auto;
  padding: 2rem;
  padding-top: 3.5rem;
  animation: scale-in 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.vehicle-modal-panel::-webkit-scrollbar {
  width: 10px;
}

.vehicle-modal-panel::-webkit-scrollbar-track {
  background: transparent;
}

.vehicle-modal-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.vehicle-modal-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.vehicle-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 160ms ease-out,
    background 160ms ease-out;
  z-index: 10;
}

.vehicle-modal-close:hover,
.vehicle-modal-close:focus {
  color: var(--fire-red);
  background: rgba(193, 18, 31, 0.1);
  outline: none;
}

.vehicle-modal-close svg {
  width: 24px;
  height: 24px;
}

.vehicle-modal-content {
  margin-top: 0;
  color: var(--ink);
}

.modal-vehicle-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 1.8rem;
  display: block;
  background: linear-gradient(
    135deg,
    rgba(193, 18, 31, 0.15),
    rgba(193, 18, 31, 0.05)
  );
}

.modal-vehicle-header {
  margin-bottom: 2rem;
}

#modal-vehicle-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.modal-vehicle-shortname {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modal-vehicle-section {
  margin-bottom: 2rem;
}

.modal-vehicle-section h3 {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 2vw, 1.1rem);
  font-weight: 600;
  margin: 0 0 0.8rem;
  color: var(--fire-red);
  letter-spacing: -0.01em;
  border-bottom: 2px solid rgba(193, 18, 31, 0.2);
  padding-bottom: 0.6rem;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.modal-spec-item {
  display: flex;
  flex-direction: column;
}

.modal-spec-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--fire-red);
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.modal-spec-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: break-word;
}

.modal-equipment-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.modal-equipment-item {
  display: flex;
  gap: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}

.modal-equipment-item::before {
  content: '▪';
  flex-shrink: 0;
  color: var(--fire-red);
  font-weight: 600;
  line-height: 1.6;
}

.modal-equipment-item.subtitle {
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.4rem;
}

.modal-equipment-item.subtitle::before {
  content: '◆';
  color: var(--fire-red);
  opacity: 0.6;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .vehicle-modal {
    padding: 0.75rem;
  }

  .vehicle-modal-panel {
    max-width: 100%;
    width: 100%;
    margin: auto;
    padding: 1.2rem;
    padding-top: 3rem;
    border-radius: calc(var(--radius) - 2px);
    max-height: 85vh;
    overflow-y: auto;
  }

  .vehicle-modal-close {
    width: 36px;
    height: 36px;
    top: 0.5rem;
    right: 0.5rem;
  }

  #modal-vehicle-name {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  .modal-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .modal-vehicle-section h3 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
}
