/* ============================================================
   Kaminstudio Anselment — bespoke Design (warm ember / Handwerk)
   Eigenständig pro Firma. Kein geteiltes Pack-Template.
   ============================================================ */
:root {
  --ink: #1c1410;
  --ink-soft: #4a3c33;
  --paper: #fbf6ef;
  --paper-2: #f3e8dc;
  --char: #14100e; /* tiefes Holzkohle-Braun */
  --char-2: #221913;
  --rust: #5f2922;
  --ember: #d85c35;
  --ember-soft: #e8855f;
  --cream: #f0d8c1;
  --line: rgba(28, 20, 16, 0.12);
  --line-light: rgba(240, 216, 193, 0.18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step-hero: clamp(3.2rem, 1.4rem + 7.4vw, 7.5rem);
  --step-h2: clamp(2rem, 1.2rem + 2.8vw, 3.4rem);
  --step-h3: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem);
  --step-lead: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);

  --space: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius: 4px;
  --shadow: 0 30px 70px -30px rgba(20, 16, 14, 0.45);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.shell {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--ember);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

.display {
  font-family: var(--serif);
  font-size: var(--step-h2);
  line-height: 1.04;
  font-weight: 400;
  font-optical-sizing: auto;
}
.display--light {
  color: var(--cream);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rust);
}
.eyebrow--light {
  color: var(--ember-soft);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--ember {
  background: var(--ember);
  color: #fff;
}
.btn--ember:hover {
  background: #c14d29;
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover {
  background: rgba(240, 216, 193, 0.14);
  transform: translateY(-2px);
}

/* ---------- Masthead ---------- */
.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.1rem 0;
  transition:
    background 0.3s var(--ease),
    padding 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.masthead.is-scrolled {
  background: rgba(20, 16, 14, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  color: var(--cream);
}
.brand {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  background: var(--cream);
  border-radius: 6px;
  line-height: 0;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s var(--ease);
}
.brand:hover {
  transform: translateY(-1px);
}
.brand img {
  height: 34px;
  width: auto;
}
.brand--foot {
  margin-bottom: 14px;
}
.wordmark__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.wordmark__sub {
  margin-top: 0.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember-soft);
}
.mainnav {
  margin-left: auto;
  display: flex;
  gap: 1.6rem;
}
.mainnav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.82;
  padding: 0.3rem 0;
  position: relative;
  transition: opacity 0.2s var(--ease);
}
.mainnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--ember);
  transition: width 0.25s var(--ease);
}
.mainnav a:hover {
  opacity: 1;
}
.mainnav a:hover::after {
  width: 100%;
}
.mainnav {
  align-items: center;
}
.navitem {
  position: relative;
}
.navitem > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.navitem .chev {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.25s var(--ease);
}
.navitem:hover .chev,
.navitem:focus-within .chev {
  transform: rotate(180deg);
}
.megamenu {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: -0.8rem;
  min-width: 22rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1rem 1.5rem;
  padding: 1rem 1.1rem;
  background: rgba(20, 16, 14, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-light);
  border-radius: 10px;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0.2s;
}
.navitem:hover .megamenu,
.navitem:focus-within .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.megamenu a {
  padding: 0.5rem;
  font-size: 0.88rem;
  opacity: 0.82;
  border-radius: 5px;
}
.megamenu a::after {
  display: none;
}
.megamenu a:hover {
  opacity: 1;
  color: var(--ember-soft);
  background: rgba(216, 92, 53, 0.14);
}
.masthead__cta {
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
}
.navtoggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  cursor: pointer;
}
.navtoggle span {
  width: 20px;
  height: 2px;
  background: var(--cream);
  transition:
    transform 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: 8rem 4rem;
  overflow: hidden;
  background: var(--char);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 18s var(--ease) both;
}
@keyframes kenburns {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(20, 16, 14, 0.88) 0%,
      rgba(20, 16, 14, 0.45) 55%,
      rgba(20, 16, 14, 0.1) 100%
    ),
    linear-gradient(0deg, rgba(20, 16, 14, 0.85), transparent 45%);
}
.hero__inner {
  position: relative;
  max-width: 760px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  color: #fff;
  font-size: var(--step-hero);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.hero__lead {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--step-lead);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}
.hero__trust li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.hero__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(240, 216, 193, 0.45);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  translate: -50% 0;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--ember-soft);
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---------- Heritage + Metriken ---------- */
.heritage {
  position: relative;
  overflow: hidden;
  padding-block: var(--space);
  background: var(--paper);
}
.heritage::after {
  content: "";
  position: absolute;
  right: -2%;
  bottom: -6%;
  width: 340px;
  height: 120px;
  background: url("assets/brand/anselment-logo.png") right bottom / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.heritage__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.heritage__copy p:not(.eyebrow) {
  margin-top: 1.4rem;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: var(--step-lead);
}
.metrics {
  margin: 0;
  display: grid;
  gap: 0;
}
.metric {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
}
.metric:last-child {
  border-bottom: 1px solid var(--line);
}
.metric dt {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem);
  font-weight: 500;
  color: var(--rust);
  min-width: 4.5ch;
}
.metric dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Section heads ---------- */
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head__lead {
  margin-top: 1rem;
  font-size: var(--step-lead);
  color: var(--ink-soft);
}
.welten .section-head__lead {
  color: rgba(240, 216, 193, 0.75);
}

/* ---------- Ofenwelten (Bento) ---------- */
.welten {
  padding-block: var(--space);
  background: var(--char);
  color: var(--cream);
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
}
.bento__cell {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--char-2);
}
.bento__cell--feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.bento__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.bento__cell:hover img {
  transform: scale(1.05);
}
.bento__cell figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.2rem 1rem;
  background: linear-gradient(0deg, rgba(20, 16, 14, 0.85), transparent);
}
.bento__cell figcaption span {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fff;
}
.bento__cell--feature figcaption span {
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
}

/* ---------- Leistungen ---------- */
.leistungen {
  padding-block: var(--space);
  background: var(--paper-2);
}
.leist-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.leist {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.leist:last-child {
  border-bottom: 1px solid var(--line);
}
.leist__no {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ember);
}
.leist__body h3 {
  font-size: var(--step-h3);
  margin-bottom: 0.5rem;
}
.leist__body p {
  max-width: 60ch;
  color: var(--ink-soft);
}

/* ---------- Ausstellung (Split) ---------- */
.ausstellung {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
}
.ausstellung__media {
  overflow: hidden;
}
.ausstellung__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ausstellung__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  padding: clamp(2.5rem, 5vw, 5rem);
  background: var(--rust);
  color: var(--cream);
}
.ausstellung__panel p:not(.eyebrow) {
  max-width: 44ch;
  color: rgba(240, 216, 193, 0.86);
  font-size: var(--step-lead);
}

/* ---------- Kontakt ---------- */
.kontakt {
  padding-block: var(--space);
  background: var(--paper);
}
.kontakt__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.02rem;
}
.contact-list svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--ember);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.contact-list a:hover {
  border-color: var(--ember);
}
.kontakt__hours {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.kontakt__form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.kontakt__form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kontakt__form input,
.kontakt__form select,
.kontakt__form textarea {
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.kontakt__form input:focus,
.kontakt__form select:focus,
.kontakt__form textarea:focus {
  outline: 2px solid var(--ember);
  outline-offset: 1px;
}
.kontakt__form .btn {
  justify-content: center;
  margin-top: 0.4rem;
}
.form-note {
  margin: 0;
  padding: 0.8rem 1rem;
  background: var(--paper-2);
  border-left: 3px solid var(--ember);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.sitefoot {
  background: var(--char);
  color: var(--cream);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.sitefoot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: center;
}
.sitefoot p {
  margin-top: 0.4rem;
  color: rgba(240, 216, 193, 0.7);
  font-size: 0.92rem;
}
.sitefoot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.sitefoot__links a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.8;
  font-size: 0.92rem;
}
.sitefoot__links a:hover {
  opacity: 1;
  color: var(--ember-soft);
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease) var(--d, 0ms),
    transform 0.7s var(--ease) var(--d, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mainnav,
  .masthead__cta {
    display: none;
  }
  .navtoggle {
    display: flex;
    margin-left: auto;
  }
  .masthead.nav-open {
    background: rgba(20, 16, 14, 0.97);
  }
  .masthead.nav-open .mainnav {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 100% 0 auto 0;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(20, 16, 14, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
  }
  .masthead.nav-open .mainnav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line-light);
  }
  .masthead.nav-open .megamenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0.25rem 0 0.75rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .masthead.nav-open .megamenu a {
    padding: 0.45rem 0;
    border-bottom: 0;
    opacity: 0.7;
    font-size: 0.84rem;
  }
  .navitem .chev {
    display: none;
  }
  .heritage__grid,
  .kontakt__grid {
    grid-template-columns: 1fr;
  }
  .ausstellung {
    grid-template-columns: 1fr;
  }
  .ausstellung__media {
    min-height: 40vh;
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__cell--feature {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento__cell--feature {
    grid-column: span 1;
  }
  .leist {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Schwarzwald-Agent Powered-by-Footer (pbStrip) – kanonisch ---------- */
.pbStrip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 26px 16px 22px;
  text-align: center;
  background: #fefdf9;
  border-top: 1px solid #e8e0d5;
}
.pbStrip .pbLink {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  opacity: 0.75;
  transition: opacity 0.18s ease;
  text-decoration: none;
}
.pbStrip .pbLink:hover {
  opacity: 1;
  text-decoration: none;
}
.pbStrip .pbLabel {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #8b7355;
}
.pbStrip .pbIcon {
  height: 32px;
  width: 32px;
  object-fit: contain;
  display: block;
}
.pbStrip .pbName {
  font-family:
    "Plus Jakarta Sans",
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0d4a3c;
}
