/* =========================================================================
   Camillo – Privater Koch & Event-Catering Leipzig
   Statischer Nachbau. Alle Werte aus erfassung/design-tokens.md.
   ========================================================================= */

/* ---------- Schriften (lokal gehostet, keine externe Einbindung) -------- */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/playfair-display-latin.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: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/playfair-display-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Playfair Display";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/playfair-display-italic-latin.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 Sans 3";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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 Sans 3";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.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;
}

/* ---------- Tokens ------------------------------------------------------ */

:root {
  --terra: #aa5734;
  --terra-hover: #904529;
  --brown: #392316;
  --brown-mid: #554339;
  --text-muted: #6c615a;
  --cream: #fbf8f3;
  --sand: #f2eae0;
  --sand-dark: #e1d5c8;
  --border: #dcd2c8;
  --on-terra: #faf8f5;
  --foreground: #211914;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 80px;
}

/* ---------- Reset ------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; vertical-align: middle; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:is(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--cream);
  color: var(--brown);
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ------------------------------------------------------ */

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { max-width: 1280px; padding-inline: 2rem; } }

.section { padding-block: 80px; }
@media (min-width: 768px) { .section { padding-block: 112px; } }

.section-cream { background-color: var(--cream); }
.section-sand  { background-color: var(--sand); }

[id] { scroll-margin-top: var(--header-h); }

/* ---------- Typografie -------------------------------------------------- */

.font-display { font-family: var(--font-display); }
.font-italic-serif { font-family: var(--font-display); font-style: italic; }

.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--terra);
  margin-bottom: 8px;
}

.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2,
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.875rem;   /* 30px */
  line-height: 1.2;
  color: var(--brown);
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .section-head h2, .h2 { font-size: 2.25rem; line-height: calc(2.5 / 2.25); }
}
.section-head .lead {
  max-width: 36rem;
  margin-inline: auto;
  font-size: 1rem;
  color: var(--text-muted);
}

.terra-divider {
  width: 48px;
  height: 2px;
  background: var(--terra);
  border-radius: 2px;
}
.terra-divider.center { margin-inline: auto; }

.label-xs {
  font-size: .75rem;
  line-height: calc(1 / .75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .025em;
  color: var(--text-muted);
}

/* ---------- Buttons ----------------------------------------------------- */

.btn-primary,
.btn-outline {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  padding: .875rem 2rem;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .25s;
}
.btn-primary {
  color: var(--on-terra);
  background: var(--terra);
  border: none;
}
.btn-primary:hover {
  background: var(--terra-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(170, 87, 52, .25);
}
.btn-outline {
  color: var(--terra);
  background: transparent;
  border: 1.5px solid var(--terra);
}
.btn-outline:hover { background: rgba(170, 87, 52, .08); }

.btn-full { width: 100%; }

/* ---------- Header / Navigation ---------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  transition: background .4s cubic-bezier(.4, 0, .2, 1),
              box-shadow .4s cubic-bezier(.4, 0, .2, 1);
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(253, 251, 249, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(33, 25, 20, .06), inset 0 -1px 0 var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
  letter-spacing: -.01em;
  color: #faf8f5;
  transition: color .4s cubic-bezier(.4, 0, .2, 1);
}
.brand-sub {
  font-size: .75rem;
  line-height: calc(1 / .75);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
  color: #dad7d2;
  transition: color .4s cubic-bezier(.4, 0, .2, 1);
}
.site-header.scrolled .brand-name,
.site-header.solid .brand-name { color: var(--brown); }
.site-header.scrolled .brand-sub,
.site-header.solid .brand-sub { color: var(--text-muted); }

.nav-desktop { display: none; }
@media (min-width: 768px) {
  .nav-desktop { display: flex; align-items: center; gap: 1.75rem; }
}
.nav-desktop a:not(.btn-primary) {
  font-size: .875rem;
  line-height: calc(1.25 / .875);
  font-weight: 500;
  color: #e7e4df;
  text-decoration: none;
  transition: color .2s cubic-bezier(.4, 0, .2, 1);
}
.site-header.scrolled .nav-desktop a:not(.btn-primary),
.site-header.solid .nav-desktop a:not(.btn-primary) { color: var(--brown-mid); }
.nav-desktop a:not(.btn-primary):hover,
.site-header.scrolled .nav-desktop a:not(.btn-primary):hover,
.site-header.solid .nav-desktop a:not(.btn-primary):hover { color: var(--terra); }
.nav-desktop .btn-primary {
  padding: .55rem 1.4rem;
  font-size: .8rem;
  color: var(--on-terra);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  background: none;
  border: none;
  color: #faf8f5;
  cursor: pointer;
  transition: color .4s cubic-bezier(.4, 0, .2, 1);
}
.site-header.scrolled .nav-toggle,
.site-header.solid .nav-toggle { color: var(--brown); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
  display: none;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: block; }
@media (min-width: 768px) { .nav-mobile, .nav-mobile.open { display: none; } }

.nav-mobile .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: .25rem;
  padding-block: 1.25rem;
}
.nav-mobile a:not(.btn-primary) {
  text-align: left;
  font-size: .875rem;
  line-height: calc(1.25 / .875);
  font-weight: 500;
  color: var(--brown-mid);
  text-decoration: none;
  padding-block: .75rem;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:not(.btn-primary):hover { color: var(--terra); }
.nav-mobile .btn-primary { margin-top: .75rem; color: var(--on-terra); }

/* ---------- Hero -------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/camilo-hero-1920.jpg");
  background-image: image-set(url("../img/camilo-hero-1920.webp") type("image/webp"),
                              url("../img/camilo-hero-1920.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  filter: brightness(.55) saturate(.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(27, 14, 8, .35) 0%,
    rgba(18, 8, 5, .15) 50%,
    rgba(27, 14, 8, .65) 100%);
}
.hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-inline: 1rem;
  max-width: 48rem;
  margin-inline: auto;
}
.hero-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: calc(1.75 / 1.125);
  color: #f4d0af;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .hero-kicker { font-size: 1.25rem; line-height: calc(1.75 / 1.25); } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: #fbf8f3;
  margin-bottom: 20px;
}
.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
  color: #e9e4dc;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .hero-sub { font-size: 1.5rem; line-height: calc(2 / 1.5); } }

.hero-text {
  font-size: 1rem;
  line-height: 1.625;
  color: #d1cdc8;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .hero-text { font-size: 1.125rem; } }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: center;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.hero-actions .btn-primary,
.hero-actions .btn-outline { font-size: .9rem; padding: .9rem 2.2rem; }
.hero-actions .btn-outline {
  color: #f1eee9;
  border-color: rgba(241, 238, 233, .6);
}
.hero-actions .btn-outline:hover { background: rgba(255, 255, 255, .1); }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  animation: bounce 1s infinite;
}
.hero-scroll span {
  font-size: .75rem;
  line-height: calc(1 / .75);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #c1bdb8;
}
.hero-scroll svg { color: #f4d0af; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); }
  50%      { transform: translateX(-50%) translateY(0);     animation-timing-function: cubic-bezier(0, 0, .2, 1); }
}

/* ---------- Kennzahlen-Band -------------------------------------------- */

.stats-band {
  padding-block: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
  font-weight: 600;
  color: var(--brown);
}
.stat-label {
  font-size: .75rem;
  line-height: calc(1 / .75);
  letter-spacing: .025em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
}
.stat svg { color: var(--terra); }

/* ---------- Über mich --------------------------------------------------- */

.about-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.about-media { position: relative; }
.about-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 5;
}
.about-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--sand-dark);
}
.about-badge {
  position: absolute;
  bottom: 24px;
  right: -12px;
  min-width: 120px;
  padding: 16px 20px;
  text-align: center;
  border-radius: 4px;
  background: var(--terra);
  box-shadow: 0 4px 20px rgba(170, 87, 52, .3);
}
@media (min-width: 768px) { .about-badge { right: -24px; } }
.about-badge .year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
  font-weight: 700;
  color: #faf8f5;
}
.about-badge .caption {
  font-size: .75rem;
  line-height: calc(1 / .75);
  letter-spacing: .025em;
  text-transform: uppercase;
  color: #e1ddd8;
  margin-top: 2px;
}

.about-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--brown);
  margin-bottom: 16px;
}
@media (min-width: 768px) { .about-body h2 { font-size: 2.25rem; } }
.about-body .terra-divider { margin-bottom: 24px; }
.about-body p {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--brown-mid);
  margin-bottom: 16px;
}
.about-body p.last { margin-bottom: 32px; }
.about-body p.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--terra);
  margin-bottom: 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 32px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 9999px;
  background: var(--sand);
  border: 1px solid var(--border);
  font-size: .875rem;
  line-height: calc(1.25 / .875);
  font-weight: 500;
  color: var(--brown-mid);
}
.chip svg { color: var(--terra); flex: none; }

.partner-box {
  padding: 20px;
  border-radius: 8px;
  background: var(--sand);
  border: 1px solid var(--border);
}
.partner-box .label {
  font-size: .75rem;
  line-height: calc(1 / .75);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 8px;
}
.partner-box p {
  font-size: .875rem;
  line-height: calc(1.25 / .875);
  color: var(--brown-mid);
  margin-bottom: 0;
}

/* ---------- Leistungen -------------------------------------------------- */

.cards-3 {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
}
.icon-tile {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(170, 87, 52, .1);
  color: var(--terra);
  flex: none;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
  color: var(--brown);
  margin-bottom: 4px;
}
.service-card .scope {
  font-size: .75rem;
  line-height: calc(1 / .75);
  letter-spacing: .025em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terra);
}
.service-card .desc {
  font-size: .875rem;
  line-height: 1.625;
  color: var(--brown-mid);
  flex: 1;
}
.service-card .tags {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .75rem;
  line-height: calc(1 / .75);
  color: var(--text-muted);
}

.quote-banner {
  margin-top: 48px;
  padding: 32px;
  border-radius: 8px;
  text-align: center;
  background: var(--terra);
}
@media (min-width: 768px) { .quote-banner { padding: 40px; } }
.quote-banner p:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
  color: #faf8f5;
  margin-bottom: 12px;
}
@media (min-width: 768px) { .quote-banner p:first-child { font-size: 1.5rem; line-height: calc(2 / 1.5); } }
.quote-banner .attribution {
  font-size: .875rem;
  line-height: calc(1.25 / .875);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: #f4d0af;
}

/* ---------- Ablauf ------------------------------------------------------ */

.steps {
  max-width: 42rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}
.step { display: flex; gap: 20px; }
.step-rail { display: flex; flex-direction: column; align-items: center; }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: .875rem;
  font-weight: 600;
  background: var(--terra);
  color: #faf8f5;
}
.step-line {
  width: 1px;
  flex: 1;
  min-height: 32px;
  margin-top: 4px;
  background: var(--border);
}
.step-body { padding-bottom: 32px; }
.step-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: calc(1.75 / 1.125);
  color: var(--brown);
  margin: 6px 0;
}
.step-body p {
  font-size: .875rem;
  line-height: 1.625;
  color: var(--brown-mid);
}

/* ---------- Galerie ----------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
.gallery figure {
  overflow: hidden;
  border-radius: 8px;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}
.g-tall { grid-column: span 2; aspect-ratio: 3 / 4; }
@media (min-width: 768px) { .g-tall { grid-column: span 1; grid-row: span 2; } }
.g-wide-4-3 { aspect-ratio: 4 / 3; }
.g-wide { grid-column: span 2; aspect-ratio: 16 / 7; }

/* ---------- Versprechen ------------------------------------------------- */

.promise-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.promise-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 8px;
  background: var(--sand);
  border: 1px solid var(--border);
}
.promise-card .icon-tile {
  width: 40px;
  height: 40px;
  background: rgba(170, 87, 52, .12);
  margin-top: 2px;
}
.promise-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: calc(1.75 / 1.125);
  color: var(--brown);
  margin-bottom: 8px;
}
.promise-card p {
  font-size: .875rem;
  line-height: 1.625;
  color: var(--brown-mid);
}

/* ---------- Referenzen -------------------------------------------------- */

.ref-grid { display: grid; gap: 20px; margin-bottom: 40px; }
@media (min-width: 768px) { .ref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ref-card {
  padding: 24px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
}
.ref-card .terra-divider { margin-bottom: 16px; }
.ref-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--brown);
  margin-bottom: 8px;
}
.ref-card p {
  font-size: .875rem;
  line-height: calc(1.25 / .875);
  color: var(--text-muted);
}

.ihk-box {
  padding: 32px;
  text-align: center;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
}
@media (min-width: 768px) { .ihk-box { padding: 40px; } }
.ihk-box svg { color: var(--terra); margin: 0 auto 12px; }
.ihk-box h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
  color: var(--brown);
  margin-bottom: 8px;
}
.ihk-box p {
  font-size: .875rem;
  line-height: calc(1.25 / .875);
  max-width: 28rem;
  margin-inline: auto;
  color: var(--brown-mid);
}

/* ---------- Kontakt ----------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.contact-col > h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
  color: var(--brown);
  margin-bottom: 24px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon-tile {
  width: 40px;
  height: 40px;
  background: rgba(170, 87, 52, .1);
  margin-top: 2px;
}
.contact-item .label {
  font-size: .75rem;
  line-height: calc(1 / .75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .025em;
  color: var(--terra);
  margin-bottom: 2px;
}
.contact-item .value {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 2px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.value:hover { color: var(--terra); }
.contact-item .note {
  font-size: .75rem;
  line-height: calc(1 / .75);
  color: var(--text-muted);
}

.contact-quote {
  padding: 24px;
  border-radius: 8px;
  background: var(--sand);
  border: 1px solid var(--border);
  border-left: 3px solid var(--terra);
}
.contact-quote p:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--brown);
  margin-bottom: 12px;
}
.contact-quote .attribution {
  font-size: .75rem;
  line-height: calc(1 / .75);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terra);
}

/* ---------- Formular ---------------------------------------------------- */

.form-card {
  padding: 28px;
  border-radius: 8px;
  background: var(--sand);
  border: 1px solid var(--border);
}
@media (min-width: 768px) { .form-card { padding: 32px; } }

.form-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
  color: var(--brown);
  margin-bottom: 4px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field label {
  display: block;
  font-size: .75rem;
  line-height: calc(1 / .75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .025em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--brown);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .9rem;
  padding: .75rem 1rem;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-color: var(--terra);
  outline: 2px solid rgba(170, 87, 52, .35);
  outline-offset: 1px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--brown-mid);
}
.consent input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--terra);
  flex: none;
}
.consent a { color: var(--terra); }

.form-note {
  font-size: .75rem;
  line-height: calc(1 / .75);
  text-align: center;
  color: var(--text-muted);
}

/* Honeypot – für Menschen und Screenreader unsichtbar */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ------------------------------------------------------ */

.site-footer {
  padding-block: 40px;
  background: var(--sand);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: center;
}
@media (min-width: 768px) { .footer-top { flex-direction: row; text-align: left; } }
.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
  color: var(--brown);
  margin-bottom: 2px;
}
.footer-brand .sub {
  font-size: .75rem;
  line-height: calc(1 / .75);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.footer-links a {
  font-size: .875rem;
  line-height: calc(1.25 / .875);
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--terra); }
.footer-links .sep { color: var(--border); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 28px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: .75rem;
  line-height: calc(1 / .75);
  color: var(--text-muted);
}

/* ---------- Rechtstext-Seiten ------------------------------------------ */

.legal-page { padding-top: var(--header-h); }
.legal {
  max-width: 46rem;
  margin-inline: auto;
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--brown);
  margin-bottom: 16px;
}
@media (min-width: 768px) { .legal h1 { font-size: 2.25rem; } }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
  color: var(--brown);
  margin: 32px 0 8px;
}
.legal h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: calc(1.75 / 1.125);
  color: var(--brown);
  margin: 24px 0 8px;
}
.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--brown-mid);
  margin-bottom: 12px;
}
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal a:not(.btn-primary) { color: var(--terra); overflow-wrap: anywhere; }
.legal .terra-divider { margin-bottom: 24px; }
.legal .back { display: inline-block; margin-top: 32px; }
.legal .placeholder {
  display: inline-block;
  background: #ffe9d9;
  border: 1px dashed var(--terra);
  color: #73311b;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

/* ---------- Danke / Fehler --------------------------------------------- */

.status-page {
  padding-top: var(--header-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.status-page main { flex: 1; display: flex; align-items: center; }
.status-card {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  padding: 40px 28px;
  border-radius: 8px;
  background: var(--sand);
  border: 1px solid var(--border);
}
.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: rgba(170, 87, 52, .12);
  color: var(--terra);
}
.status-card h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: calc(2 / 1.5);
  color: var(--brown);
  margin-bottom: 8px;
}
.status-card p {
  font-size: .95rem;
  line-height: 1.625;
  color: var(--brown-mid);
  margin-bottom: 12px;
}
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* ---------- Modal (Rechtstexte, optional per JS) ----------------------- */

.legal-modal {
  border: none;
  padding: 0;
  max-width: 46rem;
  width: calc(100% - 2rem);
  max-height: 85vh;
  border-radius: 8px;
  background: var(--cream);
  color: var(--brown-mid);
}
.legal-modal::backdrop { background: rgba(27, 14, 8, .55); }
.legal-modal .modal-body { padding: 28px; overflow-y: auto; max-height: calc(85vh - 80px); }
.legal-modal .modal-close { display: block; margin: 0 auto 24px; }

/* ---------- Scroll-Animation ------------------------------------------- */

.js .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s, transform .6s;
}
.js .fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .fade-up { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
