@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrumentserif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrumentserif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #121211;
  --muted: #64625d;
  --line: rgba(18, 18, 17, 0.09);
  --line-strong: rgba(18, 18, 17, 0.16);
  --glow: rgba(8, 176, 96, 0.1);
  --avatar-bg: linear-gradient(160deg, #ece8e0, #d8d2c6);
  --shadow: 0 1px 2px rgba(18, 18, 17, 0.04), 0 12px 32px -12px rgba(18, 18, 17, 0.14);
  --mark: #fde68a;
  --brand: #08b060;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --surface: #141416;
    --text: #f2f1ee;
    --muted: #9b9994;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --glow: rgba(8, 176, 96, 0.16);
    --avatar-bg: linear-gradient(160deg, #2c2c30, #1a1a1d);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    --mark: #78350f;
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(70rem 36rem at 50% -14rem, var(--glow), transparent 70%),
    var(--bg);
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

main {
  flex: 1;
  padding-block: 2rem 5rem;
}

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s, color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.serif,
h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

em {
  font-style: italic;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Kopfzeile */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.lang {
  display: flex;
  gap: 0.125rem;
  padding: 0.1875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang a {
  min-width: 2.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}

.lang a:hover {
  color: var(--text);
}

.lang a[aria-current="page"] {
  background: var(--text);
  color: var(--bg);
}

/* Hero */

.hero {
  padding-block: clamp(2.5rem, 9vh, 5.5rem) 0;
}

.avatar {
  width: 6rem;
  height: 6rem;
  margin-bottom: 2rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--avatar-bg);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
}

h1 {
  font-size: clamp(3.25rem, 11vw, 5.25rem);
}

.lead {
  max-width: 30rem;
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 2.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.375rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.button:hover svg {
  transform: translateX(2px);
}

.button.ghost {
  min-height: 2.5rem;
  padding: 0 1.125rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  font-size: 0.9375rem;
}

.button.ghost:hover {
  border-color: var(--text);
}

.social {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social a {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
}

.social a:hover {
  color: var(--text);
  border-color: var(--text);
  transform: translateY(-1px);
}

.social svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

/* Abschnitte */

section + section {
  margin-top: clamp(4rem, 12vh, 6.5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Mr. Cook */

.feature {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    radial-gradient(28rem 16rem at 0% 0%, var(--glow), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-head img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  box-shadow: 0 6px 16px -6px rgba(8, 176, 96, 0.55);
}

.feature h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1;
}

.feature-head p {
  margin-top: 0.25rem;
  color: var(--muted);
}

.feature-text {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
}

.stats {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1.25rem clamp(1.5rem, 7vw, 3.5rem);
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.125rem;
}

.stats dt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
}

.stats .star {
  font-size: 0.6em;
  vertical-align: 0.3em;
  color: #f5a524;
}

.stats .small {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  padding-top: 0.3rem;
}

.feature-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.9375rem;
}

.feature-links .store {
  color: var(--muted);
}

.feature-links .store:hover {
  color: var(--text);
}

/* Kontakt */

.contact h2 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
}

.email {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
}

.email:hover {
  text-decoration-color: currentColor;
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem 2.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* Einblenden beim Laden */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .rise:nth-child(2) { animation-delay: 0.06s; }
  .rise:nth-child(3) { animation-delay: 0.12s; }
  .rise:nth-child(4) { animation-delay: 0.18s; }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }
}

/* Rechtstexte */

.legal h1 {
  font-size: clamp(2.75rem, 9vw, 4rem);
  margin-top: 1.5rem;
}

.legal h2 {
  font-size: 1.1875rem;
  margin-top: 2.5rem;
}

.legal h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
}

.legal p,
.legal ul,
.legal address {
  margin-top: 0.75rem;
}

.legal p,
.legal li,
.legal address {
  color: var(--muted);
}

.legal address {
  font-style: normal;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal a {
  color: var(--text);
  overflow-wrap: anywhere;
}

.back {
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
}

.back:hover {
  color: var(--text);
}

mark {
  background: var(--mark);
  color: var(--text);
  padding: 0 0.2em;
  border-radius: 3px;
}

/* 404 */

.notfound p {
  margin-top: 1rem;
  color: var(--muted);
}

.notfound .actions {
  margin-top: 2rem;
}

/* Mobil */

@media (max-width: 30rem) {
  .stats {
    grid-template-columns: auto 1fr;
  }

  .stats div:last-child {
    grid-column: 1 / -1;
  }

  .feature-links .button {
    width: 100%;
    justify-content: center;
  }
}

.contact h2 em {
  white-space: nowrap;
}
