/* ============================================
   Eiscafé Livan - Hauptstylesheet
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  color: #474747;
  background-color: #fcfbf7;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* === Layout Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0;
}

/* === Header / Hero === */
.site-header {
  position: relative;
  background-image: url('../images/head-livan.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  z-index: 60;
}

/* === Navigation === */
.nav-wrapper {
  width: 100%;
  padding: 30px 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 100;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.main-nav ul li a {
  display: block;
  padding: 12px 18px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: rgba(250, 221, 155, 1);
}

/* Logo in Header */
.header-logo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  padding-top: 20px;
  padding-bottom: 0;
}

.header-logo img {
  max-width: 250px;
  display: inline-block;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 252, 252, 1);
  border: none;
  color: rgba(214, 166, 77, 1);
  font-size: 24px;
}

/* Desktop: hide mobile-only nav items */
.nav-mobile-only {
  display: none;
}

/* === Sections === */
section {
  position: relative;
}

/* Hero content section (with ice cream images) */
.section-hero-images {
  position: relative;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Squiggly + Verlauf Section */
.section-squiggly {
  position: relative;
  background-image: url('../images/squiggly.png');
  background-size: initial;
  background-position: top;
  background-repeat: no-repeat;
  padding: 80px 0;
}

.section-squiggly::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../media/quixnxt/storage/images/verlauf_1920.png');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.section-squiggly .container,
.section-squiggly .container-fluid {
  position: relative;
  z-index: 1;
}

/* Content Column Card */
.card-col {
  background-image: url('../media/quixnxt/storage/images/hintergrund_490.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
}

/* === Rows & Columns === */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.col {
  padding: 0 10px;
}

.col-full { width: 100%; }
.col-half { width: 50%; }
.col-third { width: 33.3333%; }
.col-quarter { width: 25%; }
.col-fifth { width: 20%; }

/* === Headings === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

h2 {
  font-size: 30px;
  color: #d6b76b;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: 18px;
  color: #474747;
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: 16px;
  color: #474747;
  font-weight: 600;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #d6b76b;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.btn:hover {
  background-color: #c4a355;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

/* === Text styles === */
p {
  margin-bottom: 1em;
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

/* === Footer === */
.site-footer {
  position: relative;
  background-image: url('../media/quixnxt/storage/images/footerneu_1920.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 30px;
  padding: 40px 0 20px;
  color: #ffffff;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  margin: 50px 0 0;
}

.footer-col {
  width: 33.3333%;
  padding: 0 20px;
}

.footer-col p {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 0.5em;
}

.footer-col a {
  color: #ffffff;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #d6b76b;
}

.footer-copyright {
  text-align: center;
  color: #fffefe;
  font-size: 14px;
  padding: 20px 0 10px;
  font-weight: 400;
}

/* === Back to Top === */
.cd-top {
  display: inline-block;
  height: 32px;
  width: 32px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(214, 183, 107, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolyline points='37%2C62 50%2C42 63%2C62' fill='none' stroke='white' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center 50%;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0s 0.3s;
  z-index: 999;
  font-size: 0;
}

.cd-top.visible {
  visibility: visible;
  opacity: 0.8;
  transition: opacity 0.3s;
}

/* === Ice Cream Section (Start page) === */
.hero-ice-section {
  position: relative;
  background-size: cover;
  background-position: top;
  margin-top: -250px;
  z-index: 59;
  min-height: 900px;
  padding-bottom: 0;
}

/* === Start Content Section === */
.start-cards-section {
  padding: 80px 0;
}

.start-card {
  background-image: url('../media/quixnxt/storage/images/hintergrund_490.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px 15px;
  text-align: center;
}

.start-card img {
  width: 75%;
  max-width: 400px;
  margin: 0 auto;
}

/* Start card column – responsive */
.start-card-col {
  width: 33.3333%;
  padding: 0 10px;
}

/* === Start Info Section === */
.start-info-section {
  padding: 80px 0;
  position: relative;
}

.start-info-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  margin-top: -80px;
}

.info-image-col {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.info-text-col {
  padding: 40px 50px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-text-col h2 {
  text-align: right;
  margin-bottom: 20px;
}

.info-text-col p {
  text-align: right;
  color: #474747;
  font-size: 15px;
}

.info-text-col h3 {
  text-align: right;
  font-size: 15px;
  font-weight: 400;
  color: #474747;
  padding-top: 10px;
  padding-bottom: 10px;
}

.info-text-col .btn-wrap {
  text-align: right;
  margin-top: 15px;
}

/* === Sticky Header === */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(252, 248, 232, 0.97);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.sticky-header.visible {
  transform: translateY(0);
}

.sticky-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-logo img {
  max-height: 46px;
  width: auto;
  display: block;
}

.sticky-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.sticky-nav ul li a {
  display: block;
  padding: 8px 14px;
  color: #474747;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.sticky-nav ul li a:hover,
.sticky-nav ul li a.active {
  color: #d6b76b;
}

/* === Alle Sorten === */
.flavors-section {
  padding: 80px 0;
  text-align: center;
}

.flavors-section h2 {
  margin-bottom: 60px;
}

.flavors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.flavor-item {
  width: calc(20% - 16px);
  min-width: 150px;
  text-align: center;
  padding: 15px 10px;
}

.flavor-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #474747;
  margin-bottom: 10px;
}

.flavor-item img {
  width: 90%;
  max-width: 180px;
  margin: 0 auto;
}

/* === Flavor column (alle-sorten responsive grid) === */
.flavor-col {
  width: 25%;
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
}

.flavors-extra-text {
  text-align: center;
  margin: 30px auto;
  max-width: 800px;
}

.flavors-extra-text h3 {
  font-size: 16px;
  font-weight: 400;
  color: #474747;
  margin-bottom: 20px;
}

/* === Über Uns === */
.ueber-uns-section {
  padding: 80px 0;
}

.slider-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
}

.slider-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.slide-content {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  padding: 0 40px;
}

.slide-content h2 {
  color: white;
  font-size: 24px;
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.slider-dot.active {
  background: #ffffff;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 20px;
  padding: 10px;
  z-index: 10;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Photo Carousel */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-item {
  min-width: calc(100% / 3);
  padding: 5px;
}

.carousel-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.about-text {
  text-align: center;
  color: #474747;
  max-width: 800px;
  margin: 0 auto 50px;
  padding: 0 20px;
  font-size: 15px;
}

.blurbs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 50px;
}

.blurb-item {
  width: calc(50% - 15px);
  max-width: 500px;
  text-align: center;
  padding: 20px;
}

.blurb-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  fill: #d6b76b;
}

.blurb-icon svg {
  width: 60px;
  height: 60px;
  fill: #d6b76b;
}

.blurb-item h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #474747;
}

.blurb-item p {
  font-size: 14px;
  color: #474747;
}

/* Über Uns bottom image section */
.ueber-bg-section {
  position: relative;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  min-height: 300px;
}

/* === Leistungen === */
.leistungen-section {
  padding: 80px 0;
  text-align: center;
}

.leistungen-section h2 {
  margin-bottom: 50px;
  margin-top: -50px;
}

.leistungen-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 0;
}

.leistungen-item {
  position: relative;
  overflow: hidden;
}

.leistungen-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.leistungen-item:hover img {
  transform: scale(1.03);
}

.leistungen-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background 0.3s ease;
}

.leistungen-item:hover .leistungen-overlay {
  background: rgba(0, 0, 0, 0.45);
}

.leistungen-title {
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Leistungen bottom image section */
.leistungen-bg-bottom {
  position: relative;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  min-height: 400px;
  margin-top: -80px;
}

/* === Galerie === */
.galerie-section {
  padding: 80px 0;
  text-align: center;
}

.galerie-section h2 {
  margin-top: 220px;
  margin-bottom: 15px;
}

.galerie-section h4 {
  margin-bottom: 50px;
  font-weight: 400;
  color: #474747;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* === Kontakt === */
.kontakt-section {
  padding: 80px 0;
}

.kontakt-info-col {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.icon-list-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.icon-list-item .icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

.icon-list-item .icon svg {
  width: 50px;
  height: 50px;
  fill: #d6b76b;
}

.icon-list-item .text {
  font-size: 16px;
  color: #474747;
  line-height: 1.8;
}

.maps-col {
  padding: 0;
}

.maps-col iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: none;
}

/* === Impressum / Datenschutz === */
.legal-section {
  padding: 80px 0;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(252, 251, 247, 0.8);
}

.legal-content h2 {
  margin-bottom: 30px;
}

.legal-content h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.legal-content p {
  font-size: 14px;
  color: #474747;
  margin-bottom: 15px;
}

/* === Page Intro (other pages) === */
.page-intro {
  position: relative;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  z-index: 59;
  margin-top: -250px;
  padding: 0;
}

.page-intro-spacer {
  height: 500px;
}

/* === Responsive === */
@media (max-width: 1025px) {
  .main-nav ul li a {
    padding: 10px 12px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .site-header {
    min-height: 240px;
  }

  .nav-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 400;
  }

  .main-nav {
    display: block;
    position: fixed;
    top: 0;
    left: -290px;
    width: 280px;
    height: 100%;
    background: rgba(252, 251, 247, 0.97);
    z-index: 300;
    padding: 70px 0 30px;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
  }

  .main-nav.open {
    left: 0;
  }

  .main-nav ul {
    flex-direction: column;
    display: flex;
  }

  .main-nav ul li a {
    color: #d6b76b;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(214, 166, 77, 0.2);
    font-size: 14px;
    display: block;
  }

  .nav-mobile-only {
    display: block;
  }

  .header-logo {
    padding-bottom: 0;
  }

  .header-logo img {
    max-width: 180px;
  }

  .col-quarter,
  .col-third,
  .col-half {
    width: 100%;
  }

  .hero-ice-section {
    margin-top: 0;
    min-height: 400px;
  }

  .page-intro {
    margin-top: 0;
  }

  .start-card-col {
    width: 100%;
  }

  .info-text-col {
    padding: 30px 20px;
    width: 100% !important;
  }

  .info-text-col h2,
  .info-text-col p,
  .info-text-col h3 {
    text-align: center;
  }

  .info-text-col .btn-wrap {
    text-align: center;
  }

  .info-image-col {
    width: 100% !important;
    min-height: 250px;
  }

  .leistungen-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flavor-item {
    width: calc(33.33% - 14px);
    min-width: 100px;
  }

  .flavor-col {
    width: 50%;
  }

  .sticky-header {
    display: none;
  }

  .blurb-item {
    width: 100%;
    max-width: 100%;
  }

  .footer-col {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer-row {
    flex-direction: column;
  }

  h2 { font-size: 24px; }

  .galerie-section h2 {
    margin-top: 0;
  }

  .page-intro-spacer {
    height: 100px;
  }

  .section-squiggly {
    padding: 40px 0;
  }

  .start-info-section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .leistungen-gallery {
    grid-template-columns: 1fr;
  }

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

  .flavor-item {
    width: calc(50% - 10px);
  }

  .flavor-col {
    width: 100%;
  }
}
