/* HammerDate - Grundlayout und Komponenten (Struktur ohne Farben).
   Die Farben liegen in theme-dark.css / theme-light.css, weil IE11 keine
   CSS-Variablen kennt. */

/* ---------- Reset ---------- */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, em, img, small, strong,
b, i, ol, ul, li, form, label, legend, table, caption, tbody, tfoot, thead,
tr, th, td, article, aside, canvas, figure, figcaption, footer, header,
menu, nav, output, section, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
*, *:before, *:after { box-sizing: inherit; }
ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Typo ---------- */
body {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
h1 { font-size: 2.25rem; line-height: 1.15; font-weight: 700; }
h2 { font-size: 1.6rem; line-height: 1.2; font-weight: 700; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; }
p { margin-bottom: 1rem; }
a { color: inherit; text-decoration: none; }
small { font-size: 0.82rem; }
strong { font-weight: 600; }
hr { border-top: 1px solid; margin: 1.5rem 0; }
:focus { outline: 2px solid; outline-offset: 2px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 520px; }
.container-mid { max-width: 780px; }

.row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}
.col { padding-left: 12px; padding-right: 12px; width: 100%; }
.col-6 { width: 50%; float: left; }
.col-4 { width: 33.3333%; float: left; }
.col-3 { width: 25%; float: left; }
.col-8 { width: 66.6666%; float: left; }
.col-9 { width: 75%; float: left; }

@media (min-width: 768px) {
  .col-md-9 { width: 75%; float: left; }
  .col-md-8 { width: 66.6666%; float: left; }
  .col-md-7 { width: 58.3333%; float: left; }
  .col-md-6 { width: 50%; float: left; }
  .col-md-5 { width: 41.6666%; float: left; }
  .col-md-4 { width: 33.3333%; float: left; }
  .col-md-3 { width: 25%; float: left; }
  .col-md-2 { width: 16.6666%; float: left; }
}
@media (max-width: 767px) {
  .col-6, .col-4, .col-3, .col-8, .col-9,
  .col-md-9, .col-md-8, .col-md-7, .col-md-6, .col-md-5, .col-md-4, .col-md-3, .col-md-2 {
    width: 100%; float: none;
  }
}

/* ---------- Kopfzeile / Navigation ---------- */
.site-header { position: relative; z-index: 500; border-bottom: 1px solid; }
.header-inner {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.brand-mark {
  display: inline-block;
  width: 30px; height: 30px;
  margin-right: 9px;
  border-radius: 50% 50% 50% 6px;
  font-size: 15px;
  line-height: 30px;
  text-align: center;
}
.brand-tagline { font-size: 0.8rem; font-weight: 400; display: block; margin-top: -4px; }

.nav { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; }
.nav-list {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.nav-item { display: block; padding: 8px 12px; border-radius: 8px; font-size: 0.95rem; }
.nav-item:hover { background: rgba(255, 45, 111, 0.12); }
.nav-toggle { display: none; background: none; border: 1px solid; border-radius: 8px; padding: 6px 10px; cursor: pointer; }

/* ---------- Sprachumschalter ---------- */
.lang-switch { display: block; margin-left: 10px; }
.lang-switch-select {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
}
.lang-switch-select:focus { outline: 2px solid #ff2d6f; outline-offset: 2px; }
.lang-switch-select option { color: #1a1523; background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; border-radius: 8px; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: #ff2d6f; color: #fff; }
.btn-primary:hover { background: #ff5288; }
.btn-ghost { background: transparent; border-color: #ff2d6f; color: #ff2d6f; }
.btn-ghost:hover { background: rgba(255, 45, 111, 0.12); }
.btn-quiet { background: transparent; border-color: #6b5570; color: #b193c4; }
.btn-quiet:hover { background: rgba(255, 255, 255, 0.06); }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Formulare ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 0.8rem; margin-top: 5px; }
/* Beschriftung einer Auswahlgruppe (kein Formularfeld, deshalb keine label-Element). */
.field-label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: inherit;
}
.textarea { min-height: 120px; resize: vertical; }
.select { height: 44px; }
.field-error { font-size: 0.82rem; margin-top: 5px; }
.form-grid { margin: 0 -8px; }
.form-grid .field { padding: 0 8px; }
.checkbox, .radio { display: block; font-weight: 400; margin-bottom: 8px; font-size: 0.95rem; }
.checkbox input, .radio input { margin-right: 8px; vertical-align: middle; }
.choice-group { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -6px 14px; }
.choice {
  display: inline-block;
  margin: 0 6px 10px;
  padding: 8px 14px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice.is-checked { border-color: #ff2d6f; background: rgba(255, 45, 111, 0.14); color: #ff7aa8; }

/* ---------- Swipe-Deck ---------- */
.deck { position: relative; max-width: 420px; margin: 0 auto; min-height: 500px; }
.deck-card {
  position: relative;
  border: 1px solid #6f5b78;
  border-radius: 18px;
  overflow: hidden;
  background: #1a0d24;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  cursor: grab;
  -ms-touch-action: none;
  touch-action: none;
  user-select: none;
  -ms-user-select: none;
}
.deck-photo { height: 400px; background: #2a1636; }
.deck-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.deck-photo .placeholder {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  -ms-flex-pack: center; justify-content: center;
  height: 100%;
  font-size: 2.4rem;
  color: #ffd0e0;
}
.deck-info { padding: 14px 16px 18px; }
.deck-name { font-size: 1.3rem; font-weight: 700; }
.deck-meta { font-size: 0.9rem; margin-top: 2px; }
.deck-headline { margin-top: 8px; }
.deck-tags { margin-top: 8px; }
.deck-more { margin-top: 12px; }
.deck-stamp {
  position: absolute;
  top: 18px;
  padding: 8px 14px;
  border: 3px solid;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
}
.deck-stamp-like { left: 16px; color: #4fd68c; border-color: #4fd68c; -ms-transform: rotate(-12deg); transform: rotate(-12deg); }
.deck-stamp-no { right: 16px; color: #ff8fb3; border-color: #ff8fb3; -ms-transform: rotate(12deg); transform: rotate(12deg); }
.deck-actions { max-width: 420px; margin: 18px auto 0; text-align: center; }
.deck-actions .btn { margin: 0 5px; }
.deck-actions .deck-no { min-width: 92px; }
.deck-actions .deck-like { min-width: 132px; }
.deck-empty { text-align: center; padding: 40px 20px; }
.deck-empty .btn { margin-top: 14px; }
.deck-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(11, 5, 16, 0.93);
  z-index: 3000;
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  -ms-flex-pack: center; justify-content: center;
  padding: 20px;
}
.deck-overlay-box {
  background: #1a0d24;
  border: 1px solid #6f5b78;
  border-radius: 16px;
  padding: 26px;
  max-width: 420px;
  text-align: center;
}
.deck-overlay-actions .btn { margin: 8px 5px; }

/* ---------- Anklickbare Auswahl (Chips) ---------- */
.chip-picker { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -5px 12px; }
.chip {
  display: inline-block;
  margin: 0 5px 8px;
  padding: 7px 13px;
  border: 1px solid #6f5b78;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #d9c6e2;
  font-size: 0.88rem;
  font-family: inherit;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.chip:hover { border-color: #ff2d6f; }
.chip:focus { outline: 2px solid #ff2d6f; outline-offset: 1px; }
.chip.is-active { border-color: #ff2d6f; background: rgba(255, 45, 111, 0.16); color: #ff8fb3; }
.chip-picker + .form-inline { margin-top: 2px; }
/* Die Auswahl muss sichtbar sein - sonst ist der Klick nicht erkennbar. */
.chip-summary { margin: 2px 0 10px; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-align: center; align-items: center; }
.chip-summary .chip-summary-label { font-size: 0.82rem; color: #b9a3c6; margin-right: 8px; }
.chip-summary .chip-summary-label.is-empty { font-style: italic; }
.chip-summary .tag { margin: 0 6px 4px 0; }
.chip-picker.is-scroll { max-height: 190px; overflow-y: auto; padding-right: 4px; }

/* Auswahl als Liste (Laender, Groesse) - eine Zeile je Eintrag. */
.chip-picker.is-list {
  display: -ms-flexbox; display: flex;
  -ms-flex-direction: column; flex-direction: column;
  margin: 0 0 4px;
}
.chip-list {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  margin: 0 0 6px;
  border: 1px solid #6f5b78;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
}
.chip-list:hover { border-color: #ff2d6f; }
.chip-list:focus { outline: 2px solid #ff2d6f; outline-offset: 1px; }
.chip-list.is-active { border-color: #ff2d6f; background: rgba(255, 45, 111, 0.16); color: #ff8fb3; }

/* Auswahl mit echten Kaestchen (Haken) - Interessen, sexuelle Vorlieben. */
.chip-picker.is-check { display: block; margin: 0 0 4px; }
.chip-check {
  display: block;
  padding: 8px 10px;
  margin: 0 0 6px;
  border: 1px solid #6f5b78;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}
.chip-check:hover { border-color: #ff2d6f; }
.chip-check.is-active { border-color: #ff2d6f; background: rgba(255, 45, 111, 0.16); color: #ff8fb3; }
.chip-check input { margin-right: 10px; vertical-align: middle; }
.chip-check-label { vertical-align: middle; }
.form-inline { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-align: center; align-items: center; }
.form-inline .input { -ms-flex: 1 1 180px; flex: 1 1 180px; margin-right: 8px; margin-bottom: 8px; }
.form-inline .btn { margin-bottom: 8px; }
.form-message { padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 0.92rem; }
.form-message.is-error { background: rgba(255, 90, 90, 0.14); border: 1px solid rgba(255, 90, 90, 0.4); }
.form-message.is-ok { background: rgba(60, 200, 120, 0.12); border: 1px solid rgba(60, 200, 120, 0.4); }
.form-message.is-info { background: rgba(90, 160, 255, 0.12); border: 1px solid rgba(90, 160, 255, 0.4); }

/* ---------- Karten / Panels ---------- */
.card {
  border: 1px solid;
  border-radius: 16px;
  background: #1a0d24;
  overflow: hidden;
}
.card-pad { padding: 20px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid; }
.panel { border: 1px solid; border-radius: 14px; padding: 18px; background: #1a0d24; }
.stack > * + * { margin-top: 14px; }
.muted { color: #b193c4; }
.small { font-size: 0.85rem; }
.center { text-align: center; }

/* ---------- Profilkarten ---------- */
.member-grid { margin: 0 -10px; }
.member-card {
  width: 50%;
  float: left;
  padding: 10px;
}
.member-photo {
  width: 100%;
  height: 260px;
  border-radius: 14px;
  background: #2a1636;
  position: relative;
  overflow: hidden;
}
.member-photo img { width: 100%; height: 100%; }
.member-photo .placeholder {
  width: 100%; height: 100%;
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  -ms-flex-pack: center; justify-content: center;
  font-size: 2.4rem; font-weight: 700; opacity: 0.55;
}
.member-body { padding: 12px 4px 4px; }
.member-name { font-size: 1.05rem; font-weight: 700; }
.member-meta { font-size: 0.85rem; margin-top: 2px; }
.member-foot { display: -ms-flexbox; display: flex; -ms-flex-pack: justify; justify-content: space-between; margin-top: 8px; }

/* ---------- Liste blockierter Mitglieder ---------- */
.block-row {
  display: -ms-flexbox; display: flex;
  -ms-flex-align: center; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.block-row:last-child { border-bottom: 0; }
.block-row .member-photo {
  width: 56px; height: 56px;
  border-radius: 12px;
  margin-right: 12px;
  flex: 0 0 auto;
}
.block-info { flex: 1 1 auto; min-width: 0; }
.block-info strong { display: block; }

/* ---------- Fortschrittsbalken (Profil-Vollstaendigkeit) ---------- */
.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2d6f, #ff8ab2);
}
.checkliste { margin: 0; padding-left: 18px; }
.checkliste li { margin-bottom: 6px; }
.checkliste a { color: #ff8ab2; }

/* ---------- Einwilligungen (Art. 7 DSGVO) ---------- */
.einwilligungen { margin: 0; padding: 0; list-style: none; }
.einwilligung {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.einwilligung:last-child { border-bottom: none; }
.einwilligung-kopf { margin-bottom: 2px; }
.tag-art9 {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #b193c4;
  color: #b193c4;
  font-size: 0.75rem;
  vertical-align: middle;
}
.einwilligung .btn { margin-top: 6px; }

@media (min-width: 640px) { .member-card { width: 33.3333%; } }
@media (min-width: 960px) { .member-card { width: 25%; } }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.badge-verified { background: rgba(60, 200, 120, 0.16); color: #4fd68c; border: 1px solid rgba(60, 200, 120, 0.4); }
.badge-online { background: rgba(90, 160, 255, 0.16); color: #6fa8ff; border: 1px solid rgba(90, 160, 255, 0.4); }
.badge-distance { background: rgba(255, 200, 87, 0.15); color: #ffc857; border: 1px solid rgba(255, 200, 87, 0.35); }
.badge-free { background: rgba(255, 255, 255, 0.08); color: #b193c4; border: 1px solid rgba(255, 255, 255, 0.14); }
.badge-match { background: rgba(255, 45, 111, 0.16); color: #ff8ab2; border: 1px solid rgba(255, 45, 111, 0.4); }

/* ---------- Passgenauigkeit ---------- */
.match-box {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
.match-reasons { margin: 8px 0 0 18px; padding: 0; }
.deck-match { margin-top: 8px; }

/* ---------- Startseite ---------- */
.hero { padding: 60px 0 40px; }
.hero h1 { max-width: 640px; }
.hero-lead { font-size: 1.1rem; max-width: 560px; }
.hero-actions { margin-top: 24px; }
.feature-grid { margin: 0 -10px; }
.feature {
  width: 50%;
  float: left;
  padding: 10px;
}
.feature-inner { border: 1px solid; border-radius: 14px; padding: 18px; height: 100%; }
.feature h3 { margin-bottom: 6px; }
@media (min-width: 720px) { .feature { width: 25%; } }
.cat-list { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -6px; }
.cat-pill { margin: 0 6px 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid; font-size: 0.9rem; }

/* ---------- Suche + Karte ---------- */
.search-layout { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -12px; }
.search-side { width: 100%; padding: 0 12px; }
.search-main { width: 100%; padding: 0 12px; }
@media (min-width: 900px) {
  .search-side { width: 300px; float: left; }
  .search-main { width: 66.6666%; float: left; }
}
.map-canvas { height: 480px; border-radius: 14px; overflow: hidden; border: 1px solid; }
.map-canvas-short { height: 320px; }
.map-legend { font-size: 0.8rem; margin-top: 8px; }
.map-toolbar {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-wrap: wrap;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.map-toolbar .btn-sm { margin: 0; }
.map-toolbar #map-hint { margin-left: auto; }
.map-handle {
  background: #ff2d6f;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.map-handle-center { background: #ff2d6f; }
.map-center-icon {
  background: #ff2d6f;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.leaflet-container { font-family: inherit; }
/* Ortsvorschlaege unter dem Suchfeld */
.place-list { list-style: none; margin: 0; padding: 0; }
.place-list li { margin: 0 0 4px; }
.place-link {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 4px 0;
  text-align: left;
  text-decoration: underline;
  width: 100%;
}
.place-link:hover { color: #ff2d6f; }
.place-list li:last-child { margin-bottom: 0; }
.filter-row { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; margin-bottom: 12px; }
.filter-row label {
  width: 148px;
  padding-right: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
}
.filter-row .input, .filter-row .select { flex: 1 1 auto; }
.range-row { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; }
.range-row input[type="range"] { width: 100%; }

/* ---------- Tabelle (Admin) ---------- */
.table { width: 100%; font-size: 0.9rem; }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid; text-align: left; vertical-align: top; }
.table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.4px; opacity: 0.75; }
.table-scroll { overflow-x: auto; }

/* ---------- Toast ---------- */
.toast-host { position: fixed; right: 16px; bottom: 16px; z-index: 2000; max-width: 320px; }
.toast {
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 10px;
  border: 1px solid;
  font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.toast-info { background: #1d2a44; border-color: #2f4a7a; color: #cfe0ff; }
.toast-ok { background: #12351f; border-color: #1f6b3c; color: #b6f2cf; }
.toast-error { background: #3a1520; border-color: #7a2740; color: #ffc9d6; }
.toast-out { opacity: 0; transition: opacity 0.3s ease; }

/* ---------- Footer ---------- */
.site-footer { padding: 30px 0; margin-top: 50px; border-top: 1px solid; }
.footer-inner { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-pack: justify; justify-content: space-between; }
.footer-links a { margin-right: 16px; font-size: 0.88rem; }

/* ---------- Auth-Seiten ---------- */
.auth-wrap { max-width: 460px; margin: 40px auto; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head .brand { -ms-flex-pack: center; justify-content: center; margin-bottom: 8px; }
.tabs { display: -ms-flexbox; display: flex; border-bottom: 1px solid; margin-bottom: 20px; }
.tab { padding: 10px 16px; cursor: pointer; font-size: 0.95rem; font-weight: 600; border-bottom: 2px solid transparent; }
.tab.is-active { border-bottom-color: #ff2d6f; }

/* ---------- Detailansicht ---------- */
.profile-hero { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.profile-photo { width: 100%; padding-right: 12px; }
.profile-photo .member-photo { height: 380px; }
@media (min-width: 720px) { .profile-photo { width: 38%; } }
.profile-info { width: 100%; padding-right: 12px; }
@media (min-width: 720px) { .profile-info { width: 62%; } }
.tag-list { margin: 0 -5px; }
.tag { display: inline-block; margin: 0 5px 7px; padding: 5px 11px; border-radius: 8px; border: 1px solid; font-size: 0.85rem; }
.info-grid { margin: 0 -8px; }
.info-item { width: 50%; float: left; padding: 8px; }
.info-item span { display: block; font-size: 0.78rem; opacity: 0.72; }
.info-item strong { font-size: 0.95rem; font-weight: 600; }

/* ---------- Barrierefreiheit ---------- */
/* Skip-Link: nur sichtbar, wenn er den Fokus bekommt. Damit springen
   Tastatur- und Screenreader-Nutzer direkt an den Inhalt. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 4000;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  background: #ff2d6f;
  color: #ffffff;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Fuer Screenreader sichtbar, optisch versteckt (Beschriftungen). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Der Hauptbereich wird per Tastatur angesprungen - dafuer kein Rahmen. */
[tabindex="-1"]:focus { outline: none; }

/* Tabs sind Schaltflaechen und sehen aus wie Buttons. */
.tab {
  background: none;
  border: 0;
  font-family: inherit;
  text-align: left;
}
button.tab { cursor: pointer; }

/* Weniger Bewegung, wenn das Betriebssystem das so einstellt. */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-list {
    display: none;
    width: 100%;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-top: 10px;
  }
  .nav-list.is-open { display: -ms-flexbox; display: flex; }
  .header-inner { -ms-flex-wrap: wrap; flex-wrap: wrap; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.35rem; }
  .map-canvas { height: 360px; }
}

/* ---------- Sicherheitshinweis gegen Abzock-Muster ---------- */
/* Die Farben stehen in den Theme-Dateien (theme-dark.css / theme-light.css),
   damit der a11y-Pruefer beide Farbschemata messen kann. Hier nur der
   Aufbau. border-style/border-width statt border, weil die Kurzform
   border die Rahmenfarbe der Theme-Datei zuruecksetzen wuerde. */
.safety-hint-bar { margin-bottom: 12px; }
.safety-hint {
  border-style: solid;
  border-width: 1px;
  border-left-width: 4px;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.safety-hint-title { font-size: 0.95rem; font-weight: 700; margin: 0 0 6px; }
.safety-hint-list { list-style: disc; padding-left: 20px; margin: 0 0 6px; }
.safety-hint-list li { margin: 0 0 3px; }
.safety-hint-list li:last-child { margin-bottom: 0; }
.safety-hint-note { margin: 0; }
