/* ============================================================
   WOHNEN + DESIGN — Amann und Kaltenecker — Design-Entwurf
   Ruhige, hochwertige Palette: warmes Creme, tiefes Anthrazit,
   gedämpftes Messing — passend zur Premium-Einrichtungsbranche.
   ============================================================ */
:root {
  --ink:         #211E1B;
  --ink-2:       #322D27;
  --ink-3:       #6E655A;
  --paper:       #F7F3EC;
  --paper-2:     #EDE5D6;
  --line:        #DCD1BC;
  --brass:       #A9895E;
  --brass-dk:    #86693F;
  --white:       #FFFFFF;

  --display: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --t-xs: .75rem; --t-sm: .875rem; --t-base: 1rem; --t-lg: 1.125rem;
  --t-xl: 1.375rem; --t-2xl: 1.75rem; --t-3xl: 2.5rem; --t-4xl: clamp(2.2rem, 6vw, 4.2rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px;
  --s8: 32px; --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;

  --r-sm: 2px; --r-md: 4px; --r-lg: 6px; --r-full: 999px;

  --sh-sm: 0 1px 2px rgba(33,30,27,.06), 0 2px 8px rgba(33,30,27,.05);
  --sh-md: 0 6px 20px rgba(33,30,27,.1);
  --sh-lg: 0 20px 50px rgba(33,30,27,.18);

  --ease: cubic-bezier(.22,.61,.36,1);
  --bar-h: 76px;
}

:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-base); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(760px, 92vw); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.eyebrow {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass-dk); margin: 0 0 var(--s4); display: block;
}
.eyebrow.center { text-align: center; }

/* ============================================================ Buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 15px 30px; border: 1px solid var(--bg); border-radius: var(--r-sm);
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: var(--t-sm); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); background: var(--ink-2); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--brass { --bg: var(--brass); --fg: var(--ink); border-color: var(--brass); }
.btn--brass:hover { background: var(--brass-dk); border-color: var(--brass-dk); }

/* ============================================================ Header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.hdr__in { display: flex; align-items: center; gap: var(--s8); width: min(1200px, 92vw); margin-inline: auto; }
.hdr.is-stuck { background: rgba(247,243,236,.95); backdrop-filter: blur(14px) saturate(1.2); box-shadow: var(--sh-sm); }

.logo { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; color: #fff; line-height: 1.1; }
.logo b { font-family: var(--display); font-size: 1.35rem; font-weight: 400; letter-spacing: .01em; }
.logo i { font-family: var(--sans); font-style: normal; font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-top: 2px; }
.hdr.is-stuck .logo { color: var(--ink); }

.nav { display: flex; gap: var(--s8); align-items: center; }
.nav a {
  font-size: var(--t-sm); font-weight: 500; text-decoration: none; letter-spacing: .04em;
  position: relative; padding: 6px 0; color: inherit;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: currentColor; transition: right .3s var(--ease);
}
.nav a:hover::after { right: 0; }
.hdr:not(.is-stuck) .nav { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hdr.is-stuck .nav { color: var(--ink); }

.burger {
  display: none; width: 44px; height: 44px; margin-left: var(--s2);
  border: 0; background: transparent; color: inherit; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 22px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================ Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,17,14,.86) 0%, rgba(20,17,14,.56) 45%, rgba(20,17,14,.14) 80%),
    linear-gradient(180deg, rgba(20,17,14,.4) 0%, rgba(20,17,14,.05) 28%, rgba(20,17,14,.5) 78%, rgba(20,17,14,.86) 100%);
}
.hero__in { padding: calc(var(--bar-h) + var(--s16)) 0 var(--s20); color: #fff; }
.hero h1 {
  font-size: var(--t-4xl); font-weight: 400; letter-spacing: -.01em; line-height: 1.08;
  margin: 0 0 var(--s6); text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero h1 em { font-style: italic; color: var(--brass); }
.hero__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem); max-width: 46ch; color: rgba(255,255,255,.86);
  margin-bottom: var(--s8); text-shadow: 0 1px 16px rgba(0,0,0,.4); font-weight: 300;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ============================================================ Trust-Leiste */
.trust { background: var(--ink); color: var(--paper); padding: var(--s6) 0; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); text-align: center; }
.trust__item b { display: block; font-family: var(--display); font-size: var(--t-lg); font-weight: 400; color: var(--brass); margin-bottom: 2px; }
.trust__item span { font-size: var(--t-xs); letter-spacing: .04em; color: rgba(247,243,236,.72); }

/* ============================================================ Abschnitte */
.sec { padding: var(--s24) 0; position: relative; }
.sec--paper { background: var(--paper-2); }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec__head { max-width: 62ch; margin-bottom: var(--s12); }
.sec__head.center { margin-inline: auto; text-align: center; }
.sec h2 { font-size: var(--t-3xl); margin-bottom: var(--s3); }
.sec__sub { color: var(--ink-3); font-size: var(--t-lg); margin: 0; font-weight: 300; }
.sec--dark .sec__sub { color: rgba(247,243,236,.7); }

/* ============================================================ Über uns */
.story { display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--s16); align-items: center; }
.story__img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story__quote { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-style: italic; line-height: 1.35; color: var(--ink); margin: 0 0 var(--s6); }
.story p { color: var(--ink-2); font-weight: 300; }
.story__founders { display: grid; gap: var(--s3); margin-top: var(--s6); }
.story__founders div { border-left: 2px solid var(--brass); padding-left: var(--s4); }
.story__founders b { font-family: var(--display); display: block; font-size: var(--t-lg); font-weight: 400; }
.story__founders span { font-size: var(--t-sm); color: var(--ink-3); }

/* ============================================================ Leistungen */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s6); }
.card {
  background: var(--white); overflow: hidden; border-radius: var(--r-md);
  box-shadow: var(--sh-sm); border: 1px solid rgba(220,209,188,.6);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--s6); }
.card__name { font-family: var(--display); font-size: var(--t-xl); font-weight: 400; margin-bottom: var(--s2); }
.card__desc { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.6; margin: 0; }

/* ============================================================ Garderoben-Galerie */
.gal { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s3); }
.gal figure { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3/4; background: var(--paper-2); position: relative; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gal figure:hover img { transform: scale(1.06); }
.gal figcaption {
  position: absolute; inset: auto 0 0 0; padding: var(--s3);
  background: linear-gradient(transparent, rgba(20,17,14,.75));
  color: #fff; font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em;
}

/* ============================================================ Marken */
.brands { columns: 3; column-gap: var(--s12); }
.brands ul { list-style: none; padding: 0; margin: 0 0 var(--s6); break-inside: avoid; }
.brands h4 { font-family: var(--display); font-size: var(--t-lg); font-weight: 400; color: var(--brass); margin: 0 0 var(--s3); }
.brands li { font-size: var(--t-sm); color: var(--ink-2); padding: 5px 0; border-bottom: 1px solid var(--line); }

/* ============================================================ Zitat-Band */
.quote-band { background: var(--ink); color: var(--paper); padding: var(--s20) 0; text-align: center; }
.quote-band blockquote {
  font-family: var(--display); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.3; max-width: 20ch; margin: 0 auto var(--s6);
}
.quote-band cite { font-size: var(--t-sm); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }

/* ============================================================ Standort */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s16); }
.hours { list-style: none; padding: 0; margin: 0 0 var(--s8); }
.hours li { display: flex; justify-content: space-between; gap: var(--s4); padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-base); }
.hours span:first-child { color: var(--ink-3); }
.hours b { font-weight: 500; text-align: right; }

.cinfo { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.cinfo li { display: flex; gap: var(--s3); align-items: flex-start; }
.cinfo svg { width: 19px; height: 19px; color: var(--brass-dk); flex: none; margin-top: 3px; }
.cinfo a { text-decoration: none; border-bottom: 1px solid var(--line); }
.cinfo a:hover { border-color: var(--brass); }
.cinfo small { display: block; color: var(--ink-3); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; }

.map-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); position: relative; aspect-ratio: 4/3; background: var(--ink); display: grid; place-items: center; }
.map-card__cta { text-align: center; color: #fff; padding: var(--s8); }
.map-card__cta b { font-family: var(--display); font-size: var(--t-xl); display: block; margin-bottom: var(--s2); }

/* ============================================================ Kontaktformular */
.cform { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: var(--s8); }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.cform__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s4); }
.cform__field label { font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.cform input, .cform textarea {
  font-family: var(--sans); font-size: var(--t-base); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px;
  background: var(--paper); transition: border-color .2s var(--ease), background .2s var(--ease);
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--brass); background: var(--white); }
.cform textarea { resize: vertical; min-height: 110px; font-family: var(--sans); }
.cform__note { font-size: var(--t-xs); color: var(--ink-3); margin: var(--s2) 0 var(--s4); }
.cform__msg { font-size: var(--t-sm); margin-top: var(--s3); display: none; padding: 10px 14px; border-radius: var(--r-md); }
.cform__msg.is-ok { display: block; background: rgba(169,137,94,.14); color: var(--brass-dk); }
.cform__msg.is-err { display: block; background: rgba(180,60,50,.1); color: #a33a2d; }
.cform button[type="submit"] { width: 100%; border: none; cursor: pointer; }
.cform button[type="submit"]:disabled { opacity: .6; cursor: default; transform: none; }

/* ============================================================ Pitch-Banner */
.pitch {
  position: fixed; inset: auto 0 0 0; z-index: 95;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: var(--s3);
  font-size: var(--t-xs); text-align: center; box-shadow: 0 -6px 24px rgba(33,30,27,.22);
  border-top: 1px solid rgba(247,243,236,.14);
}
.pitch b { color: var(--brass); }

/* ============================================================ Footer */
.ft { background: var(--ink); color: rgba(247,243,236,.6); padding: var(--s16) 0 calc(var(--s8) + 56px); font-size: var(--t-sm); }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s12); margin-bottom: var(--s12); }
.ft h4 { color: var(--paper); font-family: var(--sans); font-size: var(--t-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 var(--s4); }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--brass); }
.ft__logo { font-family: var(--display); font-size: 1.6rem; color: var(--paper); font-weight: 400; margin-bottom: var(--s2); }
.ft__btm { border-top: 1px solid rgba(247,243,236,.12); padding-top: var(--s6); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: var(--t-xs); }

/* ============================================================ Einblenden */
.rise { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } }

/* ============================================================ Rechtstexte */
.legal-hdr { padding: var(--s6) 0; border-bottom: 1px solid var(--line); background: var(--ink); }
.legal-hdr .wrap { display: flex; align-items: center; justify-content: space-between; }
.legal-back { font-family: var(--sans); font-size: var(--t-sm); font-weight: 600; color: rgba(247,243,236,.7); text-decoration: none; }
.legal-back:hover { color: #fff; }
.legal { padding: var(--s16) 0 var(--s24); }
.legal h1 { font-size: var(--t-3xl); margin-bottom: var(--s8); }
.legal h2 { font-size: var(--t-xl); margin: var(--s12) 0 var(--s3); color: var(--ink-2); }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); }
.legal a { color: var(--brass-dk); text-decoration: underline; text-underline-offset: 2px; }
.legal .legal__note { font-size: var(--t-sm); font-style: italic; color: var(--ink-3); background: var(--paper-2); border-radius: var(--r-md); padding: var(--s4); margin-top: var(--s12); }

/* ============================================================ Responsiv */
@media (max-width: 980px) {
  :root { --s24: 68px; --s20: 56px; --s16: 44px; }
  .story { grid-template-columns: 1fr; gap: var(--s12); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s4); }
  .contact { grid-template-columns: 1fr; gap: var(--s12); }
  .cform__row { grid-template-columns: 1fr; }
  .ft__grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .gal { grid-template-columns: repeat(3, 1fr); }
  .brands { columns: 2; }
  .burger { display: flex; }
  #nav {
    position: fixed; inset: calc(var(--bar-h) + env(safe-area-inset-top)) 0 auto 0; z-index: 89;
    flex-direction: column; gap: 0; margin: 0;
    padding: var(--s2) var(--s6) calc(var(--s6) + env(safe-area-inset-bottom));
    background: rgba(247,243,236,.98); backdrop-filter: blur(16px);
    box-shadow: var(--sh-lg); border-top: 1px solid var(--line);
    color: var(--ink);
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s var(--ease), visibility 0s linear .25s;
  }
  #nav.is-open {
    transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform .25s var(--ease), opacity .2s var(--ease), visibility 0s;
  }
  #nav a { font-size: var(--t-lg); padding: 15px 2px; border-bottom: 1px solid var(--line); }
  #nav a::after { display: none; }
}
@media (max-width: 640px) {
  :root { --t-3xl: 1.9rem; --bar-h: 64px; }
  body { padding-bottom: 54px; }
  .logo i { display: none; }
  .logo b { font-size: 1.05rem; }
  .hdr__in > .btn { padding: 12px 16px; font-size: 11px; }
  .hero { min-height: 92svh; }
  .hero__cta .btn { flex: 1; }
  .gal { grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
  .brands { columns: 1; }
  .ft__grid { grid-template-columns: 1fr; gap: var(--s8); }
  .cinfo a, .ft ul a { display: inline-block; padding: 8px 0; }
  .pitch { font-size: 11px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .trust__grid { grid-template-columns: 1fr 1fr; }
}
