/* HDC Städtetreffen: pages under /cities/. Builds on HDC Wissen (wissen.css) and wears the colours of
   humandesignclub.com: violet, deep night violet as in the footer, gold. They hold inside main.hdc-st only. */
body.hdc-st { background: #FBFAFE; }
main.hdc-st {
  --st-ink: #2A1650;
  --st-text: #3D3D3D;
  --st-akzent: #7F56D9;
  --st-akzent-dunkel: #6A40CF;
  --st-nacht: #1C1640;
  --st-gold: #F2C97D;
  --st-zart: #EFE8FC;
  --st-line: #E3D8F7;
  --st-soft: #F4F0FC;
  --st-karte: #FFFFFF;
  --st-leise: #5B5B66;
  --st-schatten: 42, 22, 80;
  --st-head: var(--w-head, system-ui, sans-serif);
  /* what HDC Wissen draws inside (headings, buttons) takes the same colours */
  --w-ink: var(--st-ink);
  --w-text: var(--st-text);
  --w-violet: var(--st-akzent);
  --w-violet-dark: var(--st-akzent-dunkel);
  --w-line: var(--st-line);
  --w-soft-bg: var(--st-soft);
  max-width: var(--w-wide, 1140px);
  margin: 0 auto;
  padding: 28px 20px 72px;
  /* the floated city picture stays inside, so the footer never slides beside it */
  display: flow-root;
  color: var(--st-text);
}
.hdc-st *, .hdc-st *::before, .hdc-st *::after { box-sizing: border-box; }
.hdc-st [hidden] { display: none !important; }

/* On our pages the header "Human Design Club Cities" stands alone: the site header is not shown (this file loads only
   here). The empty header#top stays as the target of "Nach oben". */
.hdc-w-header > * { display: none !important; }

/* Header "Human Design Club Cities": night violet of the site footer, real photos of the cities fading in from the
   right with their names, the links and the account on a glass pill. */
.hdc-st-leiste {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  min-height: 184px;
  margin: 0 0 48px;
  padding: 18px 18px 26px 28px;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(70% 130% at 0% 100%, rgba(127, 86, 217, 0.5) 0%, transparent 62%), var(--st-nacht);
  box-shadow: 0 28px 56px -32px rgba(28, 22, 64, 0.7);
  color: #FFFFFF;
  font-family: var(--st-head);
}
.hdc-st-stadtfotos { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; left: 36%; display: flex; gap: 3px; }
/* the photos come in out of the night violet, their names stay readable */
.hdc-st-stadtfotos::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 15%; background: linear-gradient(90deg, var(--st-nacht) 0%, rgba(28, 22, 64, 0) 100%); pointer-events: none; }
.hdc-st-stadtfoto { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; }
.hdc-st-leiste .hdc-st-stadtfoto-bild { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hdc-st-stadtfoto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 22, 64, 0.62) 0%, rgba(28, 22, 64, 0.08) 42%, rgba(28, 22, 64, 0.1) 60%, rgba(28, 22, 64, 0.82) 100%); }
.hdc-st-stadtfoto-name { position: absolute; z-index: 2; left: 12px; bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: #FFFFFF; text-shadow: 0 1px 8px rgba(28, 22, 64, 0.6); }
.hdc-st-logo { display: inline-flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.hdc-st-zeichen { flex: none; display: block; width: 56px; height: 56px; filter: drop-shadow(0 10px 22px rgba(127, 86, 217, 0.55)); }
.hdc-st-logo-text { display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.hdc-st-logo-text span { font-size: 15px; font-weight: 600; line-height: 1.1; color: rgba(255, 255, 255, 0.72); }
.hdc-st-logo-text strong { font-size: 44px; font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; color: #FFFFFF; }
.hdc-st-leiste-rechts { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 100px; background: rgba(28, 22, 64, 0.5); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); }
.hdc-st-leiste .hdc-st-logo { grid-column: 1; grid-row: 1; }
.hdc-st-links { display: flex; gap: 2px; }
.hdc-st-links a { padding: 9px 16px; border-radius: 100px; color: rgba(255, 255, 255, 0.9); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, color 160ms ease; }
.hdc-st-links a[aria-current="page"] { background: #FFFFFF; color: var(--st-ink); }
@media (hover: hover) and (pointer: fine) { .hdc-st-links a:not([aria-current]):hover { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; } }
.hdc-st-leiste .hdc-st-wer { margin-left: 4px; padding: 9px 20px; border-radius: 100px; background: var(--st-gold); color: var(--st-nacht); font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, transform 160ms var(--w-ease, ease); }
.hdc-st-wer:active { transform: scale(0.97); }
.hdc-st-leiste .hdc-st-wer { display: inline-flex; align-items: center; gap: 8px; }
.hdc-st-wer-bild { display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin: -4px 0 -4px -12px; overflow: hidden; border-radius: 50%; background: var(--st-nacht); color: var(--st-gold); font-size: 13px; font-weight: 800; line-height: 1; }
.hdc-st-wer-bild img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .hdc-st-leiste .hdc-st-wer:hover { background: #F6D898; } }
.hdc-st-leiste a:focus-visible { outline: 2px solid var(--st-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hdc-st-links a, .hdc-st-wer { transition: none; } }
@media (max-width: 760px) {
  .hdc-st-leiste { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 10px; min-height: 0; margin-bottom: 32px; padding: 16px 14px 14px; border-radius: 20px; }
  .hdc-st-stadtfotos { left: 0; gap: 2px; }
  .hdc-st-stadtfotos::before { display: none; }
  .hdc-st-stadtfotos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 22, 64, 0.45) 0%, rgba(28, 22, 64, 0.88) 100%); }
  .hdc-st-stadtfoto-name { display: none; }
  .hdc-st-logo { gap: 12px; min-width: 0; }
  .hdc-st-zeichen { width: 44px; height: 44px; }
  .hdc-st-logo-text span { font-size: 12.5px; }
  .hdc-st-logo-text strong { font-size: 32px; }
  .hdc-st-leiste-rechts { display: contents; }
  .hdc-st-leiste .hdc-st-wer { grid-column: 2; grid-row: 1; align-self: center; margin: 0; padding: 8px 16px; font-size: 14px; }
  .hdc-st-links { grid-column: 1 / -1; grid-row: 2; min-width: 0; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 100px; background: rgba(28, 22, 64, 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .hdc-st-links a { flex: 1 1 auto; padding: 8px 4px; text-align: center; font-size: 14px; }
}

.hdc-st-kopf { margin: 0 0 28px; }
.hdc-st-ueber { margin: 0 0 6px; color: var(--st-akzent); font-family: var(--st-head); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hdc-st-ueber a { color: inherit; }
.hdc-st-einleitung { max-width: 640px; margin: 0; font-size: 18px; line-height: 1.5; }
.hdc-st-hinweis { margin: 12px 0 0; font-size: 15px; color: var(--st-leise); }

.hdc-st-abschnitt { margin: 48px 0 0; }
.hdc-st-abschnitt h2 { font-size: 24px; }
.hdc-st-leer { padding: 20px 24px; border-radius: 16px; background: var(--st-soft); }

.hdc-st-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hdc-st-eintrag a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--st-karte); color: var(--st-text); transition: border-color 160ms ease, transform 160ms ease; }
@media (hover: hover) and (pointer: fine) { .hdc-st-eintrag a:hover { border-color: var(--st-akzent); transform: translateY(-2px); } }
.hdc-st-karte-bild { width: calc(100% + 40px); height: 140px; margin: -20px -20px 8px; object-fit: cover; border-radius: 16px 16px 0 0; }
.hdc-st-wann { color: var(--st-akzent); font-family: var(--st-head); font-size: 14px; font-weight: 700; }
.hdc-st-was { color: var(--st-ink); font-family: var(--st-head); font-size: 18px; font-weight: 800; line-height: 1.25; }
.hdc-st-wo { font-size: 15px; }
.hdc-st-marke { align-self: flex-start; padding: 2px 10px; border-radius: 100px; background: #FDE8E8; color: #9B1C1C; font-size: 13px; font-weight: 700; }
.hdc-st-eintrag.ist-abgesagt .hdc-st-was { text-decoration: line-through; }
.hdc-st-vorbei .hdc-st-eintrag a { opacity: 0.75; }

/* Cities as cards in poster format (3:4): the featured image, or a drawn poster in a colour of its own (--ton). */
.hdc-st-abschnitt-erst { margin-top: 36px; }
.hdc-st-staedte { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.hdc-st-stadtkarte a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--st-line); border-radius: 18px; background: var(--st-karte); color: var(--st-text); text-decoration: none; box-shadow: 0 10px 24px -20px rgba(var(--st-schatten), 0.5); transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .hdc-st-stadtkarte a:hover { border-color: var(--st-akzent); transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(var(--st-schatten), 0.55); }
  .hdc-st-stadtkarte a:hover .hdc-st-cover-bild { transform: scale(1.03); }
}
.hdc-st-stadtkarte a:focus-visible { outline: 2px solid var(--st-akzent); outline-offset: 3px; }
.hdc-st-cover { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #EFE6D2; }
.hdc-st-cover-bild { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.hdc-st-cover.ist-gezeichnet { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 16px 28px; background: radial-gradient(circle at 25% 18%, rgba(242, 201, 125, 0.28) 0%, transparent 55%), linear-gradient(160deg, #9B7BEA 0%, #4B2A9E 100%); color: #FFFFFF; }
.hdc-st-cover-name { max-width: 100%; font-family: var(--st-head); font-size: 30px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.05; text-align: center; text-transform: uppercase; overflow-wrap: anywhere; }
.hdc-st-cover-zeichen { width: 34%; max-width: 72px; height: auto; margin-bottom: 18%; filter: drop-shadow(0 6px 14px rgba(20, 8, 50, 0.3)); }
.hdc-st-nur-vorlesen { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hdc-st-stadt-fuss { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; font-family: var(--st-head); font-size: 14px; font-weight: 700; }
.hdc-st-termine { padding: 4px 11px; border-radius: 100px; background: var(--st-soft); color: var(--st-leise); font-size: 13px; white-space: nowrap; }
.hdc-st-termine.hat-termine { background: var(--st-akzent); color: #FFFFFF; }
.hdc-st-zur-stadt { color: var(--st-akzent); white-space: nowrap; }
@media (max-width: 560px) {
  .hdc-st-staedte { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hdc-st-stadtkarte a { border-radius: 14px; }
  .hdc-st-stadt-fuss { padding: 9px 10px; }
  .hdc-st-termine { padding: 3px 8px; font-size: 12px; }
  .hdc-st-zur-stadt { display: none; }
  .hdc-st-cover-name { font-size: 22px; }
}
.hdc-st-fehlt { padding: 28px; border-radius: 16px; background: var(--st-soft); }
.hdc-st-fehlt p { max-width: 560px; }

.hdc-st-karte { margin: 0 0 8px; border-radius: 16px; overflow: hidden; background: var(--st-soft); }
.hdc-st-karte-platz { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 220px; padding: 24px; text-align: center; font-size: 14px; }
.hdc-st-karte-platz p { margin: 0; }
.hdc-st-karte-platz label { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; }
.hdc-st-karte-flaeche { height: 360px; }
.hdc-st .leaflet-container a { color: var(--st-akzent); }

.hdc-st-stadt-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 18px 0 0; }
.hdc-st-mitglieder { font-weight: 600; }
.hdc-st-whatsapp { padding: 10px 20px; border-radius: 100px; background: #E7F8EE; color: #146C3A !important; font-family: var(--st-head); font-weight: 700; }
.hdc-st-bild { margin: 0 0 24px; }
.hdc-st-bild img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 16px; }
/* The poster of a city stands upright beside the text, never cropped. */
.hdc-st-plakat { float: right; width: min(36%, 340px); margin: 0 0 24px 32px; }
.hdc-st-plakat img { max-height: none; aspect-ratio: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 18px 40px -24px rgba(var(--st-schatten), 0.6); }
@media (max-width: 720px) { .hdc-st-plakat { float: none; width: 100%; max-width: 420px; margin: 0 auto 24px; } }
.hdc-st-text { max-width: 720px; margin: 24px 0; font-size: 17px; line-height: 1.6; }

.hdc-st-abgesagt { margin: 0 0 20px; padding: 14px 20px; border-radius: 12px; background: #FDE8E8; color: #9B1C1C; }
.hdc-st-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) { .hdc-st-raster { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .hdc-st-seite { position: sticky; top: 24px; } }
.hdc-st-eckdaten { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; padding: 20px 24px; border-radius: 16px; background: var(--st-soft); }
.hdc-st-eckdaten dt { color: var(--st-ink); font-family: var(--st-head); font-weight: 800; }
.hdc-st-eckdaten dd { margin: 0; }

.hdc-st-zusage, .hdc-st-gast { padding: 24px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--st-karte); }
.hdc-st-gast { margin-top: 16px; }
.hdc-st-zusage h2, .hdc-st-gast h2 { font-size: 20px; }
.hdc-st-zusage h3 { margin-top: 20px; font-size: 16px; }
.hdc-st-knoepfe { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; }
.hdc-st-knoepfe button { width: 100%; cursor: pointer; border: 0; }
.hdc-st-knoepfe button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--st-line); }
.hdc-st-knoepfe button:disabled { opacity: 0.5; cursor: not-allowed; }
.hdc-st-knopf-zwei, .hdc-st-knopf-gefahr { display: inline-block; padding: 11px 24px; border: 1px solid var(--st-line); border-radius: 100px; background: var(--st-karte); color: var(--st-ink); font-family: var(--st-head); font-size: 14.4px; font-weight: 700; cursor: pointer; }
.hdc-st-knopf-zwei[aria-pressed="true"] { border-color: var(--st-akzent); color: var(--st-akzent); }
.hdc-st-knopf-gefahr { border-color: #F5C2C2; color: #9B1C1C; }
.hdc-st-meldung { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #FFF6E5; }
.hdc-st-adresse { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--st-zart); }
.hdc-st-adresse h3 { margin-top: 0; }
.hdc-st-adresse p { margin: 0; }
.hdc-st-leute ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hdc-st-leute li { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.hdc-st-leute img, .hdc-st-kreis { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.hdc-st-kreis { display: flex; align-items: center; justify-content: center; background: var(--st-zart); color: var(--st-akzent); font-weight: 800; }
.hdc-st-leute small { color: var(--st-leise); }
.hdc-st-person { display: flex; align-items: center; gap: 10px; margin: 0; }
.hdc-st-person img { border-radius: 50%; object-fit: cover; }
.hdc-st-kalender { margin: 16px 0 0; font-weight: 700; }

/* The page classes also sit on <body>, so this rule names main's children: the header keeps the full width of the
   other pages, the account stays a readable 760 px column in the middle under it (Ibrahim, 05.12.2026: „mittig bitte“). */
main.hdc-st-konto > :not(.hdc-st-leiste) { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Account page (Ibrahim, 05.12.2026: tabs instead of long lists). The city photos of the header become the cover,
   the member's card sits on its lower edge: photo in a ring of violet and gold, name, Human Design, then the tabs. */
main.hdc-st-konto > .hdc-st-leiste { min-height: 236px; margin-bottom: 0; padding-bottom: 92px; }
/* the card covers the lower edge, where the city names stand: here the photos go without them */
main.hdc-st-konto .hdc-st-stadtfoto-name { display: none; }
.hdc-st-ich { position: relative; z-index: 1; margin-top: -64px; border: 1px solid var(--st-line); border-radius: 24px; background: var(--st-karte); box-shadow: 0 32px 64px -40px rgba(var(--st-schatten), 0.5); }
.hdc-st-ich-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 24px; align-items: end; padding: 0 32px 24px; }
.hdc-st-ich-bild { position: relative; margin-top: -52px; }
.hdc-st-ich-kreis { display: block; width: 124px; height: 124px; padding: 4px; border-radius: 50%; background: conic-gradient(from 210deg, var(--st-gold), #C9B3F5, var(--st-akzent), #4B2A9E, var(--st-gold)); box-shadow: 0 18px 36px -20px rgba(var(--st-schatten), 0.8); }
.hdc-st-ich-kreis img, .hdc-st-ich-buchstabe { display: grid; place-items: center; width: 100%; height: 100%; max-width: none; border: 4px solid #FFFFFF; border-radius: 50%; object-fit: cover; }
.hdc-st-ich-buchstabe { background: linear-gradient(160deg, #9B7BEA 0%, #4B2A9E 100%); color: #FFFFFF; font-family: var(--st-head); font-size: 46px; font-weight: 800; line-height: 1; }
.hdc-st-ich-kreis.ist-am-laden { animation: hdc-st-puls 1.2s ease-in-out infinite; }
@keyframes hdc-st-puls { 50% { opacity: 0.5; } }
.hdc-st-ich-foto { margin: 0; }
.hdc-st-ich-kamera { position: absolute; right: 0; bottom: 6px; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; border: 3px solid #FFFFFF; border-radius: 50%; background: var(--st-nacht); color: #FFFFFF; cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--w-ease, ease); }
.hdc-st-ich-kamera:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .hdc-st-ich-kamera:hover { background: var(--st-akzent); } }
.hdc-st-ich-foto:focus-within .hdc-st-ich-kamera { outline: 2px solid var(--st-akzent); outline-offset: 2px; }
.hdc-st-ich-text { min-width: 0; padding-top: 20px; }
.hdc-st-ich-name { margin: 0; color: var(--st-ink); font-family: var(--st-head); font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.hdc-st-ich-unter { margin: 6px 0 0; color: var(--st-leise); font-size: 15px; }
.hdc-st-ich-marken { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.hdc-st-ich-marken li { padding: 5px 12px; border-radius: 100px; background: var(--st-zart); color: var(--st-ink); font-family: var(--st-head); font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.hdc-st-ich-marken li.ist-gold { background: var(--st-gold); color: var(--st-nacht); }
.hdc-st-ich-marken li.ist-ort { background: transparent; box-shadow: inset 0 0 0 1px var(--st-line); color: var(--st-leise); }
.hdc-st-ich-fotostand { margin: 10px 0 0; color: var(--st-leise); font-size: 14px; }
.hdc-st-ich-fotofehler { margin: 8px 0 0; }
.hdc-st-ich-fotofehler:empty { display: none; }

.hdc-st-reiter { border-top: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line); }
.hdc-st-reiter [role="tablist"] { display: flex; gap: 4px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.hdc-st-reiter [role="tablist"]::-webkit-scrollbar { display: none; }
.hdc-st-reiter [role="tab"] { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 17px 12px 16px; border: 0; background: none; color: var(--st-leise); font-family: var(--st-head); font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color 160ms ease; }
.hdc-st-reiter [role="tab"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--st-akzent); transform: scaleX(0); transition: transform 220ms var(--w-ease, ease); }
.hdc-st-reiter [role="tab"][aria-selected="true"] { color: var(--st-ink); }
.hdc-st-reiter [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .hdc-st-reiter [role="tab"]:hover { color: var(--st-ink); } }
.hdc-st-reiter [role="tab"]:focus-visible { outline: 2px solid var(--st-akzent); outline-offset: -6px; border-radius: 10px; }
.hdc-st-reiter-zahl { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 100px; background: var(--st-gold); color: var(--st-nacht); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }

/* a floor for the height, so the footer does not jump up and down between short and long tabs */
.hdc-st-ich-inhalt { padding: 30px 32px 34px; }
.hdc-st-reiter:not([hidden]) + .hdc-st-ich-inhalt { min-height: 420px; }
/* signed out there are no tabs: a line still parts the card from the form */
.hdc-st-reiter[hidden] + .hdc-st-ich-inhalt { border-top: 1px solid var(--st-line); }
.hdc-st-ich .hdc-st-block { margin: 0; padding: 0; border: 0; border-radius: 0; }
.hdc-st-ich .hdc-st-meldung, .hdc-st-ich .hdc-st-erledigt { margin: 0 0 22px; }
.hdc-st-ich .hdc-st-abbestellen { margin: 0 0 24px; padding: 18px 20px; border-radius: 16px; background: var(--st-soft); }
.hdc-st-ich .hdc-st-abbestellen p { margin: 0; }
.hdc-st-laden { margin: 0; color: var(--st-leise); }
.hdc-st-tafel h2 { margin: 0 0 6px; font-size: 22px; }
.hdc-st-tafel-text { max-width: 62ch; margin: 0 0 6px; color: var(--st-leise); }
.hdc-st-tafel > form { margin-top: 22px; }
.hdc-st-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 26px 0 0; }
.hdc-st-ich .hdc-st-fuss button { margin: 0; }
.hdc-st-fuss-oben { margin: 18px 0 8px; }

.hdc-st-block { margin: 0 0 24px; padding: 24px; border: 1px solid var(--st-line); border-radius: 16px; }
.hdc-st-block h2 { font-size: 20px; }
.hdc-st-block label { display: block; margin: 0 0 6px; color: var(--st-ink); font-family: var(--st-head); font-size: 14px; font-weight: 700; }
.hdc-st-block input[type="email"], .hdc-st-block input:not([type]), .hdc-st-block select, .hdc-st-block textarea, .hdc-st-block input[type="datetime-local"], .hdc-st-block input[type="time"], .hdc-st-block input[type="date"], .hdc-st-block input[type="number"], .hdc-st-block input[type="url"] { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #D6CCEB; border-radius: 12px; background: #FFFFFF; color: var(--st-ink); font: inherit; transition: border-color 160ms ease, box-shadow 160ms ease; }
.hdc-st-block input:focus, .hdc-st-block select:focus, .hdc-st-block textarea:focus { border-color: var(--st-akzent); outline: none; box-shadow: 0 0 0 4px rgba(127, 86, 217, 0.16); }
.hdc-st-block input[type="file"] { margin: 0 0 12px; font: inherit; }
.hdc-st-block button { margin-top: 12px; }
.hdc-st-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.hdc-st-felder p { margin: 0 0 4px; }
.hdc-st-felder-zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hdc-st-felder-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hdc-st-feld-breit { grid-column: 1 / -1; }
.hdc-st-hd { margin: 14px 0 0; padding: 18px 18px 8px; border: 0; border-radius: 16px; background: var(--st-soft); }
.hdc-st-hd legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; color: var(--st-ink); font-family: var(--st-head); font-size: 15px; font-weight: 800; }
.hdc-st-hd legend + * { clear: both; }
.hdc-st-fehler { display: block; min-height: 1.2em; color: #9B1C1C; font-size: 13.5px; }
.hdc-st-zustimmung { margin: 20px 0 0; padding: 16px 18px; border-radius: 16px; background: #FFF8EA; }
.hdc-st-zustimmung label { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--st-text); font-family: inherit; font-size: 15px; font-weight: 400; }
.hdc-st-zustimmung input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--st-akzent); }
.hdc-st-block .hdc-st-hinweis a, .hdc-st-zustimmung a { color: var(--st-akzent); font-weight: 700; }

/* mails as switches in two groups; every switch saves at once */
.hdc-st-mails { margin: 22px 0 0; padding: 0; border: 0; }
.hdc-st-mails legend { margin: 0 0 4px; padding: 0; color: var(--st-ink); font-family: var(--st-head); font-size: 15px; font-weight: 800; }
.hdc-st-block .hdc-st-schalter { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 14px 2px; border-bottom: 1px solid var(--st-line); color: var(--st-text); font-family: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer; }
.hdc-st-schalter:last-child { border-bottom: 0; }
.hdc-st-schalter input { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 46px; height: 28px; margin: 0; border-radius: 100px; background: #D9D3E6; cursor: pointer; transition: background-color 180ms ease; }
.hdc-st-schalter input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(28, 22, 64, 0.3); transition: transform 200ms var(--w-ease, ease); }
.hdc-st-schalter input:checked { background: var(--st-akzent); }
.hdc-st-schalter input:checked::before { transform: translateX(18px); }
.hdc-st-schalter input:disabled { opacity: 0.45; cursor: not-allowed; }
.hdc-st-schalter input:focus-visible { outline: 2px solid var(--st-akzent); outline-offset: 3px; }
.hdc-st-still { min-height: 1.4em; margin: 14px 0 0; color: #146C3A; font-size: 14px; font-weight: 700; }

.hdc-st-zeile { display: flex; gap: 10px; }
.hdc-st-zeile input { flex: 1 1 auto; }
.hdc-st-block .hdc-st-zeile button { flex: none; margin: 0; }
.hdc-st-antraege { margin: 18px 0 0; padding: 12px 16px 12px 34px; border-radius: 12px; background: var(--st-soft); }
[data-hdc-gg-nur-neu] .hdc-st-hinweis { display: block; margin: 4px 0 0; }
.hdc-st-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hdc-st-erledigt { margin: 0 0 24px; padding: 14px 20px; border-radius: 12px; background: #E7F8EE; color: #146C3A; }
.hdc-st-gehen .hdc-st-knopf-zwei { margin-top: 18px; }
.hdc-st-loeschen { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--st-line); }
.hdc-st-loeschen summary { color: #9B1C1C; font-family: var(--st-head); font-weight: 700; cursor: pointer; }
.hdc-st-loeschen p { max-width: 62ch; }

@media (max-width: 760px) {
  main.hdc-st-konto > .hdc-st-leiste { min-height: 0; padding-bottom: 74px; }
  .hdc-st-ich { margin-top: -26px; border-radius: 20px; }
  .hdc-st-ich-kopf { grid-template-columns: minmax(0, 1fr); padding: 0 20px 20px; }
  .hdc-st-ich-bild { justify-self: start; margin-top: -38px; }
  .hdc-st-ich-kreis { width: 92px; height: 92px; }
  .hdc-st-ich-buchstabe { font-size: 34px; }
  .hdc-st-ich-kamera { width: 34px; height: 34px; right: -4px; bottom: 0; }
  .hdc-st-ich-text { padding-top: 12px; }
  /* more tabs to the right: the row fades out at its edge */
  .hdc-st-reiter [role="tablist"] { padding: 0 8px; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .hdc-st-reiter [role="tablist"].ist-am-ende { -webkit-mask-image: none; mask-image: none; }
  .hdc-st-reiter [role="tab"] { padding: 15px 10px 14px; font-size: 14.5px; }
  .hdc-st-ich-inhalt { padding: 24px 20px 28px; }
  .hdc-st-reiter:not([hidden]) + .hdc-st-ich-inhalt { min-height: 320px; }
  .hdc-st-felder-zwei, .hdc-st-felder-drei { grid-template-columns: minmax(0, 1fr); }
  .hdc-st-zeile { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .hdc-st-reiter [role="tab"], .hdc-st-reiter [role="tab"]::after, .hdc-st-schalter input, .hdc-st-schalter input::before, .hdc-st-ich-kamera, .hdc-st-block input, .hdc-st-block select, .hdc-st-block textarea { transition: none; }
  .hdc-st-ich-kreis.ist-am-laden { animation: none; opacity: 0.6; }
}

.hdc-st-kopf-einfach { padding: 16px 20px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { .hdc-st-eintrag a { transition: none; } }

/* host part of the account page */
.hdc-st-gg-stadt { margin: 16px 0 0; }
.hdc-st-gg-stadt h3 { margin: 0 0 8px; font-size: 18px; }
.hdc-st-gg-treffen, .hdc-st-gg-leute { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.hdc-st-gg-eintrag { padding: 14px 16px; border-radius: 12px; background: var(--st-soft); }
.hdc-st-gg-eintrag.ist-vorbei { opacity: 0.7; }
.hdc-st-gg-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; }
.hdc-st-gg-kopf strong { color: var(--st-ink); font-family: var(--st-head); }
.hdc-st-gg-status { padding: 2px 10px; border-radius: 100px; background: #FFF6E5; font-size: 13px; font-weight: 700; }
.hdc-st-gg-status.ist-frei { background: #E7F8EE; color: #146C3A; }
.hdc-st-gg-status.ist-abgesagt { background: #FDE8E8; color: #9B1C1C; }
.hdc-st-gg-eintrag .hdc-st-hinweis { margin: 6px 0 0; }
.hdc-st-gg-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; }
.hdc-st-gg-knoepfe .hdc-st-knopf-zwei, .hdc-st-gg-leute .hdc-st-knopf-zwei { margin: 0; padding: 6px 16px; font-size: 13.5px; }
.hdc-st-gg-form { margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--st-line); }
.hdc-st-ortsart { margin: 8px 0 12px; padding: 0; border: 0; }
.hdc-st-ortsart legend { margin: 0 0 8px; color: var(--st-ink); font-weight: 700; }
.hdc-st-ortsart label, .hdc-st-haken { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--st-text) !important; }
.hdc-st-gg-zusagen { margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--st-line); }
.hdc-st-gg-leute li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; border-radius: 12px; background: var(--st-soft); }
.hdc-st-gg-leute li span { flex: 1 1 200px; font-size: 14px; }
.hdc-st-gg-absage { margin: 12px 0 0; }
.hdc-st-gg-absage label { display: block; font-weight: 700; }
.hdc-st-gg-absage .hdc-st-knopf-gefahr { margin: 8px 8px 0 0; }
