/* Fabbrica Bildhauerwerkstatt — Shared Theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ece3dc;
  --bg-alt:    #f4ece4;
  --bg-dark:   #d8c8b8;
  --dark:      #3a2918;
  --text:      #5a4332;
  --muted:     #826147;
  --accent:    #826147;
  --accent-lt: #d1bbaa;
  --brand:     #4f3826;
  --white:     #ffffff;
  --serif:     'Inter', Georgia, serif;
  --sans:      'Lato', Arial, sans-serif;
  --nav-h:     5.5rem;
  --r:         3px;
  --shadow:    0 2px 16px rgba(60,40,25,.12);
  --t:         .25s ease;
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }
section[id], [id] { scroll-margin-top: var(--nav-h); }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.4rem; }

/* CONTAINER */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  height: var(--nav-h);
  background: rgba(236,227,220,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(82,60,47,.18);
  display: flex; align-items: center;
}
.nav__inner {
  width: 100%; margin: 0; padding: 0 4rem 0 3rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__logo { margin-right: auto; display: flex; align-items: center; }
.nav__logo img { height: 4.2rem; width: auto; }
.nav__links {
  display: flex; align-items: center; gap: .75rem;
  list-style: none; margin-left: auto; padding: 0;
}
.nav__links a {
  display: inline-block; padding: .35rem 1rem;
  font-size: .82rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand);
  border-radius: var(--r);
  transition: background var(--t), color var(--t);
}
.nav__links a:hover, .nav__links a.active {
  background: var(--accent); color: var(--bg);
}
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; margin-left: auto; padding: 6px;
  background: none; border: none;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--brand); border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav__inner { padding: 0 1.5rem; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(236,227,220,.98); backdrop-filter: blur(8px);
    flex-direction: column; align-items: flex-start;
    padding: 0 1.5rem; gap: .25rem;
    border-bottom: 1px solid rgba(82,60,47,.18);
    z-index: 9999;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .35s ease, opacity .25s ease, padding .3s ease;
    margin: 0;
  }
  .nav__links.open { max-height: 500px; overflow: visible; opacity: 1; padding: 1rem 1.5rem 2rem; }
  .nav__links a { font-size: .9rem; padding: .5rem .75rem; }
}

/* ── HERO (FULLSCREEN with JS parallax) ──────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex; align-items: center;
  color: var(--white);
}
.hero__bg {
  position: absolute;
  top: -10%; left: 0; right: 0; bottom: -10%;
  background-size: cover;
  background-position: center 20%;
  z-index: 0;
  will-change: transform;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(236,227,220,0.30);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--nav-h) 1.5rem 0;
  display: flex; justify-content: center;
}
.hero__box {
  background: #4f4943;
  color: var(--white);
  width: 100%;
  max-width: 680px;
  padding: 2.5rem 3rem;
  margin-right: 12%;
  border-radius: 2px;
}
@media (max-width: 1100px) {
  .hero__box { margin-right: 0; }
}
@media (max-width: 900px) {
  .hero__inner { padding: var(--nav-h) 1rem 0; }
  .hero__box { padding: 1.75rem 1.75rem; }
}
.hero h1 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.hero p {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .005em;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.98);
}
.btn {
  display: inline-block;
  padding: .8rem 1.8rem;
  background: #ece3dc;
  color: var(--brand);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}
.btn:hover { background: var(--accent-lt); transform: translateY(-1px); }

/* ── PAGE HERO (sub-pages) ─────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3rem;
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(82,61,45,.12);
}
.breadcrumb {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.breadcrumb a { color: var(--accent); text-decoration: underline; }
.breadcrumb a:hover { opacity: .75; }
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300; letter-spacing: .02em; color: var(--dark);
}
.page-hero .subtitle {
  color: var(--text); max-width: 700px; font-size: 1.05rem; margin-top: .5rem;
}
.divider { width: 40px; height: 2px; background: var(--accent); margin: 1rem 0 1.5rem; }

/* ── INTRO TEXT BLOCKS (alternating image + text) ──────── */
.intro-section { padding: 5rem 0; }
.intro-section:nth-child(odd) { background: var(--bg); }
.intro-section:nth-child(even) { background: var(--bg-alt); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.intro-grid.reverse .intro-img { order: 2; }
.intro-grid.reverse .intro-text { order: 1; }
@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .intro-grid.reverse .intro-img { order: 0; }
}
.intro-img { overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow); }
.intro-img img { width: 100%; height: auto; display: block; }
.intro-text p {
  font-size: 1.02rem; color: var(--text);
}

/* ── TEAM SECTION (parallax background) ────────────────── */
.team {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.team-bg {
  position: absolute;
  top: -15%; left: 0; right: 0; bottom: -15%;
  z-index: 0;
  background-image: url('../images/fabbrica-1-sw-2000x1399.webp');
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.team::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.45);
  z-index: 1;
}
.team .container { position: relative; z-index: 2; }
.team__heading {
  text-align: center; margin-bottom: 3rem;
}
.team__heading h2 {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 300;
  letter-spacing: .04em; color: var(--accent);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .team-grid { grid-template-columns: 1fr; }
}
.team-card {
  background: #ece3dc;
  padding: 1.4rem 1rem 1.6rem;
  text-align: center;
  border-radius: var(--r);
  box-shadow: 0 1px 6px rgba(60,40,25,.10);
  transition: transform var(--t), box-shadow var(--t);
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(60,40,25,.18);
}
.team-card img {
  width: 8rem; height: 8rem;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
}
.team-card__name {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  color: #3a2918;
  margin-bottom: .35rem;
  letter-spacing: .01em;
}
.team-card__role {
  font-size: .8rem;
  color: #4a4038;
  line-height: 1.55;
  letter-spacing: 0;
}

/* ── KONTAKT ────────────────────────────────────────────── */
.kontakt {
  background: #4f4943;
  color: var(--bg);
  padding: 5rem 0;
}
.kontakt h2 {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 300;
  letter-spacing: .04em; color: var(--accent-lt);
  text-align: center; margin-bottom: 1rem;
}
.kontakt__divider {
  width: 40px; height: 2px;
  background: var(--accent-lt);
  margin: 0 auto 3rem;
}
.kontakt__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) {
  .kontakt__grid { grid-template-columns: 1fr; }
}
.kontakt__block {
  color: rgba(236,227,220,.85);
}
.kontakt__block h3 {
  font-family: var(--serif); font-size: 1.1rem;
  color: var(--accent-lt); margin-bottom: 1rem; font-weight: 500;
}
.kontakt__block a {
  color: rgba(236,227,220,.85);
  transition: color var(--t);
}
.kontakt__block a:hover { color: var(--white); }
.map-consent {
  background: rgba(255,255,255,.06);
  padding: 1.5rem;
  border-radius: var(--r);
  text-align: center;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: center;
  gap: .9rem;
}
.map-consent p { font-size: .85rem; color: rgba(236,227,220,.7); margin: 0; }
.map-consent-btn {
  display: inline-block;
  padding: .5rem 1.25rem;
  background: var(--accent-lt);
  color: var(--brand);
  border: none;
  border-radius: var(--r);
  font-size: .82rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t);
}
.map-consent-btn:hover { background: var(--white); }

/* ── GALERIE (Bildhauerische Rekonstruktion) ─────────────── */
.galerie-section {
  padding: 3.5rem 0 5rem;
  background: #ffffff;
}
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .galerie-grid { grid-template-columns: 1fr; }
}
.galerie-item {
  background: #ece3dc;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(60,40,25,.08);
  display: flex; flex-direction: column;
}
.galerie-item__img-wrap {
  width: 100%;
  background: #f4f1ec;
  display: flex; align-items: center; justify-content: center;
}
.galerie-item__img {
  width: 100%;
  height: auto;
  display: block;
}
.galerie-item__body {
  padding: 1rem 1.25rem 1.4rem;
  flex: 1;
}
.galerie-item__caption {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 400;
  color: #3a2918;
  line-height: 1.55;
  margin: 0;
}

/* ── PROSE (impressum / datenschutz) ─────────────────────── */
.prose { padding: 3rem 0 5rem; max-width: 760px; }
.prose h2 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 300;
  letter-spacing: .02em; color: var(--dark); margin: 2.5rem 0 .75rem;
}
.prose h3 { font-size: 1.05rem; font-weight: 500; color: var(--dark); margin: 1.75rem 0 .5rem; }
.prose p  {
  font-family: var(--sans); font-weight: 400;
  color: var(--text); line-height: 1.75;
  margin-bottom: 1rem;
}
.prose ul, .prose ol {
  font-family: var(--sans); font-weight: 400;
  color: var(--text); line-height: 1.75;
  margin-bottom: 1rem; padding-left: 1.5rem;
}
.prose li { margin-bottom: .35rem; }
.prose a  { color: var(--accent); text-decoration: underline; }
.prose strong { color: var(--dark); font-weight: 600; }

/* ── BACK TO TOP ───────────────────────────────────────── */
.back-top {
  position: fixed; bottom: 1.75rem; left: 1.75rem; z-index: 8000;
  width: 2.2rem; height: 2.2rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,56,38,.85); border-radius: 50%;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, background .25s ease;
  text-decoration: none;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { background: rgba(48,32,20,.95); }
.back-top svg {
  width: .9rem; height: .9rem;
  stroke: var(--bg); fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  background: #1f1611;
  color: rgba(236,227,220,.55);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer__logo img { height: 2.5rem; opacity: .7; }
.footer__links {
  display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0;
}
.footer__links a {
  font-size: .82rem; letter-spacing: .05em;
  color: rgba(236,227,220,.6);
  transition: color var(--t);
}
.footer__links a:hover { color: var(--bg); }
.footer__copy { font-size: .78rem; margin: 0; }
@media (max-width: 600px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ── COOKIE BANNER (none, but keeping minimal style) ────── */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 9000;
  background: rgba(79,56,38,.97);
  color: rgba(236,227,220,.95);
  padding: .85rem 1.25rem;
  border-radius: var(--r);
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; box-shadow: 0 4px 20px rgba(0,0,0,.25);
  font-size: .85rem;
}
.cookie-banner.hidden { display: none; }
.cookie-banner p { flex: 1 1 200px; margin: 0; color: rgba(236,227,220,.85); }
.cookie-banner a { color: var(--accent-lt); text-decoration: underline; }
.cookie-btn {
  padding: .45rem 1.1rem;
  background: var(--accent-lt);
  color: var(--brand);
  border: none; border-radius: var(--r);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer;
  transition: background var(--t);
}
.cookie-btn:hover { background: var(--white); }
