:root {
  --paper: #f3efe8;
  --paper-2: #e8e2d6;
  --ink: #161513;
  --muted: #5c574f;
  --line: rgba(22, 21, 19, 0.14);
  --red: #d0121a;
  --red-deep: #a30d14;
  --dark: #121110;
  --cream: #f7f4ee;
  --nav: 4.6rem;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --serif: "Archivo", "Segoe UI", sans-serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(208, 18, 26, 0.05), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

::selection { background: #f3c3c6; color: var(--ink); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 0.9rem;
  z-index: 100;
}
.skip:focus { top: 0.6rem; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 40;
  pointer-events: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--nav);
  padding: 0.55rem 4vw;
  background: rgba(243, 239, 232, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img { height: 3.15rem; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }

.nav-mail {
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.nav-mail:hover,
.nav-mail:focus-visible {
  background: var(--ink);
  color: var(--cream);
}

.menu-btn {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  height: 1px;
  background: var(--ink);
  content: "";
}
.menu-btn span { top: 50%; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(40deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-40deg); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: calc(100dvh - var(--nav));
}

.hero-copy {
  padding: clamp(2.2rem, 6vh, 4.5rem) clamp(1.4rem, 5vw, 4.5rem) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 46rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.4rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.dash {
  width: 2.2rem;
  height: 1px;
  background: var(--red);
  display: inline-block;
}

.hero-logo {
  width: min(280px, 70%);
  height: auto;
  margin-bottom: 1.6rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.1rem, 5.6vw, 5.35rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 1.3rem;
}
h1 span {
  display: block;
  overflow: hidden;
}
h1 span i {
  display: block;
  font-style: normal;
  font-weight: 600;
}

.lead {
  max-width: 38ch;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.12rem;
  margin: 0 0 1.8rem;
}

.mail-link {
  align-self: flex-start;
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-style: normal;
  font-weight: 500;
  border-bottom: 1px solid var(--red);
  padding-bottom: 0.15rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.mail-link:hover,
.mail-link:focus-visible {
  color: var(--red-deep);
  border-bottom-color: transparent;
}
.mail-note {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-photo {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  background: #ddd7cc;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.08);
  animation: settle 16s var(--ease) forwards;
}
.hero-photo figcaption {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  background: rgba(243, 239, 232, 0.92);
  padding: 0.7rem 0.9rem 0.65rem;
  max-width: 16rem;
}
.hero-photo strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
}
.hero-photo span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.photo-edge {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  animation: draw 1.15s 0.35s var(--ease) forwards;
}

@keyframes settle { to { transform: scale(1); } }
@keyframes draw { to { transform: scaleY(1); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero-copy > * {
  animation: rise 0.9s var(--ease) both;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.34s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.48s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.6s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.72s; }

.band {
  padding: clamp(4.5rem, 10vh, 8rem) 6vw;
}

.quote {
  max-width: 18em;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.quote em {
  font-style: normal;
  font-weight: 600;
  color: var(--red-deep);
}
.quote-foot {
  margin-top: 1.5rem;
  color: var(--muted);
  max-width: 46ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  background: var(--paper);
  padding: 1.6rem 6vw;
}
.fact b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fact span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
  padding: clamp(4rem, 9vh, 7rem) 6vw;
}
.split img,
.mood-frame img {
  width: 100%;
  height: min(78vh, 820px);
  object-fit: cover;
  object-position: center 20%;
}
.split h2,
.section-title,
.obj-copy h3,
.page h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
}
.split h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.prose { color: var(--muted); max-width: 48ch; }
.prose p { margin: 0 0 1rem; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { white-space: nowrap; }

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.service {
  padding: 2.4rem 6vw 2.6rem;
  border-right: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.service:last-child { border-right: 0; }
.service:hover { background: rgba(255, 255, 255, 0.45); }
.service .num {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  color: var(--red);
  font-size: 1.3rem;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  margin: 0.8rem 0 0.7rem;
  letter-spacing: -0.03em;
}
.service p { margin: 0; color: var(--muted); max-width: 34ch; }

.ankauf {
  background: var(--dark);
  color: var(--cream);
  padding: 4.2rem 0 3.2rem;
  overflow: hidden;
}
.ankauf-head {
  padding: 0 6vw 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
}
.ankauf h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
}
.ankauf h2 em { font-style: normal; font-weight: 600; color: #f0b4b7; }
.ankauf-head p {
  margin: 0;
  max-width: 32ch;
  color: rgba(247, 244, 238, 0.72);
  font-weight: 300;
}

.marquee {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(247, 244, 238, 0.14);
  border-bottom: 1px solid rgba(247, 244, 238, 0.14);
  overflow: hidden;
  padding: 0.85rem 0;
}
.marquee-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: ticker 32s linear infinite;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}
.marquee-track span { white-space: nowrap; }
.marquee-track span::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 2.4rem;
  background: var(--red);
  transform: translateY(-0.12rem) rotate(45deg);
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.obj-intro {
  padding: clamp(4rem, 8vh, 6.5rem) 6vw 1rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
}
.section-title { font-size: clamp(2.3rem, 4vw, 3.6rem); }
.obj-intro p { margin: 0; color: var(--muted); max-width: 32ch; }

.object {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: center;
  padding: 2.2rem 6vw 2.8rem;
}
.object:nth-child(even) .obj-photo { order: 2; }
.obj-photo {
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
}
.obj-photo img {
  width: 100%;
  height: min(68vh, 640px);
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.obj-photo:hover img { transform: scale(1.045); }
.obj-copy .idx {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
  color: var(--red);
  font-size: 1.15rem;
}
.obj-copy h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 0.35rem; }
.where {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
}
.obj-copy p { color: var(--muted); margin: 0 0 0.8rem; max-width: 42ch; }
.obj-copy a.more {
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 0.22em;
}

.contact {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  padding: clamp(4rem, 9vh, 7rem) 6vw;
  border-top: 1px solid var(--line);
}
.contact h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
.giant-mail {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.1rem;
  transition: color 0.3s var(--ease);
}
.giant-mail:hover,
.giant-mail:focus-visible { color: var(--red-deep); }
.addresses {
  display: grid;
  gap: 1.4rem;
  align-content: end;
}
.addresses h3 {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.addresses p { margin: 0; }
.addresses a { color: var(--ink); }

.map-wrap {
  grid-column: 1 / -1;
  min-height: 22rem;
}
.map-consent {
  min-height: 22rem;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--paper-2, #ebe6de);
  border: 1px solid var(--line);
}
.map-consent.is-loaded {
  padding: 0;
  background: transparent;
  display: block;
}
.map-consent iframe {
  width: 100%;
  height: 22rem;
  border: 0;
  display: block;
}
.map-consent-panel {
  max-width: 26rem;
  text-align: center;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}
.map-consent-panel p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.map-consent-panel a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}
.map-consent-btn {
  appearance: none;
  border: 0;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
}
.map-consent-btn:hover,
.map-consent-btn:focus-visible { background: var(--red-deep); }
.map-consent-ext {
  font-size: 0.9rem;
  color: var(--ink);
}

.office {
  margin: 0 6vw 4rem;
  overflow: hidden;
}
.office img {
  width: 100%;
  max-height: 62vh;
  object-fit: cover;
  object-position: center 60%;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.3rem 6vw 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.footer nav { display: flex; gap: 1.2rem; }
.footer a { color: var(--ink); }

.page {
  padding: clamp(3rem, 8vh, 5rem) 6vw 4rem;
  max-width: 48rem;
}
.page h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 2rem 0 0.4rem;
}
.page p, .page li { color: var(--muted); }
.page a { color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

dialog.light {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
}
dialog.light::backdrop { background: rgba(18, 17, 16, 0.82); }
dialog.light img {
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
}
dialog.light button {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  border: 0;
  background: var(--cream);
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
  font-size: 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .menu-btn { display: block; }
  .nav-links, .nav-mail { display: none; }
  .nav.open {
    flex-wrap: wrap;
  }
  .nav.open .nav-links,
  .nav.open .nav-mail {
    display: flex;
  }
  .nav.open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    order: 3;
    flex: 1 0 100%;
    padding: 0.4rem 0 0.2rem;
    gap: 0.85rem;
  }
  .nav.open .nav-mail {
    order: 4;
    margin: 0.35rem 0 0.45rem;
  }
  .hero, .split, .services, .object, .contact, .facts {
    grid-template-columns: 1fr;
  }
  .hero-photo { order: -1; height: 74vh; }
  .hero-photo img { position: absolute; inset: 0; }
  .service { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.8rem 6vw; }
  .object:nth-child(even) .obj-photo { order: 0; }
  .obj-photo img, .split img, .mood-frame img { height: 62vh; }
  .fact { padding: 1.2rem 6vw; }
  .ankauf-head, .obj-intro, .contact { display: block; }
  .ankauf-head p, .obj-intro p { margin-top: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy > *,
  .hero-photo img,
  .photo-edge,
  .marquee-track { animation: none !important; }
  .hero-photo img, .photo-edge { transform: none; }
  .obj-photo img { transition: none; }
}
