/* ===== smellstop Linktree ===================================== */
:root {
  --red:        #cf0811;   /* Markenrot aus dem Logo */
  --red-dark:   #a80710;
  --ink:        #0f1b1a;   /* Claim-Farbe aus dem Logo */
  --ink-soft:   #5c6664;
  --line:       #e4e1dc;
  --paper:      #fbfaf8;   /* fast weiß, damit das Logo sauber steht */
  --card:       #ffffff;
  --radius:     14px;
  --font:       "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  /* dezente rote Kante oben – das einzige „laute“ Element */
  border-top: 6px solid var(--red);
  min-height: 100vh;
}

.page {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 20px 32px;
}

/* ---- Logo ------------------------------------------------------ */
.brand { text-align: center; margin-bottom: 32px; }

.brand__logo {
  width: min(100%, 260px);
  height: auto;
  display: inline-block;
}
/* Mobil 20 % größer */
@media (max-width: 600px) {
  .brand__logo { width: min(100%, 312px); }
}

/* ---- Links ----------------------------------------------------- */
.links { display: flex; flex-direction: column; gap: 10px; }

.links__group {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 22px 0 4px 4px;
}
.links__group:first-child { margin-top: 0; }
.links__gap { height: 14px; }

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.link:hover  { border-color: var(--red); transform: translateY(-1px); }
.link:active { transform: translateY(0); }
.link:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.link__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: var(--red);
}

.link__label { display: flex; flex-direction: column; }
.link__label small {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* Hauptaktion: Anrufen in Markenrot */
.link--primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.link--primary .link__icon { fill: #fff; }
.link--primary .link__label small { color: rgba(255,255,255,.8); }
.link--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ---- Footer ---------------------------------------------------- */
.foot {
  margin-top: 40px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot a:hover { color: var(--red); }

/* ---- Bewegung reduzieren --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .link { transition: none; }
  .link:hover { transform: none; }
}

/* ---- Intro unter dem Logo ---------------------------------------- */
.brand__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 22px 0 8px;
  color: var(--ink);
}
.brand__intro {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---- Kartenseite ------------------------------------------------- */
.body--full { border-top: 0; }
.mapwrap { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.mapbar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--red);
}
.mapbar__back {
  color: #fff; text-decoration: none; font-size: 1.8rem; line-height: 1;
  padding: 0 8px 4px 4px;
}
.mapbar__input {
  flex: 1; min-width: 0; padding: 10px 12px; font: inherit; font-weight: 600;
  border: 0; border-radius: 10px; background: #fff; color: var(--ink);
}
.mapbar__btn {
  padding: 10px 14px; font: inherit; font-weight: 700; border: 0;
  border-radius: 10px; background: var(--ink); color: #fff; cursor: pointer;
}
.map { flex: 1; width: 100%; border: 0; }
.mapfoot { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--paper); }
.mapfoot .link { padding: 12px 16px; }

/* ---- Newsletter --------------------------------------------------- */
.newsletter {
  margin-top: 36px;
  padding: 22px 20px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.newsletter__title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; }
.newsletter__text  { margin: 0 0 16px; font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); }
.newsletter__form  { display: flex; flex-direction: column; gap: 10px; }
.newsletter__hp    { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter__input {
  width: 100%; padding: 13px 14px; font: inherit; font-weight: 600;
  border: 2px solid var(--ink-soft); border-radius: 0; background: #fff; color: var(--ink);
}
.newsletter__input:focus { outline: none; border-color: var(--red); }
/* Platzhaltertext verschwindet, sobald das Feld aktiv ist */
.newsletter__input:focus::placeholder { color: transparent; }
.newsletter__input::placeholder { color: #8a9290; opacity: 1; }
.newsletter__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8rem; line-height: 1.45; color: var(--ink-soft); }
.newsletter__consent input {
  flex: 0 0 auto; margin: 1px 0 0; width: 22px; height: 22px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  border: 2px solid var(--ink-soft); border-radius: 0; background: #fff;
  display: grid; place-content: center;
}
.newsletter__consent input::before {
  content: ""; width: 12px; height: 12px; background: var(--red);
  transform: scale(0); transition: transform .12s ease-in-out;
}
.newsletter__consent input:checked { border-color: var(--red); }
.newsletter__consent input:checked::before { transform: scale(1); }
.newsletter__consent input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.newsletter__consent a { color: inherit; text-decoration: underline; }
.newsletter__btn {
  padding: 14px; font: inherit; font-weight: 700; font-size: 1rem; border: 0;
  border-radius: 10px; background: var(--red); color: #fff; cursor: pointer;
}
.newsletter__btn:hover { background: var(--red-dark); }
.newsletter__btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.newsletter__msg { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; }
.newsletter__msg--ok  { background: #e8f5ec; border: 1px solid #b7dfc3; color: #1f5a33; }
.newsletter__msg--err { background: #fdecec; border: 1px solid #f3b8b8; color: #8a1010; }

/* ---- Impressum (klein, unter allem) ------------------------------ */
.imprint {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 21px;   /* bündig mit dem Text in den weißen Kästen */
  padding-right: 21px;
}
.imprint__title { font-size: 0.8rem; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.imprint h3 { font-size: 0.72rem; font-weight: 800; color: var(--ink); margin: 14px 0 6px; }
.imprint p { margin: 0 0 8px; }
.imprint dl { margin: 0 0 8px; }
.imprint dt { font-weight: 700; margin-top: 6px; }
.imprint dd { margin: 0; }
.imprint a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.imprint a:hover { color: var(--red); }

/* ---- Gewinnspiel / Rubbellos -------------------------------------- */
.scratch { text-align: center; }
.scratch__title { font-size: 1.4rem; font-weight: 800; margin: 20px 0 8px; }
.scratch__text  { font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 18px; }
.scratch__card {
  position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 260px;
  border-radius: 18px; overflow: hidden; background: var(--red);
  box-shadow: 0 10px 30px rgba(207, 8, 17, .25);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.scratch__prize {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff;
  opacity: 0; transform: scale(.6); transition: opacity .45s ease .15s, transform .55s cubic-bezier(.2, 1.4, .4, 1) .15s;
}
.scratch__card.is-won .scratch__prize { opacity: 1; transform: scale(1); }
/* Platzhalter unter der Rubbelschicht – verrät nichts */
.scratch__teaser {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px;
  color: rgba(255,255,255,.35); font-size: 3.2rem; font-weight: 800;
  transition: opacity .3s;
}
.scratch__card.is-won .scratch__teaser { opacity: 0; }
.scratch__prize-big   { font-size: 4rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.scratch__prize-small { font-size: 1rem; font-weight: 700; margin-top: 6px; opacity: .9; }
.scratch__canvas { position: absolute; inset: 0; cursor: pointer; border-radius: 18px; }
.scratch__win {
  margin-top: 26px; padding: 22px 20px; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease;
}
.scratch__win.is-in { opacity: 1; transform: none; }
.scratch__win-title { font-size: 1.3rem; font-weight: 800; color: var(--red); margin: 0 0 6px; }
.scratch--done .link { margin-top: 10px; }

/* ---- Teilnahmebedingungen (ausklappbar) --------------------------- */
.terms { margin-top: 16px; font-size: 0.72rem; line-height: 1.5; color: var(--ink-soft); }
.terms__summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 6px; }
.terms__summary::-webkit-details-marker { display: none; }
.terms__summary::before { content: "▸"; font-size: .8em; transition: transform .2s; }
.terms[open] .terms__summary::before { transform: rotate(90deg); }
.terms__body { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }

/* ---- Konfetti ------------------------------------------------------ */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.scratch__card.is-won { animation: won-pop .7s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes won-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06) rotate(-1.5deg); }
  70%  { transform: scale(.98) rotate(1deg); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .scratch__card.is-won { animation: none; } }

/* ---- Impressum / Datenschutz als Tabs ------------------------------ */
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal__tabs { display: flex; gap: 8px; padding: 0 21px; margin-bottom: 4px; }
.legal__tab {
  font: inherit; font-size: 0.8rem; font-weight: 700; padding: 8px 14px; cursor: pointer;
  background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); border-radius: 999px;
}
.legal__tab.is-on { color: var(--ink); background: var(--card); border-color: var(--ink-soft); }
.legal__tab:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.legal__panel { margin-top: 0; padding-top: 12px; border-top: 0; }
.imprint strong { color: var(--ink); }

/* ---- Cookie-Hinweis ---------------------------------------------------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  max-width: 440px; margin: 0 auto; display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; background: var(--ink); color: #fff; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .3s, transform .3s;
}
.cookie.is-out { opacity: 0; transform: translateY(10px); }
.cookie__text { margin: 0; font-size: 0.78rem; line-height: 1.45; flex: 1; }
.cookie__text a { color: #fff; text-decoration: underline; }
.cookie__btn {
  font: inherit; font-size: 0.85rem; font-weight: 700; padding: 10px 14px; border: 0; cursor: pointer;
  border-radius: 10px; background: var(--red); color: #fff; white-space: nowrap;
}
