/* Marmor & Granit, Inhaber Rainer Wien · Entwurf */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-tight-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}

:root {
  --dark: #0E0F10;
  --paper: #F4F1EA;
  --stone: #8C8880;
  --ink: #141514;
  --muted: #5C5A55;
  --accent: #9A8F7D;
  --line: rgba(154, 143, 125, .25);
  --gutter: 24px;
  --maxw: 1240px;
  --pad: clamp(72px, 11vh, 160px);
  --head: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (min-width: 900px) {
  :root { --gutter: 56px; }
}

/* Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) {
  body { font-size: 1.125rem; }
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  overflow-wrap: break-word;
}
h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
strong { font-weight: 500; }

:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--paper); color: var(--ink);
  padding: 10px 14px; font-weight: 500;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.on-dark .label { color: var(--accent); }

/* Platzhalter: sichtbare Lücke */
.ph {
  border-bottom: 1px dashed currentColor;
  padding: 0 .1em;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: .02em;
}

/* Kopfleiste */
.site-header {
  background: var(--dark);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease-out;
}
.site-header.is-scrolled { border-bottom-color: rgba(140, 136, 128, .35); }
.site-header__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 14px;
}
.wordmark { text-decoration: none; display: inline-flex; flex-direction: column; gap: 3px; }
.wordmark__name {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: .06em;
  line-height: 1.1;
}
.wordmark__sub {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; font-size: 13px; font-weight: 500; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.nav a { text-decoration: none; color: var(--paper); padding-block: 4px; display: inline-block; }
.nav__legal a { color: var(--stone); }
.nav a[aria-current="page"] { color: var(--paper); border-bottom: 1px solid var(--accent); }
.nav .nav__tel { color: var(--paper); border-bottom: 1px solid var(--accent); display: none; }

@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; z-index: 20; }
  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-block: 16px;
  }
  .nav { flex-wrap: nowrap; gap: 28px; font-size: 13px; }
  .nav__list { flex-wrap: nowrap; gap: 16px; }
  .nav__sep { margin-left: 6px; padding-left: 16px; border-left: 1px solid rgba(140, 136, 128, .4); }
  .nav .nav__tel { display: none; }
  [id] { scroll-margin-top: 84px; }
}
@media (min-width: 1100px) {
  .nav { font-size: 14px; }
  .nav__list { gap: 22px; }
  .nav .nav__tel { display: inline-block; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--paper);
  min-height: clamp(520px, calc(100svh - 76px), max(56.25vw, 640px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(14, 15, 16, .86) 0%,
    rgba(14, 15, 16, .62) 35%,
    rgba(14, 15, 16, .2) 70%,
    rgba(14, 15, 16, .1) 100%);
}
.hero__content { position: relative; z-index: 1; padding-block: 96px clamp(56px, 9vh, 112px); }
.hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  max-width: 11ch;
  margin-bottom: 24px;
}
.hero__lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 40ch; color: #E6E2D9; margin-bottom: 36px; }
.hero__meta { margin-top: 20px; font-size: 15px; color: #CFCAC0; }
.button {
  display: inline-block;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 15px 30px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  transition: background-color .25s ease-out, color .25s ease-out;
}

/* Sektionen */
.section { padding-block: var(--pad); }
.on-dark { background: var(--dark); color: var(--paper); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 56px; }
}

/* Profil */
.profil__text p { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; }
.profil + .leistungen { padding-top: 0; }

/* Leistungen */
.leistungen__head { margin-bottom: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); padding-top: var(--pad); }
.leistungen__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.leistung {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}
.leistung__nr { display: block; margin-bottom: 14px; }
.leistung h3 { font-size: clamp(2rem, 3.2vw, 2.75rem); margin-bottom: 12px; }
.leistung p { color: var(--muted); }
.leistung__img { display: none; }
@media (min-width: 900px) {
  .leistung { grid-template-columns: repeat(2, 1fr); gap: 56px; padding-block: 40px; }
  .leistung__img {
    display: block;
    justify-self: end;
    width: clamp(168px, 17vw, 232px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
}
@media (min-width: 900px) and (hover: hover) {
  .leistung__img { filter: grayscale(1); transition: filter .5s ease-out; }
  .leistung:hover .leistung__img { filter: grayscale(0); }
  .leistung { transition: border-color .3s ease-out; }
  .leistung:hover { border-top-color: var(--accent); }
}

/* Stein-Band */
.band { display: grid; grid-template-columns: 1fr; }
.band__text { padding: var(--pad) var(--gutter); }
.band__quote {
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 16ch;
  margin: 0;
}
.band__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) {
  .band { grid-template-columns: repeat(2, 1fr); min-height: 560px; }
  .band__text {
    display: flex; flex-direction: column; justify-content: center;
    padding-left: max(var(--gutter), calc(50vw - var(--maxw) / 2));
    padding-right: 56px;
  }
  .band__img { height: 100%; aspect-ratio: auto; object-position: 0% 50%; }
}

/* Ausstellung */
.ausstellung .grid-2 { align-items: center; }
.ausstellung__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ausstellung h2 { margin-bottom: 28px; }
.facts { margin: 32px 0 0; display: grid; gap: 18px; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; }
.on-dark .facts dt { color: var(--accent); }
.on-dark .facts div { border-top-color: rgba(154, 143, 125, .3); }
@media (min-width: 900px) {
  .ausstellung__text { padding-left: 24px; }
}

/* Kontakt */
.kontakt h2 { margin-bottom: clamp(32px, 5vw, 56px); }
.tel-gross {
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-decoration: none;
  display: inline-block;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
}
.nw { white-space: nowrap; }
.kontakt__hint { margin-top: 20px; color: var(--stone); }
.kontakt address { font-style: normal; }
.link-pfeil { font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); }

/* Rechtsseiten */
.legal { padding-block: clamp(56px, 9vh, 120px) var(--pad); }
.legal h1 { font-size: clamp(2.2rem, 6vw, 5.2rem); margin-bottom: 20px; }
.legal h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; margin: 48px 0 14px; }
.legal__body { max-width: 62ch; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .35em; }
.stand {
  display: inline-block;
  border: 1px dashed var(--accent);
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 32px;
}

/* Fuß */
.site-footer { background: var(--dark); color: var(--stone); font-size: 15px; padding-block: 56px; }
.on-dark + .site-footer .site-footer__inner { border-top: 1px solid rgba(140, 136, 128, .3); padding-top: 40px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr; gap: 24px; }
.site-footer .wordmark { color: var(--paper); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__links a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(154, 143, 125, .5); }
.site-footer p { margin-bottom: 4px; }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); gap: 32px 56px; }
  .site-footer__notes { grid-column: 1 / -1; }
}

/* Hover nur für Geräte mit Zeiger */
@media (hover: hover) {
  .nav a:hover, .nav__legal a:hover { color: var(--accent); }
  .button:hover { background: transparent; color: var(--paper); }
  .tel-gross:hover, .site-footer__links a:hover, .link-pfeil:hover { color: var(--accent); }
}

@media print {
  .site-header { position: static; }
}
