/* Askim · getaskim.de
   Farben: Teerot und Zuckerweiss aus der App, Schrift: Barlow (selbst gehostet, OFL). */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --cay: #D2301F;       /* Teerot: Flächen und Akzente */
  --cay-koyu: #A51D12;  /* dunkler Tee: Hover, Tiefe */
  --demli: #3A0C0E;     /* stark gezogener Tee: Text, Footer */
  --mercan: #FF8674;    /* Koralle aus den App-Grafiken */
  --seker: #FFF5E4;     /* Würfelzucker: helle Flächen */
  --kagit: #FFFFFF;
  --gri: #6B4A47;       /* gedämpfter Text */
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --band: clamp(4rem, 10vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; color: var(--demli); background: var(--kagit); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999rem; top: .5rem; z-index: 100; padding: .75rem 1rem; background: var(--kagit); color: var(--demli); font-weight: 600; }
.skip:focus { left: .5rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* Bänder */
.band { padding-block: var(--band); }
.band--red { background: var(--cay); color: #fff; }
.band--cream { background: var(--seker); }
.band--wine { background: var(--demli); color: var(--seker); }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 50; background: var(--cay); color: #fff; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1; text-decoration: none; }
.brand img { width: 2.4rem; height: 2.4rem; border-radius: 22%; box-shadow: 0 0 0 2px var(--seker); }
.nav { display: none; gap: 1.75rem; font-weight: 600; }
.nav a { padding-block: .35rem; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }
.btn { display: inline-flex; align-items: center; padding: .7rem 1.2rem; border-radius: 999px; background: #fff; color: var(--cay-koyu); font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1; text-decoration: none; }
.btn:hover { background: var(--seker); }

/* Store-Buttons */
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 11.5rem)); gap: .75rem; margin-top: 1.75rem; }
.store { display: flex; flex-direction: column; justify-content: center; padding: .7rem 1.1rem .85rem; border-radius: 1rem; background: #fff; color: var(--demli); line-height: 1.05; text-decoration: none; }
.store:hover { background: var(--seker); }
.store__small { font-size: .84rem; font-weight: 600; color: var(--gri); }
.store__big { font-family: var(--display); font-weight: 700; font-size: 1.7rem; }
.note { margin-top: 1rem; max-width: 30rem; font-size: .95rem; }

/* Hero */
.hero { padding-block: clamp(2.25rem, 6vw, 4.5rem) 0; overflow: hidden; }
.hero__grid { display: grid; gap: 2.75rem; }
.hero h1 { font-size: clamp(3.1rem, 13.5vw, 6.2rem); line-height: .92; letter-spacing: -.01em; }
.hero__lede { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(1.15rem, 2.6vw, 1.35rem); line-height: 1.45; }
.hero__visual { position: relative; width: min(100%, 30rem); margin-inline: auto; aspect-ratio: 10 / 13; }
.hero__photo { position: absolute; top: 0; right: 0; width: 76%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1.75rem; }
.hero__phone { position: absolute; left: -7%; top: 41%; width: 53%; filter: drop-shadow(0 1.4rem 2rem rgba(74, 9, 9, .5)); }
.entry { position: absolute; right: 0; top: 66%; width: 50%; padding: .9rem 1rem 1rem; background: var(--seker); color: var(--demli); border-radius: .35rem; transform: rotate(-2deg); box-shadow: 0 .6rem 1.4rem rgba(74, 9, 9, .35); }
.entry span { display: block; }
.entry__word { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(2rem, 8vw, 2.9rem); line-height: .95; color: var(--cay); }
.entry__meta { margin-top: .3rem; font-size: .8rem; color: var(--gri); }
.entry__def { margin-top: .15rem; font-weight: 600; line-height: 1.25; }

/* Wörterbuch-Zeile über den Abschnitten */
.lemma { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .9rem; margin-bottom: 1rem; }
.lemma__tr { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(3.3rem, 13vw, 6.25rem); line-height: .9; letter-spacing: -.01em; color: var(--cay); }
.lemma__gloss { font-size: 1rem; color: var(--gri); }
.band--red .lemma__tr { color: var(--seker); }
.band--red .lemma__gloss { color: #fff; }
.h2 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); line-height: 1.05; }

/* Einleitung */
.intro__grid { display: grid; gap: 2rem; }
.intro__text p + p { margin-top: 1rem; }
.facts { display: grid; gap: 1.25rem; margin-top: 2.25rem; }
.facts dt { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.facts dd { color: var(--gri); }

/* Film */
.band--wine .lemma__tr { color: var(--mercan); }
.band--wine .lemma__gloss { color: var(--seker); }
.film__lede { margin-top: .75rem; max-width: 36rem; }
.film__frame { position: relative; margin-top: 2rem; aspect-ratio: 16 / 9; border-radius: 1.25rem; overflow: hidden; background: #000; }
.film__play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.film__play img { width: 100%; height: 100%; object-fit: cover; }
.film__cta { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .7rem; padding: .6em 1.1em .6em .95em; border-radius: 999px; background: var(--seker); color: var(--demli); font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 3.2vw, 1.9rem); line-height: 1; white-space: nowrap; }
.film__tri { width: 0; height: 0; border-style: solid; border-width: .45em 0 .45em .75em; border-color: transparent transparent transparent var(--cay); }
.film__play:hover .film__cta { background: #fff; }
.film__play:focus-visible { outline: 3px solid var(--seker); outline-offset: -7px; border-radius: 1.25rem; }
.film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__note { margin-top: .9rem; max-width: 44rem; font-size: .9rem; color: #E9D3C4; }
.film__note a { color: #fff; }

/* Funktionen */
.rows { display: grid; gap: clamp(4.5rem, 9vw, 6.5rem); }
.row { display: grid; gap: 2rem; align-items: center; }
.row__media { order: 2; }
.row__media img { width: min(100%, 23rem); margin-inline: auto; border-radius: 1.5rem; }
.row__media--photo img { width: min(100%, 30rem); aspect-ratio: 4 / 5; object-fit: cover; }
.row__body { max-width: 34rem; }
.row__body .h2 { margin-bottom: 1rem; }
.row__body p + p { margin-top: 1rem; }
.row__body a { color: var(--cay-koyu); font-weight: 600; }

/* Schritte */
.steps { display: grid; gap: 2rem 2.5rem; margin-top: 2.5rem; list-style: none; counter-reset: schritt; }
.steps li { padding-top: 1rem; border-top: 2px solid rgba(255, 255, 255, .4); counter-increment: schritt; }
.steps li::before { content: counter(schritt); display: block; font-family: var(--display); font-weight: 700; font-size: 3.75rem; line-height: 1; color: var(--seker); }
.steps h3 { margin: .35rem 0 .4rem; font-size: 1.65rem; }

/* Städte */
.cities__grid { display: grid; gap: 2rem; align-items: center; }
.cities__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 1.5rem; }
.cities .h2 { margin-bottom: 1rem; }
.citylist__intro { margin-top: 1.5rem; }
.citylist { margin-top: .6rem; list-style: none; columns: 2; column-gap: 1.5rem; font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1.45; }

/* Fragen */
.faq__grid { display: grid; gap: 2rem; }
.faq details { border-top: 1px solid rgba(58, 12, 14, .2); }
.faq details:last-child { border-bottom: 1px solid rgba(58, 12, 14, .2); }
.faq summary { display: flex; justify-content: space-between; gap: 1.25rem; padding: 1.1rem 0; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 1.05rem; height: 1.05rem; margin-top: .3rem; color: var(--cay); background: linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat, linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 40rem; padding: 0 2rem 1.3rem 0; }
.faq details a { color: var(--cay-koyu); font-weight: 600; }

/* Abschluss */
.cta__grid { display: grid; gap: 2.5rem; align-items: center; }
.cta__qr { display: none; }

/* Fuss */
.foot { padding-block: 3.5rem 2rem; font-size: 1rem; }
.foot__grid { display: grid; gap: 2.25rem; }
.foot__about { max-width: 20rem; margin-top: 1rem; }
.foot__h { margin-bottom: .7rem; font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1; color: #fff; }
.foot ul { list-style: none; display: grid; gap: .45rem; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__legal { margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 245, 228, .25); font-size: .875rem; color: #E9D3C4; }

/* Rechtstexte und Fehlerseite */
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2.6rem, 9vw, 4.25rem); margin-bottom: 1.75rem; }
.prose h2 { font-size: 1.7rem; margin: 2.25rem 0 .6rem; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: .9rem; }
.prose ul { padding-left: 1.2rem; }
.prose a { color: var(--cay-koyu); font-weight: 600; }
.prose address { font-style: normal; }
.todo { padding: 0 .3em; background: #FFE27A; color: #3A0C0E; }

@media (min-width: 40rem) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .citylist { columns: 3; }
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 56rem) {
  .nav { display: flex; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 3rem; }
  .hero__copy { padding-bottom: clamp(2.25rem, 6vw, 4.5rem); }
  .intro__grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
  .row { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6rem); }
  .row__media { order: 0; }
  .row--flip .row__media { order: 2; }
  .cities__grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
  .cities__photo img { aspect-ratio: 5 / 4; object-position: 60% 50%; }
  .citylist { columns: 2; }
  .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
  .faq__head { position: sticky; top: 6rem; }
  .cta__grid { grid-template-columns: 1fr auto; }
  .cta__qr { display: block; width: 15rem; padding: 1.25rem; background: var(--seker); color: var(--demli); border-radius: 1.25rem; text-align: center; font-weight: 600; line-height: 1.3; }
  .cta__qr img { width: 100%; margin-bottom: .9rem; }
}
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* Eine einzige Bewegung: der Auftritt im Hero */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: auftritt .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__phone { animation: auftritt .8s .15s cubic-bezier(.2, .7, .2, 1) both; }
  .entry { animation: zettel .45s .6s cubic-bezier(.2, 1.3, .3, 1) both; }
  @keyframes auftritt { from { opacity: 0; transform: translateY(1.5rem); } }
  @keyframes zettel { from { opacity: 0; transform: rotate(-2deg) scale(.9); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary::after { transition: none; }
}
