:root {
  --ink: #183029;
  --muted: #607169;
  --forest: #164b3b;
  --forest-2: #26735b;
  --red: #c20a42;
  --orange: #ec6b20;
  --gold: #e4b339;
  --sky: #347f9c;
  --cream: #f5eee3;
  --paper: rgba(255, 253, 249, .94);
  --line: #d9dfd8;
  --shadow: 0 18px 50px rgba(28, 45, 37, .12);
  --radius: 8px;
  --body: "Segoe UI Variable", "Aptos", "Segoe UI", Arial, sans-serif;
  --display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  --marker: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--cream) url("/assets/images/sauerland-collage-creme-v1.png") fixed center / cover;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(248, 243, 235, .68);
  pointer-events: none;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { overflow-wrap: normal; word-break: normal; hyphens: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.08; letter-spacing: 0; }
p { margin: 0; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 68px;
  padding: 8px max(22px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid rgba(22, 75, 59, .16);
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 7px 22px rgba(25, 50, 41, .08);
  backdrop-filter: blur(14px);
}
.app-header > *, main > *, .section > *, .about-section > *, .demo-layout > * { min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 54px; height: 42px; object-fit: contain; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 20px; }
.brand small { color: var(--muted); font-size: 11px; }
nav { display: flex; justify-content: center; gap: 4px; }
nav a {
  border-radius: 6px;
  padding: 9px 12px;
  color: #315046;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
nav a:hover, nav a:focus-visible { color: #fff; background: var(--forest); }
.admin-trigger, .menu-toggle {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--forest);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.menu-toggle { display: none; }

main { width: 100%; max-width: 1600px; margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  min-height: calc(100vh - 68px);
  max-height: 830px;
  padding: clamp(54px, 8vw, 110px) clamp(22px, 5vw, 76px);
}
.hero > * { min-width: 0; }
.hero-copy { max-width: 840px; }
.eyebrow {
  margin-bottom: 9px;
  color: #b84b00;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero h1 { max-width: 17ch; font-size: 64px; hyphens: none; }
.hero h1 span { color: var(--forest-2); }
.hero-copy > p:not(.eyebrow) { max-width: 68ch; margin-top: 24px; color: #40564e; font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 15px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { color: #fff; background: var(--red); box-shadow: 0 6px 14px rgba(194, 10, 66, .2); }
.button.secondary { border-color: #bfd0c8; color: var(--forest); background: #fff; }
.button.danger { border-color: #efc3ce; color: #a20836; background: #fff5f7; }
.kalle-hero { position: relative; margin: 0; }
.kalle-hero img { display: block; width: min(100%, 410px); margin: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.kalle-hero figcaption {
  position: absolute;
  right: 8px;
  bottom: -18px;
  display: grid;
  width: min(270px, calc(100% - 16px));
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.kalle-hero figcaption span { color: var(--muted); font-size: 13px; }

.section, .about-section {
  container-type: inline-size;
  margin: 0 clamp(14px, 3vw, 44px) 30px;
  border: 1px solid rgba(192, 161, 123, .34);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 48px);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.section-tint { background: rgba(246, 251, 248, .95); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}
.section-head h2, .about-section h2 { font-size: 38px; }
.section-head > p { max-width: 52ch; color: var(--muted); }
.filter-row, .product-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.category-scenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.category-scene {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 126px;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  padding: 18px;
  background-image:
    linear-gradient(180deg, transparent 20%, rgba(10, 33, 27, .82) 100%),
    url("/assets/images/categories/sauerland-lifestyle-panorama-v1.png");
  background-repeat: no-repeat;
  background-size: 300% 100%;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.category-scene:hover, .category-scene:focus-visible { outline: 3px solid rgba(222, 31, 74, .42); outline-offset: 2px; }
.scene-nutrition { background-position: 0 center; }
.scene-sport { background-position: 50% center; }
.scene-everyday { background-position: 100% center; }
.category-scene span { font-size: 18px; font-weight: 950; }
.category-scene small { margin-top: 2px; color: rgba(255,255,255,.9); font-size: 12px; font-weight: 750; }
.catalog-status { margin: -6px 0 12px; color: var(--muted); font-size: 12px; font-weight: 750; }
.empty-state { grid-column: 1 / -1; padding: 20px; border: 1px dashed var(--line); color: var(--muted); }
label { display: grid; gap: 5px; color: #3c5149; font-size: 12px; font-weight: 850; }
select, input {
  min-height: 42px;
  border: 1px solid #cbd7d0;
  border-radius: 6px;
  padding: 8px 11px;
  color: var(--ink);
  background: #fff;
}
.search { min-width: min(380px, 100%); }

.combination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 12px;
}
.combination-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent, var(--forest-2));
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
}
.combination-card:nth-child(4n+2) { --accent: var(--red); }
.combination-card:nth-child(4n+3) { --accent: #bb7a00; }
.combination-card:nth-child(4n+4) { --accent: var(--sky); }
.combination-head { padding: 16px 16px 10px; }
.combination-head > span { color: var(--accent); font-size: 11px; font-weight: 950; text-transform: uppercase; }
.combination-head h3 { margin-top: 3px; font-size: 20px; }
.combination-head p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.combination-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; font-weight: 750; }
.bundle-price { color: var(--red); }
.combination-products { display: grid; gap: 6px; padding: 0 10px 12px; }
.combination-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border: 1px solid #d9e1dc;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fbfdfb;
}
.combination-product-name { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 900; }
.price-stack { display: grid; justify-items: end; min-width: max-content; line-height: 1.1; }
.price-old {
  position: relative;
  color: #1f2925;
  font-size: 12px;
  font-weight: 800;
}
.price-old::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  top: 52%;
  height: 3px;
  border-radius: 70% 35% 60% 45%;
  background: var(--red);
  transform: rotate(-2deg);
  opacity: .88;
}
.price-new { color: var(--red); font-family: var(--marker); font-size: 13px; font-weight: 900; transform: rotate(-1deg); }
.offer-note { grid-column: 1 / -1; color: #9d4a12; font-size: 11px; font-weight: 800; }
.combination-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 10px 12px; }
.text-action { border: 0; padding: 3px; color: #286ba0; background: transparent; font-weight: 800; cursor: pointer; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 10px;
}
.product-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}
.product-card img { width: 70px; height: 76px; border-radius: 5px; object-fit: contain; background: #f7f4ef; }
.product-copy { min-width: 0; }
.product-copy h3 {
  margin-bottom: 5px;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.product-copy > p { min-height: 36px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.product-card .price-stack { align-items: start; justify-items: start; margin-top: 7px; }
.product-card .offer-note { margin-top: 4px; }
.product-unit { display: block; margin-top: 4px; color: #64726b; font-size: 11px; }
.product-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #edf0ed; padding-top: 7px; }
.category-chip { color: #b54b00; font-size: 11px; font-weight: 900; }

.kalle-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  padding: 11px 13px;
  background: #fff8e8;
}
.kalle-note img { width: 50px; height: 50px; border-radius: 5px; object-fit: cover; }
.kalle-note p { color: #46564f; font-size: 13px; }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.routine-card, .week-card {
  container-type: inline-size;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}
.card-label { color: #b84b00; font-size: 11px; font-weight: 950; text-transform: uppercase; }
.routine-card h3, .week-card h3 { margin: 3px 0 10px; font-size: 22px; }
.demo-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 5px;
  border: 1px solid #dce4de;
  border-radius: 5px;
  padding: 8px;
}
.demo-product p { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.data-caveat { margin: 10px 0; color: var(--muted); font-size: 12px; }
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 92px), 1fr));
  gap: 5px;
  margin: 0;
}
.metric-row div { border: 1px solid #dce4de; border-radius: 5px; padding: 7px; }
.metric-row dt { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.metric-row dd { margin: 1px 0 0; font-size: 14px; font-weight: 900; }
.week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 5px;
  padding-bottom: 5px;
}
.week-day { min-width: 0; border: 1px solid #dbe2dd; border-radius: 5px; padding: 8px; background: #fbfdfb; }
.week-day strong { display: block; color: #b84b00; font-size: 10px; text-transform: uppercase; }
.week-day b { display: block; margin: 4px 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.22; }
.week-day span { display: block; color: #566860; font-size: 10px; line-height: 1.25; }
.abbreviation-legend { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 10px; border-top: 1px solid #e1e5e2; padding-top: 8px; color: var(--muted); font-size: 11px; }
.abbreviation-legend strong { color: var(--ink); }
.export-actions { display: flex; gap: 6px; }

.about-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 90px); background: rgba(22, 75, 59, .96); color: #fff; }
.about-section .eyebrow { color: #ffd676; }
.about-copy { display: grid; gap: 14px; color: rgba(255,255,255,.86); }
.about-copy ul { display: grid; gap: 7px; margin: 0; padding-left: 19px; color: #fff; font-weight: 750; }

.offer-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: var(--radius); padding: 0; box-shadow: 0 30px 90px rgba(15, 30, 24, .35); }
.offer-dialog::backdrop { background: rgba(15, 30, 24, .55); backdrop-filter: blur(4px); }
.dialog-shell { padding: 22px; }
.dialog-shell > header { display: flex; justify-content: space-between; align-items: start; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 50%; font-size: 25px; background: #f1f4f2; cursor: pointer; }
.dialog-help { margin: 10px 0 16px; color: var(--muted); font-size: 13px; }
.default-offer { display: flex; align-items: end; gap: 10px; border-radius: 6px; padding: 10px; background: #f3f8f5; }
.default-offer input { width: 100px; }
.offer-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.offer-editor > label, #offerFields { min-width: 0; }
#offerFields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; grid-column: 1 / -1; }
.dialog-actions { grid-column: 1 / -1; display: flex; justify-content: end; gap: 8px; }
.offer-summary { display: grid; gap: 5px; margin-top: 14px; }
.offer-summary article { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #e3e8e5; padding-top: 6px; font-size: 12px; }

.app-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 10px 20px;
  color: #fff;
  background: #123e32;
  font-size: 12px;
  font-weight: 750;
}
.app-footer img { width: 38px; filter: brightness(0) invert(1); }

@container (min-width: 940px) {
  .demo-layout { grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); }
}

@container (max-width: 640px) {
  .section-head { align-items: start; flex-direction: column; gap: 9px; }
  .export-actions { width: 100%; }
  .export-actions .button { flex: 1; }
}

@container (max-width: 420px) {
  .demo-product { grid-template-columns: 1fr; }
  .demo-product span, .demo-product p { grid-column: 1; }
  .combination-product { grid-template-columns: 1fr; }
  .price-stack { justify-items: start; min-width: 0; }
}

@container (max-width: 170px) {
  .week-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 64px; }
  .app-header { grid-template-columns: auto 1fr auto; min-height: 60px; padding: 7px 14px; }
  .brand small, .admin-trigger { display: none; }
  .menu-toggle { display: grid; grid-template-columns: 18px auto; align-items: center; gap: 0 7px; padding: 7px 9px; }
  .menu-toggle span { grid-column: 1; width: 18px; height: 2px; margin: 1px 0; background: var(--forest); }
  .menu-toggle b { grid-column: 2; grid-row: 1 / 4; font-size: 12px; }
  nav {
    position: absolute;
    top: 60px;
    right: 10px;
    display: none;
    width: min(320px, calc(100vw - 20px));
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  nav.open { display: grid; }
  nav a { padding: 11px; }
  .hero { grid-template-columns: 1fr; min-height: auto; max-height: none; padding-top: 48px; }
  .hero h1 { font-size: 46px; }
  .kalle-hero { width: min(430px, 100%); margin: 0 auto 18px; }
  .category-scene { min-height: 104px; background-size: cover; }
  .scene-nutrition { background-position: 14% center; }
  .scene-sport { background-position: 50% center; }
  .scene-everyday { background-position: 88% center; }
  .about-section { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  body { font-size: 15px; }
  .brand img { width: 44px; height: 36px; }
  .brand strong { font-size: 17px; }
  .hero { padding: 38px 16px 46px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .kalle-hero figcaption { right: 5px; bottom: -16px; }
  .section, .about-section { margin: 0 8px 16px; padding: 18px 12px; }
  .section-head h2, .about-section h2 { font-size: 28px; }
  .filter-row label, .product-toolbar label, .product-toolbar .button { width: 100%; }
  .product-card { grid-template-columns: 62px minmax(0, 1fr); }
  .product-card img { width: 62px; height: 68px; }
  .offer-editor { grid-template-columns: 1fr; }
  .offer-editor > label, #offerFields, .dialog-actions { grid-column: 1; }
  #offerFields { grid-template-columns: 1fr 1fr; }
  .app-footer { align-items: start; text-align: center; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 36px; }
  .hero { padding-inline: 12px; }
  .section, .about-section { margin-inline: 5px; padding-inline: 10px; }
  .kalle-note { align-items: flex-start; }
}

@media print {
  .app-header, .hero, #beratung, #produkte, #ueber-uns, .app-footer, .export-actions { display: none !important; }
  body { background: #fff; }
  body::before { display: none; }
  #wochenplan { margin: 0; border: 0; box-shadow: none; }
  .week-grid { grid-template-columns: repeat(7, 1fr); overflow: visible; }
}
