/* Auf Messers Schneide — Stylesheet
   Catering & Buffets, Bell-Krastel
   Mobile-first: base rules below target small screens;
   min-width media queries layer on enhancements as space allows. */

/* ==========================================================
   DESIGN TOKENS — SAFE TO CHANGE
   Colors, type, radii, hero photo. Edit freely.
   ========================================================== */
:root {
  /* Colors — rebuilt from the new logo and the vegetable-illustration
     set: --espresso is the exact brown used in the wordmark; --berry,
     --sage and --gold are sampled from the red cabbage, kale/savoy
     and chanterelle illustrations. */
  --cream:        #FBF4E7;
  --cream-soft:   #FFFBF2;
  --espresso:       #403025;
  --espresso-deep:  #2E231B;
  --sage:         #E3DFCF;
  --sage-deep:    #727A5B;
  --berry:        #7A2028;
  --berry-hover:  #92484F;
  --berry-tint:   #EEDFD4;
  --gold:         #A86010;
  --ink:          #2B2A24;
  --ink-soft:     rgba(43, 42, 36, 0.7);
  --line:         rgba(43, 42, 36, 0.12);

  /* Type */
  --font-display: "IBM Plex Mono", "Courier New", monospace;
  --font-body: "Work Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Shape */
  --blob-a: 63% 37% 54% 46% / 43% 45% 55% 57%;
  --blob-b: 42% 58% 63% 37% / 47% 44% 56% 53%;
  --blob-logo: 61% 39% 44% 56% / 51% 41% 59% 49%;
  --radius-soft: 22px;

  /* Layout */
  --container: 1120px;
  --container-narrow: 760px;
  --header-h: 76px;

  /* Hero visual, next to "Am liebsten vegetarisch." A landscape photo
     of the buffet (3:2). To swap it, replace img/hero.jpg with a new
     file of the same name, or repoint the url() below — and update
     --hero-visual-ratio to the new image's own W/H if the shape
     changes noticeably. */
  --hero-visual: url("../img/hero.jpg");
  --hero-visual-ratio: 3 / 2;
}

/* ==========================================================
   BASE & RESET — edit with care, other sections depend on this
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--espresso);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
}

/* Fluid type: clamp() scales smoothly with viewport width, so
   headings size themselves correctly with no breakpoints needed. */
h1 { font-size: clamp(1.9rem, 4.8vw + 0.5rem, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.45rem, 2.8vw + 0.7rem, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

/* Hand-painted vegetable/mushroom/flower illustrations used as
   decorative accents: one beside each section heading, and one on
   its own as a small divider between each pair of sections (see
   .block-divider below). Purely decorative (empty alt), never
   load-bearing for meaning. Each illustration is used exactly once
   across the whole page — no repeats. */
.heading-flourish {
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.heading-icon {
  width: clamp(42px, 7vw, 64px);
  height: clamp(42px, 7vw, 64px);
  object-fit: contain;
  flex-shrink: 0;
}

/* A quiet breathing space between two section blocks, with a single
   small illustration centered in it — always on the page's base
   cream tone regardless of which colors it sits between, so every
   transition gets the same calm treatment. Plain in-flow content
   (no absolute positioning), so it can never overlap or crowd the
   text in the blocks on either side. */
.block-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--cream);
  padding: clamp(20px, 5vw, 36px) 0;
}
.block-divider img {
  width: clamp(40px, 6vw, 58px);
  height: auto;
}

a { color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.container.narrow { max-width: var(--container-narrow); }

.section { padding: clamp(48px, 12vw, 108px) 0; }
.section-cream  { background: var(--cream); }
.section-sage   { background: var(--sage); }
.section-forest { position: relative; background: var(--espresso-deep); color: var(--cream-soft); }
.section-forest h2 { color: var(--cream-soft); }

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--berry);
  color: var(--cream-soft);
}
.btn-primary:hover { background: var(--berry-hover); }

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--espresso);
}
.section-forest .btn-ghost { color: var(--cream-soft); }
.btn-ghost:hover { background: rgba(43, 42, 36, 0.06); }

/* ==========================================================
   HEADER & NAV
   Mobile base: full-width logo bar, burger-collapsed menu.
   Desktop (900px+): bigger logo. Nav bar unfolds at 780px+.
   ========================================================== */

.logo-bar {
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  padding: clamp(12px, 4vw, 24px) clamp(20px, 4vw, 48px);
}

.brand-top { display: inline-flex; text-decoration: none; }

/* Mobile: compact but clear. Desktop gets a much bigger jump — see 900px query below. */
.brand-mark-top {
  height: clamp(68px, 22vw, 120px);
  width: auto;
}

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  min-height: var(--header-h);
}


/* Mobile nav: hidden checkbox + label drive a collapsible dropdown, no JS needed. */
.nav-toggle { display: none; }

.nav-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--espresso);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-burger span::before { position: absolute; top: -7px; }
.nav-burger span::after  { position: absolute; top: 7px; }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.site-nav a {
  width: 100%;
  padding: 14px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
}

.nav-toggle:checked ~ .site-nav { max-height: 320px; }
.nav-toggle:checked ~ .nav-burger span { transform: rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span::before { top: 0; transform: rotate(0deg); }
.nav-toggle:checked ~ .nav-burger span::after { top: 0; opacity: 0; }

/* Desktop nav: menu unfolds into a plain row, burger disappears. */
@media (min-width: 780px) {
  .nav-burger { display: none; }

  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: clamp(16px, 2.2vw, 32px);
    background: none;
    border-bottom: none;
    max-height: none;
    overflow: visible;
  }
  .site-nav a {
    width: auto;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
  }
  .site-nav a:hover { border-color: var(--berry); }
}

/* Desktop: logo gets noticeably larger and more prominent. */
@media (min-width: 900px) {
  .brand-mark-top { height: clamp(150px, 13vw, 240px); }
  .logo-bar { padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 48px); }
}

/* ==========================================================
   HERO
   Mobile base: stacked, visual first. Two columns from 900px.
   ========================================================== */
.hero { padding: clamp(40px, 10vw, 96px) 0 clamp(32px, 8vw, 80px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 64px);
}

.hero-content {
  order: 2;
  animation: rise-in 0.7s ease-out both;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin: 1.6em 0 1.8em;
}

.hero-stats {
  font-size: 0.92rem;
  color: var(--espresso);
  font-weight: 500;
  letter-spacing: 0.01em;
  max-width: none;
}

.hero-visual {
  order: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  animation: rise-in 0.9s ease-out both;
  animation-delay: 0.1s;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96%;
  aspect-ratio: var(--hero-visual-ratio);
  background: var(--sage);
  border-radius: var(--blob-logo);
  z-index: 0;
}

/* SAFE TO CHANGE: image comes from --hero-visual (see tokens above).
   Slightly smaller than .hero-visual::before so the sage oval shows
   as a halo around the photo. */
.hero-mark {
  position: relative;
  z-index: 1;
  width: 93%;
  max-width: 480px;
  aspect-ratio: var(--hero-visual-ratio);
  border-radius: var(--blob-logo);
  background-image: var(--hero-visual);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 600px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-content { order: initial; }
  .hero-visual { order: initial; min-height: 220px; }
  .hero-lead { font-size: 1.2rem; }
}

/* ==========================================================
   WELCOME / INTRO SECTION
   Shares the Buffet/Vollverpflegung two-column layout (.service-*
   classes below); photo on the right via .reverse.
   ========================================================== */
.intro-text p { font-size: 1.04rem; }
@media (min-width: 900px) {
  .intro-text p { font-size: 1.08rem; }
}

/* ==========================================================
   SERVICES (Buffet / Vollverpflegung)
   Mobile base: stacked, image above text, natural DOM order.
   Desktop (900px+): two columns, alternating sides.

   Photos are plain <img> tags (lazy-loaded) — SAFE TO CHANGE:
   replace the file in img/ under the same name.
   ========================================================== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 6vw, 64px);
  align-items: center;
}

.photo-frame {
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 0 auto;
  border-radius: var(--blob-a);
  background: var(--sage);
}
.photo-blob-b { border-radius: var(--blob-b); }

.service-text .service-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1em;
  margin-top: 1.4em;
}

@media (min-width: 900px) {
  .service-grid { grid-template-columns: 0.85fr 1.15fr; }
  .service-block.reverse .service-grid { grid-template-columns: 1.15fr 0.85fr; }
  .service-block.reverse .service-visual { order: 2; }
  .service-block.reverse .service-text { order: 1; }
  .photo-frame { max-width: none; margin: 0; }
}

/* Photo gallery below the Buffet text: 2 columns on mobile, 3 from 640px.
   Tiles alternate the shared blob shapes. */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2.5vw, 28px);
  margin-top: clamp(40px, 8vw, 80px);
}
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--blob-a);
}
.gallery li:nth-child(even) img { border-radius: var(--blob-b); }

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================
   KUNDEN (client list)
   Mobile base: one column. Two columns from 640px.
   ========================================================== */
.section-intro {
  font-size: 1.05rem;
  color: rgba(255, 251, 242, 0.85);
  max-width: 56ch;
}

.client-list {
  margin-top: 1.8em;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7em 2.5em;
}

.client-list li {
  padding-left: 1.4em;
  position: relative;
  border-bottom: 1px solid rgba(255, 251, 242, 0.16);
  padding-bottom: 0.7em;
  font-size: 1rem;
}

.client-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
  background: var(--gold);
}

@media (min-width: 640px) {
  .client-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9em 2.5em; }
  .client-list li { font-size: 1.02rem; }
}

/* ==========================================================
   KONTAKT
   Mobile base: stacked. Two columns from 900px.
   ========================================================== */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 6vw, 56px);
  align-items: start;
}

.kontakt-text p { font-size: 1.04rem; color: var(--ink-soft); }
.kontakt-card {
  background: var(--berry-tint);
  border-radius: var(--radius-soft);
  padding: clamp(28px, 6vw, 48px);
  box-shadow: 0 20px 40px -20px rgba(46, 35, 27, 0.3);
}

.kontakt-card .kontakt-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--espresso);
  margin-bottom: 0.2em;
}

.kontakt-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.6em;
}
.kontakt-actions .btn { width: 100%; }

@media (min-width: 900px) {
  .kontakt-grid { grid-template-columns: 1fr 0.78fr 0.95fr; gap: clamp(20px, 3vw, 40px); }
  .kontakt-text p { font-size: 1.1rem; }
  .kontakt-card .kontakt-name { font-size: 1.25rem; }
  .kontakt-actions .btn { width: auto; }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--espresso-deep);
  color: rgba(255, 251, 242, 0.8);
  padding: 40px 0 28px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; text-decoration: none; }

/* Light green blob behind the footer logo — the logo's espresso-
   brown line art needs a light backdrop to read on the dark
   footer; the rest of the site already gives it a light one.
   Uses Logo_Kreis (img/logo-footer.png), the circular seal variant
   of the logo — its own shape is already round, so the blob behind
   it just needs to read as roughly round too; padding is even on
   all sides since the mark itself is close to square. */
.brand-footer {
  background: var(--sage);
  border-radius: var(--blob-logo);
  padding: 16px;
}
.brand-footer .brand-mark { height: 42px; width: auto; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.footer-nav a { text-decoration: none; font-size: 0.94rem; color: rgba(255, 251, 242, 0.8); }
.footer-nav a:hover { color: var(--cream-soft); }

/* Small "back to top" icon button, echoes the logo-badge colors. */
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage);
  color: var(--espresso);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.back-to-top:hover { background: var(--cream-soft); transform: translateY(-2px); }
.back-to-top svg { width: 18px; height: 18px; }

.footer-copy {
  width: 100%;
  font-size: 0.85rem;
  color: rgba(255, 251, 242, 0.55);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 251, 242, 0.14);
}

@media (min-width: 640px) {
  .brand-footer .brand-mark { height: 46px; }
}

/* ==========================================================
   SIMPLE / LEGAL PAGES (Impressum, Datenschutz)
   ========================================================== */
.legal-header { padding: 32px 0 8px; }
.legal-back { text-decoration: none; font-weight: 500; color: var(--espresso); font-size: 0.95rem; }
.legal-back:hover { color: var(--berry); }

.legal-main h2 { margin-top: 1.6em; }
.legal-main h3 { margin-top: 1.3em; color: var(--espresso); }
.legal-main p, .legal-main li { color: var(--ink-soft); max-width: 68ch; }
.legal-main ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1.1em; }
.legal-main li { margin-bottom: 0.4em; }
.legal-main a { color: var(--berry); }
