@charset "utf-8";

/* ==========================================================================
   PROSPEKT / FLIPBOOK STYLESHEET
   Felgenputzer Website
   ========================================================================== */

:root {
  --bg-primary: rgba(20, 20, 20, 1);
  --bg-secondary: #1a1a1e;
  --accent-gold: #c5a059;
  --accent-green: #122c1e;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --shadow-deep: 0 30px 70px rgba(0, 0, 0, 0.85), 0 10px 25px rgba(0, 0, 0, 0.6);
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  font-family: 'Roboto', sans-serif;
  color: var(--text-primary);
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   HEADER AUS STYLE-GENERAL (Prospekt: fixiert bei top: 0)
   ========================================================================== */
#header {
    top: 0;
}

/* ==========================================================================
   HAUPTBÜHNE (STAGE / VIEWPORT)
   ========================================================================== */
.prospekt-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  padding-top: 70px; /* Platz für Header */
  padding-bottom: 80px; /* Platz für Toolbar */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Zentrierter Wrapper für das Flipbook */
.flipbook-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.flipbook-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* ==========================================================================
   TURN.JS FLIPBOOK & SEITEN
   ========================================================================== */
.flipbook {
  position: relative;
  margin: 0 !important;
  box-shadow: var(--shadow-deep);
  border-radius: 3px;
  background-color: transparent !important;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}

.flipbook.on-first-page,
.flipbook.on-last-page {
  box-shadow: none !important;
}

.flipbook.on-first-page .p1,
.flipbook.on-last-page .p8 {
  box-shadow: var(--shadow-deep) !important;
}

/* Buchkanten / Papierschnitt-Effekt (horizontale Stapelung vertikaler Seitenlinien) */
.flipbook::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: -5px;
  width: 5px;
  background: repeating-linear-gradient(
    to right,
    #f2f2f5 0px,
    #f2f2f5 1px,
    #b0b0b6 1px,
    #b0b0b6 2px
  );
  border-radius: 2px 0 0 2px;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.flipbook::after {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  right: -5px;
  width: 5px;
  background: repeating-linear-gradient(
    to right,
    #b0b0b6 0px,
    #b0b0b6 1px,
    #f2f2f5 1px,
    #f2f2f5 2px
  );
  border-radius: 0 2px 2px 0;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Auf Seite 1 (Cover) gibt es links keine Seiten, auf Seite 8 rechts keine Seiten */
.flipbook.on-first-page::before,
.flipbook.on-last-page::after {
  opacity: 0;
  visibility: hidden;
}

/* Einzelne Seiten */
.flipbook .page {
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  cursor: pointer;
}

.flipbook .page.hard {
  background-color: #1a1a1c;
}

/* Subtiler Buchfalz / Mittelknick-Schatten */
.flipbook .page.even::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 35px;
  height: 100%;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.06) 60%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.flipbook .page.odd::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35px;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.06) 60%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

/* Erste Seite (Cover) und letzte Seite (Backcover) haben keinen Innenfalz im geschlossenen Zustand */
.flipbook .p1::after,
.flipbook .p8::after {
  display: none !important;
}

/* ==========================================================================
   NAVIGATIONSPFEILE (LINKS / RECHTS – FELGENPUTZER DESIGN)
   ========================================================================== */
.prospekt-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, visibility 0.35s ease, filter 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: all;
}

.prospekt-arrow.prev-arrow {
  left: 3vw;
}

.prospekt-arrow.next-arrow {
  right: 3vw;
}

.prospekt-arrow .arrow-g,
.prospekt-arrow .arrow-l {
  margin-top: 0;
  cursor: pointer;
}

.prospekt-arrow:hover .arrow-g {
  filter: brightness(1.0);
}

.prospekt-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.prospekt-arrow.disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: default;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ==========================================================================
   UNTERE BEDIENLEISTE (TOOLBAR)
   ========================================================================== */
.prospekt-toolbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 5vw;
	min-height: 60px;
	max-height: 70px;
  background: rgba(20, 20, 20, 1);
  -webkit-box-shadow: 0px 0px 24px 0px #000000; 
	box-shadow: 0px 0px 24px 0px #000000;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 28px;
  z-index: 100;
}

/* Linker Bereich: Titel / Status */
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  width: auto;
  padding-right: 1rem;
}

.brochure-title {
  font-size: 2rem;
	font-family: 'Teko', sans-serif;
	font-weight: 300;
	color: #666;
	line-height: 100%;
	text-transform: uppercase;
  display: none; /* Auf großen Bildschirmen einblenden */
}

/* Mittlerer Bereich: Slider & Seitenanzeige */
.toolbar-center {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  max-width: 500px;
  justify-content: center;
}

.page-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: #444;
  outline: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.page-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  background: rgba(50, 50, 50, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
  filter: brightness(0.4);
}

.page-slider::-webkit-slider-thumb:hover {
  background: rgba(20, 20, 20, 1);
  transform: scale(1.2);
	filter: brightness(1.0);
}

.page-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(50, 50, 50, 1);
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
  filter: brightness(0.4);
}

.page-slider::-moz-range-thumb:hover {
  background: rgba(20, 20, 20, 1);
  transform: scale(1.2);
  filter: brightness(1.0);
}

/* Rechter Bereich: Zusatzbuttons */
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 1rem;
  justify-content: flex-end;
}

.symbol {
  height: 5vw;
  min-height: 60px;
  max-height: 70px;
  width: 5vw;
  min-width: 60px;
  max-width: 70px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  padding: 12%;
  gap: 20%;
  transition: filter 0.3s ease;
  filter: brightness(0.4);
}

.symbol:hover {
	filter: brightness(1.0);
}

.symbol .sbox {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 2px solid white;
}

.symbol .fbox {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(#fff, #fff) 0 0 / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) 0 0 / 2px 100% no-repeat;
}

.symbol .fbox:nth-child(2) { rotate: 90deg; }
.symbol .fbox:nth-child(4) { rotate: 180deg; }
.symbol .fbox:nth-child(3) { rotate: 270deg; }


/* ==========================================================================
   MINI-THUMBNAIL DRAWER / LEISTE (AUFKLAPPBAR)
   ========================================================================== */
.thumbnails-drawer {
  position: fixed;
  bottom: 70px;
  left: 0;
  width: 100vw;
  background: rgb(0,0,0);
  background: -moz-linear-gradient(0deg, rgba(20, 20, 20, 1) 0%, rgba(0,0,0,0) 100%);
  background: -webkit-linear-gradient(0deg, rgba(20, 20, 20, 1) 0%, rgba(0,0,0,0) 100%);
  background: linear-gradient(0deg, rgba(20, 20, 20, 1) 0%, rgba(0,0,0,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#141414",endColorstr="#000000",GradientType=1);
  padding: 16px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-content: safe center;
  gap: 14px;
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  z-index: 99;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #555 rgba(20, 20, 20, 0.85);
}

.thumbnails-drawer::-webkit-scrollbar {
  height: 8px;
}

.thumbnails-drawer::-webkit-scrollbar-track {
  background: rgba(20, 20, 20, 0.85);
  border-radius: 4px;
}

.thumbnails-drawer::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.thumbnails-drawer::-webkit-scrollbar-thumb:hover {
  background: #777;
}

.thumbnails-drawer.open {
  transform: translateY(0);
}

.thumb-item {
  position: relative;
  height: 84px;
  width: calc(84px * var(--page-aspect-ratio, 0.7819));
  min-width: 45px;
  max-width: 130px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  border-radius: 2px;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-item .thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.7rem;
  font-family: 'Roboto Condensed', sans-serif;
  text-align: center;
  padding: 2px 0;
  color: #fff;
}

.thumb-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.thumb-item.active {
  border-color: #ffffff;
  border: 2px solid;
  transform: translateY(-10px);
}

/* ==========================================================================
   HINWEIS-TOOLTIP / PEEL-TIPP
   ========================================================================== */
.hint-badge {
  position: absolute;
  top: 90px;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.5s ease;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hint-badge.fade-out {
  opacity: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN / MEDIA QUERIES
   ========================================================================== */
@media screen and (min-width: 900px) {
  .brochure-title {
    display: block;
  }
}

@media screen and (max-width: 700px) {
  .prospekt-stage {
    padding-top: 75px;
    padding-bottom: 70px;
  }

  .prospekt-arrow {
    /*transform: translateY(-50%) scale(0.65);*/
  }

  .prospekt-arrow:active {
    /*transform: translateY(-50%) scale(0.6);*/
  }

  .prospekt-arrow.prev-arrow {
    left: 2px;
  }

  .prospekt-arrow.next-arrow {
    right: 2px;
  }

  .prospekt-toolbar {
    padding: 0 14px;
  }

  .toolbar-left {
    min-width: auto;
  }

  .toolbar-right {
    min-width: auto;
    gap: 8px;
  }

  .hint-badge {
    top: 85px;
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  .thumb-item {
    height: 64px;
    width: calc(64px * var(--page-aspect-ratio, 0.7819));
  }
}
