/* Knospe & Kante — quiet, minimal, one typeface.
   White page, black text, hairline rules, square photos, almost no motion. */

/* EB Garamond (SIL Open Font License), hosted locally: no request to third-party servers.
   Latin covers German; latin-ext only loads for rarer characters. */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #ffffff;
  --text: #1c1c1a;
  --muted: #6e6c66;
  --rule: #e4e2dc;
  --underline: #b3b0a8;
  --accent: #2f4a38;
  --serif: "EB Garamond", "Garamond", "Iowan Old Style", Georgia, serif;
  --wrap: 1080px;
  --pad: clamp(1.1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 0.9em; }
a { color: inherit; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--text); color: var(--bg); padding: 0.4rem 0.8rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

.small { font-size: 0.95rem; color: var(--muted); }
.lead { font-size: 1.3rem; line-height: 1.45; max-width: 40rem; }

.link {
  padding: 0;
  border: 0;
  background: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--underline);
  cursor: pointer;
  transition: text-decoration-color 0.2s;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--rule);
}
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.6rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 1.25rem;
  color: var(--accent);
}
.logo span { color: var(--text); }
.logo__mark { width: 22px; height: 22px; }
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); }
.menu { display: none; border: 0; background: none; padding: 0.4rem 0; cursor: pointer; color: var(--muted); }

@media (max-width: 720px) {
  .top__inner { flex-wrap: wrap; }
  .menu { display: block; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.6rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.45rem 0; border-top: 1px solid var(--rule); color: var(--text); }
}

/* ----------------------------------------------------------------- intro */
.intro { padding-top: clamp(1.75rem, 4vw, 3rem); }
.intro__text {
  max-width: 44rem;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.4;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.intro__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { margin-top: 0.5rem; font-size: 0.92rem; font-style: italic; color: var(--muted); }

/* ------------------------------------------------------------------ rows */
.row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem 2rem;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--text);
}
.row__label { font-size: 1.15rem; font-style: italic; }
.row__body > :last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; gap: 0.6rem; }
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 2rem; align-items: start; }
.split figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.sub { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.4rem; }

@media (max-width: 860px) {
  .split, .cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .split figure { max-width: 26rem; }
}

/* --------------------------------------------------------------- bouquets */
.seasons { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin: 0.4rem 0 1.1rem; }
.seasons button {
  padding: 0 0 0.15rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.seasons button:hover { color: var(--text); }
.seasons button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.seasons button.is-now::after { content: " · jetzt"; font-style: italic; color: var(--muted); }

.items {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.item img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 0.6rem; background: #f3f2ee; }
.item h3 { font-size: 1.2rem; }
.item p { margin: 0.1rem 0 0; font-size: 1rem; color: var(--muted); }
.item .item__meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.35rem; color: var(--text); }
.item__meta a { text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 0.2em; }
.item__meta a:hover { text-decoration-color: currentColor; }

@media (max-width: 720px) {
  .items { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
}
@media (max-width: 420px) {
  .items { grid-template-columns: 1fr; }
  .item { display: grid; grid-template-columns: 6.5rem 1fr; column-gap: 0.9rem; }
  .item img { grid-row: span 3; margin: 0; }
}

/* --------------------------------------------------------------- tables */
.prices, .hours { width: 100%; border-collapse: collapse; margin: 0 0 0.8rem; }
.prices th, .prices td, .hours th, .hours td {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}
.prices { max-width: 40rem; }
.prices th { width: 6rem; }
.prices td { color: var(--muted); padding-right: 1rem; }
.prices .num, .hours td { text-align: right; color: var(--text); white-space: nowrap; padding-right: 0; }
.hours tr.is-today th::after { content: " · heute"; font-style: italic; color: var(--muted); }

/* ---------------------------------------------------------------- steps */
.steps { margin: 0 0 1rem; padding-left: 1.3rem; max-width: 40rem; }
.steps li { margin-bottom: 0.35rem; }
.steps strong { font-weight: 500; }

/* --------------------------------------------------------------- photos */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 0.4rem; }
.photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 560px) {
  .photos { grid-template-columns: 1fr 1fr; }
  .photos figure:last-child { display: none; }
}

/* ----------------------------------------------------------------- form */
.form { max-width: 30rem; }
.field { margin-bottom: 0.9rem; }
.field > label:not(.check) { display: block; font-size: 0.95rem; color: var(--muted); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
}
.field textarea { resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--text); }
.field [aria-invalid="true"] { border-bottom-color: #a33a3a; }
.error { margin: 0.25rem 0 0; font-size: 0.92rem; color: #a33a3a; }
.error:empty { display: none; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: 0.3rem; accent-color: var(--text); }

.button {
  margin: 0.3rem 0 0.6rem;
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: var(--bg); color: var(--text); }
.done:focus { outline: none; }

/* --------------------------------------------------------------- footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}
.foot p { margin: 0; }
.foot button { padding: 0; margin-left: 1rem; border: 0; background: none; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 0.2em; }
.foot button:first-child { margin-left: 0; }
.foot button:hover { color: var(--text); }
.foot__note { flex-basis: 100%; font-style: italic; }

/* --------------------------------------------------------------- dialog */
.dialog {
  width: min(32rem, calc(100% - 2rem));
  padding: 1.5rem;
  border: 1px solid var(--text);
  background: var(--bg);
  color: var(--text);
}
.dialog::backdrop { background: rgba(28, 28, 26, 0.35); }
.dialog h2 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.dialog p { font-size: 1rem; }

/* Images fade in once loaded — the only motion on the page. */
.js img[loading="lazy"] { opacity: 0; transition: opacity 0.6s; }
.js img[loading="lazy"].is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js img[loading="lazy"] { opacity: 1; transition: none; }
}
