/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --tx: #111;
  --soft: #6b7280;
  --bd: #e5e7eb;
  --bg: white;
  --white: #fff;
  --primary: #00a0ff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --blue: #1289ce;
}
html {
  font-size: 21px;
}
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--tx);
  background: var(--bg);
  line-height: 1.5;
}
a {
  color: inherit;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--bd);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo-full {
  height: 28px;
  width: auto;
  display: block;
}

.tnav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.tnav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--tx);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.tnav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tnav-toggle--open span:nth-child(2) { opacity: 0; }
.tnav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.tnav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

@media (max-width: 640px) {
  .logo-full { height: 22px; }
  .tnav-toggle { display: flex; }
  .tnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--bd);
    padding: 0.5rem 1rem 1rem;
    gap: 0.25rem;
    z-index: 99;
  }
  .tnav.tnav--open { display: flex; }
  .tbtn { padding: 0.625rem 0.75rem; font-size: 1rem; }
}
.tbtn {
  white-space: nowrap;
  padding: 0.375rem 0.25rem;
  border-radius: 10px;
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--soft);
  transition: background 0.15s, color 0.15s;
}
.tbtn:hover,
.tbtn.on {
  background: var(--bg);
  color: var(--tx);
}

.page {
  max-width: 720px;
  margin: 2rem auto 10rem;
  padding: 0 1.5rem;
}
.page-wide {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
.card-link {
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.ctitle {
  font-weight: 600;
  font-size: 0.9375rem;
}
.cdesc {
  font-size: 0.875rem;
  color: var(--soft);
}
.field {
  margin-bottom: 1rem;
}
.flabel {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}
.finput,
.fselect,
.ftextarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--bd);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--tx);
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
}
.fselect {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 10px 6px;
  cursor: pointer;
}
.fselect:focus {
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23111' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.finput:focus,
.ftextarea:focus {
  border-color: var(--primary);
}
.ftextarea {
  resize: vertical;
  min-height: 100px;
}
.tip-box {
  margin: 0;
}
.tip-toggle {
  font-size: 0.75rem;
  color: #9ca3af;
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}
.tip-toggle::-webkit-details-marker { display: none; }
.tip-toggle::before {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  font-size: 0.65rem;
  font-weight: 700;
  color: #9ca3af;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
details[open] .tip-toggle::before {
  background: #f3f4f6;
  border-color: #9ca3af;
}
.tip-field {
  margin-bottom: 0.35rem;
}
.tip-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  cursor: default;
  margin-bottom: 0;
}
.tip-field-header::-webkit-details-marker { display: none; }
.tip-field-header .flabel { margin-bottom: 0; }
.tip-field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1.5px solid #d1d5db;
  font-size: 0.65rem;
  font-weight: 700;
  color: #9ca3af;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
details[open] .tip-field-icon {
  background: #f3f4f6;
  border-color: #9ca3af;
}
.tip-list {
  margin: 0.35rem 0 0.5rem 0;
  padding: 0.6rem 0.75rem 0.6rem 1.75rem;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.75;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}
.fhelp {
  font-size: 0.8rem;
  color: var(--soft);
  margin-top: 0.3rem;
}
.ferr {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 0.3rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover {
  opacity: 0.85;
}
.btn-dark {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid transparent;
}
.btn-ghost {
  background: transparent;
  color: var(--soft);
  border: 1.5px solid var(--bd);
}
.btn-danger {
  background: var(--red);
  color: #fff;
  border: 1.5px solid transparent;
}
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}
.btn-full {
  width: 100%;
  justify-content: center;
}
.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.g3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.g4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) {
  .g2,
  .g3,
  .g4 {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 641px) and (max-width: 900px) {
  .g4 {
    grid-template-columns: 1fr 1fr;
  }
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-public {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}
.col-type-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.03em;
}
.col-type-icon svg {
  flex-shrink: 0;
}
.badge-active,
.badge-accepted {
  background: #dcfce7;
  color: #15803d;
}
.badge-pending {
  background: #fef3c7;
  color: #92400e;
}
.badge-routing {
  background: #dbeafe;
  color: var(--blue);
}
.badge-exhausted,
.badge-suspended {
  background: #fee2e2;
  color: #991b1b;
}
.badge-draft,
.badge-inactive,
.badge-archived {
  background: #f3f4f6;
  color: #6b7280;
}
.notice {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border: 2px dotted;
}
.n-info {
  background: #eff6ff;
  border-color: var(--blue);
  color: var(--blue);
}
.n-ok {
  background: #f0fdf4;
  border-color: var(--green);
  color: #166534;
}
.n-warn {
  background: #fffbeb;
  border-color: var(--amber);
  color: #92400e;
}
.n-err {
  background: #fef2f2;
  border-color: var(--red);
  color: #991b1b;
}
.flash {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  border-bottom: 1px solid transparent;
}
.flash-success {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}
.flash-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.flash-info {
  background: #eff6ff;
  color: var(--blue);
  border-color: #bfdbfe;
}
.flash-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fed7aa;
}
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--bd);
  margin-bottom: 1.5rem;
}
.tabb {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--soft);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  margin-bottom: -1px;
}
.tabb.on {
  color: var(--tx);
  border-bottom-color: var(--tx);
  font-weight: 500;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th {
  text-align: left;
  padding: 0.625rem 1rem;
  font-weight: 500;
  color: var(--soft);
  border-bottom: 1px solid var(--bd);
}
td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--bd);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: none;
}
.ph-title {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.ph-sub {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.lead {
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.25rem;
}
.sep {
  border: none;
  border-top: 1px solid var(--bd);
  margin: 1.5rem 0;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--bd);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--soft);
  margin-top: 0.2rem;
}
.stat-warn {
  border-color: #f5a623;
  background: #fffbf2;
}
.stat-warn .stat-num { color: #c47b00; }
.alert-warning {
  background: #fffbf2;
  border: 1px solid #f5a623;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.alert-warning-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .25rem;
}
.alert-warning-head svg { color: #c47b00; flex-shrink: 0; }
.row-unassigned td { background: #fffdf5; }
.badge-geo {
  display: inline-block;
  background: #eee;
  border-radius: 4px;
  padding: 0 .35rem;
  font-size: .7rem;
  font-family: monospace;
}
.finput-xs {
  height: 30px;
  padding: .2rem .5rem;
  font-size: .8rem;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: #fff;
}

/* ── Heading reset – sizing per class, not browser defaults ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

h1 {
  line-height: 1.2;
}

/* ── Page width variants ── */
.page--xs {
  max-width: 500px;
}
.page--sm {
  max-width: 580px;
}
.page--md {
  max-width: 600px;
}
.page--lg {
  max-width: 640px;
}
.pt-2 {
  padding-top: 2rem;
}
.pt-3 {
  padding-top: 3rem;
}
.tc {
  text-align: center;
}
.tl {
  text-align: left;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-05 {
  margin-bottom: 0.5rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-15 {
  margin-bottom: 1.5rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-75 {
  margin-top: 0.75rem;
}
.muted {
  color: var(--soft);
}
.muted-sm {
  font-size: 0.8125rem;
  color: var(--soft);
}
.muted-xs {
  font-size: 0.8rem;
  color: var(--soft);
}
.fw-500 {
  font-weight: 500;
}
.text-sm {
  font-size: 0.875rem;
}
.text-xs {
  font-size: 0.8rem;
}
.text-amber {
  color: #92400e;
}

/* ── Page structure ── */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.page-hero {
  text-align: center;
  margin-bottom: 2rem;
}
.page-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.back-link {
  font-size: 0.875rem;
  color: var(--soft);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}
.card-link {
  text-decoration: none;
  display: block;
}
.card-link:hover {
  opacity: 1;
}

/* ── Hero (home) ── */
.hero-intro {
  text-align: center;
  margin-bottom: 3rem;
}
.hero-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.hero-desc {
  font-size: 1rem;
  color: var(--soft);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 0 2px rgb(239, 235, 231), 0 1px 2px rgb(239, 235, 231), 0 0 4px rgba(239, 235, 231,1), 0 0 8px rgba(239, 235, 231,0.95), 0 1px 8px rgba(239, 235, 231,0.9), 0 0 16px rgba(239, 235, 231,0.8), 0 0 28px rgba(239, 235, 231,0.7), 0 0 40px rgba(239, 235, 231,0.5);
}

/* ── Hero Banner (Home) ── */
.hero-banner {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  min-height: 540px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  background: #f0ede8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-scene {
  position: absolute;
  inset: 0;
}
.hero-img-clean,
.hero-img-chaos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-img-chaos {
  animation: heroChaosOut 1.2s ease-in-out 2s forwards;
}
@keyframes heroChaosOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.hero-scene-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(239, 235, 231,0.9) 0%, rgba(239, 235, 231,0.4) 60%, transparent 100%);
}
.hero-intro {
  position: relative;
  z-index: 2;
  padding: 3rem 1rem 5rem;
}
.hero-overlap {
  position: relative;
  z-index: 2;
  margin-top: -1.5rem;
}

/* ── Chat-Input (Home) ── */
.chat-form {
  max-width: 560px;
  margin: 1.25rem auto 0;
}
.chat-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--bd);
  border-radius: 999px;
  padding: 0.45rem 0.45rem 0.45rem 1.25rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.chat-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 2px 14px rgba(0,160,255,0.12);
}
.chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
  min-width: 0;
}
.chat-input::placeholder {
  color: #aaa;
}
.chat-btn {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s;
}
.chat-btn:hover { opacity: 0.85; }

.feature-icon {
  font-size: 1.5rem;
  color: var(--primary);
}
.feature-title {
  font-weight: 500;
  margin: 0.4rem 0 0.2rem;
  font-size: 0.875rem;
}
.feature-desc {
  font-size: 0.8rem;
  color: var(--soft);
}

/* ── Card ── */
.card {
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  background: #fff;
  box-shadow: var(--shadow);
}

/* ── Card helpers ── */
.card--warn {
  border-color: #f59e0b;
  background: #fffbeb;
}
.card--pad {
  padding: 3rem;
}
.card--left {
  text-align: left;
}
.card-label {
  font-size: 0.8rem;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.card-title {
  font-weight: 600;
  margin-bottom: 1rem;
}
.card-title--sm {
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.card-cta {
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 500;
}
.card-warn-text {
  max-width: 400px;
  margin: 0 auto;
}

/* ── Geo-Sektion (innerhalb von Formularen) ── */
.geo-section {
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  background: #fafafa;
}
.geo-section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.opt-label {
  font-weight: 400;
  color: var(--soft);
  font-size: 0.85em;
}

/* ── Steps ── */
.step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.step:last-child {
  margin-bottom: 0;
}
.step-num {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}
.step-text {
  font-size: 0.875rem;
}

/* ── Step progress indicator (dots) ── */
.steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 0 0 1.75rem;
  padding: 0 6px;
}
.steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--bd);
  transform: translateY(-50%);
  z-index: 0;
}
.steps .step {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bd);
  border: 2px solid var(--white);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.steps .step.finish {
  background: var(--primary);
  border-color: var(--primary);
}
.steps .step.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(0, 160, 255, 0.2);
}

/* ── Step navigation ── */
.step-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.step-nav .btn-dark {
  flex: 1;
  justify-content: center;
}

/* ── Summary list ── */
.summary-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
  font-size: 0.875rem;
  margin: 0;
}
.summary-label {
  font-weight: 500;
  color: var(--soft);
  white-space: nowrap;
}
.summary-value {
  margin: 0;
  word-break: break-word;
}

/* ── Empty state ── */
.empty-icon {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.empty-title {
  font-weight: 500;
  margin-bottom: 0.375rem;
  font-size: 1rem;
}
.empty-desc {
  color: var(--soft);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* ── Notice size ── */
.notice--sm {
  font-size: 0.82rem;
}

/* ── Forms & actions ── */
.form-inline {
  display: contents;
}
.btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.checkbox-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.checkbox-row input[type=checkbox] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: normal;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.checkbox-row label::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--bd);
  flex-shrink: 0;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.checkbox-row label:hover::before {
  border-color: var(--primary);
}
.checkbox-row input[type=checkbox]:checked + label::before {
  border-color: var(--primary);
  background: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
}
.auth-links {
  text-align: center;
  margin-top: 1.25rem;
  font-size: small;
  color: var(--soft);
}
.input-disabled {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--bd);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--soft);
  background: var(--bg);
  cursor: not-allowed;
}
.fselect-xs {
  padding: 0.2rem 1.75rem 0.2rem 0.4rem;
  font-size: 0.75rem;
  width: auto;
  background-position: right 0.4rem center;
}

/* ── Offer gallery ── */
.offer-gallery {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -1.25rem -1.5rem 1rem;
  aspect-ratio: 16/9;
  background: var(--bd);
}
.offer-gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
}
.offer-gallery-img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.offer-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  z-index: 2;
}
.offer-gallery-btn--prev { left: 0.6rem; }
.offer-gallery-btn--next { right: 0.6rem; }
.offer-gallery-dots {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.offer-gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s;
}
.offer-gallery-dot.active {
  background: #fff;
}

/* ── Offer list (Sammlung/Anbieter) ── */
.offer-body {
  display: flex;
  gap: 1.5rem;
}
.offer-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--bd);
  flex-shrink: 0;
}
.offer-detail {
  flex: 1;
  min-width: 0;
}
.offer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.offer-deadline {
  font-size: 0.75rem;
  color: var(--soft);
  text-align: right;
  flex-shrink: 0;
}
.offer-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--soft);
  margin-bottom: 0.75rem;
}
.offer-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Collection selector ── */
.col-search-wrap {
  position: relative;
}
.col-search-input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--bd);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--tx);
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
}
.col-search-input:focus {
  border-color: var(--primary);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}
.col-search-input.open {
  border-color: var(--primary);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.col-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% - 1px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--primary);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.1);
}
.col-dropdown-item {
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  border-bottom: 1px solid var(--bd);
}
.col-dropdown-item:last-child {
  border-bottom: none;
}
.col-dropdown-item:hover {
  background: var(--bg);
}
.col-dropdown-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--tx);
  margin-bottom: 0.1rem;
}
.col-dropdown-loc {
  font-size: 0.8rem;
  color: var(--soft);
}
.col-selected {
  display: none;
  margin-top: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.col-selected--green {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
}
.col-selected--blue {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  color: var(--blue);
}
.col-search-hint {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--soft);
  line-height: 1.5;
}
.col-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--soft);
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0;
}
.col-clear:hover {
  color: var(--tx);
}
.col-dropdown-item .col-type-icon {
  pointer-events: none;
}

/* ── Custom Radio Buttons ── */
.fradio-group > div {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.fradio-group > div:last-child {
  margin-bottom: 0;
}
.fradio-group input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.fradio-group label {
  display: flex;
  align-items: start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.9375rem;
  padding: 0.2rem 0;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
  line-height: 1.4;
  font-weight: normal;
  margin: 0;
}
.fradio-group label::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 5px;
  border: 2px solid var(--bd);
  flex-shrink: 0;
  background: #fff;
}
.fradio-group label:hover {
  border-color: var(--primary);
}
.fradio-group label:hover::before {
  border-color: var(--primary);
}
.fradio-group input[type=radio]:checked + label {
  border-color: var(--primary);
}
.fradio-group input[type=radio]:checked + label::before {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px #fff;
}

/* ── Custom Checkboxes ── */
.fcheck-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0.25rem;
}
.fcheck-label {
  display: flex;
  align-items: start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.9375rem;
  padding: 0.2rem 0;
  line-height: 1.4;
  font-weight: normal;
  margin: 0;
  transition: color 0.15s;
}
.fcheck-label input[type=checkbox] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.fcheck-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  margin-top: 2px;
  border: 2px solid var(--bd);
  flex-shrink: 0;
  background: #fff;
  transition: border-color 0.15s, background 0.15s;
}
.fcheck-label:hover::before {
  border-color: var(--primary);
}
.fcheck-label:has(input:checked)::before {
  border-color: var(--primary);
  background: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
}

/* ── Photo Upload Zone ── */
.photo-drop {
  border: 2px dashed var(--bd);
  border-radius: var(--radius);
  background: #eef6ff;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.photo-drop:hover,
.photo-drop.dragover {
  border-color: var(--primary);
  background: #dbeeff;
}
.photo-drop-icon {
  color: #b8ccde;
  margin-bottom: 0.5rem;
}
.photo-drop-label {
  font-size: 0.9rem;
  color: var(--soft);
}
.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.photo-preview-item {
  position: relative;
  aspect-ratio: 4/3;
}
.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--bd);
  display: block;
}
.photo-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.8rem;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

/* ── Footer ── */
.site-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}
.footer-logo {
  height: 18px;
  width: auto;
  display: block;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--soft);
}
.footer-link {
  font-size: 0.75rem;
  color: var(--soft);
  text-decoration: none;
}
.footer-link:hover {
  color: var(--tx);
}

/* ── Legal pages ── */
.legal-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-list {
  padding-left: 1.25rem;
  line-height: 1.8;
}
