/* Möbel Schnetzer, Landing Page. Masse aus Figma (Datei Wfsx550gsXKBfCMRJlOrfK, Node 1:258).
   Das Figma ist 1800 breit, der Inhalt 1440. Alles darunter skaliert über die clamp()-Werte. */

@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/figtree-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gelb: #fde101;
  --gruen: #14321a;
  --hell: #f8f6f2;
  --rand: clamp(16px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--gruen);
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 400;
  overflow-wrap: break-word;
}
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; }

/* Seite ------------------------------------------------------------------ */

.page {
  container-type: inline-size;
  width: min(1440px, 100% - 2 * var(--rand));
  margin-inline: auto;
  padding-block: clamp(24px, 5.56vw, 80px);
}

/* Kopf ------------------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1200px, 100%);
  margin: 0 auto clamp(24px, 5.56cqw, 80px);
}
.logo { width: clamp(140px, 13.62cqw, 196px); height: auto; }
.address { padding: 12px; font-size: clamp(16px, 1.39cqw, 20px); white-space: nowrap; }

/* Bühne ------------------------------------------------------------------ */

.stage { --pad: clamp(20px, 11.11cqw, 160px); }
.stage-top {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5cqw, 36px);
  padding: clamp(32px, 5.56cqw, 80px) var(--pad);
  background: var(--gelb);
  border-radius: 20px 20px 0 0;
}
h1 {
  font-size: min(96px, (100cqw - 2 * var(--pad)) * .08572);
  font-weight: 800;
  line-height: 1;
}
h1 span { display: block; white-space: nowrap; }
.lead { font-size: clamp(20px, 3.473cqw, 50px); line-height: 1.24; }
.lead--bold { font-weight: 700; }

.stage-bar {
  padding: clamp(20px, 2.78cqw, 40px) var(--pad);
  background: var(--gruen);
  border-radius: 0 0 20px 20px;
  color: #fff;
  font-size: clamp(16px, 1.945cqw, 28px);
  font-weight: 500;
  line-height: 1.2143;
  white-space: nowrap;
}
.stage-bar strong { font-weight: 700; }

/* Produktkarten ---------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5.56cqw, 80px) clamp(20px, 4.17cqw, 60px);
  width: min(1200px, 100%);
  margin: clamp(32px, 5.56cqw, 80px) auto 0;
}
.card { container-type: inline-size; }
.card-img { position: relative; aspect-ratio: 360 / 244; overflow: hidden; }
.card-img img {
  position: absolute;
  left: var(--l, 0);
  top: var(--t, 0);
  width: var(--w, 100%);
  height: var(--h, 100%);
  max-width: none;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-content: center;
  width: 39.44%;
  aspect-ratio: 1;
  padding-top: 1.4%;
  background: url(img/badge.svg) center / contain no-repeat;
  color: var(--gruen);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}
.badge span { display: block; rotate: -4deg; }
.badge span:first-child { font-size: 6.667cqw; line-height: 8.889cqw; }
.badge span:last-child { font-size: 13.333cqw; line-height: 12.5cqw; }
.card-txt {
  margin-top: 10px;
  padding-bottom: 40px;
  font-size: clamp(18px, 6.667cqw, 24px);
  line-height: 1.3334;
  hyphens: manual;
}

/* Textblock -------------------------------------------------------------- */

.text {
  margin-top: clamp(32px, 5.56cqw, 80px);
  padding: clamp(24px, 5.56cqw, 80px);
  background: var(--hell);
  border-radius: 20px;
  font-size: clamp(18px, 1.667cqw, 24px);
  line-height: 1.3334;
}
.text h2 { font-size: clamp(20px, 1.945cqw, 28px); font-weight: 600; line-height: 1.1429; }
.text > * + * { margin-top: 1.3334em; }
.text li::before { content: "• "; }

/* Besuch ----------------------------------------------------------------- */

.visit { background: var(--gruen); color: #fff; }
.visit-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(32px, 4.44vw, 80px);
  width: min(1440px, 100% - 2 * var(--rand));
  margin-inline: auto;
  padding-block: clamp(40px, 4.44vw, 80px);
}
.visit-main { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.visit-label { font-size: clamp(20px, 1.56vw, 28px); font-weight: 600; line-height: 1.1429; }
.visit h2 { font-size: clamp(28px, 2.67vw, 48px); font-weight: 800; line-height: 1.1667; }
.visit-quote { font-size: clamp(20px, 1.56vw, 28px); line-height: 1.3929; }
.btn {
  padding: clamp(16px, 1.34vw, 24px) clamp(28px, 2.23vw, 40px);
  border: 1px solid #fff;
  border-radius: 42px;
  color: #fff;
  font-size: clamp(20px, 1.78vw, 32px);
  font-weight: 700;
  line-height: 1.2188;
  text-decoration: none;
}
.btn:hover { background: #fff; color: var(--gruen); }

.visit-info { display: grid; gap: 10px; }
.info {
  display: grid;
  gap: 10px;
  padding-block: clamp(32px, 2.67vw, 48px);
  border-top: 1px solid rgb(255 255 255 / .3);
  font-size: clamp(18px, 1.34vw, 24px);
  line-height: 1.3334;
}
.info-label { color: rgb(255 255 255 / .7); font-size: clamp(15px, 1.12vw, 20px); font-weight: 700; line-height: 1.2; }
.info a { color: inherit; text-decoration: none; }
.info a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; }
.stage-bar :focus-visible, .visit :focus-visible, .pagefoot :focus-visible { outline-color: var(--gelb); }

/* Seitenfuss: Rechtliches ------------------------------------------------- */

.pagefoot { background: var(--gruen); color: rgb(255 255 255 / .72); }
.pagefoot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  width: min(1440px, 100% - 2 * var(--rand));
  margin-inline: auto;
  padding-block: 24px 32px;
  border-top: 1px solid rgb(255 255 255 / .3);
  font-size: 16px;
  line-height: 1.4;
}
.pagefoot nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.pagefoot a, .pagefoot button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.pagefoot a:hover, .pagefoot button:hover { color: #fff; text-decoration: underline; }

/* Rechtstexte (Impressum, Datenschutz) ------------------------------------- */

.legal {
  max-width: 840px;
  margin-inline: auto;
  font-size: clamp(17px, 1.39cqw, 20px);
  line-height: 1.4;
}
.legal h1 { font-size: min(48px, 7.2cqw); font-weight: 800; line-height: 1.1667; text-transform: uppercase; }
.legal h2 { margin-top: 56px; font-size: clamp(18px, 1.53cqw, 22px); font-weight: 800; line-height: 1.25; text-transform: uppercase; }
.legal h3 { margin-top: 28px; font-size: clamp(17px, 1.25cqw, 18px); font-weight: 700; line-height: 1.25; }
.legal p, .legal ul, .legal dl { margin-top: 16px; }
.legal h2 + p, .legal h3 + p { margin-top: 12px; }
.legal .lead { margin-top: 24px; font-size: inherit; line-height: inherit; }
.legal ul { padding-left: 22px; list-style: disc; }
.legal li + li { margin-top: 8px; }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 32px; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; }
.legal .tablewrap { margin-top: 20px; overflow-x: auto; }
.legal table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 16px; line-height: 1.44; }
.legal th, .legal td { padding: 12px 24px 12px 0; border-bottom: 1px solid rgb(20 50 26 / .2); text-align: left; vertical-align: top; }
.legal th:last-child, .legal td:last-child { padding-right: 0; }
.legal thead th { border-bottom-color: rgb(20 50 26 / .4); font-size: 14px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.legal tbody th { font-weight: 400; }
.legal code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 15px; white-space: nowrap; }
.legal .nowrap { white-space: nowrap; }
.legal .stamp { margin-top: 56px; padding-top: 16px; border-top: 1px solid rgb(20 50 26 / .2); font-size: 14px; }
.legal .back { display: inline-block; margin-top: 40px; font-weight: 700; }

/* Cookie-Banner ------------------------------------------------------------ */

.consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 100;
  max-height: 100dvh;
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid rgb(20 50 26 / .2);
  box-shadow: 0 -10px 40px rgb(20 50 26 / .14);
}
.consent[hidden] { display: none; }
.consent-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 48px;
  width: min(1440px, 100% - 2 * var(--rand));
  margin-inline: auto;
  padding-block: 24px;
}
.consent-text { flex: 1 1 400px; font-size: 16px; line-height: 1.5; }
.consent-text b { display: block; margin-bottom: 6px; font-weight: 800; text-transform: uppercase; }
.consent-text a { color: inherit; text-underline-offset: 3px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.consent button {
  padding: 13px 24px;
  border: 1px solid var(--gruen);
  border-radius: 42px;
  background: transparent;
  color: var(--gruen);
  font: 700 16px / 1.5 Figtree, system-ui, sans-serif;
  cursor: pointer;
}
.consent button:hover { background: var(--gruen); color: #fff; }
.consent-actions button { min-width: 190px; }
.consent .consent-more {
  order: 3;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent .consent-more:hover { background: none; color: var(--gruen); }
.consent-options {
  order: 4;
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgb(20 50 26 / .2);
}
.consent-options[hidden] { display: none; }
.consent-option { display: flex; gap: 12px; max-width: 760px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.consent-option input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gruen); cursor: pointer; }
.consent-option b { display: block; font-weight: 700; }

/* Schmalere Bildschirme ---------------------------------------------------- */

@container (max-width: 1000px) {
  .stage-bar { white-space: normal; }
  .stage-bar strong, .stage-bar span:not(.sep) { display: block; }
  .stage-bar .sep { display: none; }
}
@container (max-width: 800px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .br-wide { display: none; }
}
@container (max-width: 560px) {
  .address { padding: 0; text-align: right; }
  .address span:not(.sep) { display: block; }
  .address .sep { display: none; }
}
@container (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd + dt { margin-top: 12px; }
}
@media (max-width: 560px) {
  .consent-in { padding-block: 20px; }
  .consent-actions { width: 100%; }
  .consent-actions button { flex: 1 1 100%; min-width: 0; }
}
@media (max-width: 1000px) {
  .visit-in { grid-template-columns: 1fr; }
}
