/* heerehaase.com – eine Seite, keine Skripte, keine externen Dienste */
:root {
  --papier: #ece5db;
  --tinte: #1d1c1a;
  --leise: #5a534a;
  --linie: #d3c9bb;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

/* Aufbau: schmal = Foto als Streifen oben, darunter Papier */
.seite { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.foto { order: -1; height: clamp(12.5rem, 44vw, 22rem); background: #cdbfb0; overflow: hidden; }
.foto picture, .foto img { width: 100%; height: 100%; }
.foto img { object-fit: cover; object-position: 60% 78%; }
.papier { flex: 1; background: var(--papier); padding: 2.25rem 1.5rem 3rem; }
.inhalt { max-width: 35rem; margin: 0 auto; }

/* Kopf */
.logo { width: 11.75rem; height: auto; }
.ort { margin: 0.6rem 0 0; color: var(--leise); font-size: 1rem; }

/* Überschriften */
h1 {
  margin: 2.75rem 0 0;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h2 { margin: 0.5rem 0 0; font-size: 1rem; font-weight: 400; color: var(--leise); }

/* Angaben */
.angaben { margin: 1.75rem 0 0; border-bottom: 1px solid var(--linie); }
.angaben > div { padding: 0.85rem 0 0.9rem; border-top: 1px solid var(--linie); }
dt {
  color: var(--leise);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
dd { margin: 0.15rem 0 0; }
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: #8d8478;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; border-radius: 2px; }
dd a { display: inline-block; padding: 0.2rem 0; }

.hinweis { margin: 1.75rem 0 0; color: var(--leise); font-size: 1rem; line-height: 1.6; overflow-wrap: break-word; text-wrap: pretty; }

/* ab Tablet quer: Bezeichnung links, Wert rechts */
@media (min-width: 34em) {
  .papier { padding: 3rem 2.5rem 4rem; }
  .angaben > div { display: grid; grid-template-columns: 11.5rem 1fr; column-gap: 1.5rem; align-items: baseline; }
  dt { padding-top: 0.2rem; }
  dd { margin: 0; }
}

/* Computer: Papier links, Foto rechts über die volle Höhe */
@media (min-width: 62em) {
  .seite { display: grid; grid-template-columns: minmax(33rem, 44%) 1fr; }
  .papier { display: flex; align-items: center; padding: 3rem clamp(2.5rem, 4.5vw, 5rem); }
  .inhalt { width: 100%; max-width: 34rem; }
  .foto { order: 0; height: auto; min-height: 100vh; min-height: 100dvh; position: relative; }
  .foto picture { position: absolute; inset: 0; }
  .foto img { object-position: 72% 60%; }
  h1 { margin-top: 2.25rem; }
  .angaben { margin-top: 1.5rem; }
  .angaben > div { grid-template-columns: 10.5rem 1fr; padding: 0.7rem 0 0.75rem; }
  .hinweis { margin-top: 1.5rem; }
}

/* sehr große Bildschirme: alles etwas größer */
@media (min-width: 137.5em) { html { font-size: 112.5%; } }

/* Fehlerseite */
.fehler .inhalt { padding-bottom: 2rem; }
.fehler p.text { margin: 1rem 0 0; }

@media print {
  .foto { display: none; }
  .seite { display: block; min-height: 0; }
  .papier { padding: 0; }
  body, .papier { background: #fff; }
}
