:root {
  --bg: #f6f1e7;
  --card: #fffdf8;
  --text: #2b2118;
  --muted: #76675a;
  --line: #e4d9c6;
  --accent: #c9851c;
  --accent-text: #fff;
  --wood: #4a3222;
  --ok: #2e7d4f;
  --warn: #a8641a;
  --bad: #b03a2e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1712;
    --card: #2a221b;
    --text: #f2e9dc;
    --muted: #b3a493;
    --line: #43372b;
    --accent: #e09a2a;
    --accent-text: #1d1712;
    --wood: #120d09;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1 { font-size: 1.7rem; margin: 0 0 .6rem; }
h1 small { font-size: 1rem; color: var(--muted); font-weight: normal; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .8rem 1.2rem; background: var(--wood); color: #f6eadb; }
.top a { color: #f6eadb; text-decoration: none; }
.brand { font-weight: 700; display: flex; align-items: center; gap: .55rem; }
.brand .sub { font-weight: 400; opacity: .75; }
.mark { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #efe3cb;
  box-shadow: inset 0 0 0 .18rem #1f4d38, inset 0 0 0 .3rem #efe3cb, inset 0 0 0 .38rem #1f4d38; }
nav { display: flex; align-items: center; gap: 1rem; }
main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
footer { display: flex; gap: 1.2rem; justify-content: center; padding: 1.5rem 1rem; color: var(--muted); font-size: .9rem; }
footer a { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; }
.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.columns.wide-left { grid-template-columns: 3fr 2fr; }
@media (max-width: 760px) { .columns, .columns.wide-left { grid-template-columns: 1fr; } }
.head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.head h1 { margin: 0; }
.button { display: inline-block; border: 0; border-radius: 999px; padding: .6rem 1.2rem; background: var(--accent);
  color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.button.secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.button.small { padding: .3rem .8rem; font-size: .9rem; }
.top .button.small { color: var(--accent-text); }
button.link { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; }
button.link.danger { color: var(--bad); }
form.inline { display: inline; }
.field { margin-bottom: .9rem; display: flex; flex-direction: column; gap: .25rem; }
.field.check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .25rem .5rem; }
.field.check label { flex: 1; }
.field.check small { flex-basis: 100%; }
.field label { font-weight: 600; }
.field.check label { font-weight: 400; }
.field small { color: var(--muted); }
.field small.error, .error { color: var(--bad); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], textarea, select {
  width: 100%; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); font: inherit; }
.message { padding: .7rem 1rem; border-radius: 10px; background: var(--card); border-left: 4px solid var(--accent); }
.message.success { border-color: var(--ok); }
.message.error { border-color: var(--bad); }
.note { color: var(--warn); }
.small { font-size: .92rem; color: var(--muted); }
.badge { padding: .2rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--line); }
.badge.freigegeben { background: var(--ok); color: #fff; }
.badge.abgelehnt { background: var(--bad); color: #fff; }
.hero { padding: 1.5rem 0 1rem; max-width: 720px; }
.hero h1 { font-size: 2.2rem; }
.lead { font-size: 1.15rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 1.5rem 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.logo { max-width: 160px; max-height: 120px; }
.field .logo { align-self: flex-start; border-radius: 8px; }
.field.logo-clear { margin: 0; }
.search { display: flex; gap: .5rem; margin: .8rem 0; }
.hits { list-style: none; padding: 0; margin: 0; }
.hits li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.claimed { background: var(--bg); border-radius: 10px; padding: .7rem .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.tile { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; text-align: center; }
.tile img, .previews img, .similar img { width: 100%; max-width: 140px; aspect-ratio: 1; object-fit: cover; }
img.rund { border-radius: 50%; }
img.eckig { border-radius: 9%; }
.cropper { position: relative; user-select: none; touch-action: none; background: repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.cropper img { display: block; width: 100%; height: auto; }
.cropper .frame { position: absolute; border-radius: 50%; cursor: move; outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent), 0 0 0 9999px rgba(0,0,0,.45); }
.cropper .frame.square { border-radius: 9%; }
.cropper .frame:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--ok), 0 0 0 9999px rgba(0,0,0,.45); }
.cropper { overflow: hidden; border-radius: 10px; }
.range { display: flex; align-items: center; gap: .8rem; margin-top: .8rem; font-weight: 600; }
.range input { flex: 1; }
.previews { display: flex; gap: 1rem; flex-wrap: wrap; }
.previews figure { margin: 0; text-align: center; flex: 1; min-width: 140px; }
.previews img { max-width: 200px; }
figcaption { color: var(--muted); font-size: .9rem; }
.similar { list-style: none; padding: 0; margin: 0; }
.similar li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: .3rem .8rem; padding: .4rem 0; border-top: 1px solid var(--line); }
.similar img { width: 56px; }
.similar small { color: var(--muted); }
.score { font-variant-numeric: tabular-nums; font-weight: 600; }
.score.high { color: var(--bad); }
.prose h2 { margin-top: 1.2rem; }
code { font-size: .9em; }

/* Tarif */
.badge.plan-profil { background: var(--accent); color: var(--accent-text); }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle;
  padding: .12rem .5rem; border-radius: 999px; background: var(--accent); color: var(--accent-text); }
.plan-table { width: 100%; border-collapse: collapse; }
.plan-table th, .plan-table td { padding: .5rem .4rem; border-top: 1px solid var(--line); text-align: center; }
.plan-table th:first-child, .plan-table td:first-child { text-align: left; }
.plan-table thead th { border-top: 0; }

/* Vorschau: die Seiten der App, nachgebaut */
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin: 1.2rem 0 1.6rem; align-items: start; }
.phones figure { margin: 0; }
.phones figcaption { font-weight: 600; color: var(--text); margin-bottom: .5rem; font-size: 1rem; }
.phone { --ios-bg: #f2f2f7; --ios-card: #fff; --ios-text: #111; --ios-muted: #6e6e73; --ios-line: #e3e3e8; --ios-tint: #c9851c;
  max-width: 340px; margin: 0 auto; padding: .9rem .8rem 1.2rem; border-radius: 34px; border: 9px solid #1c1c1e;
  background: var(--ios-bg); color: var(--ios-text); font: 15px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ios-title { text-align: center; font-weight: 600; padding: .2rem 0 .7rem; }
.ios-hero { text-align: center; padding: .3rem .5rem .9rem; }
.ios-hero .disc { width: 84px; height: 84px; margin: 0 auto .5rem; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ios-hero .disc img { max-width: 72%; max-height: 72%; }
.ios-hero .disc.letter { background: #dbcfb8; color: rgba(28,20,15,.55); font: 700 38px Georgia, serif; }
.ios-hero .name { font-size: 1.25rem; font-weight: 700; }
.ios-hero .facts { color: var(--ios-muted); font-size: .9rem; margin-top: .15rem; }
.ios-hero .tagline { font-style: italic; margin-top: .4rem; }
.seal { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ios-tint); color: #fff; font-weight: 700; flex: none; }
.seal.small { width: 18px; height: 18px; font-size: .7rem; vertical-align: 2px; }
.ios-header { color: var(--ios-muted); font-size: .8rem; text-transform: uppercase; padding: .9rem .9rem .35rem; }
.ios-footer { color: var(--ios-muted); font-size: .8rem; padding: .4rem .9rem 0; }
.ios-group { background: var(--ios-card); border-radius: 12px; overflow: hidden; margin-bottom: .2rem; }
.ios-group + .ios-group { margin-top: .9rem; }
.ios-row { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-top: 1px solid var(--ios-line); color: var(--ios-text); text-decoration: none; }
.ios-row:first-child { border-top: 0; }
.ios-row small { color: var(--ios-muted); }
.ios-row .grow { flex: 1; }
.ios-row.link { color: var(--ios-tint); }
.ios-row .arrow { color: var(--ios-muted); font-size: .85rem; }
.ios-row.muted, .phone .missing { color: var(--ios-muted); }
.ios-row.text { display: block; }
.ios-action { color: var(--ios-tint); font-size: .85rem; }
.ios-row.progress { display: block; }
.ios-row.progress .bar { display: block; height: 5px; margin-top: .45rem; border-radius: 3px; background: var(--ios-line); overflow: hidden; }
.ios-row.progress .bar span { display: block; height: 100%; background: var(--ios-tint); }
.ios-row.tiles-row { display: block; }
.series { color: var(--ios-muted); font-size: .8rem; font-weight: 600; margin-bottom: .5rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem .5rem; }
.tile-item { text-align: center; }
.tile-item img, .tile-item .blank { display: block; width: 64px; height: 64px; margin: 0 auto .25rem; object-fit: cover;
  filter: grayscale(1); opacity: .45; }
.tile-item .blank { background: #e6dcc6; border: 1px solid rgba(0,0,0,.08); }
.tile-item .blank.rund, .tile-item img.rund { border-radius: 50%; }
.tile-item .blank.eckig, .tile-item img.eckig { border-radius: 9%; }
.tile-item.collected img, .tile-item.collected .blank { filter: none; opacity: 1; }
.tile-item small { display: block; color: var(--ios-muted); font-size: .72rem; line-height: 1.2; }
.tile-item.collected small { color: var(--ios-text); }
.phone img.scan { display: block; width: 150px; height: 150px; object-fit: cover; margin: .2rem auto .6rem; box-shadow: 0 6px 14px rgba(0,0,0,.25); }

/* Vorlage aufrecht stellen */
h2.sub { margin-top: 1.4rem; }
.upright { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.upright-view { position: relative; width: 150px; height: 150px; flex: none; overflow: hidden; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px var(--line), 0 4px 10px rgba(0,0,0,.2); }
.upright-view.square { border-radius: 9%; }
.upright-view img { position: absolute; max-width: none; height: auto; user-select: none; }
.upright-controls { flex: 1; min-width: 220px; }
.upright-controls .range { margin-top: 0; }
.upright-controls output { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; font-weight: 400; }
.turns { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .7rem 0 0; }

/* Status "Nur Test" */
.badge.test { background: var(--warn); color: #fff; }

/* Link und QR-Code auf der Profilseite */
.share { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.share img.qr { width: 150px; height: 150px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.share .url { font-family: ui-monospace, Menlo, monospace; font-size: .95rem; word-break: break-all;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; }
.share .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0; }
@media (max-width: 640px) { .share { grid-template-columns: 1fr; } }

/* Öffentliche Seite hinter dem Link einer Brauerei (/b/…) */
.link-page { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.link-page main.link-card { max-width: 460px; width: calc(100% - 2rem); margin: 2rem auto 0; padding: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(60, 40, 20, .15); }
.link-table { text-align: center; padding: 2rem 1.4rem 1.6rem; color: #f6eadb;
  background: radial-gradient(ellipse at 50% 30%, #8a5a33 0%, #5b3a22 60%, #3f2817 100%); }
.link-logo { width: 116px; height: 116px; margin: 0 auto .9rem; border-radius: 50%; background: #fff;
  display: grid; place-items: center; overflow: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.link-logo img { width: 72%; height: 72%; object-fit: contain; }
.link-logo span { font: 700 3.2rem/1 Georgia, serif; color: #6b5440; background: #e9dcc2; width: 100%; height: 100%;
  display: grid; place-items: center; }
.link-table h1 { margin: 0; font-size: 1.6rem; }
.link-place { margin: .35rem 0 0; opacity: .8; }
.link-tagline { margin: .7rem 0 0; font-style: italic; }
.link-body { padding: 1.2rem 1.4rem 1.4rem; }
.link-actions { text-align: center; margin: 1.2rem 0 .6rem; }
.link-page footer { margin-top: auto; }

/* Deckel mit beiden Seiten */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 860px) { .sides { grid-template-columns: 1fr; } }
.side h3 { font-size: 1rem; margin: 1.2rem 0 .5rem; }
.side .upright-view { width: 120px; height: 120px; }
.inline-form { display: grid; grid-template-columns: 2fr 2fr 1fr auto; gap: 0 1rem; align-items: end; }
.inline-form .field { margin-bottom: .2rem; }
.inline-form .button { margin-bottom: .6rem; }
@media (max-width: 860px) { .inline-form { grid-template-columns: 1fr; } }
.tile .pair { position: relative; display: block; width: 100%; max-width: 140px; }
.tile .pair img { display: block; }
.tile .pair img.back { position: absolute; right: -8px; bottom: -8px; width: 46%; max-width: 64px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3); background: var(--card); }
.tile .pair img.rund { border-radius: 50%; }
.tile .pair img.eckig { border-radius: 9%; }
.address-hint { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; }

/* Öffentliche Startseite: Nutzen, Preise, Fragen */
.link-quiet { margin-left: .6rem; color: var(--muted); }
.benefits { padding-left: 1.2rem; max-width: 760px; }
.benefits li { margin: .45rem 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 820px; align-items: start; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan h3 { margin: 0; }
.plan .price { font-size: 1.8rem; font-weight: 700; margin: .3rem 0 0; }
.plan ul { padding-left: 1.1rem; }
.plan.featured { border: 2px solid var(--accent); }
.faq { max-width: 760px; }
.faq dt { font-weight: 700; margin-top: 1rem; }
.faq dd { margin: .3rem 0 0; }
.upgrade { border-left: 4px solid var(--accent); }

/* Termine, Aktuelles, Social Media */
.events { list-style: none; padding: 0; margin: 0; }
.events li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.events small { color: var(--muted); }
.event-actions { display: flex; gap: .8rem; align-items: baseline; flex: none; }
.ios-group.news { border-left: 4px solid var(--accent); }
.ios-footer.social a { margin-right: .8rem; color: inherit; }
.plan-choice { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
.plan-choice legend { padding: 0; margin-bottom: .4rem; font-weight: 600; }
.plan-choice label { display: flex; align-items: flex-start; gap: .7rem; padding: .7rem .9rem; margin-bottom: .6rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.plan-choice label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-choice label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-choice input { width: auto; margin-top: .3rem; accent-color: var(--accent); }
.plan-choice label > span { flex: 1; }
.plan-choice .price { float: right; font-weight: 600; }
.plan-choice label small { display: block; color: var(--muted); }
.upgrade p { margin-top: 0; }
.upgrade form { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
/* ".small" färbt sonst auch die Schrift auf dem Knopf grau */
.button.small:not(.secondary) { color: var(--accent-text); }

/* Startseite der App (/): für Sammler, auf dem Tisch der App */
.app-page { --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; --green: #1f4d38; }
.app-page h1, .app-page h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
.brand .app-icon { width: 2rem; height: 2rem; border-radius: 22%; }
.app-hero { color: #f6eadb; background: #3a271a var(--table) center / cover; overflow: hidden; }
.app-hero-inner { max-width: 1100px; margin: 0 auto; padding: 3.5rem 1.2rem 0; display: grid;
  grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: end; }
.app-hero-text { padding-bottom: 4rem; max-width: 34rem; }
.app-hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); line-height: 1.05; margin: 0 0 1.1rem; }
.app-hero .lead { font-size: 1.2rem; line-height: 1.55; margin: 0 0 1.6rem; }
.app-fine { font-size: .92rem; opacity: .8; margin: .8rem 0 0; }
.app-stores { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0; }
.app-store { padding: .8rem 1.5rem; font-size: 1.05rem; }
.app-store:focus-visible, .app-page a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.app-phone { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 40px; border: 8px solid #1c1c1e;
  background: #1c1c1e; box-shadow: 0 24px 50px rgba(20, 10, 0, .45); }
/* Liegt auf dem Tisch wie ein Deckel: leicht gedreht, unten angeschnitten */
.app-phone.tilted { justify-self: center; transform: rotate(-4deg) translateY(3rem); margin-top: -1rem; }
.app-main { max-width: 980px; padding-top: 4.5rem; }
.app-feature { display: grid; grid-template-columns: 300px 1fr; gap: 3.5rem; align-items: center; margin-bottom: 4.5rem; }
.app-feature.reverse { grid-template-columns: 1fr 300px; }
.app-feature.reverse img { order: 2; }
.app-feature h2, .app-pair h2, .app-closing h2, .app-brewers h2 { font-size: 1.9rem; line-height: 1.15; margin: 0 0 .8rem; }
.app-feature p, .app-pair p, .app-brewers p { font-size: 1.08rem; max-width: 34rem; }
.app-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 2.5rem 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.app-pair h2 { font-size: 1.45rem; }
.app-closing { text-align: center; padding: 4rem 0; }
.app-closing .app-stores { justify-content: center; }
.app-brewers { background: var(--green); color: #f3ead8; border-radius: 22px; padding: 2rem 2.2rem; }
.app-brewers .button.secondary { color: #f3ead8; box-shadow: inset 0 0 0 2px #f3ead8; }
@media (max-width: 760px) {
  .app-hero-inner { grid-template-columns: 1fr; padding-top: 2.2rem; gap: 0; }
  .app-hero-text { padding-bottom: 1rem; }
  .app-phone.tilted { max-width: 230px; transform: rotate(-4deg) translateY(2.5rem); margin-top: 1rem; }
  .app-main { padding-top: 3.5rem; }
  .app-feature, .app-feature.reverse { grid-template-columns: 1fr; gap: 1.4rem; margin-bottom: 3rem; }
  .app-feature img, .app-feature.reverse img { order: 2; max-width: 240px; justify-self: center; }
  .app-pair { grid-template-columns: 1fr; gap: 1rem; }
  .app-brewers { padding: 1.6rem 1.3rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .app-phone.tilted { animation: app-lay-down .7s cubic-bezier(.2, .7, .2, 1) both; }
  /* Nur Bewegung, kein Einblenden: Bleibt die Animation hängen, ist das Bild trotzdem da */
  @keyframes app-lay-down { from { transform: rotate(1deg) translateY(6rem); } }
}
