/* ==========================================================================
   Boxenstop B73 – Page Styles
   Sections: hero, service blocks, services grid, gallery, news, contact, legal
   ========================================================================== */

/* -------- Shared section utilities -------- */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.section-tight {
  max-width: 1000px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: 6px 14px;
  background: rgba(139, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.2;
  font-weight: 700;
}

/* ==========================================================================
   HERO (used on Home + Gallery + Leistungen)
   ========================================================================== */
.hero {
  position: relative;
  margin-top: var(--header-height);
  height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Overlay disabled — video shown as-is */
.hero-overlay {
  display: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 4px 20px rgba(0,0,0,0.7);
  font-weight: 700;
  letter-spacing: 1px;
  animation: heroReveal 0.9s var(--ease);
}

.hero p {
  font-size: clamp(16px, 2vw, 22px);
  margin-bottom: 36px;
  max-width: 720px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 3px 12px rgba(0,0,0,0.7);
  animation: heroReveal 1.1s var(--ease) 0.2s both;
}

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

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  padding: 16px 34px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 2px solid #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: var(--shadow-brand);
  animation: heroReveal 1.3s var(--ease) 0.4s both;
}

.cta-button:hover {
  background: #fff;
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.hero-scaled {  /* Leistungen page — matches original 60vh with fill */
  height: 60vh;
}
.hero-scaled .hero-video {
  object-fit: fill;
}

/* ==========================================================================
   FEATURE BLOCK (TÜV / Schlüsseldienst / Content)
   ========================================================================== */
.feature-block {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 50px;
  align-items: center;
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  transition: var(--transition);
}

.feature-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-block--reverse {
  grid-template-columns: 1fr 400px;
}

.feature-block__image {
  position: relative;
}

.feature-block__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Two-photo grid inside a feature-block image container (Abschleppdienst) */
.image-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.image-duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.neu-sticker {
  position: absolute;
  top: -12px;
  right: -12px;
  background: linear-gradient(135deg, #ffcc00, #ff6600);
  color: #1a1a1a;
  font-weight: 900;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
  border: 2px solid #fff;
  letter-spacing: 1px;
  animation: sticker-pulse 2.5s ease-in-out infinite;
}

@keyframes sticker-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

.feature-block__content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.feature-block__content p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
  color: var(--color-text);
}

.feature-block__content p strong {
  color: var(--color-primary-dark);
}

.feature-block__content .cta-button {
  margin-top: 8px;
  animation: none;
}

/* Simple two-column content block */
.content-block {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.content-block img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--color-primary);
  margin-bottom: 18px;
  font-weight: 700;
}

.content-block p {
  font-size: 16px;
  line-height: 1.7;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  padding: 80px 20px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-section .section-title { text-align: center; }
.contact-section > .lead {
  text-align: center;
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.contact-map {
  text-align: center;
  margin: 0 0 40px;
}
.contact-map img {
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: inline-block;
}

.info-block {
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 220px 1fr;
  row-gap: 24px;
  column-gap: 40px;
  align-items: start;
  margin-bottom: 30px;
}

.info-block h3 {
  color: var(--color-primary);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-block h3 i {
  color: var(--color-primary);
  font-size: 18px;
}

.info-block p,
.info-block address {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  font-style: normal;
}

.info-block a {
  color: var(--color-primary);
  font-weight: 700;
  transition: color var(--transition);
}
.info-block a:hover { color: var(--color-primary-hover); text-decoration: underline; }

.opening-hours p { margin: 4px 0; }
.opening-hours .note {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 10px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0 20px;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}
.contact-actions a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}
.contact-actions a i { font-size: 20px; }

/* ==========================================================================
   SERVICES GRID (Leistungen)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 60px auto;
  padding: 0 20px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-surface);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-item:hover::before { transform: scaleY(1); transform-origin: top; }

.service-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: contain;
}

.service-content h3 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--color-primary);
  margin-bottom: 4px;
  font-weight: 700;
}
.service-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.service-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-section { padding: 80px 20px; max-width: var(--container); margin: 0 auto; }
.gallery-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  height: 380px;
  background: var(--color-surface);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item::after {
  content: "\f00e"; /* fa search-plus */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: #fff;
  font-size: 24px;
  background: rgba(139, 0, 0, 0.9);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition);
  z-index: 1;
}
.gallery-item:hover::before { background: rgba(0, 0, 0, 0.3); }
.gallery-item:hover::after { transform: translate(-50%, -50%) scale(1); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 40px;
  animation: modalFade var(--transition);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox .close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.lightbox .close:hover { background: rgba(255, 255, 255, 0.25); transform: rotate(90deg); }

/* ==========================================================================
   NEWS / ÜBER UNS
   ========================================================================== */
.news-container {
  padding: 80px 20px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.news-container > h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  color: var(--color-primary);
  margin: var(--header-height) 0 60px;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
}

.highlight {
  display: grid;
  grid-template-columns: 220px 380px 1fr;
  gap: 36px;
  margin-bottom: 60px;
  align-items: start;
  background: var(--color-surface);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.highlight:hover { box-shadow: var(--shadow-lg); }

.thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.thumb-box {
  background: var(--color-surface-alt);
  padding: 4px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.thumb-box:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
}
.thumb-box.active { border-color: var(--color-primary); }

.thumb-box img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.slideshow {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.slideshow img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: opacity var(--transition);
}

.highlight-text h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  color: var(--color-primary);
  margin-bottom: 18px;
  font-weight: 700;
}
.highlight-text p {
  font-size: 16px;
  line-height: 1.75;
}

/* ==========================================================================
   IMPRESSUM / LEGAL
   ========================================================================== */
.main-content {
  max-width: 1000px;
  margin: calc(var(--header-height) + 40px) auto 60px;
  padding: 40px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--color-primary);
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--color-primary);
}

.legal-section {
  margin-bottom: 40px;
  padding: 32px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  color: var(--color-primary);
  margin-bottom: 24px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.legal-section h3 {
  font-size: 20px;
  color: var(--color-primary);
  margin: 24px 0 14px;
  font-weight: 700;
}

.legal-section h4 {
  font-size: 17px;
  color: var(--color-text);
  margin: 18px 0 10px;
  font-weight: 700;
}

.legal-section p,
.legal-section address,
.legal-section ul {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-section address {
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-style: normal;
  display: inline-block;
}

.legal-section a { color: var(--color-primary); font-weight: 600; }
.legal-section a:hover { text-decoration: underline; color: var(--color-primary-hover); }
.legal-section ul { padding-left: 24px; }
.legal-section li { margin-bottom: 6px; }

.highlight-box {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 20px 0;
}
.highlight-box h4 { color: #fff; margin-bottom: 8px; }
.highlight-box a { color: var(--color-accent); }

/* Table of contents in Datenschutz */
.toc {
  padding-left: 24px;
  margin-top: 8px;
  columns: 1;
}
.toc li {
  margin-bottom: 10px;
  font-size: 15px;
  padding-left: 4px;
}
.toc a {
  color: var(--color-primary);
  font-weight: 600;
  transition: var(--transition);
}
.toc a:hover {
  color: var(--color-primary-hover);
  padding-left: 4px;
}

@media (min-width: 700px) {
  .toc { columns: 2; column-gap: 40px; }
}

/* All-caps legal emphasis blocks (DSGVO article 21 warnings) */
.legal-emphasis {
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.7 !important;
  letter-spacing: 0.3px;
  background: #fff8e6;
  border-left: 4px solid var(--color-accent);
  padding: 18px 22px !important;
  border-radius: 4px;
  color: #444 !important;
  margin-bottom: 18px !important;
}

/* "Stand: …" line at the bottom of Datenschutz */
.legal-updated {
  text-align: center;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 40px 0 20px;
  padding: 16px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--color-border);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .section, .contact-section, .gallery-section, .news-container {
    padding: 50px 16px;
  }

  .feature-block,
  .feature-block--reverse {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
    border-top-width: 3px;
  }
  .feature-block__image { max-width: 240px; margin: 0 auto; }
  .image-duo { gap: 6px; max-width: 260px; margin: 0 auto; }
  .feature-block__content { text-align: center; }
  .feature-block__content h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .feature-block__content p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .feature-block__content .cta-button {
    margin: 8px auto 0;
    padding: 12px 22px;
    font-size: 13px;
  }

  .content-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
    text-align: center;
  }
  .content-block img { max-width: 300px; margin: 0 auto; }

  .info-block {
    grid-template-columns: 1fr;
    padding: 28px;
    row-gap: 8px;
  }
  .info-block h3 { margin-top: 16px; }
  .info-block h3:first-child { margin-top: 0; }

  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions a { justify-content: center; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-item { padding: 20px; }
  .service-icon { width: 64px; height: 64px; }

  .gallery { grid-template-columns: 1fr; }
  .gallery-item { height: 280px; }

  .highlight {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .highlight-text { text-align: center; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .thumb-box img { height: 60px; }
  .slideshow img { height: 240px; }

  .main-content { margin-left: 12px; margin-right: 12px; padding: 24px; }
  .legal-section { padding: 20px; }

  .hero { height: 50vh; }
  .hero-scaled { height: 40vh; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .cta-button { padding: 12px 24px; font-size: 14px; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .gallery-item { height: 240px; }
}