/* ============================================================
   Bäckerei Hartmann — Main Stylesheet
   Colors: #FFF8E7 bg | #8B6914 accent | #2C1810 text | #C0540A highlight
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background-color: #FFF8E7;
  color: #2C1810;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #C0540A; text-decoration: none; transition: color 0.2s; }
a:hover { color: #8B6914; }

h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: #2C1810;
}

/* ── Personalized Banner ── */
#personalized-banner {
  display: none;
  background: #8B6914;
  color: #FFF8E7;
  text-align: center;
  padding: 10px 20px;
  font-family: 'Source Serif 4', serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-bottom: 3px solid #C0540A;
  position: relative;
  z-index: 9999;
}
#personalized-banner strong { color: #FFE8A3; }

/* ── Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #2C1810;
  color: #FFF8E7;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 9998;
  font-size: 0.88rem;
  border-top: 3px solid #8B6914;
}
#cookie-banner p { flex: 1; min-width: 220px; }
#cookie-banner a { color: #FFD166; }
.cookie-btn {
  background: #C0540A;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Merriweather', serif;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}
.cookie-btn:hover { background: #8B6914; }

/* ── Navigation ── */
.site-header {
  background: #2C1810;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(44,24,16,0.35);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: 'Merriweather', serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #FFF8E7;
  letter-spacing: 0.01em;
}
.nav-logo span { color: #C0540A; }
.nav-logo:hover { color: #FFE8A3; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: #FFE8A3;
  font-family: 'Source Serif 4', serif;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: #C0540A;
  border-bottom-color: #C0540A;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #FFF8E7;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, #3D1F0A 0%, #6B3A1F 45%, #8B6914 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(192,84,10,0.18) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFF8E7' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(192,84,10,0.25);
  color: #FFD166;
  font-family: 'Source Serif 4', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 2px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,209,102,0.3);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: #FFF8E7;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(44,24,16,0.5);
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: #FFE8A3;
  font-style: italic;
  margin-bottom: 40px;
}
.btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 4px;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: #C0540A;
  color: #fff;
  border-color: #C0540A;
}
.btn-primary:hover {
  background: #A3440A;
  border-color: #A3440A;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(192,84,10,0.4);
}
.btn-outline {
  background: transparent;
  color: #FFF8E7;
  border-color: rgba(255,248,231,0.5);
  margin-left: 14px;
}
.btn-outline:hover {
  background: rgba(255,248,231,0.1);
  border-color: #FFF8E7;
  color: #FFF8E7;
}
.hero-scroll {
  margin-top: 56px;
  color: rgba(255,232,163,0.6);
  font-size: 1.6rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Section Wrapper ── */
.section {
  padding: 80px 24px;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  display: block;
  font-family: 'Source Serif 4', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C0540A;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 16px;
  color: #2C1810;
}
.section-lead {
  font-size: 1.05rem;
  color: #5A3A28;
  max-width: 620px;
  margin-bottom: 52px;
}

/* ── Highlights Grid ── */
.highlights {
  background: #FFF8E7;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.highlight-card {
  background: #fff;
  border: 1px solid #E8D5A3;
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}
.highlight-card:hover {
  box-shadow: 0 8px 28px rgba(139,105,20,0.15);
  transform: translateY(-4px);
}
.highlight-icon {
  font-size: 3rem;
  margin-bottom: 18px;
  display: block;
}
.highlight-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #8B6914;
}
.highlight-card p {
  font-size: 0.95rem;
  color: #5A3A28;
  line-height: 1.65;
}

/* ── Story Section ── */
.story {
  background: #3D1F0A;
  color: #FFF8E7;
}
.story .section-title { color: #FFE8A3; }
.story .section-label { color: #C0540A; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.story-text p {
  color: #EAD5B0;
  margin-bottom: 20px;
  font-size: 1rem;
}
.story-text p:last-child { margin-bottom: 0; }
.story-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.story-fact {
  background: rgba(255,248,231,0.07);
  border: 1px solid rgba(255,248,231,0.12);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
}
.story-fact-number {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #C0540A;
  display: block;
  margin-bottom: 6px;
}
.story-fact-label {
  font-size: 0.85rem;
  color: #EAD5B0;
  letter-spacing: 0.05em;
}

/* ── Hours & Location ── */
.info-section {
  background: #FFF0D0;
  border-top: 4px solid #E8D5A3;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.info-box h3 {
  font-size: 1.15rem;
  color: #8B6914;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-box h3 .icon { font-size: 1.3rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td {
  padding: 6px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid #E8D5A3;
  color: #2C1810;
}
.hours-table td:first-child { color: #5A3A28; font-weight: 600; padding-right: 20px; }
.hours-table tr:last-child td { border-bottom: none; }
.address-block p { font-size: 0.97rem; color: #2C1810; margin-bottom: 6px; }
.address-block a { color: #C0540A; font-weight: 600; }

/* ── Sortiment Page ── */
.sortiment-hero {
  background: linear-gradient(135deg, #3D1F0A 0%, #6B3A1F 60%, #8B6914 100%);
  padding: 90px 24px 70px;
  text-align: center;
}
.sortiment-hero h1 { color: #FFF8E7; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.sortiment-hero p { color: #FFE8A3; font-style: italic; font-size: 1.1rem; }

.product-section {
  padding: 70px 24px;
}
.product-section:nth-child(even) { background: #FFF0D0; }

.product-section-header {
  max-width: 1100px;
  margin: 0 auto 44px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  border-bottom: 2px solid #E8D5A3;
  padding-bottom: 20px;
}
.product-section-icon { font-size: 2.4rem; }
.product-section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #2C1810;
}
.product-section-header p {
  font-size: 0.92rem;
  color: #8B6914;
  font-style: italic;
  margin-top: 4px;
}

.products-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid #E8D5A3;
  border-radius: 8px;
  padding: 26px 22px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.product-card:hover {
  box-shadow: 0 6px 22px rgba(139,105,20,0.14);
  transform: translateY(-3px);
}
.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.product-card h3 { font-size: 1.05rem; color: #2C1810; }
.product-price {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #C0540A;
  font-size: 0.97rem;
  white-space: nowrap;
  margin-left: 10px;
}
.product-card p {
  font-size: 0.88rem;
  color: #5A3A28;
  line-height: 1.6;
}
.badge {
  display: inline-block;
  background: #FFE8A3;
  color: #8B6914;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-top: 10px;
}
.badge-seasonal { background: #FFDCC0; color: #C0540A; }

/* ── Kontakt Page ── */
.kontakt-hero {
  background: linear-gradient(135deg, #3D1F0A 0%, #6B3A1F 60%, #8B6914 100%);
  padding: 90px 24px 70px;
  text-align: center;
}
.kontakt-hero h1 { color: #FFF8E7; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.kontakt-hero p { color: #FFE8A3; font-style: italic; font-size: 1.1rem; }

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  align-items: start;
}
.kontakt-info h2 {
  font-size: 1.6rem;
  margin-bottom: 28px;
  color: #8B6914;
}
.kontakt-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.kontakt-detail-icon {
  font-size: 1.5rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.kontakt-detail-text h4 {
  font-size: 0.9rem;
  color: #8B6914;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.kontakt-detail-text p,
.kontakt-detail-text a {
  font-size: 0.97rem;
  color: #2C1810;
}
.kontakt-detail-text a { color: #C0540A; }

.business-note {
  background: #FFF0D0;
  border: 2px solid #E8D5A3;
  border-left: 5px solid #C0540A;
  border-radius: 0 8px 8px 0;
  padding: 20px 22px;
  margin-top: 32px;
}
.business-note h4 { font-size: 0.95rem; color: #C0540A; margin-bottom: 6px; }
.business-note p { font-size: 0.88rem; color: #5A3A28; }

/* ── Contact Form ── */
.contact-form-box {
  background: #fff;
  border: 1px solid #E8D5A3;
  border-radius: 10px;
  padding: 40px 36px;
  box-shadow: 0 4px 18px rgba(139,105,20,0.1);
}
.contact-form-box h2 {
  font-size: 1.5rem;
  margin-bottom: 28px;
  color: #2C1810;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-family: 'Merriweather', serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5A3A28;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #D4B896;
  border-radius: 5px;
  font-family: 'Source Serif 4', serif;
  font-size: 0.97rem;
  color: #2C1810;
  background: #FFFDF5;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #8B6914;
  box-shadow: 0 0 0 3px rgba(139,105,20,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit {
  width: 100%;
  padding: 14px;
  background: #C0540A;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.form-submit:hover {
  background: #A3440A;
  transform: translateY(-2px);
}
.form-note {
  font-size: 0.8rem;
  color: #8B6914;
  margin-top: 12px;
  text-align: center;
}

/* ── Divider ── */
.divider {
  text-align: center;
  color: #C0540A;
  font-size: 1.4rem;
  letter-spacing: 12px;
  padding: 8px 0;
  opacity: 0.5;
}

/* ── Footer ── */
.site-footer {
  background: #1A0D06;
  color: #A08060;
  text-align: center;
  padding: 40px 24px;
  font-size: 0.88rem;
}
.site-footer a { color: #C0540A; }
.site-footer a:hover { color: #FFE8A3; }
.footer-logo {
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #FFF8E7;
  margin-bottom: 8px;
}
.footer-logo span { color: #C0540A; }
.footer-tagline { font-style: italic; color: #7A5C40; margin-bottom: 20px; font-size: 0.9rem; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { color: #A08060; font-size: 0.85rem; }
.footer-links a:hover { color: #FFE8A3; }
.footer-copy { border-top: 1px solid #2C1810; padding-top: 18px; margin-top: 8px; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: #2C1810;
    padding: 12px 0 20px;
    border-bottom: 3px solid #8B6914;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 13px 28px;
    border-bottom: none;
  }
  .hamburger { display: flex; }
  .site-header { position: relative; }

  .hero { min-height: 70vh; }
  .btn-outline { margin-left: 0; margin-top: 12px; display: block; text-align: center; }

  .story-facts { grid-template-columns: 1fr 1fr; }

  .contact-form-box { padding: 28px 20px; }

  .product-section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
  .section { padding: 56px 18px; }
  .story-facts { grid-template-columns: 1fr; }
  .info-grid { gap: 28px; }
}


/* ── Banner-Fix: Navbar immer über dem Banner ──────────────────── */
.site-header,
.navbar,
nav.navbar,
header.header,
.header {
  z-index: 100000 !important;
}
#personalized-banner {
  z-index: 99998 !important;
}
@media (max-width: 768px) {
  /* Logo umbrechen statt abschneiden */
  .nav-logo,
  .navbar__logo-name,
  .logo,
  .brand-name,
  .brand-main,
  .nav-brand {
    white-space: normal !important;
    word-break: break-word !important;
    font-size: clamp(0.85rem, 3.5vw, 1.2rem) !important;
    max-width: calc(100vw - 80px) !important;
  }
}