/* ifs Netzwerk – look of the public list and detail page, taken from the relaunch branch 006-next
   (Resources/Public/Css/netzwerk.css there) without photo, status and self-service.
   Loaded by Templates/Therapeuten/List.html and Show.html only, after the site's app.css. On 006-next the
   full file of that branch replaces this one. */

.tx-therapeutenliste {
  --nw-green: #297d31;
  --nw-green-dark: #1e5e25;
  --nw-green-soft: #ecf3ec;
  --nw-line: #dcdfe3;
  --nw-surface: #f6f7f5;
  --nw-muted: #5f6670;
  --nw-radius: 8px;
  margin-bottom: 2.5rem;
}
.tx-therapeutenliste h2 { margin-bottom: .35rem; }
/* padding/border/weight/colour: the site CSS styles every h3 in a content frame (.frame-default h3) */
.tx-therapeutenliste h3 { font-size: 1.15rem; margin: 0 0 .6rem; padding-bottom: 0; border-bottom: 0; font-weight: 400; color: inherit; }
/* font-weight: therapeuten-management.css (self-service, loaded on every page) sets ".button { font-weight: 600 }" */
.tx-therapeutenliste .button { margin: 0; border-radius: 4px; font-weight: 400; }
.tx-therapeutenliste .button.hollow { border-color: var(--nw-green); color: var(--nw-green); }
.tx-therapeutenliste .button.hollow:hover, .tx-therapeutenliste .button.hollow:focus { background: var(--nw-green-soft); }
.tx-therapeutenliste a:focus-visible, .tx-therapeutenliste .button:focus-visible { outline: 2px solid var(--nw-green); outline-offset: 2px; }

/* ---------- list ---------- */
/* the page's intro text belongs to the list, not to a single entry */
.main-content:has(.netzwerk-entry) > .frame-type-text { display: none; }

.netzwerk-filter {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem;
  background: var(--nw-surface); border: 1px solid var(--nw-line); border-radius: var(--nw-radius);
  padding: 1rem 1.25rem; margin: 1.5rem 0 1rem;
}
/* f:form puts its hidden fields in a <div> at the start of the form. As a flex item it moved "Name" to the right
   by the gap whenever both fit into one line (about 420–460px wide); hidden inputs are sent anyway. */
.netzwerk-filter > div:not([class]) { display: none; }
.netzwerk-filter label { font-size: .85rem; font-weight: 600; color: #333; }
.netzwerk-filter input, .netzwerk-filter select { margin: 0; min-width: 9rem; font-size: 1rem; color: #1f2328; }
.netzwerk-filter input { height: 2.6rem; }
.netzwerk-filter select { height: auto; min-height: 2.6rem; padding-block: .45rem; line-height: 1.35; }
.netzwerk-filter__field--name { flex: 1 1 16rem; }
.netzwerk-filter .button { height: 2.6rem; padding-inline: 1.5rem; }

.netzwerk-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; margin: 0 0 1rem; }
.netzwerk-count { margin: 0; color: var(--nw-muted); }
.netzwerk-count strong { color: #222; }
.netzwerk-sort { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .9rem; color: var(--nw-muted); }
.netzwerk-sort a { padding: .2rem .7rem; border: 1px solid var(--nw-line); border-radius: 999px; color: #333; text-decoration: none; }
.netzwerk-sort a:hover { border-color: var(--nw-green); color: var(--nw-green); }
.netzwerk-sort a.is-active { background: var(--nw-green); border-color: var(--nw-green); color: #fff; }

.netzwerk-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.netzwerk-card {
  position: relative; display: flex; flex-direction: column; gap: .25rem;
  background: #fff; border: 1px solid var(--nw-line); border-left: 4px solid var(--nw-green); border-radius: var(--nw-radius);
  padding: 1rem 1.15rem; transition: box-shadow .15s ease, border-color .15s ease;
}
.netzwerk-card:hover, .netzwerk-card:focus-within { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); border-color: var(--nw-green); }
.netzwerk-card__name { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.netzwerk-card__name a { color: #1f2328; text-decoration: none; }
/* whole card clickable through the name link */
.netzwerk-card__name a::after { content: ""; position: absolute; inset: 0; }
.netzwerk-card__name a:hover { color: var(--nw-green); }
.netzwerk-card__place, .netzwerk-card__phone { margin: 0; color: var(--nw-muted); font-size: .95rem; }
.netzwerk-card__more { margin-top: auto; padding-top: .5rem; align-self: flex-end; font-size: .9rem; font-weight: 600; color: var(--nw-green); }

.netzwerk-tags { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.netzwerk-tags li { background: var(--nw-green-soft); color: var(--nw-green-dark); border-radius: .75rem; padding: .1rem .6rem; font-size: .8rem; line-height: 1.5; }

.netzwerk-pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.75rem 0 0; }
/* "‹ zurück", "Seite 2 von 15" and "weiter ›" each on one line (they wrapped on phones) */
.netzwerk-pagination > * { white-space: nowrap; }
.netzwerk-pagination .disabled { opacity: .35; pointer-events: none; }
.netzwerk-pagination__info { color: var(--nw-muted); }
.netzwerk-empty { background: var(--nw-surface); border-radius: var(--nw-radius); padding: 1.25rem; }

/* ---------- detail ---------- */
.netzwerk-back { margin: 1rem 0 .75rem; font-weight: 600; }
.netzwerk-back a { text-decoration: none; }
.netzwerk-back--bottom { margin-top: 2rem; }
.netzwerk-icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.netzwerk-profile { background: #fff; border: 1px solid var(--nw-line); border-top: 4px solid var(--nw-green); border-radius: var(--nw-radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.netzwerk-profile h2 { margin: 0; line-height: 1.2; }
.netzwerk-profile__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: .4rem 0 0; color: var(--nw-muted); }
.netzwerk-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.netzwerk-actions .button { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; padding: .6rem 1rem; }

.netzwerk-entry__layout { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 1.5rem; align-items: start; }
.netzwerk-entry__main { grid-column: 1; grid-row: 1; min-width: 0; container-type: inline-size; }
.netzwerk-contact { grid-column: 2; grid-row: 1; position: sticky; top: 1rem; background: var(--nw-surface); border: 1px solid var(--nw-line); border-radius: var(--nw-radius); padding: 1.15rem 1.25rem; }
.netzwerk-contact h3 { font-size: 1.05rem; }
.netzwerk-contact address { font-style: normal; margin-bottom: .75rem; }
.netzwerk-contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.netzwerk-contact__list li { overflow-wrap: anywhere; }
.netzwerk-contact__list span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--nw-muted); }

.netzwerk-card { background: #fff; border: 1px solid var(--nw-line); border-radius: var(--nw-radius); padding: 1rem 1.25rem 1.1rem; min-width: 0; }
.netzwerk-card h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; color: var(--nw-green-dark); margin: 0 0 .75rem; }
.netzwerk-card h3 .netzwerk-icon { color: var(--nw-green); width: 1.25em; height: 1.25em; }
.netzwerk-card--glance { margin-bottom: 1rem; }
.netzwerk-card__label { font-size: .82rem; color: var(--nw-muted); margin: .75rem 0 .3rem; }
.netzwerk-card h3 + .netzwerk-card__label { margin-top: 0; }
.netzwerk-card__text { margin: 0; overflow-wrap: anywhere; }
.netzwerk-card .netzwerk-tags { margin-top: 0; }
.netzwerk-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 1rem; align-items: start; }
/* long free text reads better across the full width */
.netzwerk-card--context, .netzwerk-card--qualifications { grid-column: 1 / -1; }
.netzwerk-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.netzwerk-checks li { display: flex; gap: .5rem; align-items: flex-start; line-height: 1.4; }
.netzwerk-icon--check { color: var(--nw-green); stroke-width: 2.4; margin-top: .15em; }
.netzwerk-checks + .netzwerk-card__label { margin-top: 1rem; }

@media (max-width: 47.99em) {
  .netzwerk-entry__layout { grid-template-columns: 1fr; gap: 1rem; }
  .netzwerk-contact { grid-column: 1; grid-row: 1; position: static; }
  .netzwerk-contact__list { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .6rem 1.5rem; }
  .netzwerk-entry__main { grid-row: 2; }
  .netzwerk-actions .button { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 40em) {
  .netzwerk-profile h2 { font-size: 1.6rem; line-height: 1.25; }
  .netzwerk-profile { padding: 1rem 1.1rem; }
  .netzwerk-filter .button { width: 100%; }
  .netzwerk-pagination { gap: .5rem; font-size: .9rem; }
  .netzwerk-pagination .button { padding: .7em .8em; }
}
