@font-face {
  font-family: "Instrument Sans";
  src: url("./assets/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("./assets/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbf8f5;
  --white: #fff;
  --ink: #211b1a;
  --muted: #605553;
  --line: #e9e0db;
  --red: #a52b32;
  --red-dark: #862029;
  --heading: "Instrument Sans", Inter, Arial, sans-serif;
  --text: Inter, Arial, sans-serif;
  --radius: 18px;
  --gutter: clamp(20px, 4.8vw, 72px);
  --header: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.55 var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 700; }
h1 { font-size: clamp(43px, 5vw, 79px); letter-spacing: -.056em; line-height: .99; }
h2, .group-heading { font-size: clamp(30px, 3vw, 47px); letter-spacing: -.045em; line-height: 1.08; }
h3, h4 { letter-spacing: -.033em; line-height: 1.16; }
em { color: var(--red); font-style: normal; }
:focus-visible { outline: 3px solid #a33a42; outline-offset: 5px; }
[id] { scroll-margin-top: calc(var(--header) + 24px); }
.shell { width: min(100% - var(--gutter) * 2, 1280px); margin-inline: auto; }
.icon { flex: 0 0 auto; vertical-align: middle; }
.skip {
  position: fixed; z-index: 20; inset: 12px auto auto 12px; transform: translateY(-160%);
  padding: 10px 18px; border-radius: 8px; background: var(--red); color: white;
}
.skip:focus { transform: translateY(0); }

.site-header {
  position: sticky; z-index: 5; top: 0; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; flex: 0 1 auto; }
.brand img { width: clamp(171px, 17.6vw, 248px); height: auto; }
.top-nav { display: flex; align-items: center; gap: clamp(20px, 3.1vw, 43px); font-size: 14px; font-weight: 600; white-space: nowrap; }
.top-nav a:hover, .site-footer a:hover { color: var(--red); }
.nav-contact {
  display: inline-flex; align-items: center; gap: 8px; color: var(--red);
  border: 1px solid #e5c8c6; border-radius: 8px; padding: 8px 13px;
}
.nav-contact:hover { background: #fcf0ee; }
.nav-contact .icon { width: 16px; height: 16px; }

.home-hero { display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); align-items: center; gap: clamp(28px, 4.45vw, 65px); padding-block: clamp(36px, 3.9vw, 62px); }
.home-hero-copy { min-width: 0; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--red);
  font-size: 12px; line-height: 1.45; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow span { display: inline-block; width: 23px; height: 2px; background: var(--red); }
.home-hero h1 { max-width: 9em; }
.hero-intro { max-width: 37em; margin-top: 21px; color: var(--muted); font-size: clamp(16px, 1.38vw, 20px); line-height: 1.56; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 23px; margin-top: 27px; }
.home-hero-media {
  overflow: hidden; position: relative; justify-self: end; width: 100%; max-width: 540px;
  aspect-ratio: 180 / 154; background: #211b1a; border-radius: 21px 21px 21px 6px;
}
.home-hero-media img {
  /* Crop 560 pixels from (25, 19), ending before the adjacent phone mockup. */
  position: absolute; inset: -3.97% auto auto -4.46%; width: 250%; max-width: none; height: auto;
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 46px;
  padding: 11px 17px; border: 1px solid transparent; border-radius: 8px; width: fit-content;
  font-size: 14px; font-weight: 700; text-align: center; cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.button .icon, .text-link .icon { width: 17px; height: 17px; }
.button--primary { background: var(--red); color: var(--white); }
.button--primary:hover { background: var(--red-dark); }
.button--outline { border-color: #d9bfbd; background: transparent; color: var(--red); }
.button--outline:hover { background: #fbefed; border-color: var(--red); }
.text-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--red); font-size: 14px; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.finder { padding-block: 37px 39px; background: var(--white); border-block: 1px solid var(--line); }
.section-heading p { margin-top: 9px; color: var(--muted); font-size: 16px; }
.goal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 21px; scroll-margin-top: calc(var(--header) + 18px); }
.goal-button--neukunden, .flag--neukunden { --tint: #f8e8e6; --signal: #9d2c32; }
.goal-button--empfehlungen, .flag--empfehlungen { --tint: #f8eddc; --signal: #78470d; }
.goal-button--comeback, .flag--comeback { --tint: #f0e9f5; --signal: #66417b; }
.goal-button--gesundheit, .flag--gesundheit { --tint: #e5efe9; --signal: #2c654e; }
.goal-button {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%;
  padding: 15px 16px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: #fefdfc; color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.goal-button:hover, .goal-button[aria-pressed="true"] { border-color: var(--signal); background: var(--tint); }
.goal-button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--signal); }
.goal-icon {
  display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 11px;
  border-radius: 8px; background: var(--tint); color: var(--signal);
}
.goal-icon .icon { width: 20px; height: 20px; }
.goal-arrow { position: absolute; top: 20px; right: 16px; color: var(--signal); }
.goal-arrow .icon { width: 17px; height: 17px; }
.goal-arrow .goal-check, .goal-button[aria-pressed="true"] .goal-arrow .icon:first-child { display: none; }
.goal-button[aria-pressed="true"] .goal-check { display: inline-block; }
.goal-title { font: 700 clamp(16px, 1.52vw, 22px)/1.12 var(--heading); letter-spacing: -.038em; }
.goal-description { margin-top: 5px; color: var(--muted); font-size: 12.5px; line-height: 1.38; }

.catalogue { padding-block: 47px 58px; }
.catalogue-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 13px; margin-bottom: 25px; }
.filter-intro { max-inline-size: 64ch; }
#campaign-status { margin-top: 6px; font-size: 14px; }
.filter-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.change-goal { display: none; }
.reset-filter { flex: 0 0 auto; min-height: 40px; padding: 7px 12px; }
.reset-filter .icon { width: 14px; height: 14px; }
.group-heading { margin-bottom: 14px; }
.campaign-group:not([hidden]) ~ .campaign-group { margin-top: 42px; }
.campaign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.campaign-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color .18s ease, box-shadow .18s ease;
}
.campaign-card:hover, .campaign-card:focus-within { border-color: #d9a7a5; box-shadow: 0 7px 20px #3b181310; }
.campaign-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.campaign-link:focus-visible { outline: none; }
.campaign-link:focus-visible::after { outline: 3px solid #a33a42; outline-offset: 4px; }
.campaign-image { position: relative; aspect-ratio: 1.92; overflow: hidden; background: #eee5df; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.campaign-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.campaign-image:has(.campaign-slogan) { container-type: inline-size; }
.campaign-new, .campaign-slogan {
  position: absolute; inset-block-end: clamp(5px, 5.5%, 14px); inset-inline-start: clamp(8px, 4%, 17px);
  padding: clamp(3px, 1.8%, 8px) clamp(12px, 4.5%, 18px);
  border: 1px solid var(--white); border-radius: 999px; background: var(--red); color: var(--white);
  box-shadow: 0 3px 12px #211b1a38; font-size: 18px; line-height: 1.2; font-weight: 700;
}
.campaign-slogan {
  inset-block: clamp(6px, 5.5%, 14px) auto;
  max-inline-size: calc(100% - 16px);
  padding: clamp(3px, 1.4%, 6px) clamp(5px, 4% - 3px, 14px);
  font-size: clamp(10px, 4.2cqi, 15px); line-height: 1.15; letter-spacing: -.018em;
}
@container (max-width: 220px) {
  .campaign-slogan { inset-inline-start: 6px; padding-inline: 3px; }
  .campaign-slogan:not(:has(br)) { max-inline-size: 43%; text-wrap: balance; }
}
.campaign-card:hover img { transform: scale(1.025); }
.campaign-copy { display: flex; flex: 1; flex-direction: column; padding: 18px 19px 16px; }
.campaign-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flag {
  display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 4px 12px 4px 8px;
  border-radius: 3px 0 0 3px; clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 50%, 100% 100%, 0 100%);
  background: var(--tint); color: var(--signal); font-size: 11px; line-height: 1.25; font-weight: 700;
}
.campaign-card-title { margin-top: 10px; font-size: clamp(21px, 2.05vw, 30px); }
.campaign-copy p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.54; }
.campaign-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 11px; margin-top: auto; padding-top: 13px; }
.channels { align-self: center; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.card-arrow {
  display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px;
  border-radius: 50%; color: var(--red); background: #f9eeec; transition: color .18s ease, background-color .18s ease;
}
.card-arrow .icon { width: 18px; height: 18px; }
.campaign-card:hover .card-arrow, .campaign-card:focus-within .card-arrow { background: var(--red); color: white; }

.consult { padding-bottom: clamp(38px, 5.5vw, 78px); }
.consult-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 22px 32px;
  padding: clamp(23px, 4.3vw, 56px); border-radius: var(--radius);
  background: #f6eae7; border: 1px solid #eddbd6;
}
.consult h2 { font-size: clamp(26px, 3.1vw, 41px); }
.consult p { max-width: 55ch; margin-top: 9px; color: var(--muted); }
.consult .button { flex: 0 0 auto; }
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; padding-block: 15px; }
.footer-inner nav { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 21px; color: var(--muted); font-size: 12px; font-weight: 600; }
.footer-inner nav .icon { width: 13px; height: 13px; }

.profile-dialog {
  width: min(850px, calc(100% - 30px)); max-width: none;
  max-height: min(1025px, calc(100% - 34px)); padding: 0;
  overflow: auto; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); background: var(--white); box-shadow: 0 22px 80px #20131155;
}
.profile-dialog::backdrop { background: #2017179c; }
body:has(.profile-dialog[open]) { overflow: hidden; }
.profile-media { position: relative; background: #eee5df; }
.profile-media img { width: 100%; height: clamp(125px, 25vh, 238px); object-fit: contain; }
.close-button {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer;
}
.close-button:hover { color: var(--red); background: #fdf2f0; }
.close-button .icon { width: 20px; height: 20px; }
.profile-content { padding: clamp(19px, 3vw, 35px); }
.profile-content h2 { margin-top: 10px; font-size: clamp(32px, 5vw, 49px); }
.profile-facts { display: grid; gap: 13px; margin: 18px 0 0; }
.profile-facts dt { font: 700 clamp(17px, 2.4vw, 20px)/1.3 var(--heading); }
.profile-facts dd { margin: 4px 0 0; color: var(--muted); font-size: clamp(16px, 2.3vw, 19px); line-height: 1.5; }
.motif-disclosure {
  margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px;
  background: #fdfaf8;
}
.motif-disclosure summary {
  display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 13px;
  list-style: none; color: var(--red); font-size: 14px; font-weight: 700; cursor: pointer;
}
.motif-disclosure summary::-webkit-details-marker { display: none; }
.motif-disclosure summary:hover { background: #f9eeec; }
.motif-disclosure summary:focus-visible { outline-offset: -4px; }
.motif-count { margin-inline-start: auto; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.motif-disclosure summary .icon { width: 16px; height: 16px; }
.motif-disclosure[open] summary .icon { transform: rotate(180deg); }
.motif-versions { display: grid; gap: 20px; padding: 15px 13px; border-top: 1px solid var(--line); }
.motif-version h3 { font-size: 19px; }
.motif-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 164px), 1fr)); gap: 10px; }
.motif-version .motif-grid { margin-top: 10px; }
.motif-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.motif-grid img { width: 100%; height: auto; object-fit: contain; background: #201717; }
.motif-grid figcaption { padding: 7px 9px; font-size: 13px; font-weight: 700; }
.motif-thumb { position: relative; display: block; cursor: zoom-in; }
.motif-thumb:focus-visible { outline-offset: -4px; }
.motif-enlarge {
  position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center;
  width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--red); box-shadow: 0 2px 8px #20171730;
}
.motif-enlarge .icon { width: 21px; height: 21px; }
.motif-thumb:hover .motif-enlarge { background: var(--red); color: var(--white); }
.motif-version p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.motif-version .text-link { margin-top: 9px; }
.motif-viewer {
  width: min(96vw, 1520px); height: 94vh; height: 94dvh;
  max-width: calc(100% - 16px); max-height: calc(100% - 16px);
  overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); background: var(--white); box-shadow: 0 22px 80px #20131155;
}
.motif-viewer[open] { display: flex; flex-direction: column; }
.motif-viewer::backdrop { background: #201717c9; }
.motif-viewer-bar, .motif-viewer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.motif-viewer-bar { justify-content: space-between; padding: 12px 17px; border-bottom: 1px solid var(--line); }
.motif-viewer-bar h2 { font-size: clamp(21px, 3vw, 29px); }
.motif-viewer-actions form { margin: 0; }
.motif-viewer-actions button:disabled { cursor: wait; opacity: .6; }
.motif-viewport {
  position: relative; display: grid; place-items: center; flex: 1; min-height: 0;
  overflow: auto; overscroll-behavior: contain; background: #eee9e4;
}
.motif-viewport:focus-visible { outline-offset: -4px; }
.motif-viewport img {
  position: absolute; inset: 0; margin: auto; width: auto; height: auto;
  max-width: calc(100% - 20px); max-height: calc(100% - 20px); object-fit: contain;
}
.motif-viewport.motif-original-size { display: block; }
.motif-original-size img { position: static; max-width: none; max-height: none; }
.motif-image-status { padding: 12px; color: var(--muted); text-align: center; }
.profile-action {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line);
}
.profile-action form { margin: 0; }
.profile-action .profile-version { flex-basis: 100%; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.profile-action .new-tab-note { flex-basis: 100%; color: var(--muted); font-size: 12px; }

@media (max-width: 1040px) {
  .home-hero h1 { font-size: clamp(40px, 5.7vw, 64px); }
  .goal-description { font-size: 12px; }
}
@media (max-width: 860px) {
  .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 20px; }
}
@media (max-width: 740px) {
  :root { --header: 58px; }
  .top-nav { font-size: 12px; gap: 13px; }
  .nav-finder { display: none; }
  .nav-contact { padding: 6px 8px; gap: 4px; }
  .nav-contact .icon { width: 13px; height: 13px; }
  .home-hero { grid-template-columns: 1fr; gap: 21px; }
  .home-hero { padding-block: 31px 28px; }
  .home-hero h1 { max-width: 10em; font-size: clamp(44px, 8.8vw, 63px); }
  .hero-intro { margin-top: 16px; }
  .eyebrow { margin-bottom: 13px; }
  .home-hero-media { justify-self: start; }
  .hero-actions { margin-top: 19px; }
  .finder { padding-block: 27px 31px; }
  .goal-grid { gap: 9px; margin-top: 16px; }
  .goal-button { padding: 12px; }
  .goal-arrow { right: 12px; top: 15px; }
  .goal-icon { width: 32px; height: 32px; margin-bottom: 8px; }
  .goal-icon .icon { width: 18px; height: 18px; }
  .catalogue { padding-block: 32px 37px; }
  .catalogue-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
  .change-goal { display: inline-flex; }
  .campaign-group:not([hidden]) ~ .campaign-group { margin-top: 29px; }
  .campaign-grid { gap: 12px; }
  .campaign-copy { padding: 14px; }
  .consult-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 440px) {
  .header-inner { gap: 8px; }
  .top-nav { gap: 8px; font-size: 11.5px; }
  .nav-contact { border: none; padding: 5px 0 5px 3px; }
  .brand img { width: clamp(110px, 37vw, 143px); }
  .hero-actions { gap: 11px 14px; }
  .hero-actions .button { padding-inline: 12px; }
  .hero-actions .text-link, .hero-actions .button { font-size: 13px; }
  .hero-actions .icon { width: 15px; height: 15px; }
  .home-hero-media { border-radius: 14px 14px 14px 5px; }
  .campaign-grid { grid-template-columns: 1fr; }
  .motif-grid { grid-template-columns: 1fr; }
  .catalogue-heading { align-items: flex-start; flex-wrap: wrap; }
  .reset-filter { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
