:root {
  --ink: #20211f;
  --muted: #66665f;
  --paper: #f7f5ef;
  --stone: #e6e1d7;
  --sage: #6f7a68;
  --wine: #7a332c;
  --brass: #b09058;
  --white: #fffdf8;
  --line: rgba(32, 33, 31, 0.16);
  --shadow: 0 22px 52px rgba(25, 23, 20, 0.14);
  --font-text: Inter, "Segoe UI", Arial, sans-serif;
  --font-display: "Medor Serif", "Medor Serif Fallback", Georgia, "Times New Roman", serif;
  font-family: var(--font-text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

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

button,
input,
select {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 58px);
  background: linear-gradient(180deg, rgba(247, 245, 239, 0.96), rgba(247, 245, 239, 0.72) 74%, rgba(247, 245, 239, 0));
  transition: background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 245, 239, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 112px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.brand img {
  width: 128px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.main-nav a.active {
  border-color: var(--wine);
}

.dealer-link {
  padding: 0 15px;
  border: 1px solid rgba(32, 33, 31, 0.28) !important;
  border-radius: 8px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span:not(.visually-hidden) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  min-height: 86vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--paper) 0, rgba(247, 245, 239, 0) 150px, rgba(247, 245, 239, 0) calc(100% - 100px), var(--paper) 100%),
    linear-gradient(90deg, rgba(18, 17, 15, 0.62), rgba(18, 17, 15, 0.3) 52%, rgba(18, 17, 15, 0.06));
}

.hero::after {
  content: none;
}

.hero-home {
  background-image: url("../../bilder/start-header-scaled.jpg");
}

.hero-sortiment {
  background-image: url("../../bilder/sortiment-header.jpg");
}

.hero-qualitaet {
  background-image: url("../../bilder/qualitaet-header.jpg");
}

.hero-haendler {
  background-image: url("../../bilder/haendlersuche-header.jpg");
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 136px 0 84px;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: #e9d7ab;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--wine);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  width: min(760px, 100%);
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 90px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
}

h3 {
  margin-bottom: 10px;
  font-size: 28px;
}

.hero p,
.lead {
  max-width: 720px;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.lead {
  color: var(--muted);
}

.hero-dealer-title {
  width: min(1160px, 100%);
  max-width: 1160px;
  font-size: clamp(36px, 4.4vw, 64px);
  white-space: nowrap;
}

.section {
  padding: clamp(56px, 9vw, 108px) clamp(18px, 4vw, 58px);
}

.section > *,
.section-head,
.intro-grid,
.quality-teaser,
.map-layout,
.dealer-search > * {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 34px;
}

.section-head.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none !important;
}

button {
  box-shadow: none !important;
}

.button.primary {
  color: var(--white);
  background: var(--wine);
}

.button.secondary,
.button.ghost {
  border-color: rgba(255, 253, 248, 0.62);
  color: var(--white);
  background: transparent;
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
}

.text-link {
  color: var(--wine);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.intro-grid,
.quality-teaser,
.quality-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.image-stack {
  display: grid;
  grid-template-columns: 0.88fr 1fr;
  gap: 16px;
  align-items: end;
}

.image-stack img,
.quality-media img,
.gallery-row img,
.product-card img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-stack img {
  height: 430px;
}

.image-stack img:first-child {
  height: 330px;
  margin-bottom: 52px;
}

.program-band,
.members,
.dealer-search {
  background: var(--white);
}

.feature-grid,
.product-grid,
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 430px;
  display: grid;
  align-content: end;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  color: var(--white);
  background: #222;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.64));
}

.feature-card div {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.feature-card p {
  color: rgba(255, 253, 248, 0.86);
  line-height: 1.55;
}

.quality-media {
  position: relative;
}

.quality-media img {
  height: 510px;
}

.badge {
  position: absolute;
  right: -20px;
  bottom: 32px;
  width: min(230px, 54%);
  padding: 22px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.badge strong {
  display: block;
  margin-bottom: 8px;
  color: #e9d7ab;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

.dealer-cta {
  color: var(--white);
  background-image: linear-gradient(90deg, rgba(31, 32, 29, 0.88), rgba(31, 32, 29, 0.55)), url("../../bilder/start-teaser-haendlersuche.jpg");
  background-position: center;
  background-size: cover;
}

.dealer-cta .section-kicker,
.dealer-cta p {
  color: rgba(255, 253, 248, 0.86);
}

.logo-grid {
  grid-template-columns: repeat(5, 1fr);
}

.logo-card {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.logo-card img {
  max-height: 48px;
  width: auto;
}

.product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-card {
  display: grid;
  grid-template-rows: 180px 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.product-image-button {
  display: block;
  width: 100%;
  height: 180px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.product-card img {
  height: 180px;
  border-radius: 0;
  box-shadow: none;
  transition: transform 180ms ease;
}

.product-image-button:hover img {
  transform: scale(1.035);
}

.product-card div {
  padding: 18px;
}

.product-card p {
  color: var(--muted);
  line-height: 1.5;
}

.download-panel,
.search-panel,
.seal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 28px;
  border-radius: 8px;
  background: var(--stone);
}

.quality-page {
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
}

.seal-card {
  display: block;
  margin-top: 0;
}

.seal-card img {
  width: 190px;
  margin-bottom: 20px;
}

.point-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.point-list p {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.point-list b {
  margin-right: 12px;
  color: var(--wine);
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-row img {
  height: 360px;
}

.dealer-search {
  padding-top: 72px;
}

.search-panel {
  align-items: flex-start;
  margin-top: 0;
  margin-bottom: 28px;
  background: var(--paper);
}

.dealer-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px;
  gap: 14px;
  min-width: min(520px, 100%);
}

.dealer-form label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.dealer-form input,
.dealer-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.dealer-form .form-actions {
  grid-column: 1 / -1;
}

.hint {
  width: 100%;
  margin: 16px 0 0;
  color: var(--muted);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.map-card {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.map-card iframe {
  width: 100%;
  height: 520px;
  border: 0;
}

.map-card iframe:not([src]) {
  display: none;
}

.map-consent-blocker {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(31, 32, 29, 0.9), rgba(31, 32, 29, 0.68)),
    url("../../bilder/haendlersuche-header.jpg") center / cover;
}

.map-consent-blocker[hidden] {
  display: none;
}

.map-consent-blocker > div {
  max-width: 520px;
  padding: 26px;
  border-radius: 8px;
  background: rgba(32, 33, 31, 0.82);
  text-align: left;
}

.map-consent-blocker strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
}

.map-consent-blocker p {
  color: rgba(255, 253, 248, 0.84);
  line-height: 1.6;
}

.map-consent-blocker .button {
  margin: 6px 8px 0 0;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.map-unblock-button {
  display: grid;
  gap: 2px;
  min-width: 230px;
  width: max-content;
  margin: 18px auto 0;
  line-height: 1.18;
}

.map-note {
  padding: 14px 16px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.dealer-results {
  display: grid;
  gap: 14px;
}

.dealer-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.dealer-card h3 {
  margin-bottom: 6px;
  font-size: 24px;
}

.dealer-card p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.dealer-card .dealer-meta {
  color: var(--wine);
  font-weight: 900;
}

.dealer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dealer-actions a,
.dealer-actions button {
  min-width: 132px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.simple-page {
  padding-top: 86px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 34px clamp(18px, 4vw, 58px);
  color: rgba(255, 253, 248, 0.72);
  background: var(--ink);
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  max-width: 420px;
  margin: 10px 0 0;
}

.footer-brand img {
  width: 126px;
  height: auto;
}

.legal-page h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.legal-content {
  width: min(980px, 100%);
  display: grid;
  gap: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-content h2,
.legal-content h3 {
  margin-top: 22px;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 22px;
  line-height: 1.25;
}

.legal-content h3 {
  font-size: 18px;
}

.legal-content a {
  color: var(--wine);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  left: clamp(14px, 3vw, 34px);
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-banner strong,
.cookie-option strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}

.cookie-banner p,
.cookie-dialog p,
.cookie-option p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-dialog > .cookie-actions {
  margin-top: 24px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(32, 33, 31, 0.58);
}

.cookie-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.cookie-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.switch {
  display: inline-flex;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  width: 56px;
  height: 30px;
  position: relative;
  border-radius: 999px;
  background: var(--stone);
  transition: background 160ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(25, 23, 20, 0.18);
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: var(--wine);
}

.switch input:checked + span::after {
  transform: translateX(26px);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  background: rgba(32, 33, 31, 0.76);
}

.image-lightbox-dialog {
  position: relative;
  width: min(1040px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-lightbox-dialog img {
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  border-radius: 8px;
  background: var(--paper);
}

.image-lightbox-dialog strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
}

.image-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

@media (max-width: 1040px) {
  .product-grid,
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-panel,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .search-panel {
    display: block;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% - 4px);
    left: 18px;
    right: 18px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
    gap: 8px;
  }

  .main-nav a,
  .dealer-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0 12px;
  }

  .intro-grid,
  .quality-teaser,
  .quality-page,
  .map-layout {
    grid-template-columns: 1fr;
  }

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

  .feature-card {
    min-height: 360px;
  }

  .section-head.split,
  .download-panel {
    display: block;
  }

  .section-head.split .button,
  .download-panel .button {
    margin-top: 18px;
  }

  .dealer-form {
    margin-top: 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 78vh;
  }

  .hero-content {
    padding-top: 138px;
  }

  .hero-dealer-title {
    white-space: normal;
  }

  .actions .button,
  .form-actions .button {
    width: 100%;
  }

  .image-stack,
  .dealer-form,
  .product-grid,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .image-stack img,
  .image-stack img:first-child,
  .quality-media img,
  .gallery-row img {
    height: 320px;
    margin: 0;
  }

  .badge {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .map-card iframe {
    height: 390px;
  }

  .map-consent-blocker {
    min-height: 390px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions,
  .cookie-actions .button {
    width: 100%;
  }

  .cookie-option {
    grid-template-columns: 1fr;
  }
}
