/* =====================================================
   ORGANIZED STYLESHEET
   -----------------------------------------------------
   Structure
   1. Reset / Base Layout
   2. Header / Navigation / Dropdown
   3. Hero Sections
   4. Shared Buttons
   5. Landing Page
   6. Tables / Untersuchungen / Probenmengenrechner
   7. Footer
   8. Generic Content Blocks
   9. Kontakt / Musterbeutel / Über uns / Aktuelles
   10. Calendar
   11. Statistics / AGB / Content
   12. Powermail
   13. Responsive Breakpoints
   ===================================================== */

/* =====================================================
   1. RESET / BASE LAYOUT
   ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding-top: 0 !important;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  background: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: none;
}

main {
  background-color: white;
  width: 95%;
  padding: 20px;
  margin-top: 40px;
  border-radius: 8px;
  flex: 1;
}

main.landing {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin-top: 0;
}

.content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.footer-separator {
  color: #222;
  font-weight: 600;
}

/* =====================================================
   2. HEADER / NAVIGATION / DROPDOWN
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  padding: 14px 40px;
  background: rgba(219, 171, 112, 0.97);
  backdrop-filter: blur(6px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.header-scrolled {
  padding: 5px 40px;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 90px;
}

.title {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title h1 {
  margin: 0;
  color: #222;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.title p {
  margin: 0;
  color: #666;
  font-size: 0.8rem;
  line-height: 1.1;
}

.title-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.title-link:hover,
.title-link:focus {
  color: #ffffff;
  text-decoration: none;
  opacity: 1;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav a,
.dropbtn {
  position: relative;
  padding: 8px 6px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover,
.dropbtn:hover {
  color: #000;
}

.nav a.active,
.dropbtn.active {
  color: #ffffff;
}

.nav a.active::after,
.dropbtn.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transform: scaleX(1);
  transform-origin: left;
}

.iso-badge {
  height: 85px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: none;
  min-width: 220px;
  z-index: 1000;

  background: rgba(255, 248, 235, 0.98);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 12px 18px;
  color: #333;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: rgba(219, 171, 112, 0.22);
  color: #000;
}

.dropdown-content a.active {
  color: #000;
  text-decoration: underline;
}

.header-scrolled .logo-title {
  gap: 10px;
}

.header-scrolled .logo img {
  height: 30px;
}

.header-scrolled .title h1 {
  font-size: 1.5rem;
}

.header-scrolled .title p {
  display: none;
}

.header-scrolled .iso-badge {
  height: 30px;
}

/* =====================================================
   3. HERO SECTIONS
   ===================================================== */
.page-title-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 0;
  margin-top: 60px;
  padding-top: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('../images/Weizen_1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.page-title-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.landing-hero {
  position: relative;
  z-index: 0;
  width: 100vw;
  height: 80vh;
  margin-left: calc(-50vw + 50%);
  margin-top: 0;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../images/Weizen_1.jpg') center/cover no-repeat;
}

.landing-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.landing-hero-content {
  position: relative;
  max-width: 900px;
  padding: 20px;
  color: white;
}

.landing-hero-content h1 {
  margin-bottom: 15px;
  font-size: 3.2rem;
  font-weight: bold;
}

.landing-hero-content p {
  margin-bottom: 20px;
  font-size: 1.4rem;
  opacity: 0.95;
}

/* =====================================================
   4. SHARED BUTTONS
   ===================================================== */
.cta-primary,
.cta-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.2rem;
  text-decoration: none;
}

.cta-primary {
  background: #dbab70;
  color: white;
  font-weight: bold;
}

.cta-secondary {
  background: white;
  color: #dbab70;
  border: 2px solid #dbab70;
}

.landing-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.product-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 70%;
  margin-top: 25px;
  margin-bottom: 25px;
}

/* =====================================================
   5. LANDING PAGE
   ===================================================== */
.landing-facts {
  display: flex;
  justify-content: space-around;
  padding: 60px 20px;
  background: #f5f5f5;
  text-align: center;
}

.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 240px;
}

.fact-number {
  color: #dbab70;
  font-size: 2.6rem;
  font-weight: bold;
}

.fact-label {
  display: block;
  margin-top: 5px;
  font-size: 1.1rem;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  padding: 60px 20px;
  margin: auto;
}

.feature {
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.feature h3 {
  margin-bottom: 10px;
  color: #dbab70;
  font-size: 1.4rem;
}

.landing-slider {
  width: 100%;
  padding: 40px 0;
  background: #f9f9f9;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

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

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  padding: 15px 10px;
  color: white;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

/* =====================================================
   6. TABLES / UNTERSUCHUNGEN / PROBENMENGENRECHNER
   ===================================================== */
.product-table {
  width: 100%;
  margin-bottom: 40px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}

.product-table thead tr:first-child th:first-child {
  border-top-left-radius: 12px;
}

.product-table thead tr:first-child th:last-child {
  border-top-right-radius: 12px;
}

.product-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.product-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.product-table th {
  min-width: 100px;
  padding: 8px;
  color: white;
  font-size: 1rem;
  text-align: center;
  background: #dbab70;
}

.product-table td {
  padding: 6px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #ccc;
}

.product-table tbody tr:nth-child(even) td {
  background-color: #f9f9f9;
}

.product-table input[type="checkbox"] {
  width: 100%;
  height: 100%;
  min-width: 20px;
  min-height: 20px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  position: relative;
  border: 2px solid #dbab70;
  border-radius: 4px;
  background: white;
}

.product-table input[type="checkbox"]:checked {
  background: #dbab70;
  border-color: #dbab70;
}

.product-table input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.product-table input[type="checkbox"]:hover {
  border-color: #b5844f;
}

.product-table input[type="checkbox"]:focus {
  outline: 2px solid #dbab70;
  outline-offset: 2px;
}

.total-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-right: 5px;
  padding-left: 137px;
}

.total-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 1.1rem;
  font-weight: bold;
}

.reset-container {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#reset-btn {
  padding: 14px 30px;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  background: #dbab70;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#reset-btn:hover {
  background-color: #b5844f;
}

/* =====================================================
   7. FOOTER
   ===================================================== */
.site-footer {
  width: 100%;
  margin-top: auto;
  padding: 14px 20px;
  background: #dbab70;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer p {
  margin: 0;
  color: #222;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-nav a {
  color: #222;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* =====================================================
   8. GENERIC CONTENT BLOCKS
   ===================================================== */
.box {
  width: auto;
  height: auto;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.calendar {
  width: auto;
  height: auto;
}

.news-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.news-item:last-child {
  border-bottom: none;
}

/* =====================================================
   9. PAGE-SPECIFIC LAYOUTS
   ===================================================== */
/* Musterbeutel */
.musterbeutel-container {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 20px;
}

.musterbeutel-intro {
  text-align: center;
  margin-bottom: 40px;
}

.musterbeutel-intro h2 {
  color: #dbab70;
  margin-bottom: 15px;
}

.order-form {
  padding: 30px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.order-form h3 {
  margin-bottom: 25px;
  color: #333;
  text-align: center;
}

/* Kontakt / Aktuelles / About shared wrapper */
.kontakt-container,
.aktuelles-container,
.about-container {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 40px 20px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.kontakt-info {
  flex: 1;
  padding: 30px;
  text-align: center;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.kontakt-info h2 {
  color: #dbab70;
  margin-bottom: 20px;
}

.kontakt-info p {
  color: #555;
  line-height: 1.6;
}

.kontakt-info a {
  color: #dbab70;
  text-decoration: none;
}

.kontakt-info a:hover {
  text-decoration: underline;
}

.contact-form {
  flex: 1;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  margin-bottom: 25px;
  color: #333;
  text-align: center;
}

/* Über uns */
.about-container {
  gap: 40px;
  align-items: center;
  margin: 0 auto;
}

.about-content {
  flex: 1;
  color: #555;
  line-height: 1.6;
}

.about-content p {
  margin-bottom: 20px;
}

.about-image {
  flex: 0 0 300px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-header h2 {
  color: #dbab70;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Aktuelles */
.aktuelles-container {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.5fr);
  gap: 30px;
  align-items: start;
}

/* Shared old-form styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #dbab70;
  box-shadow: 0 0 5px rgba(219, 171, 112, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.order-form button {
  width: 100%;
  padding: 15px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  background: #dbab70;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.order-form button:hover {
  background: #c99b60;
}

/* =====================================================
   10. CALENDAR / FEIERTAGE
   ===================================================== */
#calendar {
  max-width: 100%;
  margin: 10px auto;
  padding: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
}

#calendar .fc {
  font-size: 1rem;
}

#calendar .fc-col-header-cell {
  padding: 8px 4px;
  font-size: 0.9rem;
}

#calendar .fc-daygrid-day {
  height: 40px !important;
}

#calendar .fc-daygrid-day-frame {
  height: 50px !important;
  min-height: 72px !important;
}

#calendar .fc-daygrid-day-bg {
  min-height: 50px !important;
}

#calendar .fc-daygrid-day-top {
  justify-content: center;
}

#calendar .fc-daygrid-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 4px;
  margin-top: 4px !important;
  font-size: 1.2rem !important;
  font-weight: bold;
}

#calendar .fc-event {
  padding: 2px 4px;
  font-size: 0.85rem;
}

#calendar .fc-event-title {
  padding: 1px 2px;
  font-size: 0.57rem;
}

#calendar .fc-daygrid-day.fc-day-today {
  background-color: #fffacd !important;
  box-shadow: inset 0 0 0 2px #ffd700 !important;
}

#calendar .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  color: #ff6b6b !important;
  font-weight: bold;
}

#calendar .fc-daygrid-day.holiday-cell {
  background-color: color-mix(in srgb, var(--holiday-bg, #e63535) 18%, white) !important;
}

.holiday-cell {
  background-color: rgba(230, 53, 53, 0.18) !important;
}

.fc-bg-event {
  opacity: 0.65 !important;
}

.holiday-label,
#calendar .holiday-label {
  display: block;
  color: #a11f1f;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.1;
  margin-top: 2px;
  padding: 0 3px;
}

.holiday-label {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#calendar .holiday-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =====================================================
   11. STATISTICS / AGB / CONTENT BLOCKS
   ===================================================== */
.statistics-header {
  text-align: center;
  margin-bottom: 30px;
}

.statistics-header h2 {
  color: #dbab70;
  font-size: 2.2rem;
}

.statistics-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  color: #555;
  line-height: 1.7;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content p {
  margin-bottom: 1.5em;
  line-height: 1.6;
}

.content section {
  margin-bottom: 2em;
}

.content p strong {
  display: block;
  margin-bottom: 1em;
  font-size: 1.1em;
  font-weight: bold;
}

/* =====================================================
   12. POWERMAIL
   ===================================================== */
/* Common cards */
.tx-powermail,
.tx-powermail_pi1 {
  max-width: 540px;
  margin: 40px auto 60px;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Musterbeutel page can be wider */
.page-id-37 .tx-powermail,
.page-id-37 .tx-powermail_pi1 {
  max-width: 800px;
  margin: 0 auto 60px;
}

/* Wrapper cleanup when inside old form cards */
.contact-form .tx-powermail,
.order-form .tx-powermail {
  margin: 0;
}

.contact-form .powermail_form,
.order-form .powermail_form,
.tx-powermail .powermail_form,
.tx-powermail_pi1 .powermail_form,
.page-id-37 .tx-powermail .powermail_form,
.page-id-37 .tx-powermail_pi1 .powermail_form {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

/* Remove fieldset + duplicate title */
.tx-powermail fieldset,
.tx-powermail_pi1 fieldset,
.page-id-37 .tx-powermail fieldset,
.page-id-37 .tx-powermail_pi1 fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
}

.tx-powermail legend,
.tx-powermail_pi1 legend,
.page-id-37 .tx-powermail legend,
.page-id-37 .tx-powermail_pi1 legend,
.tx-powermail h3,
.tx-powermail_pi1 h3,
.page-id-37 .tx-powermail h3,
.page-id-37 .tx-powermail_pi1 h3 {
  display: none;
}

/* Common spacing */
.contact-form .powermail_fieldwrap,
.order-form .powermail_fieldwrap,
.tx-powermail .powermail_fieldwrap,
.tx-powermail_pi1 .powermail_fieldwrap,
.page-id-37 .tx-powermail .powermail_fieldwrap,
.page-id-37 .tx-powermail_pi1 .powermail_fieldwrap {
  margin-bottom: 20px;
}

/* Common labels */
.contact-form .powermail_label,
.order-form .powermail_label,
.tx-powermail label,
.tx-powermail_pi1 label,
.page-id-37 .tx-powermail label,
.page-id-37 .tx-powermail_pi1 label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-weight: bold;
}

/* Common fields */
.contact-form .powermail_input,
.contact-form .powermail_textarea,
.contact-form .powermail_select,
.order-form .powermail_input,
.order-form .powermail_textarea,
.order-form .powermail_select,
.tx-powermail input,
.tx-powermail textarea,
.tx-powermail select,
.tx-powermail_pi1 input,
.tx-powermail_pi1 textarea,
.tx-powermail_pi1 select,
.page-id-37 .tx-powermail input,
.page-id-37 .tx-powermail textarea,
.page-id-37 .tx-powermail select,
.page-id-37 .tx-powermail_pi1 input,
.page-id-37 .tx-powermail_pi1 textarea,
.page-id-37 .tx-powermail_pi1 select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.contact-form .powermail_input:focus,
.contact-form .powermail_textarea:focus,
.contact-form .powermail_select:focus,
.order-form .powermail_input:focus,
.order-form .powermail_textarea:focus,
.order-form .powermail_select:focus,
.tx-powermail input:focus,
.tx-powermail textarea:focus,
.tx-powermail select:focus,
.tx-powermail_pi1 input:focus,
.tx-powermail_pi1 textarea:focus,
.tx-powermail_pi1 select:focus,
.page-id-37 .tx-powermail input:focus,
.page-id-37 .tx-powermail textarea:focus,
.page-id-37 .tx-powermail select:focus,
.page-id-37 .tx-powermail_pi1 input:focus,
.page-id-37 .tx-powermail_pi1 textarea:focus,
.page-id-37 .tx-powermail_pi1 select:focus {
  outline: none;
  border-color: #dbab70;
  box-shadow: 0 0 5px rgba(219, 171, 112, 0.5);
}

.contact-form .powermail_textarea,
.order-form .powermail_textarea,
.tx-powermail textarea,
.tx-powermail_pi1 textarea,
.page-id-37 .tx-powermail textarea,
.page-id-37 .tx-powermail_pi1 textarea {
  resize: vertical;
  min-height: 100px;
}

/* Kontakt form prefers slightly taller textarea */
.tx-powermail textarea,
.tx-powermail_pi1 textarea {
  min-height: 120px;
}

/* Submit button */
.contact-form .powermail_submit,
.order-form .powermail_submit,
.tx-powermail .powermail_submit,
.tx-powermail_pi1 .powermail_submit,
.page-id-37 .tx-powermail .powermail_submit,
.page-id-37 .tx-powermail_pi1 .powermail_submit {
  width: 100%;
  padding: 15px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  background: #dbab70;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form .powermail_submit:hover,
.order-form .powermail_submit:hover,
.tx-powermail .powermail_submit:hover,
.tx-powermail_pi1 .powermail_submit:hover,
.page-id-37 .tx-powermail .powermail_submit:hover,
.page-id-37 .tx-powermail_pi1 .powermail_submit:hover {
  background: #c99b60;
}

.contact-form .powermail_field_error,
.order-form .powermail_field_error {
  margin-top: 6px;
  color: #b30000;
  font-size: 0.95rem;
}

.contact-form .powermail_confirmation,
.order-form .powermail_confirmation {
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #e0d2bf;
  border-radius: 8px;
}

/* =====================================================
   13. RESPONSIVE BREAKPOINTS
   ===================================================== */
@media (max-width: 1024px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .logo-title {
    margin: 10px 0;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .iso-badge {
    height: 70px;
  }
}

@media (max-width: 900px) {
  .aktuelles-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .kontakt-container,
  .about-container {
    flex-direction: column;
    gap: 40px;
  }

  .about-image {
    flex: none;
    order: -1;
  }

  .about-header h2 {
    font-size: 2rem;
  }

  /* Probenmengenrechner mobile layout */
  .total-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .total-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px 16px !important;
    text-align: center !important;
    font-size: 1rem !important;
  }

  .total-item h3 {
    margin: 0 !important;
    font-size: 1rem !important;
  }

  #reset-btn {
    width: auto !important;
    max-width: 260px !important;
    padding: 10px 18px !important;
    font-size: 1rem !important;
  }

  /* Header / nav mobile */
  .header {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 10px 12px;
    text-align: left;
    overflow-x: hidden;
  }

  .logo-title {
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    margin: 0;
  }

  .logo img {
    height: 34px;
  }

  .title {
    min-width: 0;
  }

  .title h1 {
    font-size: 1.1rem;
    line-height: 1.1;
  }

  .title p {
    font-size: 0.55rem;
    line-height: 1.05;
  }

  .header-center {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
    display: flex;
    justify-content: center;
  }

  .nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
  }

  .nav a,
  .dropbtn {
    padding: 4px 0;
    font-size: 0.78rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .iso-container {
    justify-self: end;
  }

  .iso-badge {
    height: 34px;
    margin-top: 0;
  }

  .dropdown-content {
    right: 0;
    left: auto;
    min-width: 180px;
  }

  .page-title-hero {
    min-height: 32vh;
  }

  .page-title-hero h1 {
    padding: 0 14px;
    font-size: 2rem;
    text-align: center;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  /* Button moved below table by JS on portrait mobile */
  .product-section > .reset-container {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 16px 0 0 0 !important;
  }

  .product-section > .reset-container #reset-btn {
    width: auto !important;
    max-width: 260px !important;
  }
}

@media (max-width: 420px) {
  html,
  body {
    overflow-x: hidden;
  }

  .header {
    grid-template-columns: 1fr auto;
    padding: 8px 10px;
    row-gap: 6px;
    overflow-x: hidden;
  }

  .logo-title {
    gap: 6px;
    min-width: 0;
  }

  .logo img {
    height: 26px;
  }

  .title {
    min-width: 0;
  }

  .title h1 {
    font-size: 0.95rem;
    line-height: 1.05;
  }

  .title p {
    font-size: 0.42rem;
    line-height: 1;
  }

  .iso-badge {
    height: 26px;
  }

  .header-center {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    overflow-x: hidden;
  }

  .nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
  }

  .nav a,
  .dropbtn {
    padding: 2px 0;
    font-size: 0.68rem;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .dropdown {
    position: relative;
    overflow: visible !important;
  }

  .dropdown-content {
    top: calc(100% + 6px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    min-width: 150px;
    max-width: calc(100vw - 24px);
    padding: 4px 0;
    border-radius: 8px;
    z-index: 5000;
    box-sizing: border-box;
  }

  .dropdown-content a {
    display: block;
    padding: 8px 12px;
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .page-title-hero {
    min-height: 26vh;
  }

  .page-title-hero h1 {
    padding: 0 10px;
    font-size: 1.55rem;
    line-height: 1.1;
    word-break: break-word;
  }
}

/* ===================================== */
/* MOBILE FIX – LANDING HERO + SCROLLED HEADER */
/* ===================================== */
@media (max-width: 768px) {
  /* Landing hero smaller on mobile */
  .landing-hero {
    height: 56vh;
    min-height: 320px;
  }

  .landing-hero-content {
    padding: 16px;
    max-width: 92%;
  }

  .landing-hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .landing-hero-content p {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 14px;
  }

  /* Make header really shrink on scroll on mobile */
  .header.header-scrolled {
    padding: 6px 10px;
  }

  .header-scrolled .logo img {
    height: 24px;
  }

  .header-scrolled .title h1 {
    font-size: 0.9rem;
    line-height: 1.05;
  }

  .header-scrolled .title p {
    display: none;
  }

  .header-scrolled .iso-badge {
    height: 24px;
  }

  .header-scrolled .nav a,
  .header-scrolled .dropbtn {
    font-size: 0.68rem;
    line-height: 1.1;
    padding: 2px 0;
  }
}

/* ===================================== */
/* MOBILE FIX – LANDING HERO / FACTS / FOOTER */
/* ===================================== */
@media (max-width: 768px) {
  /* --- Landing hero: push text below fixed header --- */
  .landing-hero {
    height: auto;
    min-height: 420px;
    align-items: flex-start;
    padding-top: 110px;
  }

  .landing-hero-content {
    max-width: 90%;
    padding: 0 16px 24px;
    margin: 0 auto;
  }

  .landing-hero-content h1 {
    font-size: 2rem;
    line-height: 1.08;
    margin-bottom: 12px;
  }

  .landing-hero-content p {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0;
  }

  /* --- Landing facts: stack cleanly on mobile --- */
  .landing-facts {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px 16px;
  }

  .fact {
    width: 100%;
    max-width: 320px;
  }

  .fact-number {
    font-size: 2.1rem;
    line-height: 1.1;
  }

  .fact-label {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  /* --- Footer: smaller, left aligned, tighter links --- */
  .site-footer {
    padding: 10px 12px;
  }

  .site-footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
  }

  .site-footer p {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 8px;
  }

  .footer-nav a,
  .footer-separator {
    font-size: 0.78rem;
    line-height: 1.2;
  }
}

@media (max-width: 420px) {
  /* --- Extra small phones --- */
  .landing-hero {
    min-height: 380px;
    padding-top: 175px;
  }

  .landing-hero-content {
    max-width: 92%;
    padding: 0 12px 20px;
  }

  .landing-hero-content h1 {
    font-size: 1.7rem;
  }

  .landing-hero-content p {
    font-size: 0.92rem;
  }

  .landing-facts {
    gap: 18px;
    padding: 28px 14px;
  }

  .fact {
    max-width: 280px;
  }

  .fact-number {
    font-size: 1.85rem;
  }

  .fact-label {
    font-size: 0.88rem;
  }

  .site-footer {
    padding: 8px 10px;
  }

  .site-footer p,
  .footer-nav a,
  .footer-separator {
    font-size: 0.72rem;
  }

  .footer-nav {
    gap: 3px 6px;
  }
}


