/* Alexander Hartmann Immobilien – gemeinsames Stylesheet
   Platzhalterseite (index.html) + Rechtsseiten (body.page-legal)
   Alle Ressourcen same-origin, keine Drittanbieter. */

/* ---------- Schriften (SIL OFL, lokal) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #13263a;        /* Marke: Text, Signet            */
  --navy-soft: #4a5868;   /* Sekundärtext, 6.8:1 auf Creme   */
  --gold: #c6a36d;        /* Marke: NUR Dekor (2.2:1)        */
  --gold-deep: #7d5f2c;   /* textfähiges Gold, 5.6:1         */
  --cream: #fcf7f1;       /* Marke: Hintergrund              */
  --cream-deep: #f5ede2;  /* Flächen, Fußzeile               */
  --line: #e6dccb;        /* Haarlinien                      */

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Montserrat", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Platzhalterseite ---------- */
.construction {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 9vh, 6.5rem) 1.5rem clamp(3rem, 8vh, 5.5rem);
}

.construction__brand { margin: 0; line-height: 0; width: min(100%, 28.5rem); }
.construction__logo { width: 100%; }

.construction__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: clamp(2.75rem, 7vh, 4.5rem) 0 0;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
}
/* letter-spacing hängt hinten an – vorne ausgleichen, damit es optisch mittig sitzt */
.construction__status span { margin-right: -0.3em; }
.construction__status::before,
.construction__status::after {
  content: "";
  flex: none;
  width: clamp(1.25rem, 6vw, 2.75rem);
  height: 1px;
  background: var(--gold);
}

.construction__lead {
  margin: 1.35rem 0 0;
  max-width: 21ch;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.construction__text {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  color: var(--navy-soft);
  text-wrap: balance;
}

.construction__address {
  margin: clamp(2.25rem, 6vh, 3.5rem) 0 0;
  padding-top: 1.6rem;
  position: relative;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.construction__address::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2.5rem;
  height: 2px;
  margin-left: -1.25rem;
  background: var(--gold);
}
.construction__address strong {
  display: block;
  font-weight: 600;
}

/* dezenter Auftritt, nur wenn Bewegung erwünscht */
@media (prefers-reduced-motion: no-preference) {
  .construction > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .construction > :nth-child(2) { animation-delay: 0.12s; }
  .construction > :nth-child(3) { animation-delay: 0.2s; }
  .construction > :nth-child(4) { animation-delay: 0.28s; }
  .construction > :nth-child(5) { animation-delay: 0.36s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---------- Fußzeile (identisch auf allen Seiten) ---------- */
.site-footer {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.15rem clamp(1.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--navy-soft);
}
.site-footer p { margin: 0; }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}
.site-footer__nav a {
  display: inline-block;
  padding: 0.5rem 0;            /* komfortable Tippfläche */
  color: var(--navy);
}
.site-footer__nav a[aria-current="page"] {
  text-decoration-thickness: 2px;
}

/* ---------- Rechtsseiten ---------- */
.legal-header {
  padding: 1.5rem clamp(1.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.legal-brand {
  display: inline-block;
  text-decoration: none;
}
.legal-brand img { width: auto; height: 2.75rem; }

.legal {
  flex: 1 0 auto;
  width: 100%;
  max-width: calc(65ch + 2 * clamp(1.5rem, 5vw, 3.5rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5.5rem);
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal h1 {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  padding-bottom: 1.4rem;
  position: relative;
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  hyphens: manual;
}
.legal h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 2px;
  background: var(--gold);
}

.legal h2 {
  margin: 2.5rem 0 0.6rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  hyphens: manual;
}
.legal h3 {
  margin: 1.75rem 0 0.4rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  hyphens: manual;
}
.legal section:first-of-type > h2:first-child { margin-top: 0; }

.legal p,
.legal ul,
.legal ol,
.legal address { margin: 0 0 1rem; }
.legal address { font-style: normal; }
.legal ul,
.legal ol { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.35rem; padding-left: 0.25rem; }
.legal li::marker { color: var(--gold-deep); }
.legal strong { font-weight: 600; }
.legal a { overflow-wrap: anywhere; }

@media (max-width: 30rem) {
  body { font-size: 1.0625rem; }
  .legal-brand img { height: 2.25rem; }
  .site-footer { justify-content: center; text-align: center; }
  .site-footer__nav { justify-content: center; }
}

@media print {
  body { background: #fff; }
  .site-footer__nav, .skip-link { display: none; }
}
