/* ---------- Webfont (selbst gehostet, kein externer Aufruf) ----------
   Jost (SIL Open Font License) als geometrischer Fallback für Century Gothic.
   Lokal eingebunden → keine Verbindung zu Google. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jost-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jost-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/jost-latin-700-normal.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --c-bg:        #f7f5f1;
  --c-surface:   #ffffff;
  --c-ink:       #0f1f2c;
  --c-ink-soft:  #4a5560;
  --c-muted:     #7a8590;
  --c-line:      #e3ddd2;
  --c-primary:   #1f3a4d;   /* tiefes Petrol */
  --c-primary-2: #2c536d;
  --c-accent:    #b08a4a;   /* gedämpftes Messing */
  --c-accent-soft:#e8dec7;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 44, .06);
  --shadow-md: 0 10px 30px -12px rgba(15, 31, 44, .18);

  /* Century Gothic = Hausschrift (Briefpapier). Jost ist der geometrische
     Web-Fallback für Besucher ohne Century Gothic. */
  --f-display: "Century Gothic", "Jost", "URW Gothic", "Apple Gothic", AppleGothic, sans-serif;
  --f-sans:  Arial, "Helvetica Neue", Helvetica, sans-serif;

  --maxw: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary-2); text-decoration: none; }
a:hover { color: var(--c-accent); }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 1.25rem 0; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: .2px;
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.section-alt {
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.section-head p { color: var(--c-ink-soft); }

.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col--equal {
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.two-col--equal > .info-card { height: 100%; }
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col--equal { gap: 1.25rem; }
}

/* ---------- Prose pages (Impressum / Datenschutz) ---------- */
.prose {
  max-width: 760px;
}
.prose h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.75rem;
  margin-bottom: .8rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--c-primary);
  color: var(--c-primary);
}
.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.9rem;
  margin-bottom: .5rem;
  color: var(--c-ink);
}
.prose h4 {
  font-size: .8rem;
  font-weight: 700;
  margin-top: 1.4rem;
  margin-bottom: .35rem;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.prose p {
  color: var(--c-ink-soft);
  line-height: 1.7;
}
.prose ul {
  color: var(--c-ink-soft);
  line-height: 1.7;
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.prose ul li { margin-bottom: .25rem; }
.prose strong { color: var(--c-ink); font-weight: 600; }
.prose a { border-bottom: 1px solid currentColor; }

/* ---------- Header ----------
   Am Seitenanfang unsichtbar; sobald gescrollt wird, fährt das Band von oben
   ein. Fixiert (überlagert den Inhalt), damit oben kein leerer Streifen bleibt. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(247, 245, 241, .85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-line);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
}
.site-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
/* Unterseiten (kein Hero): Platz für den fixierten Header freihalten. */
body.is-subpage { padding-top: 5.5rem; }
section[id], main[id] { scroll-margin-top: 6rem; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
/* ---------- Logo: HTML-Nachbau des Original-Schildes ----------
   Tür-Icon + Titel (Century Gothic), ohne Rahmen. */
.fpr-logo {
  display: inline-flex;
  align-items: center;
  height: 3em;
  min-width: 0;            /* darf schrumpfen, damit nichts überlappt */
  background: transparent;
  color: inherit;
}
.fpr-logo:hover { color: inherit; }

/* Titel ist im Band zunächst ausgeblendet (kein doppelter Titel zur Hero-
   Überschrift) und „fährt“ erst ein, wenn man am Hero vorbeigescrollt ist. */
.fpr-logo__text {
  order: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  padding-right: 0;
  transition: max-width .65s ease, opacity .65s ease, padding-right .65s ease;
}
.site-header.show-title .fpr-logo__text {
  max-width: 40ch;
  opacity: 1;
  padding-right: .9rem;
}
.fpr-logo__title {
  font-family: var(--f-display);
  font-weight: 400;                /* Original: helle, normale Century Gothic */
  font-size: 1.15rem;
  letter-spacing: .4px;
  color: #6f6f6f;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;         /* Sicherheitsnetz: kürzt statt zu überlappen */
}
.fpr-logo__door {
  order: 2;                        /* Tür rechts – schließt den Rahmen ab */
  height: 100%;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: brightness(0);
  opacity: 0.85;
}

@media (max-width: 720px) {
  .fpr-logo { height: 2.6em; }
  .fpr-logo__title { font-size: .98rem; }
  .site-header.show-title .fpr-logo__text { padding-right: .7rem; }
}
@media (max-width: 600px) {
  /* Auf kleinen Screens kein Titel im Band – Tür-Icon + Anrufoption genügen. */
  .site-header.show-title .fpr-logo__text {
    max-width: 0;
    opacity: 0;
    padding-right: 0;
  }
}

/* ---------- Header-CTA ----------
   Anrufoption mit kleiner Zeitenangabe darunter. „Schöpft“ sich als Einheit
   ins Band, sobald man über den Kontaktbereich scrollt. */
.header-cta {
  display: flex;
  flex-direction: column;
  align-items: center;             /* Button + Zeiten zentriert */
  gap: .25rem;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.site-header.show-call .header-cta { opacity: 1; transform: none; pointer-events: auto; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .95rem;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: .92rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background .15s, transform .15s;
}
.header-call:hover { background: var(--c-primary-2); color: #fff; transform: translateY(-1px); }
.header-call svg { flex-shrink: 0; }
.header-hours {
  font-size: .72rem;
  color: var(--c-muted);
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

@media (max-width: 480px) {
  .header-cta { gap: .2rem; }
  .header-call { padding: .45rem .8rem; font-size: .88rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(1rem, 2.5vw, 2rem) 0;
  background: #ffffff;
}
.hero img {
  filter: brightness(0);
  opacity: 0.85;
}
#kontakt.section-alt {
  border-top: none;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
.hero-inner { max-width: 760px; }
.eyebrow {
  font-size: .82rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 500;
  margin: 0 0 1.2rem;
}
.hero h1 {
  margin-bottom: .5em;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--c-ink-soft);
  max-width: 60ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.4rem;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: .98rem;
  transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--c-primary-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-ink);
}

/* ---------- Info cards ---------- */
.kontakt-card { max-width: 600px; margin: 0 auto; }

.info-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  margin-bottom: .8rem;
  color: var(--c-primary);
}
.info-card .hours {
  font-family: var(--f-display);
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--c-ink);
  margin: 0;
}

/* ---------- Team list ---------- */
.team-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.team-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.4rem 1.75rem;
  border-bottom: 1px solid var(--c-line);
  transition: background-color .15s;
}
.team-item:last-child { border-bottom: 0; }
.team-item:hover { background: var(--c-bg); }

/* Kopieren-Button links neben dem Namen */
.copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 3px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 7px;
  background: var(--c-surface);
  color: var(--c-ink-soft);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: color .15s, border-color .15s, background-color .15s;
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.copy-btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.copy-btn:active { transform: translateY(1px); }
.copy-btn .copy-btn__check { display: none; }
.copy-btn.is-copied {
  color: #2e7d32;
  border-color: #2e7d32;
  background: #eef6ee;
}
.copy-btn.is-copied .copy-btn__copy { display: none; }
.copy-btn.is-copied .copy-btn__check { display: block; }
/* „Kopiert“-Hinweis */
.copy-btn.is-copied::after {
  content: "Kopiert";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #2e7d32;
  color: #fff;
  font-size: .72rem;
  line-height: 1;
  padding: .3rem .45rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
/* Eintrag ohne Button (Sekretariat): Name bündig zu den übrigen Namen */
.team-item--admin .team-item__person { grid-column: 2; }
/* Inline-Symbol im Hinweissatz zum Team */
.hint-icon {
  vertical-align: -3px;
  margin: 0 1px;
  color: var(--c-primary);
}
/* Hinweis unter der Teamliste */
.team-hint {
  max-width: 760px;
  margin: 1.25rem auto 0;
  text-align: center;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--c-ink-soft);
}
.team-hint strong { color: var(--c-ink); }

.team-item__person h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 700;           /* Namen: Century Gothic dick */
}
.team-item__person .role {
  font-family: var(--f-sans);    /* Gleiche Schriftart wie quals (Arial) */
  font-weight: 400;              /* Gleiche Schwere (normal) */
  color: var(--c-ink-soft);      /* Gleiche Farbe */
  font-size: .95rem;             /* Gleiche Größe */
  margin: 0;                     /* Maximale Nähe zum Namen */
  line-height: 1.25;
}
.team-item__person .quals {
  font-family: var(--f-sans);    /* Abschlüsse: Arial */
  font-weight: 400;
  list-style: none;
  margin: .55rem 0 0;
  padding: 0;
  color: var(--c-ink-soft);
  font-size: .93rem;
  line-height: 1.5;
}
.team-item__person .quals li + li {
  margin-top: .2rem;
}

.team-item__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .25rem;
  font-size: .95rem;
  color: var(--c-ink-soft);
  white-space: nowrap;
  margin-top: 0.2rem;            /* Bündig mit Name */
}
.team-item__contact a {
  color: var(--c-ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.team-item__contact a:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

@media (max-width: 768px) {
  .team-item {
    grid-template-columns: 28px 1fr;
    padding: 1.25rem;
    gap: 0.5rem 1rem;
  }
  .team-item__person { grid-column: 2; }
  .team-item__contact {
    grid-column: 2;
    margin-top: 0.1rem;
    align-items: flex-start;
  }
}

/* ---------- Wegbeschreibung ---------- */
.weg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .weg-grid { grid-template-columns: 1fr; }
}
.weg-card h3 {
  color: var(--c-primary);
  margin-bottom: .6rem;
}
.weg-card p {
  margin: 0;
  color: var(--c-ink-soft);
}
.weg-note {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--c-ink);
  font-weight: 500;
}

/* ---------- Contact list ---------- */
/* Zwei unabhängige Spalten – links: Bürozeiten, Adresse · rechts: Telefon, Fax,
   E-Mail. Eigene Stacks, damit die hohe Adresse die rechte Spalte nicht versetzt. */
.contact-list {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  align-items: start;
}
.contact-col {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}
@media (max-width: 520px) {
  .contact-list { grid-template-columns: 1fr; gap: 1.25rem; }
}
.contact-list dt {
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: .25rem;
}
.contact-list dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--c-ink);
}
.contact-list a {
  font-weight: 500;
  text-decoration: none;
  color: var(--c-primary-2);
}
.contact-list a:hover { color: var(--c-accent); }
/* Kleiner Pfeil vor „Wegbeschreibung“ */
.weg-arrow {
  vertical-align: -2px;
  margin-right: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-bg);
  color: var(--c-ink-soft);
  border-top: 1px solid var(--c-line);
  padding: 1.75rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer .copy { margin: 0; font-size: .9rem; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a {
  color: var(--c-primary-2);
  font-size: .9rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.site-footer a:hover { color: var(--c-accent); border-color: var(--c-accent); }

/* ---------- A11y ---------- */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Wegbeschreibung Akkordeon-Styling */
.weg-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.weg-card {
  margin-bottom: 0;
  cursor: pointer;
}

.weg-card summary {
  list-style: none; /* Entfernt den Standard-Pfeil */
  outline: none;
}

.weg-card summary h3 {
  display: inline;
  margin-bottom: 0;
}

.weg-card summary::after {
  content: ' ▼';
  font-size: 0.8rem;
  color: var(--c-muted);
  float: right;
}

.weg-card[open] summary::after {
  content: ' ▲';
}

.weg-card p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
}
