/* ============================================================
   FEROTEC — Multi-Page Erweiterungen zum Pitch-CSS
   ============================================================ */

/* Nav mit Submenüs */
.nav-with-sub { display: flex; align-items: center; gap: 0; }
.nav-with-sub .nav-item { position: relative; }
.nav-with-sub .nav-item > a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-with-sub .nav-item > a:hover { background: rgba(0,0,0,0.05); color: var(--ink); }
.nav-with-sub .nav-item.active > a { color: var(--green); font-weight: 600; }
.nav-arrow { font-size: 10px; opacity: .6; transition: transform .2s; }
.nav-item.has-sub:hover .nav-arrow { transform: rotate(180deg); }

.nav-sub {
  position: absolute; top: 100%; left: 0;
  min-width: 240px; padding: 10px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.18);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility 0s linear .25s;
}
.nav-item.has-sub:hover .nav-sub,
.nav-item.has-sub:focus-within .nav-sub {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .25s, transform .25s;
}
.nav-sub a {
  display: block;
  padding: 10px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-sub a:hover { background: var(--green-soft); color: var(--green-deep); }
.nav-sub a.active { color: var(--green); font-weight: 600; }

/* ============ Page-Header (Hero für Unterseiten) ============ */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(180deg, var(--green-tint), var(--bg));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.page-hero h1 em { font-style: normal; color: var(--green); font-weight: 300; }
.page-hero .lede {
  margin-top: 20px; max-width: 480px;
  color: var(--muted); font-size: 18px;
}
.page-hero-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 30px 60px -20px rgba(20,24,31,0.25);
}
.page-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumbs {
  font-size: 13px; color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs .sep { margin: 0 6px; opacity: .5; }

/* ============ Generischer Content-Block ============ */
.content-block {
  padding: 80px 0;
}
.content-block + .content-block { border-top: 1px solid var(--line); }
.content-grid {
  display: grid; gap: 60px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.content-grid.reverse > div:first-child { order: 2; }
.content-grid .img-frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-2);
}
.content-grid .img-frame img { width: 100%; height: 100%; object-fit: cover; }
.content-grid h2 { font-family: var(--serif); }
.content-grid p { color: var(--muted); font-size: 16px; margin-top: 16px; line-height: 1.65; }

/* Spezifikations-Liste (z.B. Profile/U-Werte) */
.spec-table {
  margin-top: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec-table > div {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--line-2);
}
.spec-table > div:last-child { border-bottom: none; }
.spec-table .lbl { color: var(--muted); }
.spec-table .val { font-weight: 600; color: var(--ink); }

/* Karten-Grid (z.B. Produktvarianten) */
.cards-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.12);
  border-color: var(--green);
}
.card-img {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px; }
.card-body h3 { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.card-body p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.card-meta {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.card-meta .pill {
  font-size: 11px; font-weight: 600;
  padding: 3px 8px;
  background: var(--green-soft);
  color: var(--green-deep);
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* CTA-Strip (z.B. „Konfigurator öffnen" am Ende einer Seite) */
.cta-strip {
  margin: 80px 0 0;
  padding: 56px;
  background: var(--ink-2);
  color: white;
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.cta-strip h3 { font-family: var(--serif); font-size: 32px; color: white; max-width: 520px; }
.cta-strip p { color: rgba(255,255,255,0.65); margin-top: 8px; max-width: 520px; }

/* ============ Galerie-Seite ============ */
.full-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.full-gallery .item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink-2);
  cursor: zoom-in;
  position: relative;
}
.full-gallery .item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.full-gallery .item:hover img { transform: scale(1.08); }
.full-gallery .item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .25s;
}
.full-gallery .item:hover::after { background: rgba(0,0,0,0.15); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}
.lightbox .close, .lightbox .prev, .lightbox .next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: white;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; font-size: 20px;
  transition: background .2s;
}
.lightbox .close:hover, .lightbox .prev:hover, .lightbox .next:hover { background: rgba(255,255,255,0.2); }
.lightbox .close { top: 24px; right: 24px; }
.lightbox .prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 13px;
}

/* ============ Konfigurator-Iframe-Modal ============ */
.konfig-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,24,31,0.92);
  backdrop-filter: blur(8px);
  display: none;
  padding: 24px;
}
.konfig-modal.open { display: flex; flex-direction: column; }
.konfig-modal-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 8px 16px;
  color: white;
  font-size: 14px;
}
.konfig-modal-bar strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.konfig-modal-bar .actions { display: flex; gap: 8px; }
.konfig-modal-bar button {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.konfig-modal-bar button:hover { background: rgba(255,255,255,0.2); }
.konfig-modal iframe {
  flex: 1;
  border: 0;
  border-radius: var(--radius-lg);
  background: white;
  width: 100%;
}

/* ============ Reparaturanfrage Multi-Step ============ */
.rep-shell { max-width: 760px; margin: 60px auto; }
.rep-progress {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 40px;
}
.rep-progress .step {
  flex: 1; height: 6px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.rep-progress .step.done, .rep-progress .step.current {
  background: var(--green);
}
.rep-progress .step.current::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 1.6s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { transform: translateX(-100%); } 50% { transform: translateX(100%); } }

.rep-step {
  display: none;
  animation: fadeIn .4s;
}
.rep-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.rep-step h2 { font-family: var(--serif); font-size: 32px; margin-bottom: 8px; }
.rep-step .step-sub { color: var(--muted); margin-bottom: 32px; }

.rep-options {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.rep-options button {
  padding: 24px 16px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  font-family: inherit; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.rep-options button:hover { border-color: var(--green); transform: translateY(-2px); }
.rep-options button.selected { border-color: var(--green); background: var(--green-soft); color: var(--green-deep); }
.rep-options button .icon { display: block; font-size: 32px; margin-bottom: 8px; }
.rep-options button .desc { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; }

.rep-quickpick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rep-quickpick button {
  text-align: left;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit; font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.rep-quickpick button:hover { border-color: var(--green); }
.rep-quickpick button.selected { background: var(--green-soft); border-color: var(--green); color: var(--green-deep); font-weight: 600; }

.rep-fileup {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.rep-fileup:hover { border-color: var(--green); background: var(--green-tint); }
.rep-fileup input { display: none; }
.rep-fileup strong { display: block; font-size: 16px; }
.rep-fileup span { font-size: 13px; color: var(--muted); margin-top: 6px; display: block; }
.rep-fileup .preview {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 20px;
}
.rep-fileup .preview img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.rep-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rep-fields .full { grid-column: 1 / -1; }
.rep-fields label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.04em; }
.rep-fields input, .rep-fields textarea {
  width: 100%;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit; font-size: 14px;
}
.rep-fields input:focus, .rep-fields textarea:focus { outline: none; border-color: var(--green); }

.rep-nav {
  display: flex; justify-content: space-between;
  margin-top: 40px;
}

.rep-summary {
  background: var(--green-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.rep-summary .num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--green-deep);
}
.rep-summary .ticket {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 16px;
  background: white;
  border: 1px dashed var(--green);
  border-radius: 10px;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.04em;
}

/* ============ Burger + Mobile-Drawer ============ */
.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  border: 0;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  transition: background .2s;
}
.burger:hover { background: rgba(0,0,0,0.08); }
.burger span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.burger.close {
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  background: transparent;
}
.burger.close:hover { background: rgba(0,0,0,0.06); }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: white;
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.25);
  z-index: 60;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(20,24,31,0.4);
  backdrop-filter: blur(4px);
  z-index: 55;
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
.mobile-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav { padding: 16px 0; }
.mnav-group { padding: 0 12px; }
.mnav-top {
  display: block;
  padding: 14px 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 10px;
}
.mnav-top:hover { background: var(--green-soft); color: var(--green-deep); }
.mnav-sub {
  display: flex; flex-direction: column;
  padding: 0 12px 10px 24px;
  gap: 2px;
}
.mnav-sub a {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 8px;
}
.mnav-sub a:hover { background: rgba(0,0,0,0.04); color: var(--ink); }
.mnav-sub a.active { color: var(--green); font-weight: 600; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .page-hero-grid, .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-grid.reverse > div:first-child { order: initial; }
  .full-gallery { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; padding: 32px; }
  .rep-options, .rep-fields { grid-template-columns: 1fr; }
  .nav-with-sub { display: none; }
  .burger { display: inline-flex; }
  .lang-switch { display: none; }
  .header .btn.btn-primary.btn-sm { display: none; }
}
