/* ==========================================================================
   Berry Empowers — Stylesheet
   Beige canvas, black and dark red sections, white for cards and form fields.
   Mobile-first: base rules are the single-column layout, min-width queries
   at 48em (768px) and 64em (1024px) add the wider layouts.
   ========================================================================== */

/* Self-hosted webfonts: no external requests. Licences: assets/fonts/OFL-*.txt */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-latin-wght-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: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-latin-ext-wght-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: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../assets/fonts/source-serif-4-latin-wght-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: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../assets/fonts/source-serif-4-latin-ext-wght-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: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../assets/fonts/source-serif-4-latin-wght-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: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../assets/fonts/source-serif-4-latin-ext-wght-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: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/caveat-latin-700-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: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/caveat-latin-ext-700-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 {
  /* Palette — beige, black, dark red, white */
  --cream: #f8f1e5;
  --white: #ffffff;
  --black: #141110;
  --ink: #141110;
  --ink-soft: #4e433b;
  --ink-muted: #625850;
  --line: #e2d8c6;
  --field-line: #8f8478;
  --espresso: #721717;
  --espresso-2: #8a2222;
  --red-accent: #a32a2a; /* accent rule on dark photos, where #721717 disappears */
  --espresso-deep: #5c1212; /* footer: a large dark red area reads lighter than the small buttons */
  --dark-line: rgba(248, 241, 229, 0.16);
  --on-dark: #f8f1e5;
  --on-dark-soft: rgba(248, 241, 229, 0.8);
  --success: #2f6b46;
  --error: #b23a3a;

  /* Type — self-hosted, see @font-face above */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --header-h: 72px;
  --shadow: 0 10px 30px rgba(20, 17, 16, 0.12);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  /* Full-height digits everywhere ("10+", phone numbers), also in the Playfair headings. */
  font-variant-numeric: lining-nums;
  /* Keep the footer at the bottom on short pages (Impressum). */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

/* Playfair's hairlines fade below ~24px: small card headings use the text face, semibold. */
.value-grid h3,
.story-card h3,
.story-dialog h3,
.tile h3,
.contact-direct h3 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure, blockquote { margin: 0; }

:focus-visible {
  outline: 3px solid var(--focus, var(--espresso));
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-row { max-width: none; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.section-head-row > div { max-width: 46rem; }
.section-head .chip { margin-bottom: 1rem; }
.section-intro { font-size: 1.1rem; color: var(--ink-soft); max-width: 42rem; }
.section-head-center .section-intro { margin-inline: auto; }
.section-cta { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }

.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 34rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--espresso);
  color: var(--cream);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Chips, badges, icons
   -------------------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  margin: 0 0 1rem;
}
.chip-dark {
  color: var(--on-dark);
  background: rgba(248, 241, 229, 0.1);
  border-color: var(--dark-line);
}
.chip-accent {
  color: var(--on-dark);
  background: var(--espresso);
  border-color: rgba(248, 241, 229, 0.3);
}
.chip-dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cream);
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--black);
  color: var(--cream);
  flex: none;
}
.badge-icon svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge-accent { background: var(--espresso); }

/* Short dark red rule under a headline */
.accent-line {
  display: block;
  width: 72px; height: 2px;
  margin: 0 0 1.25rem;
  background: var(--espresso);
  border: 0;
}

/* --------------------------------------------------------------------------
   Buttons — pills with an optional arrow
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 0.5rem 1.2rem; font-size: 0.95rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }

/* Buttons adapt to their surface: --btn-* is set by the section they sit in
   (see "Surfaces" below); the defaults apply on beige and white. */
.btn-primary {
  background: var(--btn-bg, var(--espresso));
  color: var(--btn-fg, var(--cream));
  border-color: var(--btn-border, transparent);
}
.btn-primary:hover { background: var(--btn-bg-hover, var(--espresso-2)); }
.btn-primary .btn-icon { display: inline-flex; margin-right: -0.25rem; }
.btn-icon svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-ghost-light {
  color: var(--cream);
  border-color: rgba(248, 241, 229, 0.7);
  background: rgba(20, 17, 16, 0.25);
}
.btn-ghost-light:hover { background: rgba(248, 241, 229, 0.16); }

.btn-outline {
  color: var(--espresso);
  background: var(--white);
  border-color: var(--espresso);
}
.btn-outline:hover { background: var(--espresso); color: var(--cream); }

/* --------------------------------------------------------------------------
   Surfaces — dark sections declare their focus ring and button edge
   -------------------------------------------------------------------------- */

/* Dark red hardly separates from black (about 1.6:1), so the button gets a light edge. */
.hero,
.offers,
.stories,
.contact,
.site-footer {
  --focus: var(--cream);
  --btn-border: rgba(248, 241, 229, 0.45);
}

/* Light cards inside dark sections go back to the default ring and button. */
.hero-facts,
.offer-face,
.story-card,
.contact-form,
.tile {
  --focus: var(--espresso);
  --btn-border: transparent;
}

/* Section backgrounds alternate from About on: beige, black, beige, black, beige, black.
   Offers (gloves, black-and-white), Stories (gloves, colour) and Contact (cafe) are black with a
   darkened photo (see Stories). */
.offers h2,
.contact h2 { color: var(--white); }
.offers .section-intro,
.contact .section-intro { color: var(--on-dark-soft); }

/* --------------------------------------------------------------------------
   Header — solid beige bar that stays in view
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 0.75rem;
  pointer-events: none;
}
.site-header .container { max-width: calc(var(--container) + 4rem); }
.header-bar {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 60px;
  padding: 0.4rem 0.6rem 0.4rem 0.9rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.brand-be { width: auto; height: 40px; flex: none; }
.brand-rule { flex: none; width: 1px; height: 28px; background: var(--espresso); opacity: 0.4; }
.brand-word { width: auto; height: 20px; min-width: 0; }

.header-bar .brand { margin-right: auto; }

.nav-toggle {
  order: 3;
  display: inline-flex;
  flex: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--espresso);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: the nav is a beige panel dropping out of the bar */
.site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0; right: 0;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }

.nav-list { display: flex; flex-direction: column; }
.nav-list a {
  display: block;
  padding: 0.7rem 0.5rem;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.nav-list a:hover,
.nav-list a[aria-current="true"] {
  color: var(--espresso);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.lang-switch {
  order: 2;
  display: flex;
  flex: none;
  gap: 0.1rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.lang-switch button {
  min-width: 34px; min-height: 34px;
  padding: 0 0.3rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.lang-switch button:hover { color: var(--espresso); }
.lang-switch button[aria-pressed="true"] { background: var(--espresso); color: var(--cream); }

/* Icon-only "back to homepage" disc on the legal pages; label lives in aria-label. */
.btn-home { width: 44px; min-width: 44px; min-height: 44px; margin-top: 0.5rem; padding: 0; }
.btn-home svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Hero — full-bleed photo on black
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  margin-top: calc(-1 * (var(--header-h) + 0.75rem));
  padding-top: calc(var(--header-h) + 3.5rem);
  padding-bottom: 2.5rem;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  background: var(--black);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 45% 30%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 16, 0.6) 0%, rgba(20, 17, 16, 0.55) 45%, rgba(20, 17, 16, 0.92) 100%),
    linear-gradient(90deg, rgba(20, 17, 16, 0.75) 0%, rgba(20, 17, 16, 0.15) 75%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.hero h1 { color: var(--white); max-width: 10ch; margin-bottom: 0.4em; }
.hero-title-end { display: block; }
.hero .accent-line { background: var(--cream); opacity: 0.6; }
.hero .lead { color: var(--on-dark); font-style: italic; }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.hero-actions .btn { width: 100%; }

.hero-facts {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0.5rem 1.1rem;
  color: var(--ink);
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 0.6rem;
  font-size: 0.98rem;
  line-height: 1.3;
}
.hero-facts li + li { border-top: 1px solid var(--line); }
.fact-stat { display: flex; flex-direction: column; }
.fact-value { font-family: var(--font-head); font-size: 1.5rem; font-weight: 500; line-height: 1.15; }

/* --------------------------------------------------------------------------
   About — text with portrait photo
   -------------------------------------------------------------------------- */

.about .chip { margin-bottom: 1rem; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about-title {
  font-family: var(--font-hand);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--espresso);
  margin-bottom: 0.2em;
}
.about-lead {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.about-copy > p:not(.about-lead):not(.chip) { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 1.75rem; }
.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--espresso);
}

/* --------------------------------------------------------------------------
   Offers — flip cards (title front, details back) on beige
   -------------------------------------------------------------------------- */

.offer-grid {
  --offer-card-h: 20rem; /* photo front; on phones every closed card has this height */
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.offer-card { height: 100%; }
.offer-card-inner {
  display: grid;
  height: 100%;
  gap: 1.25rem;
}
.offer-face {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 1.25rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.offer-front { align-items: center; text-align: center; }
/* Photo fronts: a darkened, text-free photo fills the face (decorative, alt=""); the title is live
   text on top, so it stays sharp at any resolution and follows the language switch. */
.offer-front-img {
  position: relative;
  min-height: var(--offer-card-h);
  overflow: hidden;
  justify-content: flex-end;
  background: var(--black);
  border-color: var(--black);
  --focus: var(--cream);
}
.offer-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-card .offer-title {
  position: relative;
  max-width: 85%;
  margin-block: auto;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  text-wrap: balance;
}
.offer-card .offer-title::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0 auto 1rem;
  background: var(--red-accent);
}
.offer-front-img .offer-flip { position: relative; color: var(--cream); }
.offer-headline {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--espresso);
  margin-bottom: 0.6rem;
}
.offer-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.offer-place { font-weight: 700; color: var(--espresso); }
.offer-back .btn { margin-top: auto; }

/* Flip / unflip triggers: quiet text buttons with a turn icon, 44px tall for touch. */
.offer-flip,
.offer-unflip {
  display: none;
  align-self: center;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--espresso);
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.offer-unflip { margin-top: 0.5rem; }
.offer-flip:hover,
.offer-unflip:hover { text-decoration: underline; }
.offer-flip svg,
.offer-unflip svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* With JS (main.js adds .is-enhanced) both faces share one grid cell and the card turns.
   Without JS the faces simply stack, so every detail stays readable. */
.offer-grid.is-enhanced .offer-card { perspective: 1400px; }
.offer-grid.is-enhanced .offer-card-inner {
  gap: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}
.offer-grid.is-enhanced .offer-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* The outgoing face hides at the half turn (and leaves the tab order); the incoming face
     shows at once so it can take focus. Backface-visibility keeps it invisible until it turns. */
  transition: visibility 0s linear 0.3s;
}
.offer-grid.is-enhanced .offer-front { transition-delay: 0s; }
.offer-grid.is-enhanced .offer-back {
  transform: rotateY(180deg);
  visibility: hidden;
}
.offer-grid.is-enhanced .offer-flip,
.offer-grid.is-enhanced .offer-unflip { display: inline-flex; }
.offer-grid.is-enhanced .offer-face { cursor: pointer; } /* a tap anywhere on a face turns the card (main.js) */

/* Single column: the hidden back lies over the front, so every closed card is as tall as its photo.
   The face that shows sets the height, so an open card grows until its whole text fits.
   From 48em (2x2 grid) the back sets the height again, so a row stays even (see media queries). */
.offer-grid.is-enhanced .offer-card-inner { position: relative; min-height: var(--offer-card-h); }
.offer-grid.is-enhanced .offer-back { position: absolute; inset: 0; overflow: hidden; }

.offer-grid.is-enhanced .offer-card.is-flipped .offer-card-inner { transform: rotateY(180deg); }
.offer-grid.is-enhanced .offer-card.is-flipped .offer-front { visibility: hidden; transition-delay: 0.3s; }
.offer-grid.is-enhanced .offer-card.is-flipped .offer-back { visibility: visible; transition-delay: 0s; position: relative; overflow: visible; }
.offer-grid.is-enhanced .offer-card.is-flipped .offer-front { position: absolute; inset: 0; }

@media (hover: hover) and (pointer: fine) {
  .offer-grid.is-enhanced .offer-card:hover:not(.is-front-held) .offer-card-inner { transform: rotateY(180deg); }
  .offer-grid.is-enhanced .offer-card:hover:not(.is-front-held) .offer-front { visibility: hidden; transition-delay: 0.3s; }
  .offer-grid.is-enhanced .offer-card:hover:not(.is-front-held) .offer-back { visibility: visible; transition-delay: 0s; position: relative; overflow: visible; }
  .offer-grid.is-enhanced .offer-card:hover:not(.is-front-held) .offer-front { position: absolute; inset: 0; }
}

/* --------------------------------------------------------------------------
   Values & training style — photo + 2x2 grid
   -------------------------------------------------------------------------- */

.style-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.style-figure > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: var(--radius);
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.value-grid li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 0.9rem; }
.value-grid .badge-icon { grid-row: 1 / span 2; }
.value-grid h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.value-grid p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* --------------------------------------------------------------------------
   Success stories — framed beige cards on black
   -------------------------------------------------------------------------- */

/* Decorative photos, darkened as far as they stay recognisable; the black fallback keeps text
   contrast. Offers use the gloves in black-and-white, Stories in colour, Contact the cafe photo. */
.offers,
.stories,
.contact {
  --backdrop: url("../assets/img/stories-gloves-960.webp");
  color: var(--on-dark);
  background:
    linear-gradient(rgba(20, 17, 16, 0.88), rgba(20, 17, 16, 0.88)),
    var(--backdrop) center / cover no-repeat,
    var(--black);
}
.offers { --backdrop: url("../assets/img/offers-gloves-bw-960.webp"); }
.contact { --backdrop: url("../assets/img/contact-cafe-960.webp"); }
.stories h2 { color: var(--white); }
.stories .section-intro { color: var(--on-dark-soft); }

/* Mobile-first carousel: native horizontal scroll with snap points; the next card peeks in.
   From 64em it turns into a grid while there are at most three stories (see media queries). */
.story-grid {
  display: flex;
  gap: 1.25rem;
  padding: 0.25rem 0.25rem 1rem; /* room for focus rings inside the scroll box */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--espresso) transparent;
}
.story-grid > .story-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
}
.story-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.story-nav[hidden] { display: none; }
.story-nav-btn { width: 48px; padding: 0; }
.story-nav-btn .btn-icon { margin: 0; }
.story-prev .btn-icon svg { transform: scaleX(-1); }
.story-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.25rem 1.25rem;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--espresso);
  border-radius: var(--radius);
}
.story-tag {
  margin-bottom: 0.75rem;
  color: var(--espresso);
  background: transparent;
  border-color: var(--espresso);
}
.story-card h3 { margin-bottom: 0.6rem; }
.story-card blockquote,
.story-dialog blockquote { margin: 0; }
.story-card blockquote p,
.story-dialog-body p { font-size: 1rem; color: var(--ink-soft); }
.story-full p { margin: 0 0 0.9em; }
.story-full p:last-child { margin-bottom: 0; }

/* Without JS the full story shows in the card; main.js adds .is-enhanced to show the excerpt
   and the "Mehr lesen" button that opens the dialog. */
.story-excerpt,
.story-more { display: none; }
.story-grid.is-enhanced .story-excerpt { display: block; }
.story-grid.is-enhanced .story-excerpt p { margin: 0; }
.story-grid.is-enhanced .story-full { display: none; }
.story-grid.is-enhanced .story-more { display: inline-flex; }
.story-more {
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding: 0.75rem 0 0;
  font: inherit;
  font-weight: 600;
  color: var(--espresso);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.story-more:hover { color: var(--espresso-2); }

.story-dialog {
  --focus: var(--espresso);
  width: min(40rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 2rem 1.5rem 1.5rem;
  overflow-y: auto;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--espresso);
  border-radius: var(--radius);
}
.story-dialog::backdrop { background: rgba(20, 17, 16, 0.85); }
.story-dialog h3 { margin-bottom: 1rem; padding-right: 2.5rem; }
.story-dialog-body p { margin: 0 0 0.9em; }
.story-dialog-body p:last-child { margin-bottom: 0; }
.story-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.story-close:hover { background: rgba(114, 23, 23, 0.08); color: var(--espresso); }
.story-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
html:has(.story-dialog[open]) { overflow: hidden; }

/* --------------------------------------------------------------------------
   Business — beige with white tiles
   -------------------------------------------------------------------------- */

.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.business-copy .btn { margin-top: 0.5rem; white-space: normal; }

.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.tile {
  padding: 1.25rem;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
}
.tile h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.tile p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* --------------------------------------------------------------------------
   Contact — black, form as a beige card with white fields
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-direct { margin-top: 2rem; }
.contact-direct h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.contact-direct dl { display: grid; gap: 0.6rem; }
.contact-direct dl > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.5rem; font-size: 1rem; }
.contact-direct dt { color: var(--on-dark-soft); }
.contact-direct a { color: var(--on-dark); overflow-wrap: anywhere; }

.contact-form {
  padding: 1.5rem;
  color: var(--ink);
  background: var(--cream);
  border-radius: var(--radius);
}
.form-title { font-size: 1.6rem; margin-bottom: 0.5rem; }
.form-intro { color: var(--ink-soft); margin-bottom: 1.25rem; }
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
  font-weight: 500;
}
.optional { color: var(--ink-muted); font-weight: 400; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
}
.form-row textarea { min-height: 8rem; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: 3px solid var(--espresso); outline-offset: 1px; border-color: var(--ink); }
.form-row .is-invalid { border-color: var(--error); }
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }

.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
}
.form-consent input {
  width: 20px; height: 20px;
  min-height: 0;
  margin-top: 0.2rem;
  accent-color: var(--espresso);
}
.form-consent label { font-size: 0.95rem; font-weight: 400; color: var(--ink-soft); margin: 0; }
.form-consent a { color: var(--ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 1rem 0 0; font-size: 1rem; min-height: 1.4em; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* No-JS result after contact.php redirects to #form-sent / #form-failed. */
.form-notice { display: none; margin: 1rem 0 0; font-size: 1rem; font-weight: 500; }
.form-notice:target { display: block; }
.form-notice.is-success { color: var(--success); }
.form-notice.is-error { color: var(--error); }

/* --------------------------------------------------------------------------
   Footer — full-width dark red band, content centred in the container
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--espresso-deep);
  color: var(--on-dark);
  padding-block: 3rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.footer-brand .brand-rule { background: var(--cream); }
.footer-brand p { font-size: 1rem; color: var(--on-dark-soft); margin: 0.75rem 0 0; max-width: 24rem; }
.footer-title { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 0.75rem; }
.footer-col ul { display: grid; gap: 0.4rem; }
.footer-col a { font-size: 1rem; text-decoration: none; color: var(--on-dark); }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.social-link { display: inline-flex; align-items: center; gap: 0.5rem; }
.social-icon {
  flex: none;
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-icon .icon-fill { fill: currentColor; stroke: none; }
.footer-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--dark-line);
  font-size: 0.9rem;
  color: var(--on-dark-soft);
}

/* --------------------------------------------------------------------------
   ≥ 48em (768px) — tablet
   -------------------------------------------------------------------------- */

@media (min-width: 48em) {
  .section-head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }

  .brand-word { height: 24px; }

  .hero { min-height: 88vh; }
  /* Wider screens keep the text on the dark left side, so the photo can stay brighter. */
  .hero::after {
    background:
      linear-gradient(180deg, rgba(20, 17, 16, 0.45) 0%, rgba(20, 17, 16, 0.3) 45%, rgba(20, 17, 16, 0.85) 100%),
      linear-gradient(90deg, rgba(20, 17, 16, 0.85) 0%, rgba(20, 17, 16, 0.05) 80%);
  }
  .hero-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .hero-copy { flex: 1; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .hero-facts { flex: none; width: 19rem; }

  .offer-grid { --offer-card-h: 26rem; grid-template-columns: repeat(2, 1fr); }
  /* Both faces back in the flow: the taller one sets the card height, the grid evens each row. */
  .offer-grid.is-enhanced .offer-back { position: static; overflow: visible; }
  .offer-grid.is-enhanced .offer-card.is-flipped .offer-front,
  .offer-grid.is-enhanced .offer-card:hover:not(.is-front-held) .offer-front { position: relative; }

  .value-grid { grid-template-columns: repeat(2, 1fr); }

  .story-grid > .story-card { flex-basis: calc((100% - 1.25rem) / 2); }
  .stories { --backdrop: url("../assets/img/stories-gloves-1920.webp"); }
  .offers { --backdrop: url("../assets/img/offers-gloves-bw-1920.webp"); }
  .contact { --backdrop: url("../assets/img/contact-cafe-1920.webp"); }

  .tile-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-form { padding: 2rem; }
  .form-row-2 { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   ≥ 64em (1024px) — desktop
   -------------------------------------------------------------------------- */

@media (min-width: 64em) {
  .offer-card .offer-title { font-size: 2.5rem; }
  .header-bar { gap: 1rem; padding-inline: 1.1rem 0.75rem; }
  .header-bar .brand { margin-right: 0; }

  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    flex: 1;
    position: static;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  .nav-list { flex-direction: row; gap: 0.1rem; }
  .nav-list a { padding: 0.5rem 0.4rem; font-size: 0.95rem; white-space: nowrap; text-align: center; }
  .btn-home { margin: 0 0 0 auto; }

  .hero h1 { max-width: none; }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }

  .style-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }

  .business-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }

  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }

  /* Three cards per view; up to three stories sit in a plain grid, from the fourth on the carousel stays.
     Browsers without :has() keep the carousel. */
  .story-grid > .story-card { flex-basis: calc((100% - 2 * 1.25rem) / 3); }
  .story-grid:not(:has(> :nth-child(4))) {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    overflow: visible;
  }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   ≥ 80em (1280px) — wide
   -------------------------------------------------------------------------- */

@media (min-width: 80em) {
  .site-nav { justify-content: center; }
  .nav-list { gap: 0.4rem; }
  .nav-list a { padding: 0.5rem 0.55rem; font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   Legal pages — Impressum / Datenschutzerklärung
   -------------------------------------------------------------------------- */

.legal-content { max-width: 42rem; }
.legal-content h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 0.75rem; }
.legal-content h2 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin-top: 2rem; }
.legal-content p,
.legal-content address { color: var(--ink-soft); }
.legal-content address { font-style: normal; margin: 0 0 1em; }
.legal-content ul,
.legal-content ol { list-style: disc; padding-left: 1.25rem; margin: 0 0 1em; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: 0.4em; }
