/* =====================================================================
   Lemberger Speisen – Basis (Farben, Schrift, Buttons)
   Wird von Homepage, Impressum und Admin-Bereich gemeinsam genutzt.
   ===================================================================== */

:root {
  /* Markenfarben (aus dem Logo: #006752) */
  --green-950: #01261f;
  --green-900: #023b30;
  --green-800: #034f40;
  --green: #006752;
  --green-600: #157d66;
  --green-300: #8fbfb2;
  --green-200: #c3ddd5;
  --green-100: #dcebe6;
  --green-50: #eef5f2;

  /* Warme Neutraltöne (Eiche, Naturstein aus dem Ladenkonzept) */
  --sand-50: #fbf9f6;
  --sand: #f5f1ea;
  --sand-200: #ebe4d8;
  --oak: #b58a5c;

  --ink: #1d1d1b;
  --ink-2: #474c49;
  --ink-3: #6c716e;
  --line: #e5dfd5;
  --line-strong: #d3cbbd;
  --white: #ffffff;

  --danger: #b42318;
  --danger-50: #fef3f2;
  --warning: #9a4a07;
  --warning-50: #fff8e6;
  --success: #067647;
  --success-50: #ecfdf3;

  --font: "new-science", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-wide: "new-science-extended", "new-science", "Helvetica Neue", Arial, sans-serif;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 20, .05), 0 1px 3px rgba(16, 24, 20, .07);
  --shadow: 0 18px 40px -22px rgba(2, 59, 48, .35), 0 2px 6px rgba(2, 59, 48, .06);
  --shadow-lg: 0 30px 60px -28px rgba(2, 40, 32, .45);

  --container: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }
strong, b { font-weight: 700; }

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

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Eyebrow / kleine Überzeile ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-wide);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; flex: none; align-self: flex-start; margin-top: .62em; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
@media (max-width: 600px) { .eyebrow { font-size: .72rem; letter-spacing: .1em; } }
.eyebrow--light { color: var(--green-200); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  --btn-border: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.4em;
  border: 2px solid var(--btn-border); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { --btn-bg: var(--green-800); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .icon { width: 1.1em; height: 1.1em; }

.btn--light { --btn-bg: #fff; --btn-fg: var(--green-900); }
.btn--light:hover { --btn-bg: var(--green-50); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-border: #fff; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--green); --btn-border: var(--green-200); }
.btn--outline:hover { --btn-bg: var(--green-50); --btn-border: var(--green); }
.btn--quiet { --btn-bg: transparent; --btn-fg: var(--ink-2); --btn-border: transparent; padding-inline: .8em; }
.btn--quiet:hover { --btn-bg: var(--sand); }
.btn--danger { --btn-bg: transparent; --btn-fg: var(--danger); --btn-border: transparent; }
.btn--danger:hover { --btn-bg: var(--danger-50); }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .9375rem; }
.btn--block { width: 100%; }

.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--btn-fg); border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.btn--light.is-loading::after, .btn--outline.is-loading::after { border-color: var(--green); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Formularfelder ---------- */
.field { display: grid; gap: 6px; }
.field__label { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.field__label .opt { font-weight: 400; color: var(--ink-3); }
.input, .textarea, .select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff;
  font-size: 1rem; line-height: 1.4;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.textarea { min-height: 150px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #9a9f9c; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--green-300); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 103, 82, .15); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-50); }
.input[aria-invalid="true"]:focus, .textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); }
.input:disabled { background: var(--sand); color: var(--ink-3); cursor: not-allowed; }
.field__error { font-size: .875rem; color: var(--danger); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--green); cursor: pointer; }

/* ---------- Hinweise / Meldungen ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px; font-size: .9375rem; line-height: 1.5;
  background: var(--green-50); color: var(--green-900); border: 1px solid var(--green-100);
}
.notice .icon { margin-top: 2px; }
.notice--error { background: var(--danger-50); color: var(--danger); border-color: #fecdca; }
.notice--warning { background: var(--warning-50); color: var(--warning); border-color: #fedf89; }
.notice--success { background: var(--success-50); color: var(--success); border-color: #abefc6; }
