/* Die Gestaltung der Musterkanzlei. Bewusst nicht die von law4.ch (Epic «Musterkanzlei», R11):
   Die Seite soll aussehen wie die Website einer gewöhnlichen Kanzlei, damit das Plugin hier zeigt,
   wie es auf einer fremden Seite besteht — und eine Kollision mit fremden Stilen hier auffällt
   statt bei einer Kundin. */

:root {
  --ink: #1f2b2d;
  --muted: #5b6668;
  --line: #d9d4c8;
  --paper: #f7f4ee;
  --white: #ffffff;
  --accent: #6e2b2b;
  --accent-soft: #f1e6e2;
  --band: #fff3c4;
  --band-ink: #4a3b00;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --width: 1080px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* Das Band steht auf jeder Seite und scrollt nicht weg: Wer über einen weitergereichten Link hier
   landet, soll es lesen, bevor er etwas schildert (R12). */
.fiction-band {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: 0;
  padding: 10px 16px;
  background: var(--band);
  color: var(--band-ink);
  border-bottom: 1px solid #e6d58a;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.wrap {
  width: min(var(--width), 100% - 32px);
  margin-inline: auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 6px;
}

main {
  display: block;
}

.hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  padding-block: 64px 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  max-width: 18ch;
}

h2 {
  font-size: clamp(26px, 3.4vw, 34px);
}

h3 {
  font-size: 21px;
}

.lead {
  max-width: 60ch;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.section {
  padding-block: 56px;
}

.section.white {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.section.white .card {
  background: var(--paper);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.person {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
}

.initials {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.person .role {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* Das Plugin steht nahtlos im Inhalt, wie Kanzleien es einbetten: ohne Karte, in der Schrift
   dieser Seite und in deren Breite. */
.intake {
  margin-top: 24px;
}

.intake law4-intake {
  --plugin-width: 860px;
}

/* Bis das Bundle geladen ist — oder wenn es ausbleibt —, steht der Ausweichweg da. */
.law4-intake-fallback {
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
}

/* Die Sperre vor dem Plugin (js/gate.js): sichtbar, bis der Passcode stimmt. */
.gate {
  display: grid;
  gap: 10px;
  max-width: 560px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--band-ink);
  border-radius: 6px;
}

.gate p {
  margin: 0;
}

.gate-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.gate label {
  font-weight: 600;
}

.gate input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

.gate .button {
  justify-self: start;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.gate-message:empty {
  display: none;
}

.gate-message,
.gate-closed {
  color: var(--accent);
  font-weight: 600;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 40px;
  font-size: 26px;
}

.prose h2:first-child {
  margin-top: 0;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 24px;
  margin: 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.site-footer {
  background: var(--ink);
  color: #d8dcdc;
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  padding-block: 36px;
}

.site-footer a {
  color: var(--white);
}

.site-footer address {
  font-style: normal;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero .wrap {
    padding-block: 40px;
  }

  .section {
    padding-block: 40px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts dd {
    margin-bottom: 8px;
  }
}
