/* =========================================================
   Peter Gertiser – Bildhauer
   Schlichtes, künstlerisches Design
   Palette: Steingrün, warmes Holz, viel Weissraum
   ========================================================= */

:root {
  --stein: #2f4438;        /* dunkles Serpentin-Grün */
  --stein-hell: #5d7065;   /* helleres Grün */
  --holz: #c08a4e;         /* warmes Holz (Sockel) */
  --holz-dunkel: #9a6a36;
  --papier: #f6f4ef;       /* warmes Weiss */
  --papier-2: #efece4;
  --tinte: #23271f;        /* fast schwarz, leicht grünstichig */
  --grau: #6f6f68;
  --linie: #d9d4c8;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --mx: clamp(1.25rem, 5vw, 6rem);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--tinte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1.2em; }

a { color: var(--stein); text-decoration: none; transition: color .25s; }
a:hover { color: var(--holz-dunkel); }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--mx); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--holz-dunkel);
  margin: 0 0 1.4em;
}

.lead { font-size: 1.25rem; color: var(--grau); max-width: 60ch; }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,239,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto;
  padding: 1.1rem var(--mx);
}
.brand { font-family: var(--serif); font-size: 1.4rem; color: var(--tinte); letter-spacing: .02em; }
.brand span { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--holz-dunkel); margin-top: 2px; }
.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grau); }
.nav-links a:hover, .nav-links a.active { color: var(--stein); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .3rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--tinte); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 82vh;
  display: flex; align-items: flex-end;
  background: var(--stein);
  overflow: hidden;
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .82;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,28,22,.78), rgba(20,28,22,.15) 55%, rgba(20,28,22,.35));
}
.hero-inner { position: relative; z-index: 2; color: #fff; padding: 0 var(--mx) clamp(3rem,8vh,6rem); max-width: var(--max); margin: 0 auto; width: 100%; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.85); }

/* ---------- Sektionen ---------- */
section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tinted { background: var(--papier-2); }
.section-dark { background: var(--stein); color: var(--papier); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--holz); }
.section-dark .lead { color: rgba(255,255,255,.8); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }

.measure { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: .95rem 2rem; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--stein); background: var(--stein); color: #fff;
  transition: .25s;
}
.btn:hover { background: transparent; color: var(--stein); }
.btn-ghost { background: transparent; color: var(--stein); }
.btn-ghost:hover { background: var(--stein); color: #fff; }
.section-dark .btn { border-color: var(--holz); background: var(--holz); }
.section-dark .btn:hover { background: transparent; color: var(--holz); }

/* ---------- Werkstatt / Schritte ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 3rem; }
.step .num { font-family: var(--serif); font-size: 2.6rem; color: var(--holz); line-height: 1; }
.step img { aspect-ratio: 1/1; object-fit: cover; margin-bottom: 1.2rem; border-radius: 2px; }
.step h3 { margin-top: .6rem; }

/* ---------- Katalog ---------- */
.katalog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem); margin-top: 3rem;
}
.werk-card { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.werk-card .frame { overflow: hidden; border-radius: 2px; background: var(--papier-2); }
.werk-card img { aspect-ratio: 3/4; object-fit: cover; width: 100%; transition: transform .6s ease; }
.werk-card:hover img { transform: scale(1.04); }
.werk-card h3 { margin: 1rem 0 .15rem; font-size: 1.3rem; }
.werk-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--grau); font-size: .9rem; }
.werk-preis { font-weight: 600; color: var(--stein); white-space: nowrap; }
.badge { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: .25em .7em; border-radius: 100px; }
.badge.verkauft { background: #e7e2d6; color: var(--grau); }
.badge.frei { background: #e2ebe3; color: var(--stein); }

/* ---------- Modal / Detail ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(20,28,22,.6); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; z-index: 2; background: var(--papier);
  max-width: 980px; width: calc(100% - 2.5rem); max-height: 90vh; overflow-y: auto;
  margin: 5vh auto; border-radius: 3px; box-shadow: 0 30px 80px rgba(0,0,0,.3);
  display: grid; grid-template-columns: 1fr 1fr;
}
.modal-media { background: var(--papier-2); }
.gallery { display: flex; flex-direction: column; gap: .55rem; padding: .8rem; }
.gallery-main img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; display: block; background: var(--papier); }
.gallery-thumbs { display: flex; gap: .5rem; }
.g-thumb { flex: 1 1 0; min-width: 0; padding: 0; border: 2px solid transparent; border-radius: 2px; overflow: hidden; cursor: pointer; background: none; transition: border-color .2s; }
.g-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.g-thumb:hover { border-color: var(--stein-hell); }
.g-thumb.active { border-color: var(--holz); }
.modal-body { padding: clamp(1.8rem, 4vw, 3rem); }
.modal-body .werk-preis { font-size: 1.3rem; }
.modal-close {
  position: absolute; top: .8rem; right: .8rem; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--papier); color: var(--tinte); font-size: 1.3rem; line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.dl { margin: 1.4rem 0; border-top: 1px solid var(--linie); }
.dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--linie); font-size: .95rem; }
.dl dt { color: var(--grau); margin: 0; }
.dl dd { margin: 0; text-align: right; font-weight: 500; }

/* ---------- Hinweis-Box ---------- */
.hinweis {
  border: 1px solid var(--linie); border-left: 3px solid var(--holz);
  background: var(--papier-2); padding: 1.4rem 1.6rem; border-radius: 2px;
  font-size: .98rem; color: var(--grau);
}
.hinweis strong { color: var(--tinte); }

/* ---------- Kontakt / Formular ---------- */
.form-grid { display: grid; gap: 1.2rem; max-width: 560px; }
.form-grid label { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grau); margin-bottom: .35rem; display: block; }
.form-grid input, .form-grid textarea {
  width: 100%; font: inherit; padding: .85rem 1rem;
  border: 1px solid var(--linie); border-radius: 2px; background: #fff; color: var(--tinte);
}
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--stein-hell); border-color: var(--stein-hell); }
.kontakt-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,5rem); }
.kontakt-info p { margin-bottom: .4rem; }
.kontakt-info .label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--holz-dunkel); margin-top: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tinte); color: rgba(255,255,255,.7); padding: 3.5rem 0 2.5rem; font-size: .9rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.site-footer .brand { color: #fff; }

/* ---------- Helpers / Animation ---------- */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.fade.in { opacity: 1; transform: none; }

/* ---------- Responsiv ---------- */
@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--papier); border-bottom: 1px solid var(--linie);
    padding: 1rem var(--mx); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .7rem 0; border-bottom: 1px solid var(--linie); }
  .nav-toggle { display: block; }
  .split, .kontakt-split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .modal-panel { grid-template-columns: 1fr; }
  .gallery-main img { aspect-ratio: 3/4; }
}


/* ---------- Scroll-Hinweis (Hero) ---------- */
.scroll-hint{
  position:absolute; left:50%; bottom:clamp(1rem,2.5vh,1.8rem);
  transform:translateX(-50%); z-index:3;
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:50%;
  color:#fff; border:1px solid rgba(255,255,255,.5);
  background:rgba(20,28,22,.16);
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
  animation:scrollBob 2.2s ease-in-out infinite;
  transition:background .25s ease, border-color .25s ease;
}
.scroll-hint:hover{ background:rgba(20,28,22,.42); border-color:rgba(255,255,255,.85); }
.scroll-hint svg{ width:18px; height:18px; display:block; }
@keyframes scrollBob{
  0%,100%{ transform:translateX(-50%) translateY(0); }
  50%{ transform:translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce){ .scroll-hint{ animation:none; } }


/* ---------- Kontaktformular: Status + Honeypot ---------- */
.form-status{ margin:.4rem 0 0; min-height:1.2em; font-size:.95rem; color:var(--grau); }
.form-status.ok{ color:var(--stein); }
.form-status.err{ color:#a23b2d; }
.hp{ position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }
