/* ========================================
   SOFTEIS HENDRICH - MAIN STYLESHEET
   ======================================== */

/* ========================================
   1. BASE STYLES
   ======================================== */

body {
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
  background-color: #EBD5A6;
  color: #212529;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: #F45526;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Scroll-Margin für Anker-Sprünge (wegen sticky header) */
section {
  scroll-margin-top: 130px;
}

/* ========================================
   2. NAVIGATION
   ======================================== */

.nav-link {
  color: white !important;
}

.navbar-light .navbar-nav .nav-link {
  color: #F45526 !important;
}

.navbar-toggler {
  border-color: #343a40;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(52,58,64, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ========================================
   3. HERO SECTION (TAGESSORTE)
   ======================================== */

.hero-section {
  background-image: url('public/header_eis_rosa.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 0;
}

.hero-section h1,
.hero-section h2,
#morgen-container h2,
#uebermorgen-container h2,
.sorte-box {
  z-index: 1;
  position: relative;
}

/* ========================================
   4. SORTEN-CONTAINER
   ======================================== */

.sorte-heading {
  color: #F45526;
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  margin-top: 0;
}

.sorte-box {
  font-size: 1.5rem;  
  font-weight: 700;
  line-height: 1.6;
  background: #EBD5A6;
  padding: 1.5rem 2.5rem;
  border-radius: 16px;
  margin-top: 1.5rem;
  display: inline-block;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  position: relative;
  min-width: 280px;
  width: min(480px, calc(100vw - 2rem));
  border: 3px solid #d4a574;
  backdrop-filter: blur(5px);
}

/* Waffelmuster für Sorten-Container */
.sorte-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: 
    linear-gradient(45deg, transparent 48%, rgba(139, 69, 19, 0.12) 48%, rgba(139, 69, 19, 0.12) 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(139, 69, 19, 0.12) 48%, rgba(139, 69, 19, 0.12) 52%, transparent 52%);
  background-size: 15px 15px;
  border-radius: 16px;
  pointer-events: none;
  z-index: 1;
}

.sorte-content {
  color: #000000;
}

/* Spezialsorte hervorgehoben */
.sorte-special {
  font-weight: 900;
  font-size: 1.1em;
}

/* Standardsorte dezenter */
.sorte-standard {
  font-weight: 400;
  opacity: 0.65;
  font-size: 0.95em;
}

/* Container für Morgen/Übermorgen */
#morgen-container,
#uebermorgen-container {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  animation: fadeInUp 1s ease forwards;
}

/* Hinweis-Box im Hero-Bereich */
.hero-hinweis-box {
  background-color: #f6e7c3;
  color: #000000;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  max-width: 700px;
  font-size: 1.1rem;
  box-shadow: 0 0 35px rgba(0,0,0,0.35);
  z-index: 1;
  position: relative;
  margin-top: 3rem !important;
}

/* ========================================
   5. ANGEBOT SECTION
   ======================================== */

#angebot {
  background-color: #EBD5A6;
}

.menu-sign {
  background-color: #f6e7c3;
  color: #F45526;
  border-radius: 20px;
  padding: 1.5rem 1rem;
  max-width: 460px;
  margin: 2rem auto;
  transform: scale(0.95);
  box-shadow: 0 0 50px rgba(0,0,0,0.1);
  position: relative;
}

.menu-sign h2 {
  font-size: 1.75rem;
  font-weight: bold;
  color: #F45526;
}

.menu-sign h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  color: #F45526;
}

.menu-sign p {
  margin: 0.25rem 0;
  color: #000000;
}

#angebot-fussnote {
  color: #000000;
}

#angebot-info {
  color: #000000;
}

/* ========================================
   6. NEWS / AKTUELLES SECTION
   ======================================== */

#aktuelles {
  color: #F45526;
  position: relative;
  background-image: url('public/header_eis_rosa.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}
#aktuelles::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 0;
}
#aktuelles .container {
  position: relative;
  z-index: 1;
}

.news-card {
  background-color: #f6e7c3;
  color: #212529;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 0 50px rgba(0,0,0,0.1);
}

.news-card h3 {
  color: #F45526;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.news-card p {
  color: #212529;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ========================================
   7. KONTAKT SECTION
   ======================================== */

.kontakt-info h6 {
  color: #F45526;
}

.kontakt-info p {
  font-size: 1.1rem;
  color: #212529;
}

.kontakt-info .btn {
  background-color: #F45526;
  color: white;
  font-weight: 600;
  border: none;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  border-radius: 0.375rem;
}

.store-badges {
  display: flex;
  align-items: center;
}

.store-badges img {
  height: 50px;
  margin-top: 10px;
  display: block;
}

/* ========================================
   8. CARDS
   ======================================== */

.card {
  background-color: #f6e7c3;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
}

.card-title {
  color: #F45526 !important;
  font-size: 1.25rem;
}

.card-text {
  color: #212529;
  font-size: 1.1rem;
}

.card .text-muted {
  color: #000;
  font-size: 1rem;
}

/* ========================================
   9. FOOTER
   ======================================== */

.footer-link {
  color: #212529;
  text-decoration: none;
  font-size: 1.15rem;
  margin-right: 1rem;
}

.footer-link:hover {
  text-decoration: none;
}

/* ========================================
   10. UTILITY CLASSES
   ======================================== */

.image-grid img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* ========================================
   11. ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   12. IMPRESSUM & DATENSCHUTZ PAGES
   ======================================== */

body.legal-page {
  font-family: 'Montserrat', sans-serif;
}

body.legal-page footer {
  font-family: Arial, Helvetica, sans-serif;
}

.content {
  max-width: 800px;
  margin: 4rem auto;
  background: #fff7e5;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.content h1,
.content h2,
.content h3 {
  color: #F45526;
}


/* ========================================
   13. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .sorte-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .sorte-box {
    font-size: 1.4rem;
    line-height: 1.7;
    padding: 1.5rem 2rem;
    min-width: 280px;
    max-width: 100%;
  }
  
  #kontakt img {
    height: 300px !important;
  }
  
  .content {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }
}

/* ========================================
   RESPONSIVE ANPASSUNGEN
   ======================================== */

@media (max-width: 768px) {
  /* Logos auf mobilen Geräten viel kleiner */
  header img[alt="Softeis Logo"] {
    height: 50px !important;
  }
  
  header img[alt="Softeis Hendrich Schriftzug"] {
    height: 45px !important;
  }
  
  /* Hauptlogo auf Mobile nicht absolut positionieren */
  header .position-absolute.start-50 {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    margin: 0.5rem 0 !important;
  }
  
  /* Header auf mobilen Geräten kompakter */
  header.navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  
  /* Header Container auf Mobile als Column */
  header .container-fluid {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  /* Toggler Button rechts oben */
  header .navbar-toggler {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
  }
  
  /* Navigation auf Mobile volle Breite */
  header .navbar-collapse {
    width: 100% !important;
    margin-top: 1rem !important;
  }
  
  /* Menü-Items auf Mobile untereinander */
  header .navbar-nav {
    flex-direction: column !important;
    width: 100% !important;
  }
  
  header .navbar-nav li {
    width: 100% !important;
    text-align: left !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
  }
  
  /* Öffnungszeiten auf mobilen Geräten normal formatieren */
  header .navbar-nav li:last-child {
    font-size: 0.85rem !important;
    text-align: left !important;
    margin-left: 0 !important;
    line-height: 1.4 !important;
  }
}

/* Fix für Angebot-Anker */
#angebot {
  scroll-margin-top: 140px;
}
