/* apps.zurmuehl.info: one page for the five apps, in their colours (the tutorials' tokens). */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/lora-400-normal.woff) format("woff"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/lora-700-normal.woff) format("woff"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/lora-400-italic.woff) format("woff"); }

:root {
  --bg: #f6f0e4;
  --bg-deep: #efe6d4;
  --surface: #fffdf8;
  --text: #2b2222;
  --muted: #7a6e68;
  --line: #e4dccd;
  --shadow: 0 1px 2px rgb(60 40 20 / 0.06), 0 8px 24px rgb(60 40 20 / 0.09);
  --shadow-lg: 0 2px 6px rgb(60 40 20 / 0.08), 0 24px 60px rgb(60 40 20 / 0.16);
  --serif: "Lora", Georgia, "Times New Roman", serif;

  /* The five apps (theme colour of each app, dark variant from its tutorials). */
  --einkauf: #2f6b3f;   --einkauf-soft: #e3efe5;
  --plan: #2f6b3f;      --plan-soft: #e6eedb;
  --vorrat: #2d5236;    --vorrat-soft: #dfeadf;
  --keller: #6b1f2a;    --keller-soft: #f1e0e0;
  --karte: #b4501f;     --karte-soft: #f3e2d6;

  --a: var(--text);
  --a-soft: var(--line);

  color-scheme: light dark;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1a18;
    --bg-deep: #171513;
    --surface: #2a2522;
    --text: #f1ebe4;
    --muted: #b3a79e;
    --line: #3d3631;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.35), 0 24px 60px rgb(0 0 0 / 0.45);
    --einkauf: #6fbf83;   --einkauf-soft: #24382a;
    --plan: #8fc37a;      --plan-soft: #29351f;
    --vorrat: #8cc79a;    --vorrat-soft: #233528;
    --keller: #e39aa4;    --keller-soft: #3d2328;
    --karte: #e8915f;     --karte-soft: #3a2a22;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--a, var(--text)); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
p { margin: 0.6rem 0; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* The bar on top: home, and the five apps to jump to. */
.bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 3.6rem; }
.home { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 650; color: var(--text); text-decoration: none; white-space: nowrap; }
.home .dots { display: inline-grid; grid-template-columns: repeat(5, 7px); gap: 3px; }
.home .dots i { width: 7px; height: 7px; border-radius: 50%; }
.home .domain { color: var(--muted); font-weight: 400; }
.jump { display: flex; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.65rem 0.3rem 0.35rem; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 550; transition: background 0.15s ease; }
.jump a:hover, .jump a.on { background: var(--surface); box-shadow: var(--shadow); }
.jump img { width: 26px; height: 26px; border-radius: 7px; }
@media (max-width: 980px) { .jump span { display: none; } .jump a { padding: 0.25rem; } }
@media (max-width: 420px) { .home .domain { display: none; } .jump { gap: 0.1rem; } .jump img { width: 24px; height: 24px; } }

/* The opening: a sentence, the five icons on the table. */
.hero { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 140%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 45% at 12% 30%, color-mix(in srgb, var(--einkauf) 13%, transparent), transparent 70%),
    radial-gradient(30% 40% at 88% 22%, color-mix(in srgb, var(--keller) 12%, transparent), transparent 70%),
    radial-gradient(36% 40% at 70% 85%, color-mix(in srgb, var(--karte) 12%, transparent), transparent 70%),
    radial-gradient(30% 35% at 30% 90%, color-mix(in srgb, var(--vorrat) 10%, transparent), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.eyebrow { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin: 0 0 0.9rem; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.3rem, 6.2vw, 4.1rem); letter-spacing: -0.015em; margin: 0 0 1.1rem; }
.hero h1 em { font-weight: 400; color: var(--keller); }
.hero .lead { font-size: clamp(1.08rem, 2.1vw, 1.25rem); color: var(--muted); max-width: 34rem; margin: 0 0 1.6rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.72rem 1.15rem; border-radius: 999px; font-weight: 650; text-decoration: none; line-height: 1.2; border: 1.5px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: var(--a, var(--text)); color: var(--surface); box-shadow: var(--shadow); }
.btn.solid:hover { box-shadow: var(--shadow-lg); }
.btn.ghost { border-color: color-mix(in srgb, var(--a, var(--text)) 35%, transparent); color: var(--a, var(--text)); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn.ghost:hover { background: var(--surface); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.table { position: relative; aspect-ratio: 1 / 0.82; max-width: 470px; justify-self: center; width: 100%; }
.table a { position: absolute; width: 27%; aspect-ratio: 1; border-radius: 23%; box-shadow: var(--shadow-lg); transition: transform 0.25s ease; animation: float 7s ease-in-out infinite; }
.table a img { width: 100%; height: 100%; border-radius: inherit; }
.table a:hover { transform: translateY(-6px) rotate(0deg) scale(1.04) !important; }
.table a:nth-child(1) { left: 4%;  top: 10%; rotate: -8deg; animation-delay: -1s; }
.table a:nth-child(2) { left: 37%; top: 0%;  rotate: 4deg;  animation-delay: -3s; }
.table a:nth-child(3) { left: 69%; top: 14%; rotate: 9deg;  animation-delay: -5s; }
.table a:nth-child(4) { left: 19%; top: 52%; rotate: 6deg;  animation-delay: -2s; }
.table a:nth-child(5) { left: 54%; top: 56%; rotate: -5deg; animation-delay: -4s; }
.table .label { position: absolute; left: 50%; bottom: -1.6rem; translate: -50% 0; white-space: nowrap; font-size: 0.78rem; font-weight: 650; color: var(--muted); opacity: 0; transition: opacity 0.2s ease; }
.table a:hover .label, .table a:focus-visible .label { opacity: 1; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@media (prefers-reduced-motion: reduce) { .table a { animation: none; } }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .table { max-width: 340px; order: -1; margin-bottom: 0.5rem; }
}

/* What all five share. */
.shared { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0.8rem; margin: 0 0 clamp(2.5rem, 6vw, 4rem); padding: 0; list-style: none; }
.shared li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.shared b { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; margin-bottom: 0.2rem; }
.shared b svg { width: 1.25rem; height: 1.25rem; color: var(--keller); flex: none; }
.shared span { color: var(--muted); font-size: 0.93rem; }

/* One app: text on one side, its screens on a stage on the other. */
.app { --a: var(--x); --a-soft: var(--x-soft); position: relative; padding: clamp(3rem, 8vw, 6rem) 0; }
.app:nth-of-type(even) { background: linear-gradient(180deg, transparent, var(--bg-deep) 12%, var(--bg-deep) 88%, transparent); }
#einkaufszettel { --x: var(--einkauf); --x-soft: var(--einkauf-soft); }
#speiseplan { --x: var(--plan); --x-soft: var(--plan-soft); }
#vorratsbuch { --x: var(--vorrat); --x-soft: var(--vorrat-soft); }
#kellerlog { --x: var(--keller); --x-soft: var(--keller-soft); }
#speisekarte { --x: var(--karte); --x-soft: var(--karte-soft); }
.app .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.app.flip .text { order: 2; }
.app .head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.app .head img { width: 64px; height: 64px; border-radius: 15px; box-shadow: var(--shadow); }
.app .for { margin: 0; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--a); font-weight: 700; }
.app h2 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 2.9rem); margin: 0.1rem 0 0; letter-spacing: -0.01em; }
.app .claim { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.3; color: var(--a); margin: 0.2rem 0 0.8rem; }
.app .about { color: var(--muted); font-size: 1.04rem; }
.highlights { list-style: none; margin: 1.3rem 0 1.6rem; padding: 0; display: grid; gap: 0.65rem; }
/* Each with a tick in the app's colour. */
.highlights li { position: relative; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.6rem; align-items: start; }
.highlights li::before { content: ""; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--a-soft); }
.highlights li::after { content: ""; position: absolute; left: 0.45rem; top: 0.5rem; width: 0.72rem; height: 0.4rem; border-left: 2.5px solid var(--a); border-bottom: 2.5px solid var(--a); rotate: -45deg; }
.highlights b { font-weight: 650; }

/* The stage: screens laid out like on a table, cut off at the bottom edge. */
.stage { position: relative; aspect-ratio: 1 / 0.86; border-radius: 28px; overflow: hidden; background:
    radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--a) 18%, transparent), transparent 70%), var(--a-soft); }
.stage::after { content: ""; position: absolute; inset: auto 0 0; height: 14%; background: linear-gradient(transparent, color-mix(in srgb, var(--a-soft) 95%, transparent)); pointer-events: none; z-index: 3; }
.stage figure { position: absolute; margin: 0; cursor: zoom-in; transition: transform 0.3s ease; }
.stage figure img { width: 100%; filter: drop-shadow(0 18px 22px rgb(0 0 0 / 0.2)); }
.stage figure:hover { transform: translateY(-8px); z-index: 4; }
.stage figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* Three phones: one in front, two behind it, turned a little. */
.stage.trio figure:nth-child(1) { left: 3%; top: 17%; width: 36%; rotate: -5deg; }
.stage.trio figure:nth-child(2) { left: 29%; top: 6%; width: 42%; z-index: 2; }
.stage.trio figure:nth-child(3) { right: 3%; top: 17%; width: 36%; rotate: 5deg; }
/* An iPad (or a printed page) behind, two phones in front of its corner. */
.stage.combo figure.back { left: 5%; top: 7%; width: 90%; }
.stage.combo figure.back.paper { left: 6%; top: 6%; width: 54%; rotate: -3deg; }
.stage.combo figure.back.paper img { border-radius: 2px; filter: drop-shadow(0 16px 22px rgb(60 40 20 / 0.22)); }
.stage.combo figure.front2 { right: 28%; top: 36%; width: 29%; z-index: 1; rotate: -3deg; }
.stage.combo figure.front { right: 3%; top: 27%; width: 31%; z-index: 2; rotate: 3deg; }
/* A plain screenshot of the iPad gets a drawn frame. */
.stage.combo figure.back.bare img { border: clamp(6px, 1.4vw, 11px) solid #1c1c1e; border-radius: clamp(12px, 2.4vw, 22px); filter: drop-shadow(0 18px 22px rgb(0 0 0 / 0.2)); }
.stage.combo.on-paper figure.front2 { top: 30%; right: 30%; }
.stage.combo.on-paper figure.front { top: 18%; }

@media (max-width: 860px) {
  .app .wrap { grid-template-columns: 1fr; }
  .app.flip .text { order: 0; }
}

/* How the apps reach into each other. */
.together { padding: clamp(3rem, 8vw, 6rem) 0; }
.together h2, .contact h2 { font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin: 0 0 0.6rem; text-align: center; }
.together > .wrap > p { text-align: center; color: var(--muted); max-width: 40rem; margin: 0 auto 2.2rem; font-size: 1.08rem; }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.links li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.links .pair { display: flex; align-items: center; gap: 0.25rem; }
.links .pair img { width: 40px; height: 40px; border-radius: 10px; }
.links .pair svg { width: 18px; height: 18px; color: var(--muted); }
.links b { display: block; font-size: 1rem; color: var(--text); margin-bottom: 0.1rem; }
.links .t { color: var(--muted); font-size: 0.93rem; }
.together .group { text-align: center; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 2rem 0 0.8rem; }
.links.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* Interested? */
.contact { padding: 0 0 clamp(3rem, 8vw, 5rem); }
.letter { position: relative; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(2rem, 6vw, 3.5rem) clamp(1.2rem, 5vw, 3rem); box-shadow: var(--shadow-lg); overflow: hidden; }
.letter::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--einkauf), var(--plan) 25%, var(--vorrat) 45%, var(--keller) 70%, var(--karte)); }
.letter p { color: var(--muted); max-width: 36rem; margin: 0 auto 1.5rem; font-size: 1.08rem; }
.letter .mail { font-family: var(--serif); font-size: clamp(1.35rem, 4.2vw, 2rem); font-weight: 700; color: var(--keller); text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--keller) 30%, transparent); overflow-wrap: anywhere; }
.letter .mail:hover { border-bottom-color: var(--keller); }
.letter .which { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.letter .which a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.8rem 0.35rem 0.4rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 550; }
.letter .which a:hover { border-color: var(--muted); }
.letter .which img { width: 24px; height: 24px; border-radius: 6px; }

footer.site { border-top: 1px solid var(--line); padding: 1.6rem 0 calc(env(safe-area-inset-bottom) + 2rem); color: var(--muted); font-size: 0.9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem; }
footer.site a { color: var(--muted); }
footer.site nav { display: flex; gap: 1.2rem; }

/* A screen over the page: tap to close. */
.zoom { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1.2rem; background: rgb(20 16 14 / 0.88); cursor: zoom-out; animation: fade 0.18s ease; }
.zoom img { max-width: min(100%, 1100px); max-height: 100%; width: auto; height: auto; filter: drop-shadow(0 20px 40px rgb(0 0 0 / 0.5)); }
@keyframes fade { from { opacity: 0; } }

/* Imprint and privacy policy. */
.legal { width: min(760px, 100% - 2rem); margin: 2rem auto 3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.2rem, 4vw, 2.2rem); box-shadow: var(--shadow); --a: var(--keller); }
.legal h1 { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 0 0 0.4rem; }
.legal h2 { font-size: 1.15rem; margin: 1.8rem 0 0.5rem; }
.legal h3 { font-size: 1rem; margin: 1.2rem 0 0.3rem; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin: 0.25rem 0; }
.legal address { font-style: normal; }
.legal a { overflow-wrap: anywhere; }
