:root {
  color-scheme: light;
  --tinte: #34261f;
  --tinte-leise: #5a463a;
  --schleier: 247, 238, 230;
  --etikett: #fffdfa;
  --ton: #a4532b;
  --rand: clamp(20px, 3.4vw, 48px);
  --schrift:
    -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #efe1d5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--tinte);
  font-family: var(--schrift);
  -webkit-font-smoothing: antialiased;
}

h1,
p,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--ton);
  outline-offset: 4px;
  border-radius: 3px;
}

/* Ohne JavaScript stehen beide Sprachen da, mit JavaScript nur die gewaehlte. */
html.js[data-sprache='de'] [data-nur='en'],
html.js[data-sprache='en'] [data-nur='de'] {
  display: none;
}

html:not(.js) .sprachen {
  display: none;
}

.beschlag-statisch {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(var(--schleier), 0.68), rgba(var(--schleier), 0.68)),
    url('assets/kueche-unscharf.webp') center 55% / cover no-repeat;
}

.kopf {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
}

/* Nur für Screenreader und Suchmaschinen: sichtbar nicht da, aber als Text vorhanden. */
.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprachen,
.rechtslinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  font-size: 1rem;
  font-weight: 500;
}

.sprachen a,
.rechtslinks a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

/* Startseite: eine einzige beschlagene Scheibe */
.teaser {
  overflow: hidden;
  height: 100dvh;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.scheibe-dahinter,
.beschlag {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100lvh;
}

.scheibe-dahinter {
  object-fit: cover;
  object-position: 50% 55%;
}

html.js .teaser .beschlag-statisch {
  display: none;
}

html:not(.js) .beschlag {
  display: none;
}

.buehne {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: max(var(--rand), env(safe-area-inset-top)) max(var(--rand), env(safe-area-inset-right))
    max(var(--rand), env(safe-area-inset-bottom)) max(var(--rand), env(safe-area-inset-left));
  pointer-events: none;
}

.buehne a {
  pointer-events: auto;
}

/* Oben und unten bleibt die Scheibe immer beschlagen, damit Text auch nach dem Wischen lesbar ist. */
.buehne::before,
.buehne::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
}

.buehne::before {
  top: 0;
  height: calc(var(--rand) + 176px);
  background: linear-gradient(
    to bottom,
    rgba(var(--schleier), 0.95) 38%,
    rgba(var(--schleier), 0.62) 62%,
    rgba(var(--schleier), 0.2) 84%,
    rgba(var(--schleier), 0)
  );
}

.buehne::after {
  bottom: 0;
  height: calc(var(--rand) + 248px);
  background: linear-gradient(
    to top,
    rgba(var(--schleier), 0.95) 52%,
    rgba(var(--schleier), 0.62) 70%,
    rgba(var(--schleier), 0.2) 88%,
    rgba(var(--schleier), 0)
  );
}

.mitte {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Das Wort wird in den Beschlag geschrieben; als Text bleibt es fuer Screenreader. */
html.js .bald {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.bald {
  font-size: clamp(4rem, 16vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.schriftzug {
  position: absolute;
  overflow: hidden;
}

.fuss {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.satz > p:not(.hinweis) {
  font-size: clamp(1.3125rem, 2.3vw, 1.75rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.hinweis {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--tinte-leise);
}

html.js .hinweis {
  opacity: 0;
  transition: opacity 600ms ease-out;
}

html.js.bereit .hinweis {
  opacity: 1;
}

html:not(.js) .hinweis {
  display: none;
}

@media (max-width: 559px) {
  .fuss {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Impressum: ein Etikett auf derselben Scheibe, gesetzt wie eine Naehrwerttabelle */
.rechtsspalte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 5vh, 56px);
  max-width: 1400px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(var(--rand), env(safe-area-inset-top)) max(var(--rand), env(safe-area-inset-right))
    max(var(--rand), env(safe-area-inset-bottom)) max(var(--rand), env(safe-area-inset-left));
}

.etikett {
  width: 100%;
  max-width: 34rem;
  margin: auto;
  padding: 20px 24px 24px;
  border: 3px solid var(--tinte);
  border-radius: 4px;
  background: var(--etikett);
  box-shadow:
    0 1px 1px rgba(52, 38, 31, 0.18),
    0 18px 44px -16px rgba(92, 60, 38, 0.38);
}

.etikett-breit {
  max-width: 42rem;
}

.etikett dd p + p {
  margin-top: 8px;
}

.rechtsspalte > .rechtslinks {
  justify-content: center;
}

.etikett section + section {
  margin-top: 40px;
}

html.js .etikett section + section {
  margin-top: 0;
}

.etikett h1 {
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.etikett-unterzeile {
  margin-top: 8px;
  padding-bottom: 12px;
  border-bottom: 12px solid var(--tinte);
  font-size: 1rem;
  line-height: 1.35;
}

.etikett dl > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--tinte);
}

.etikett dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.etikett dl > div:nth-last-child(2) {
  border-bottom-width: 6px;
}

.etikett dt {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.etikett dd {
  margin-top: 2px;
  font-size: 1.0625rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.etikett dd a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
}

.etikett dd ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.etikett dd li + li {
  margin-top: 4px;
}

.etikett dd p + p,
.etikett dd p + ul,
.etikett dd ul + p {
  margin-top: 8px;
}

.etikett dl > div:target {
  background: rgba(164, 83, 43, 0.08);
  box-shadow: -12px 0 0 rgba(164, 83, 43, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  html.js .hinweis {
    transition: none;
  }
}
