/* Baustellenseite – Rechtsanwaltskanzlei Schreier & Kollegen */

/* ---------- Schriften (lokal, SIL OFL – siehe assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pt-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pt-sans-latin-700-normal.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  --c-primary: #17365d;   /* Kanzlei-Blau, Überschriften/Akzente */
  --c-text:    #333333;
  --c-muted:   #747474;
  --c-line:    #e3e6ea;
  --c-bg:      #ffffff;
  --c-bg-alt:  #f5f7fa;
  --font: "PT Sans", Arial, Helvetica, sans-serif;
  --maxw: 960px;
  --gutter: 1.25rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

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

a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  color: var(--c-primary);
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: 1.75rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.0625rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }

address { font-style: normal; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Skip-Link */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 0.5rem 1rem;
  background: var(--c-primary);
  color: #fff;
  z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--c-line);
  padding: 1.5rem 0;
}
.site-header .logo {
  display: inline-block;
  line-height: 0;
}
.site-header .logo img {
  width: 266px;            /* Original ist nur 266 × 56 px – nicht hochskalieren */
  max-width: 100%;
}

/* ---------- Startseite ---------- */
.hero {
  padding: 3rem 0 2rem;
}
.hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.5rem;
}
.hero .claim {
  font-size: 1.25rem;
  color: var(--c-text);
  margin: 0;
}

.section { padding: 1.5rem 0; }
.section > .wrap > h2:first-child { margin-top: 0; }

.section-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-primary);
}

/* Rechtsfelder */
.fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--c-line);
}
.fields li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--c-line);
}
.fields li::before {
  content: "";
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  background-color: var(--c-primary);
  /* Waage-Symbol als CSS-Maske (Inline-SVG, keine externe Ressource) */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v17M7 20h10M4 7h16M12 3.5l0 0'/%3E%3Cpath d='M6 7l-3 7a3 3 0 0 0 6 0z'/%3E%3Cpath d='M18 7l-3 7a3 3 0 0 0 6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v17M7 20h10M4 7h16M12 3.5l0 0'/%3E%3Cpath d='M6 7l-3 7a3 3 0 0 0 6 0z'/%3E%3Cpath d='M18 7l-3 7a3 3 0 0 0 6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hinweisbox */
.notice {
  background: var(--c-bg-alt);
  border-left: 4px solid var(--c-primary);
  padding: 1.25rem 1.5rem;
}
.notice h2 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}
.notice p:last-child { margin-bottom: 0; }

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.contact dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.25rem;
}
.contact dt { font-weight: 700; color: var(--c-primary); }
.contact dd { margin: 0; }

/* ---------- Rechtstexte ---------- */
.legal {
  padding: 2.5rem 0 3rem;
}
.legal .wrap { max-width: calc(46rem + 2 * var(--gutter)); }
.legal h1 { font-size: 1.75rem; }
.legal .meta { color: var(--c-muted); }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.25rem; }
.legal address { margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--c-line);
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--c-muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer p { margin: 0; }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}
.site-footer a { color: var(--c-primary); }
.site-footer a[aria-current="page"] {
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Ab Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 2rem; }
  .hero { padding: 4.5rem 0 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero .claim { font-size: 1.375rem; }
  .fields { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .contact { grid-template-columns: 1fr 1fr; }
  .legal h1 { font-size: 2rem; }
}

@media (min-width: 960px) {
  .hero h1 { font-size: 2.25rem; }
}

/* ---------- Druck ---------- */
@media print {
  .skip-link, .site-footer nav { display: none; }
  .notice { border: 1px solid #999; }
  a { color: inherit; text-decoration: none; }
}
