/* ================================================================
   Minimal, semantisches CSS.
   Keine Frameworks, kein JavaScript. Ziel: lesbar für Menschen und
   vollständig verständlich für LLM-Crawler, die kein JS rendern.
   ================================================================ */

:root {
  --color-bg: #ffffff;
  --color-fg: #1a1a1a;
  --color-muted: #5a5a5a;
  --color-accent: #2a4a6b;
  --color-border: #d8d8d8;
  --color-warn-bg: #fff4d6;
  --color-warn-fg: #5c4a00;
  --max-width: 780px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  line-height: 1.6;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-fg);
  background: var(--color-bg);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--color-fg);
  margin-top: 2.2em;
  margin-bottom: 0.6em;
}

h1 { font-size: 2rem; margin-top: 0.4em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }

p {
  margin: 0.9em 0;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  text-decoration: none;
}

/* Header / Footer */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-header a.brand {
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-fg);
}
.site-header nav a {
  color: var(--color-muted);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
}
.site-header nav a:hover {
  color: var(--color-fg);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 1.25rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-footer a {
  color: var(--color-muted);
  margin-right: 1rem;
}

/* Demo-Banner */
.demo-banner {
  background: var(--color-warn-bg);
  color: var(--color-warn-fg);
  padding: 0.6rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 1px solid #e8d58a;
}
.demo-banner strong {
  font-weight: 600;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.breadcrumbs li::after {
  content: "›";
  margin-left: 0.35rem;
  color: var(--color-border);
}
.breadcrumbs li:last-child::after {
  content: "";
}
.breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--color-fg);
  text-decoration: underline;
}

/* Lead paragraph */
.lead {
  font-size: 1.1rem;
  color: var(--color-muted);
}

/* Listing */
.listing {
  list-style: none;
  padding: 0;
  counter-reset: listing;
  margin: 2rem 0;
}
.listing-entry {
  padding: 1.4rem 0 1.2rem;
  border-top: 1px solid var(--color-border);
  counter-increment: listing;
}
.listing-entry:last-child {
  border-bottom: 1px solid var(--color-border);
}
.listing-entry__header {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 0.3rem;
}
.listing-entry__position {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-muted);
  min-width: 2.4rem;
  font-weight: 400;
}
.listing-entry__position::before {
  content: counter(listing) ".";
}
.listing-entry__name {
  margin: 0;
  font-size: 1.3rem;
  font-family: var(--font-serif);
}
.listing-entry__meta {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 0.2rem 0 0.7rem 3.3rem;
}
.listing-entry__body {
  margin: 0.4rem 0 0 3.3rem;
}
.listing-entry__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}
.listing-entry__facts strong {
  color: var(--color-fg);
  font-weight: 500;
}

/* Aside / Hinweis */
.hinweis {
  margin-top: 3rem;
  padding: 1.25rem 1.4rem;
  background: #f6f7f9;
  border-left: 3px solid var(--color-accent);
  font-size: 0.94rem;
}
.hinweis h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

/* Index */
.index-hero {
  padding: 2.5rem 0 1.5rem;
}

/* Search */
.search-box {
  margin-bottom: 1.5rem;
}
.search-box input {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #f9fafb;
  color: var(--color-fg);
  font-family: var(--font-sans);
}
.search-box input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}

/* Verzeichnis grid */
.verzeichnis-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.verzeichnis-card a {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-fg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.verzeichnis-card a:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.verzeichnis-card__branche {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.verzeichnis-card__stadt {
  color: var(--color-muted);
  font-size: 0.92rem;
}
.verzeichnis-card__count {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--color-accent);
  font-weight: 500;
}

.empty-hint {
  color: var(--color-muted);
  font-style: italic;
}

.verzeichnis-footer {
  margin-top: 1rem;
}

@media (max-width: 560px) {
  .listing-entry__meta,
  .listing-entry__body {
    margin-left: 0;
  }
  .listing-entry__header {
    flex-direction: column;
    gap: 0.2rem;
  }
}
