/* ==========================================================================
   mikamoco GERMANY - Static Site Styles
   ========================================================================== */

/* ---------- Font ---------- */
@font-face {
  font-family: "Futura Std Book";
  font-style: normal;
  font-weight: normal;
  src: url("../fonts/Futura_Std_Book.ttf") format("truetype");
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Futura Std Book", "Century Gothic", "Futura", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #37aa9b;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ---------- Accessibility: Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  font-size: 14px;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ---------- Accessibility: Focus Styles ---------- */
*:focus-visible {
  outline: 2px solid #37aa9b;
  outline-offset: 2px;
}

/* Remove outline for mouse clicks, keep for keyboard */
*:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- Site Container ---------- */
.site-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.navbar-wrapper.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar {
  padding: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
}

/* Desktop Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 14px 18px;
  font-size: 20px;
  color: #999;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-item > a:hover {
  color: #37aa9b;
}

.nav-item.active > a {
  color: #000;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e5e5;
  z-index: 1001;
  padding: 8px 0;
}

.dropdown-narrow {
  min-width: 150px;
  max-width: 150px;
}

.nav-item:hover > .dropdown {
  display: block;
}

.dropdown ul {
  list-style: none;
}

.dropdown ul li a {
  display: block;
  padding: 6px 18px;
  font-size: 15px;
  color: #555;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.dropdown ul li a:hover,
.dropdown ul li.active a {
  background: #f5f5f5;
  color: #37aa9b;
}

/* ---------- Search ---------- */
.nav-search {
  margin-left: auto;
  padding-right: 10px;
}

.search-wrapper {
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-input {
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  width: 160px;
  transition:
    border-color 0.2s ease,
    width 0.3s ease;
  background: transparent;
}

.search-input:focus {
  border-color: #37aa9b;
  width: 220px;
}

.search-input::placeholder {
  color: #aaa;
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  margin-top: 4px;
}

.search-results[hidden] {
  display: none;
}

.search-results .search-result-item {
  display: block;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s ease;
  color: #444;
}

.search-results .search-result-item:hover {
  background: #f8f8f8;
  color: #37aa9b;
}

.search-results .search-result-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 2px;
}

.search-results .search-result-excerpt {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

.search-results .search-no-results {
  padding: 14px 16px;
  font-size: 13px;
  color: #999;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 15px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #444;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* ==========================================================================
   Header / Logo
   ========================================================================== */

.site-header {
  padding: 40px 0 20px;
  text-align: center;
}

.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: block;
  margin: 0 auto;
  max-width: 356px;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Homepage Full-Width Slideshow
   ========================================================================== */

.homepage-slideshow {
  padding: 100px 40px 0 40px;
}

/* ---------- Slideshow ---------- */
.slideshow {
  position: relative;
  overflow: hidden;
  background: #f9f9f9;
}

.slideshow-track {
  position: relative;
  width: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Arrows */
.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  padding: 8px 14px;
  color: #333;
  z-index: 10;
  transition: background 0.2s ease;
}

.slideshow-arrow:hover {
  background: rgba(255, 255, 255, 0.95);
}

.arrow-prev {
  left: 0;
}

.arrow-next {
  right: 0;
}

/* Pagination Dots */
.slideshow-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
}

.slideshow-pagination .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0;
}

.slideshow-pagination .dot.active {
  background: #666;
}

/* ==========================================================================
   Product Tiles (2x2 Grid)
   ========================================================================== */

.product-tiles {
  padding: 0;
}

.tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 25px;
  row-gap: 0;
  padding: 0 40px;
}

.tile {
  text-align: center;
  margin-bottom: 25px;
}

.tile-title {
  font-family: inherit;
  font-size: 18px;
  font-weight: normal;
  color: #333;
  margin: 20px 0 10px;
}

.tile a {
  display: block;
}

.tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.tile a:hover img {
  opacity: 0.85;
}

/* ==========================================================================
   Product Pages (Slideshow + Description + Gallery + Story)
   ========================================================================== */

.product-hero {
  display: flex;
  gap: 30px;
  padding: 100px 40px 0;
}

.product-media {
  flex: 0 0 66.666%;
  max-width: 66.666%;
}

.product-title {
  font-family: inherit;
  font-size: 18px;
  font-weight: normal;
  color: #333;
  margin-bottom: 12px;
}

.product-description {
  flex: 1;
  padding-top: 30px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.product-description p {
  margin-bottom: 10px;
}

.product-description ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.product-description ul li {
  margin-bottom: 6px;
}

.mikamoco-name {
  margin-top: 2em;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* Product Gallery (2-column image grid) */
.product-gallery {
  padding: 0 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.gallery-col img {
  margin-bottom: 6px;
}

/* Product Story (text with background image) */
.product-story {
  padding: 80px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

.product-story-inner {
  max-width: 100%;
}

.product-story p {
  text-align: justify;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ==========================================================================
   Price Pages (Product Cards + Notes)
   ========================================================================== */

.price-page {
  padding: 30px 40px 0;
}

.price-page-title {
  font-family: inherit;
  font-size: 18px;
  font-weight: normal;
  color: #333;
  margin-bottom: 20px;
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.price-card {
  text-align: center;
}

.price-card img {
  width: 100%;
  height: auto;
  border: 1px solid #000;
  margin-bottom: 0;
}

.price-card-name {
  background: #f5f5f5;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.price-card-price {
  background: #e8e8e8;
  padding: 10px 16px;
  font-size: 14px;
  color: #555;
}

.price-card-feature {
  background: #f5f5f5;
  padding: 8px 16px;
  font-size: 14px;
  color: #555;
  border-top: 1px solid #eee;
}

.price-notes {
  padding: 20px 0 40px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.price-notes p {
  margin-bottom: 4px;
}

.price-notes strong {
  color: #333;
}

/* ==========================================================================
   Page Content (Text-Heavy Pages like AGB, Impressum, etc.)
   ========================================================================== */

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
}

.page-article p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: #555;
}

.page-article p:first-child {
  margin-top: 0;
}

.page-article strong {
  color: #333;
  font-weight: 600;
}

.page-article a {
  color: #37aa9b;
  text-decoration: underline;
  word-break: break-word;
}

.page-article a:hover {
  text-decoration: none;
  opacity: 0.85;
}

.page-article table {
  width: 100%;
  border-collapse: collapse;
}

.page-article td {
  padding: 4px 0;
  vertical-align: top;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 20px 0;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.footer-nav li {
  position: relative;
}

.footer-nav li:not(:last-child)::after {
  content: "|";
  padding: 0 10px;
  color: #bbb;
}

.footer-nav li a {
  transition: color 0.2s ease;
}

.footer-nav li a:hover {
  color: #000;
}

/* ==========================================================================
   Off-Canvas Mobile Menu
   ========================================================================== */

.offcanvas-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.offcanvas-overlay.open {
  display: block;
  opacity: 1;
}

.offcanvas {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #333;
  z-index: 2001;
  overflow-y: auto;
  transition: left 0.3s ease;
  padding: 20px 0;
}

.offcanvas.open {
  left: 0;
}

.offcanvas-nav {
  list-style: none;
}

.offcanvas-parent {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-parent > a,
.offcanvas-header {
  display: block;
  padding: 12px 20px;
  color: #fff;
  font-size: 16px;
}

.offcanvas-header {
  font-weight: normal;
  opacity: 0.7;
  cursor: default;
}

.offcanvas-sub {
  list-style: none;
  padding-bottom: 8px;
}

.offcanvas-sub li a {
  display: block;
  padding: 6px 20px 6px 35px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.15s ease;
}

.offcanvas-sub li a:hover,
.offcanvas-sub li.active a {
  color: #fff;
}

/* ==========================================================================
   Scroll to Top
   ========================================================================== */

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition:
    background 0.2s ease,
    opacity 0.3s ease;
}

.scroll-top::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: 4px;
}

.scroll-top:hover {
  background: rgba(0, 0, 0, 0.6);
}

.scroll-top.visible {
  display: flex;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Visibility helpers */
.desktop-only {
  display: flex;
}

.desktop-large-only {
  display: block;
}

.mobile-only {
  display: none !important;
}

/* Tablet */
@media (max-width: 960px) {
  .site-container {
    max-width: 100%;
  }

  .nav-item > a {
    font-size: 17px;
    padding: 14px 12px;
  }

  .desktop-large-only {
    display: none;
  }

  .homepage-slideshow {
    padding: 40px 20px 0;
  }

  .product-hero {
    padding: 40px 20px 0;
  }

  .product-gallery {
    padding: 0 20px;
  }

  .product-story {
    padding: 40px 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .nav-search {
    display: none;
  }

  .site-header {
    padding: 20px 0 10px;
  }

  .logo {
    max-width: 250px;
  }

  .homepage-slideshow {
    padding: 20px 10px 0;
  }

  .tiles-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }

  .footer-nav li:not(:last-child)::after {
    content: none;
  }

  .price-page {
    padding: 20px 10px 0;
  }

  .product-hero {
    flex-direction: column;
    padding: 20px 10px 0;
  }

  .product-media {
    flex: none;
    max-width: 100%;
  }

  .product-description {
    padding-top: 10px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    padding: 0 10px;
  }

  .product-story {
    padding: 30px 15px;
    background-attachment: scroll;
  }
}
