/* einrichtliebe.de — Stylesheet
   Palette: Altbau bei Abendlicht — Kalkputz, Moos, Messing */

:root {
  --ink: #1b2229;
  --plaster: #e6e7e1;
  --paper: #f4f4ef;
  --moss: #55654e;
  --brass: #96793d;
  --slate: #6c7278;
  --hairline: #c9cabf;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  z-index: 50;
}

.skip:focus {
  left: 0;
}

/* ---------- Shell ---------- */

.shell {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow {
  max-width: 46rem;
}

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--hairline);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--moss);
}

.nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nav a {
  color: var(--slate);
  text-decoration: none;
  padding-block: 0.15rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--moss);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 35%;
  z-index: -2;
}

/* Verlauf, damit die Schrift auf dem Foto ruhig steht */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(244, 244, 239, 0.95) 0%,
    rgba(244, 244, 239, 0.85) 34%,
    rgba(244, 244, 239, 0.5) 60%,
    rgba(244, 244, 239, 0.06) 85%
  );
}

.hero__inner {
  min-height: clamp(28rem, 64vh, 42rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

@media (max-width: 40rem) {
  .hero::before {
    background: rgba(244, 244, 239, 0.82);
  }
}

.hero__thesis {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.3rem + 4.4vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.hero__thesis em {
  font-style: italic;
  color: var(--moss);
}

.hero__standfirst {
  margin: 2rem 0 0;
  max-width: var(--measure);
  color: var(--slate);
  font-size: 1.0625rem;
}

/* ---------- Title block (Signature) ---------- */

.titleblock {
  border: 1px solid var(--ink);
  background: var(--paper);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.titleblock__field {
  padding: 1rem 1.125rem 1.125rem;
  border-right: 1px solid var(--hairline);
}

.titleblock__field:last-child {
  border-right: 0;
}

.titleblock__label {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.4rem;
}

.titleblock__value {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.4;
}

/* ---------- Room index ---------- */

.rooms {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 6rem);
}

.rubric {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline);
}

.roomlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

@media (min-width: 42rem) {
  .roomlist {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62rem) {
  .roomlist {
    grid-template-columns: repeat(3, 1fr);
  }
}

.roomcard {
  background: var(--paper);
  display: flex;
}

.roomcard a {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease;
}

.roomcard__media {
  display: block;
  border-bottom: 1px solid var(--hairline);
}

.roomcard__media img {
  display: block;
  width: 100%;
  height: auto;
}

.roomcard__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
}

.roomcard a:hover,
.roomcard a:focus-visible {
  background: #ecede6;
}

.roomcard__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.roomcard__note {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.55;
}

.roomcard__more {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
}

/* ---------- Article ---------- */

.article {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3.5rem, 8vw, 6rem);
}

/* Raum-Seiten: volle Shell-Breite wie die Startseite */
.article--room .article__title {
  max-width: 24ch;
}

.article--room .article__lede,
.article--room .prose {
  max-width: 46rem;
}

.article__figure {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

.article__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
}

.prose__figure {
  margin: 1.75rem 0 2rem;
}

.prose__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
}

.prose__figure figcaption {
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--slate);
}

.article__eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}

.article__title {
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 20ch;
  text-wrap: balance;
}

.article__lede {
  font-size: 1.1875rem;
  color: var(--slate);
  max-width: var(--measure);
  margin: 0 0 2.5rem;
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  font-weight: 400;
  font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 3rem 0 1rem;
}

.prose h2::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  background: var(--brass);
  margin-bottom: 1.25rem;
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
}

.prose li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}

.prose li::marker {
  color: var(--moss);
}

.prose strong {
  font-weight: 600;
}

.prose a {
  color: var(--ink);
  text-decoration-color: var(--brass);
  text-underline-offset: 0.18em;
}

/* ---------- Recap ---------- */

.recap {
  margin-top: 3rem;
  border-top: 2px solid var(--ink);
  padding-top: 1.5rem;
}

.recap h2 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}

.recap h2::before {
  content: none;
}

.recap ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 46rem;
}

.recap li {
  padding: 0 0 0.7rem 0;
  margin: 0 0 0.7rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 1rem;
}

.recap li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

/* ---------- Next links ---------- */

.next {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--sans);
  font-size: 0.9375rem;
}

.next a {
  color: var(--moss);
  text-underline-offset: 0.18em;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  padding-block: 2.5rem 3rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--slate);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: baseline;
}

.footer a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-left: auto;
}

/* ---------- Legal pages ---------- */

.legal .prose h2 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 2.5rem;
}

.legal .prose h2::before {
  content: none;
}

.legal .prose {
  max-width: 40rem;
}

.placeholder {
  background: #f0e6c8;
  border-bottom: 1px solid var(--brass);
  padding: 0 0.2em;
  font-family: var(--sans);
  font-size: 0.9em;
}

/* ---------- Focus + motion ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
