/* Kanon Landing — Akkordeon-Rechtsgebiete, Papier-Optik.
   Ergänzt theme.css; nutzt die selbst-gehosteten Schriften. */

/* Hero — Giebelinschrift-Anmutung: zentriert, monumental, Zierlinien */
.k-hero {
  padding: 6rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid #E2DBCB;
  margin-bottom: 3.5rem;
}
/* Kleine Devise über dem Titel, wie eine Inschriftenzeile */
.k-hero__eyebrow {
  font-family: 'Atkinson Mono', ui-monospace, monospace;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .3em;
  color: #A39A87; margin: 0 0 1.6rem; padding-left: .3em;
}
.k-hero h1 {
  font-family: Fraunces, Spectral, Georgia, serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: .96; font-weight: 600; letter-spacing: -0.035em;
  margin: 0 auto 1.4rem; text-wrap: balance;
  max-width: 15ch;
}
.k-hero h1 em {
  display: block;
  font-style: italic; color: var(--accent, #A33B2E); font-weight: 600;
  letter-spacing: -0.03em;
}
/* Zierlinie mit Raute — Gerichtssiegel-Andeutung */
.k-hero__rule {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 0 auto 1.6rem; max-width: 22rem; color: #D9D2C2;
}
.k-hero__rule::before, .k-hero__rule::after {
  content: ""; flex: 1; height: 1px; background: currentColor;
}
.k-hero__rule i {
  font-style: normal; font-size: .6rem; color: var(--accent, #A33B2E);
  transform: rotate(45deg); display: block; width: .42rem; height: .42rem;
  border: 1px solid currentColor;
}
.k-hero__lead {
  font-size: 1.22rem; line-height: 1.5; color: #6E675C;
  margin: 0 auto 2.6rem; max-width: 46ch;
}
/* Suche + Beispiele im Hero mittig, aber nicht über volle Breite */
.k-hero .k-search { max-width: 34rem; margin-left: auto; margin-right: auto; }
.k-hero .k-hint { justify-content: center; margin-bottom: 0; }

@media (max-width: 720px) {
  .k-hero { padding: 3.5rem 0 2.5rem; }
  .k-hero h1 { font-size: clamp(2.4rem, 13vw, 3.4rem); max-width: 12ch; }
  .k-hero__eyebrow { letter-spacing: .22em; font-size: .66rem; }
}

/* Suchfeld */
.k-search {
  display: flex; align-items: center; gap: .75rem; width: 100%;
  border: 1.5px solid #D9D2C2; background: #FFFEFB; border-radius: 12px;
  padding: 1rem 1.15rem; margin-bottom: .65rem; cursor: pointer;
  font: inherit; color: #8A8172; text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.k-search:hover { border-color: #A39A87; box-shadow: 0 1px 0 #EFE9DA; }
.k-search svg { width: 19px; height: 19px; flex: 0 0 auto; }
.k-search span { font-size: 1.06rem; flex: 1; }

.k-hint { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap;
  font-size: .875rem; color: #8A8172; margin: 0 0 4rem; }
.k-hint a { font-family: 'Atkinson Mono', ui-monospace, monospace; font-size: .8rem;
  border-bottom: 1px dotted #C9C0AC; color: #221F1A; }
.k-hint a:hover { color: var(--accent, #A33B2E); }

/* Abschnittsüberschrift */
.k-h2 {
  font-family: 'Atkinson Mono', ui-monospace, monospace;
  font-size: .82rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .12em; color: #8A8172; margin: 0 0 .9rem;
}

/* Akkordeon */
.k-acc { border-top: 1.5px solid #E2DBCB; margin-bottom: 4rem; }
.k-cat { border-bottom: 1.5px solid #E2DBCB; }
.k-cat__head {
  display: flex; align-items: baseline; gap: 1rem; width: 100%;
  padding: 1.25rem .25rem; cursor: pointer; background: none; border: 0;
  font: inherit; color: inherit; text-align: left;
  transition: background .15s ease;
}
.k-cat__head:hover { background: #F6F2E8; }
.k-cat__name { font-family: Fraunces, Spectral, Georgia, serif;
  font-size: 1.55rem; font-weight: 500; letter-spacing: -.01em; flex: 0 0 auto; }
.k-cat__chips { flex: 1; display: flex; gap: .38rem; flex-wrap: wrap; justify-content: flex-end; }
.k-chip {
  font-family: 'Atkinson Mono', ui-monospace, monospace; font-size: .72rem;
  color: #6E675C; border: 1px solid #E0D9C9; background: #FFFEFB;
  border-radius: 999px; padding: .2rem .58rem;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.k-cat[open] .k-chip,
.k-cat__head[aria-expanded="true"] .k-chip {
  background: var(--accent, #A33B2E); border-color: var(--accent, #A33B2E); color: #FBF9F4;
}
.k-cat__chev { font-size: 1.25rem; color: #A39A87; flex: 0 0 auto;
  transition: transform .2s ease; }
.k-cat__head[aria-expanded="true"] .k-cat__chev { transform: rotate(90deg); }

.k-cat__body { display: none; padding: 0 .25rem .7rem; }
.k-cat__head[aria-expanded="true"] + .k-cat__body { display: block; animation: kFade .16s ease-out both; }
@keyframes kFade { from { opacity: 0; } to { opacity: 1; } }

.k-law {
  display: flex; align-items: baseline; gap: .9rem;
  padding: .85rem .9rem; border-radius: 10px; margin-bottom: .25rem;
  transition: background .15s ease;
}
.k-law:hover { background: #F3EEE1; }
.k-law__name { font-size: 1.15rem; font-weight: 500; flex: 1; }
.k-law__abk { font-family: 'Atkinson Mono', ui-monospace, monospace;
  font-size: .82rem; color: #6E675C; }
.k-law__n { font-family: 'Atkinson Mono', ui-monospace, monospace;
  font-size: .82rem; color: #A39A87; min-width: 4.7rem; text-align: right; }
.k-law__stand { display: block; font-size: .76rem; color: #A39A87; margin-top: .15rem; font-weight: 400; }

/* Chronik */
.k-chron { margin-bottom: 3.5rem; }
.k-chron a {
  display: flex; align-items: baseline; gap: .9rem;
  padding: .62rem .25rem; border-bottom: 1px solid #EDE7D8;
  transition: background .15s ease;
}
.k-chron a:hover { background: #F6F2E8; }
.k-chron .d { font-family: 'Atkinson Mono', ui-monospace, monospace;
  font-size: .74rem; color: #A39A87; flex: 0 0 5.2rem; }
.k-chron .n { font-family: 'Atkinson Mono', ui-monospace, monospace;
  font-size: .8rem; color: #6E675C; flex: 0 0 7.5rem; }
.k-chron .t { font-size: 1rem; flex: 1; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.k-chron .tag { font-family: 'Atkinson Mono', ui-monospace, monospace; font-size: .7rem; }
.k-chron .tag.neu { color: #5B8A5E; }
.k-chron .tag.ge { color: #A39A87; }
.k-more { display: inline-block; margin-top: .9rem; font-size: .95rem;
  color: #6E675C; border-bottom: 1px dotted #C9C0AC; }
.k-more:hover { color: var(--accent, #A33B2E); }

@media (max-width: 720px) {
  .k-cat__head { flex-wrap: wrap; gap: .5rem; }
  .k-cat__chips { justify-content: flex-start; width: 100%; order: 3; }
  .k-law { flex-wrap: wrap; }
  .k-law__n { min-width: 0; }
  .k-chron a { flex-wrap: wrap; row-gap: .15rem; }
  .k-chron .d { flex: 0 0 auto; }
  .k-chron .n { flex: 0 0 auto; }
  .k-chron .tag { margin-left: auto; }
  .k-chron .t { flex: 1 0 100%; white-space: normal; order: 4; }
  /* Header: Suchbutton + Sprache duerfen umbrechen statt zu sprengen */
  .site-head__in { flex-wrap: wrap; row-gap: .4rem; }
  .searchbtn { min-width: 0; }
  .searchbtn__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Kein ⌘K-Kuerzel-Badge (Nutzerentscheid) */
.kbd { display: none; }

@media (prefers-reduced-motion: reduce) {
  .k-cat__head[aria-expanded="true"] + .k-cat__body { animation: none; }
}
