:root {
  --bg: #190000;
  --text: #ffffff;
  --primary: #dc2626;
  --primary-contrast: #ffffff;
  --card: #EFB100;
  --border: #e2e8f0;
}

html[data-theme="dark"] {
  --bg: #190000;
  --text: #ffffff;
  --primary: #ef4444;
  --primary-contrast: #0b1220;
  --card: #A67C00;
  --border: #1f2937;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { width: min(1100px, 92%); margin: auto; }
h1, h2, h3 { margin-top: 0; }

.btn {
  padding: .7rem 1.1rem;
  border-radius: .6rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-outline { background: transparent; }
.btn-ghost { 
  background: #ffffff !important; 
  color: #000000 !important; 
  border: 1px solid #ffffff !important; 
  display: inline-flex;
  align-items: flex-end;
  padding: .6rem 1.2rem;
  padding-bottom: 0.36rem;
  font-size: 1.2rem;
}

.site-header { background: var(--bg); position: relative; z-index: 10; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; }
.header-logo { 
  height: 12rem; 
  width: auto; 
  margin: 0.5rem 0 0 6rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  background-color: #E7D3B0;
  padding: 1rem;
  border-radius: 0.5rem;
  position: absolute;
  top: 1rem;
  left: 3rem;
  z-index: 20;
}
.header-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
}

.faq-box {
  background-color: transparent;
  color: #7B3F26;
  padding: 0.8rem 1.2rem;
  border-radius: 0;
  font-size: 1.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.faq-box:hover {
  background-color: transparent;
  color: #7B3F26;
  border: none;
}

.sortiment-box {
  background-color: transparent;
  color: #7B3F26;
  padding: 0.8rem 1.2rem;
  border-radius: 0;
  font-size: 1.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.sortiment-box:hover {
  background-color: transparent;
  color: #7B3F26;
  border: none;
}

/* FAQ Overlay und Box */
.faq-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.faq-box-content {
  background-color: #F5E6CC;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  position: relative;
}

.faq-form h2 {
  color: #7B3F26;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: #7B3F26;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #7B3F26;
  border-radius: 0.3rem;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #190000;
}

.submit-btn {
  background-color: #7B3F26;
  color: #F5E6CC;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #190000;
}

/* Produkttabelle */
.product-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9rem;
}

.product-table th,
.product-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #7B3F26;
  color: #7B3F26;
}

.product-table th {
  background-color: #7B3F26;
  color: #F5E6CC;
  font-weight: 600;
  font-size: 1.2rem;
}

.product-table tr:hover {
  background-color: rgba(123, 63, 38, 0.1);
}

.product-table td:first-child {
  font-weight: 600;
}

.product-table td:last-child {
  text-align: right;
  font-weight: 600;
}
.metzgerei-box {
  background-color: #190000;
  color: #7B3F26;
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  font-size: 2.16rem;
  font-weight: bold;
  text-align: center;
  margin: 0.5rem 0;
  position: relative;
  cursor: pointer;
  user-select: none;
}
.historie-box {
  background-color: #190000;
  color: #7B3F26;
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  margin: 0.5rem 0;
  cursor: pointer;
  user-select: none;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #190000;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 30;
  border-radius: 0.4rem;
  top: 100%;
  left: 0;
  right: 0;
}
.dropdown-content a {
  color: #7B3F26;
  padding: 0.8rem 1rem;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  border-bottom: 1px solid #330000;
}
.dropdown-content a:last-child {
  border-bottom: none;
}
.dropdown-content a:hover {
  background-color: #330000;
  color: #ffffff;
}

/* Kontakt Box */
.contact-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.contact-box {
  background-color: #190000;
  border: 2px solid #7B3F26;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.contact-content h2 {
  color: #7B3F26;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  text-align: center;
}
.contact-content p {
  color: #7B3F26;
  font-size: 1.5rem;
  margin: 1rem 0;
  text-align: center;
  line-height: 1.6;
}
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #7B3F26;
  font-size: 2rem;
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}
.close-btn:hover {
  background-color: #330000;
  color: #ffffff;
}
.telefon-icon {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.haus-icon {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.uhr-icon {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Highlights Box */
.highlights-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.highlights-box {
  background-color: #190000;
  border: 2px solid #7B3F26;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.highlights-content h2 {
  color: #7B3F26;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  text-align: center;
}
.image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  max-height: 400px;
}
.arrow-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: #7B3F26;
  color: #190000;
  border: none;
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-weight: bold;
}
.arrow-btn:hover {
  background-color: #ffffff;
  color: #190000;
  transform: translateY(-50%) scale(1.1);
}

/* Weißer Kasten */
.white-box {
  background-color: #F5E6CC;
  width: calc(100vw - 4rem);
  min-height: auto;
  margin: 1rem auto 0 auto;
  margin-left: calc(-50vw + 50% + 2rem);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
}

/* Spezifische Anpassung für weißen Kasten auf Historie-Seite */
.historie-page .white-box {
  position: relative;
  margin-top: 1rem;
}
.white-box-content {
  padding: 0;
  text-align: left;
  max-width: 100%;
  width: 100%;
}
.white-box-content h3 {
  color: #7B3F26;
  font-size: 2rem;
  margin: 0 0 1rem 0;
  font-weight: bold;
}
.white-box-content p {
  color: #7B3F26;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}
.nav-list { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.logo { 
  text-decoration: none; 
  padding: .5rem 1rem; 
  border-radius: .4rem; 
  background: var(--primary); 
  color: #ffffff !important; 
  display: inline-flex;
  align-items: flex-end;
  padding-bottom: 0.3rem;
}
.header-right { display: flex; align-items: center; gap: 1rem; }
.faq-link, .kontakt-link { 
  text-decoration: none; 
  color: #ffffff; 
  padding: .6rem 1.2rem; 
  border-radius: .4rem; 
  background: var(--primary);
  transition: background-color 0.2s; 
  display: inline-flex;
  align-items: flex-end;
  padding-bottom: 0.36rem;
  font-size: 1.2rem;
}
.faq-link:hover, .kontakt-link:hover { background: var(--border); }
.header-right .wow-button {
  background: #dc2626 !important;
  color: white !important;
  border: none !important;
  padding: .6rem 1.2rem !important;
  border-radius: .4rem !important;
  cursor: pointer !important;
  font-weight: bold !important;
  text-decoration: none !important;
  transition: background-color 0.2s !important;
  display: inline-flex !important;
  align-items: flex-end !important;
  font-size: 1.2rem !important;
  height: auto !important;
  line-height: 1.8rem !important;
  box-sizing: border-box !important;
  padding-bottom: 0.36rem !important;
}
.header-right .wow-button:hover {
  background: #b91c1c !important;
}

.hero { padding: 2rem 0; }
.hero-inner { 
  display: flex; 
  flex-direction: column;
  gap: 2rem; 
}
.hero-content { 
  text-align: left; 
  width: 100%;
}
.hero-image { 
  width: calc(100vw - 4rem);
  margin-left: calc(-50vw + 50% + 2rem);
  text-align: center; 
}
.main-image { 
  width: calc(100vw - 4rem);
  height: auto; 
  max-height: 100vh;
  object-fit: cover;
  border-radius: 0; 
  box-shadow: none;
  margin-left: calc(-50vw + 50% + 2rem);
  margin-top: -2rem;
  display: block;
}
/* Container für beide Bilder nebeneinander */
.image-container {
  display: flex;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  gap: 0;
}

/* Spezifische Anpassung für historie1.png */
.main-image[src*="historie1"] {
  object-fit: cover;
  width: calc(100vw - 4rem) !important;
  height: 90vh !important;
  margin-left: calc(-50vw + 50% + 2rem) !important;
  margin-right: calc(-50vw + 50% + 2rem) !important;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: block;
}

/* Spezifische Anpassung für historie3.png */
.main-image[src*="historie3"] {
  object-fit: cover;
  width: calc(100vw - 4rem);
  height: auto;
  max-height: 70vh;
  margin-left: calc(-50vw + 50% + 2rem);
  margin-top: 3rem;
  display: block;
}

.main-image[src*="althaus2"] {
  object-fit: cover;
  width: calc(100vw - 4rem);
  height: auto;
  max-height: 70vh;
  margin-left: calc(-50vw + 50% + 2rem);
  margin-top: 0;
  display: block;
}
.lead { color: #ffffff; }

.section { padding: 2rem 0; }
.section.alt { background: #190000; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: none; padding: 1rem; border-radius: .5rem; }

.form { display: grid; gap: 1rem; max-width: 500px; }
input, textarea { width: 100%; padding: .6rem; border-radius: .4rem; border: none; }
.error { color: #dc2626; }
.form-success { color: #16a34a; font-weight: bold; }

details summary { font-weight: bold; }

.impressum-content { 
  max-width: 500px; 
  margin: 0 auto; 
  text-align: center; 
}
.impressum-content p { 
  margin: 0.05rem 0; 
  font-size: 0.55rem; 
  line-height: 1.1;
}
.impressum-content a { 
  color: var(--primary); 
  text-decoration: none; 
}
.impressum-content a:hover { 
  text-decoration: underline; 
}

.site-footer { border-top: 1px solid var(--border); padding: 0.3rem 0; text-align: center; }
.site-footer p { font-size: 0.7rem; margin: 0.1rem 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.impressum-footer { 
  padding: 0.2rem 0; 
  margin-top: 0.2rem; 
}
.impressum-footer h3 { 
  margin: 0 0 0.1rem 0; 
  font-size: 0.6rem; 
  font-weight: normal;
}

/* Responsive Design - Same layout on all devices */
@media (max-width: 768px) {
  .hero-inner { 
    flex-direction: column !important; 
    text-align: left !important; 
    gap: 1rem;
  }
  .hero-content { 
    text-align: left !important; 
    width: 100%;
  }
  .main-image { 
    width: calc(100vw - 2rem) !important;
    margin-left: calc(-50vw + 50% + 1rem) !important;
    margin-top: -1.6rem !important;
    max-height: 100vh !important;
  }
  .image-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    gap: 0;
  }

  .main-image[src*="historie1"] {
    width: calc(100vw - 2rem) !important;
    height: 90vh !important;
    margin-left: calc(-50vw + 50% + 1rem) !important;
    margin-right: calc(-50vw + 50% + 1rem) !important;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: block;
  }
  
  .main-image[src*="historie3"] {
    width: calc(100vw - 2rem);
    margin-left: calc(-50vw + 50% + 1rem);
    margin-top: 2rem;
  }
  .white-box {
    width: calc(100vw - 2rem) !important;
    margin-left: calc(-50vw + 50% + 1rem) !important;
    min-height: auto;
    margin-top: 0.8rem !important;
    padding: 1.5rem;
  }
  
  .historie-page .white-box {
    position: relative;
    margin-top: 0.8rem;
  }
  .white-box-content {
    padding: 1.5rem;
  }
  .white-box-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  .white-box-content p {
    font-size: 1rem;
  }
  .container {
    width: 95%;
    padding: 0 1rem;
  }
  .header-inner {
    padding: 1rem 0;
  }
  .header-logo {
    height: 9.6rem;
    margin: 0.4rem 0 0 4.8rem;
    padding: 0.8rem;
    border: none;
    background-color: #E7D3B0;
    border-radius: 0.4rem;
    position: absolute;
    top: 0.8rem;
    left: 2.4rem;
    z-index: 20;
  }
  .header-buttons {
    gap: 0.8rem;
  }
  .metzgerei-box {
    padding: 0.48rem 0.96rem;
    font-size: 1.944rem;
    margin: 0.4rem 0;
  }
  .historie-box {
    padding: 0.48rem 0.96rem;
    font-size: 1.08rem;
    margin: 0.4rem 0;
  }
  .form {
    max-width: 90%;
    margin: 0 auto;
  }
  .header-right {
    gap: 0.5rem;
  }
  .faq-link, .kontakt-link {
    padding: 0.48rem 0.96rem !important;
    font-size: 1.08rem !important;
    height: 3rem !important;
    line-height: 1.8rem !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    padding-bottom: 0.24rem !important;
  }
  .header-right .wow-button {
    padding: 0.48rem 0.96rem !important;
    font-size: 1.08rem !important;
    height: 3rem !important;
    line-height: 1.8rem !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: 0.24rem !important;
  }
  .logo {
    padding: 0.4rem 0.8rem !important;
    height: 2.5rem !important;
    line-height: 1.5rem !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    padding-bottom: 0.2rem !important;
  }
  .logo-text {
    font-size: 0.9rem !important;
  }
  .btn-ghost {
    padding: 0.48rem 0.96rem !important;
    font-size: 1.08rem !important;
    height: 3rem !important;
    line-height: 1.8rem !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    padding-bottom: 0.24rem !important;
  }
  h1 {
    font-size: 1.8rem;
  }
  .lead {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-inner { 
    flex-direction: column !important; 
    gap: 0.5rem;
  }
  .hero-content { 
    width: 100%;
  }
  .main-image { 
    width: calc(100vw - 1rem) !important;
    margin-left: calc(-50vw + 50% + 0.5rem) !important;
    margin-top: -1.4rem !important;
    max-height: 100vh !important;
  }
  .image-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    gap: 0;
  }

  .main-image[src*="historie1"] {
    width: calc(100vw - 2rem) !important;
    height: 90vh !important;
    margin-left: calc(-50vw + 50% + 1rem) !important;
    margin-right: calc(-50vw + 50% + 1rem) !important;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: block;
  }
  
  .main-image[src*="historie3"] {
    width: calc(100vw - 2rem);
    margin-left: calc(-50vw + 50% + 1rem);
    margin-top: 2rem;
  }
  .white-box {
    width: calc(100vw - 1rem) !important;
    margin-left: calc(-50vw + 50% + 0.5rem) !important;
    min-height: auto;
    margin-top: 0.6rem !important;
    padding: 1rem;
  }
  
  .historie-page .white-box {
    position: relative;
    margin-top: 0.8rem;
  }
  .white-box-content {
    padding: 1rem;
  }
  .white-box-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
  }
  .white-box-content p {
    font-size: 0.9rem;
  }
  .form {
    max-width: 85%;
    margin: 0 auto;
  }
  .header-inner {
    padding: 1.2rem 0;
  }
  .header-logo {
    height: 8.4rem;
    margin: 0.3rem 0 0 3.6rem;
    padding: 0.6rem;
    border: none;
    background-color: #E7D3B0;
    border-radius: 0.3rem;
    position: absolute;
    top: 0.6rem;
    left: 1.8rem;
    z-index: 20;
  }
  .header-buttons {
    gap: 0.6rem;
  }
  .metzgerei-box {
    padding: 0.36rem 0.72rem;
    font-size: 1.728rem;
    margin: 0.3rem 0;
  }
  .historie-box {
    padding: 0.36rem 0.72rem;
    font-size: 0.96rem;
    margin: 0.3rem 0;
  }
  h1 {
    font-size: 1.5rem;
  }
  .lead {
    font-size: 0.9rem;
  }
  .faq-link, .kontakt-link {
    padding: 0.36rem 0.72rem !important;
    font-size: 0.96rem !important;
    height: 2.64rem !important;
    line-height: 1.68rem !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    padding-bottom: 0.18rem !important;
  }
  .header-right .wow-button {
    padding: 0.36rem 0.72rem !important;
    font-size: 0.96rem !important;
    height: 2.64rem !important;
    line-height: 1.68rem !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: 0.18rem !important;
  }
  .logo {
    padding: 0.3rem 0.6rem !important;
    height: 2.2rem !important;
    line-height: 1.4rem !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    padding-bottom: 0.15rem !important;
  }
  .btn-ghost {
    padding: 0.36rem 0.72rem !important;
    font-size: 0.96rem !important;
    height: 2.64rem !important;
    line-height: 1.68rem !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: flex-end !important;
    padding-bottom: 0.18rem !important;
  }
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
  }
  .card {
    padding: 0.8rem;
  }
}

/* Spezielle Regel für WOW-Button auf mobilen Geräten */
@media (max-width: 768px) {
  .header-right .wow-button {
    min-height: 2.5rem !important;
    max-height: 2.5rem !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .header-right .wow-button {
    min-height: 2.2rem !important;
    max-height: 2.2rem !important;
    overflow: hidden !important;
  }
  
  .main-image[src*="althaus2"] {
    width: calc(100vw - 1rem) !important;
    margin-left: calc(-50vw + 50% + 0.5rem) !important;
    margin-top: 0 !important;
    max-height: 70vh !important;
  }
}

/* Responsive Regeln für althaus2.png - Tablet */
@media (max-width: 768px) {
  .main-image[src*="althaus2"] {
    width: calc(100vw - 2rem) !important;
    margin-left: calc(-50vw + 50% + 1rem) !important;
    margin-top: 0 !important;
    max-height: 70vh !important;
  }
}
