/* ============================================
   SCHWEISSSERVICE POHL - Industrial Design System
   Based on Vorlage/code.html
   Fonts: Oswald, Inter, Space Grotesk
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500&display=swap");

/* --- CSS Variables --- */
:root {
  --surface: #121414;
  --surface-dim: #121414;
  --surface-bright: #37393a;
  --surface-container-lowest: #0c0f0f;
  --surface-container-low: #1a1c1c;
  --surface-container: #1e2020;
  --surface-container-high: #282a2b;
  --surface-container-highest: #333535;
  --on-surface: #e2e2e2;
  --on-surface-variant: #d2c5ab;
  --inverse-surface: #e2e2e2;
  --inverse-on-surface: #2f3131;
  --outline: #9a9078;
  --outline-variant: #4e4632;
  --surface-tint: #f1c100;
  --primary: #ffedc3;
  --on-primary: #3d2f00;
  --primary-container: #ffcc00;
  --on-primary-container: #6f5700;
  --inverse-primary: #745b00;
  --secondary: #c8c6c5;
  --on-secondary: #313030;
  --secondary-container: #474746;
  --on-secondary-container: #b7b5b4;
  --tertiary: #f1eeee;
  --on-tertiary: #303030;
  --tertiary-container: #d4d2d1;
  --on-tertiary-container: #5b5a5a;
  --error: #ffb4ab;
  --on-error: #690005;
  --error-container: #93000a;
  --on-error-container: #ffdad6;
  --primary-fixed: #ffe08b;
  --primary-fixed-dim: #f1c100;
  --on-primary-fixed: #241a00;
  --on-primary-fixed-variant: #584400;
  --secondary-fixed: #e5e2e1;
  --secondary-fixed-dim: #c8c6c5;
  --on-secondary-fixed: #1c1b1b;
  --on-secondary-fixed-variant: #474746;
  --tertiary-fixed: #e4e2e1;
  --tertiary-fixed-dim: #c8c6c6;
  --on-tertiary-fixed: #1b1c1c;
  --on-tertiary-fixed-variant: #474747;
  --background: #121414;
  --on-background: #e2e2e2;
  --surface-variant: #333535;
  --font-headline: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-label: "Space Grotesk", sans-serif;
  --max-width: 80%;
  --gutter-desktop: 24px;
  --gutter-mobile: 16px;
  --margin-desktop: 64px;
  --margin-mobile: 20px;
  --stack-sm: 12px;
  --stack-md: 24px;
  --stack-lg: 48px;
  --unit: 8px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  background: var(--background);
  color: var(--on-surface);
  overflow-x: hidden;
}

::selection {
  background: var(--primary-fixed-dim);
  color: var(--on-primary);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* --- Hazard Bar --- */
.hazard-bar {
  background: repeating-linear-gradient(
    45deg,
    var(--primary-fixed-dim),
    var(--primary-fixed-dim) 20px,
    var(--background) 20px,
    var(--background) 40px
  );
  height: 12px;
  width: 100%;
  border: none;
}

/* --- Metal Texture --- */
.metal-texture {
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 32px 32px;
}

/* --- Typography --- */
.font-headline {
  font-family: var(--font-headline);
}
.font-label {
  font-family: var(--font-label);
}

/* --- Layout Helpers --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--margin-mobile);
}
@media (min-width: 768px) {
  .container {
    padding: 0 var(--margin-desktop);
  }
}

/* ============================================
   HEADER / TOP APP BAR
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--margin-mobile);
  background: rgba(18, 20, 20, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--outline-variant);
}
@media (min-width: 768px) {
  .site-header {
    padding: 16px var(--margin-desktop);
  }
}

.brand {
  font-family: var(--font-headline);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary-fixed-dim);
  text-transform: uppercase;
  line-height: 1.1;
}

.desktop-nav {
  display: none;
}
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    gap: 32px;
  }
}

.nav-link {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--secondary);
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--primary-fixed-dim);
}

.cta-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-fixed-dim);
  color: var(--on-primary);
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
}
.cta-btn:hover {
  background: var(--primary-fixed);
}
.cta-btn:active {
  transform: scale(0.98);
}

.cta-btn-outline {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  color: var(--primary-fixed-dim);
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid var(--primary-fixed-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cta-btn-outline:hover {
  background: var(--primary-fixed-dim);
  color: var(--on-primary);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}
.mobile-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary-fixed-dim);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--surface);
  border-top: 2px solid var(--outline-variant);
  padding: 16px var(--margin-mobile);
}
.mobile-nav.active {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  border-bottom: 1px solid var(--surface-container-high);
}
.mobile-nav a:hover {
  color: var(--primary-fixed-dim);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 80px var(--margin-mobile) 48px;
}
@media (min-width: 768px) {
  .hero-section {
    padding: 80px var(--margin-desktop) 48px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--background), rgba(18,20,20,0.6), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.hero-tag {
  display: inline-block;
  padding: 4px 16px;
  margin-bottom: var(--stack-md);
  background: var(--primary-fixed-dim);
  color: var(--on-primary);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-title {
  font-family: var(--font-headline);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--on-surface);
  margin-bottom: var(--stack-md);
}
.hero-title .accent {
  color: var(--primary-fixed-dim);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--secondary);
  margin-bottom: var(--stack-lg);
  max-width: 640px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 64px;
  gap: 16px;
}
@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.section-label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary-fixed-dim);
  display: block;
  margin-bottom: var(--stack-sm);
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--on-surface);
}

.section-divider {
  height: 2px;
  flex-grow: 1;
  background: var(--outline-variant);
  margin: 0 32px 12px;
  display: none;
}
@media (min-width: 768px) {
  .section-divider {
    display: block;
  }
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-section {
  padding: var(--stack-lg) 0;
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter-desktop);
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--surface-container-high);
  border-left: 4px solid var(--primary-fixed-dim);
  padding: 32px;
  transition: background 0.2s;
}
.service-card:hover {
  background: var(--surface-container-highest);
}

.service-icon {
  font-size: 48px;
  color: var(--primary-fixed-dim);
  margin-bottom: var(--stack-md);
  display: block;
}

.service-title {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: var(--stack-sm);
  color: var(--on-surface);
}

.service-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-surface-variant);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: var(--stack-lg) 0;
  background: var(--surface-container-lowest);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--stack-lg);
  align-items: center;
  max-width: 1152px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap .corner-tl {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 96px;
  height: 96px;
  border-top: 4px solid var(--primary-fixed-dim);
  border-left: 4px solid var(--primary-fixed-dim);
}
.about-image-wrap .corner-br {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 96px;
  height: 96px;
  border-bottom: 4px solid var(--primary-fixed-dim);
  border-right: 4px solid var(--primary-fixed-dim);
}

.about-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--outline-variant);
}

.about-content p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin-bottom: var(--stack-md);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.stat-value {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 500;
  color: var(--primary-fixed-dim);
}

.stat-label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: var(--stack-lg) 0;
  background: var(--surface);
  border-top: 2px solid var(--outline-variant);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin-bottom: var(--stack-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: var(--stack-lg);
}

.contact-icon-box {
  width: 64px;
  height: 64px;
  background: var(--surface-container-high);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--outline-variant);
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.contact-item:hover .contact-icon-box {
  border-color: var(--primary-fixed-dim);
}

.contact-icon-box svg,
.contact-icon-box span {
  width: 32px;
  height: 32px;
  color: var(--primary-fixed-dim);
  font-size: 32px;
}

.contact-label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 4px;
}

.contact-value {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 500;
  color: var(--on-surface);
  line-height: 1.2;
}
.contact-link {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}
.contact-link:hover {
  color: var(--primary-fixed-dim);
}

.contact-map {
  background: var(--surface-container-high);
  padding: 16px;
  border: 2px solid var(--outline-variant);
  position: relative;
  overflow: hidden;
}

.contact-map-inner {
  width: 100%;
  height: 450px;
  background: var(--surface-container-lowest);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-map-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.75) contrast(1.25);
  transition: filter 0.3s;
}
.contact-map:hover .contact-map-inner img {
  filter: grayscale(0) brightness(1) contrast(1);
}

.map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(241, 193, 0, 0.1);
  pointer-events: none;
}

/* Transparente Klick-Ebene über der Karte: blockt Scroll-/Zoom-Hijack
   und öffnet bei Klick Google Maps. */
.map-click {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.map-gmaps-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-fixed-dim);
  color: var(--on-primary);
  padding: 10px 16px;
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 2px solid var(--on-primary);
  transition: background 0.2s, transform 0.1s;
}
.map-gmaps-btn:hover {
  background: var(--primary-fixed);
}
.map-gmaps-btn:active {
  transform: scale(0.97);
}
.map-gmaps-btn svg {
  width: 18px;
  height: 18px;
}

.map-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--primary-fixed-dim);
  color: var(--on-primary);
  padding: 8px 16px;
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: var(--stack-lg) var(--margin-mobile);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: var(--stack-md);
  border-top: 4px solid var(--primary-fixed-dim);
  background: var(--surface-container-lowest);
}
@media (min-width: 768px) {
  .site-footer {
    flex-direction: row;
    padding: var(--stack-lg) var(--margin-desktop);
  }
}

.footer-brand {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  color: var(--on-surface);
}
.footer-brand span {
  color: var(--primary-fixed-dim);
}

.footer-copyright {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-fixed-dim);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-link {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-fixed-dim, var(--secondary));
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--primary-fixed-dim);
}

/* ============================================
   DEFAULT PAGE (Impressum, Datenschutz)
   ============================================ */
.page-content {
  padding-top: 100px;
  padding-bottom: var(--stack-lg);
  min-height: calc(100vh - 200px);
}
.page-content h1 {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-fixed-dim);
  margin-bottom: var(--stack-md);
  padding-bottom: var(--stack-sm);
  border-bottom: 2px solid var(--outline-variant);
}
.page-content h2 {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--on-surface);
  margin: var(--stack-lg) 0 var(--stack-sm);
}
.page-content h3 {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 500;
  color: var(--on-surface-variant);
  margin: var(--stack-md) 0 var(--stack-sm);
}
.page-content p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin-bottom: var(--stack-sm);
}
.page-content a {
  color: var(--primary-fixed-dim);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.page-content a:hover {
  color: var(--primary-fixed);
}
.page-content ul {
  margin: var(--stack-sm) 0 var(--stack-sm) 24px;
}
.page-content li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
  list-style: square;
}
.page-content li::marker {
  color: var(--primary-fixed-dim);
}
.page-content address {
  font-style: normal;
  color: var(--on-surface);
  font-family: var(--font-body);
  line-height: 1.6;
}
.page-content strong {
  color: var(--on-surface);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  /* Mobil: Sektionen, Grids und Hazard-Bars die volle Breite nutzen
     (kein 80%-Rand links/rechts mehr). Wirkt auf alle var(--max-width). */
  :root {
    --max-width: 100%;
    --margin-mobile: 16px;
  }
  /* about-Sektion hat keinen .container -> Gutter direkt setzen,
     damit der Text wie die anderen Sektionen einen Rand hat. */
  .about-section {
    padding-left: var(--margin-mobile);
    padding-right: var(--margin-mobile);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .about-stats {
    gap: 16px;
  }
  .stat-value {
    font-size: 20px;
  }
  .contact-value {
    font-size: 20px;
  }
  .contact-map-inner {
    height: 300px;
  }
  .map-badge {
    font-size: 14px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  .section-title {
    font-size: 24px;
  }
  .service-title {
    font-size: 20px;
  }
  .service-card {
    padding: 24px;
  }
  .contact-icon-box {
    width: 48px;
    height: 48px;
  }
  .contact-icon-box svg,
  .contact-icon-box span {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  .cta-btn, .cta-btn-outline {
    width: 100%;
    text-align: center;
  }
}
.service-icon-svg {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    display: block;
}
.contact-icon-svg {
    width: 32px;
    height: 32px;
    display: block;
}
.map-icon-svg {
    width: 24px;
    height: 24px;
    display: inline;
    margin-right: 8px;
    vertical-align: middle;
}

/* === WIDTH FIX: All sections centered at 80% === */
.hero-section,
.services-section,
.gallery-section,
.about-section,
.contact-section,
.site-footer,
.hazard-bar {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Hero background should still be full width visually */
.hero-section {
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
}

/* Services grid container */
.services-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* About grid container */
.about-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Contact grid container */
.contact-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Page content */
.page-content .container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   GALLERY CAROUSEL
   ============================================ */
.gallery-section {
  padding: var(--stack-lg) 0;
  background: var(--surface-container-lowest);
}

.gallery-carousel {
  position: relative;
}

.gallery-track {
  display: flex;
  gap: var(--gutter-desktop);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0 8px;
  /* hide scrollbar */
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  position: relative;
  flex: 0 0 85%;
  scroll-snap-align: center;
  margin: 0;
}
@media (min-width: 768px) {
  .gallery-slide {
    flex-basis: 60%;
  }
}
@media (min-width: 1100px) {
  .gallery-slide {
    flex-basis: 46%;
  }
}

.gallery-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--outline-variant);
}

.gallery-slide figcaption {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  padding: 16px 4px 0;
}

.gallery-btn {
  position: absolute;
  top: calc(50% - 28px);
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-fixed-dim);
  color: var(--surface);
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, transform 0.1s;
}
.gallery-btn:hover {
  background: #ffd633;
}
.gallery-btn:active {
  transform: translateY(-50%) scale(0.94);
}
.gallery-btn svg {
  width: 24px;
  height: 24px;
}
.gallery-btn-prev {
  left: -12px;
}
.gallery-btn-next {
  right: -12px;
}
@media (max-width: 600px) {
  .gallery-btn {
    display: none;
  }
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.gallery-dot {
  width: 28px;
  height: 4px;
  background: var(--outline-variant);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.gallery-dot:hover {
  background: var(--outline);
}
.gallery-dot.active {
  background: var(--primary-fixed-dim);
}
