:root {
  /* DDV-NR brand tokens — mirrored from
     Web/apps/ddv-nr/src/styles/global.css. Navy is primary; the orange
     accent is secondary (used for highlights, not main CTAs). */
  --brand-primary: #0c1f3d;
  --brand-primary-700: #173258;
  --brand-primary-100: #e6ecf3;
  --brand-on-primary: #ffffff;
  --brand-on-dark-soft: #b8c2d1;
  --brand-accent: #c84208;
  --brand-accent-hover: #a8370a;
  --brand-foreground: #0f1623;
  --brand-muted: #4a5568;
  --brand-line: #e2e6ec;
  --brand-surface-soft: #f7f8fa;

  /* Legacy aliases — kept so existing rules don't need a sweep.
     `--orange` still maps to the brand accent; it's no longer the
     primary action colour. */
  --orange: var(--brand-accent);
  --orange-hover: var(--brand-accent-hover);
  --orange-soft: rgba(200, 66, 8, 0.1);
  --blue: #009de0;
  --blue-deep: #007ab0;
  --blue-soft: rgba(0, 157, 224, 0.12);
  --ink: var(--brand-foreground);
  --body: var(--brand-muted);
  --muted: #8a8a8a;
  --line: var(--brand-line);
  --bg: #ffffff;
  --bg-soft: var(--brand-surface-soft);
  --card-shadow: 0 1px 2px rgba(17, 17, 17, 0.04),
    0 8px 30px rgba(17, 17, 17, 0.06);
  /* rounded-md (0.375rem = 6px) per DDV-NR brand button spec. The 16/10px
     pills the Suchportal shipped with were not on-brand. */
  --radius: 12px;
  --radius-sm: 6px;
  --gap: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration-color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--orange);
}

/* ===================== MENU (consolidated home) ===================== */

.home {
  background: var(--bg);
}

.menu {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.menu__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.menu__title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 12px 0 14px;
  line-height: 1.1;
}

.menu__title .accent {
  color: var(--orange);
}

.menu__lede {
  font-size: 17px;
  color: var(--body);
  margin: 0;
  line-height: 1.5;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.menu-card {
  position: relative;
  display: block;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 28px 28px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.05s ease;
  min-height: 180px;
}

.menu-card:hover {
  border-color: var(--orange);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04),
    0 12px 28px rgba(242, 92, 42, 0.1);
}

.menu-card:active {
  transform: translateY(1px);
}

.menu-card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.menu-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(242, 92, 42, 0.1);
  color: var(--orange);
  margin-bottom: 16px;
}

.menu-card__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.menu-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.25;
}

.menu-card__desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin: 0;
  padding-right: 24px;
}

.menu-card__arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  font-size: 20px;
  color: var(--orange);
  transition: transform 0.15s ease;
}

.menu-card:hover .menu-card__arrow {
  transform: translateX(4px);
}

/* ===================== FEATURE VIEW ===================== */

.view {
  background: var(--bg);
}

.view__header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.view__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-primary);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-on-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(12, 31, 61, 0.18);
  transition: background-color 0.15s ease, transform 0.05s ease,
    box-shadow 0.15s ease;
}

.back-btn:hover {
  background: var(--brand-primary-700);
  box-shadow: 0 4px 12px rgba(12, 31, 61, 0.28);
}

.back-btn:active {
  transform: translateY(1px);
}

.back-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.back-btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 14px;
  line-height: 1;
}

.view__frames {
  position: relative;
}

.view__frame {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}

.view__frame[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .menu {
    padding: 36px 18px 60px;
  }
  .menu__header {
    margin-bottom: 28px;
  }
  .menu__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .menu-card {
    padding: 22px;
    min-height: 0;
  }
  .menu-card__desc {
    padding-right: 20px;
  }
  .view__header {
    padding: 14px 16px;
    gap: 14px;
  }
  .view__title {
    font-size: 14px;
  }
  .back-btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}

/* ===================== HERO ===================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px;
}

.hero__copy {
  min-width: 0;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin: 0 0 18px;
  text-transform: uppercase;
}

.headline {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 24px;
}

.headline .accent {
  color: var(--orange);
}

.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 28px;
  max-width: 46ch;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0 20px;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.bullets--horizontal li,
.bullets--footer li {
  position: relative;
  padding-left: 18px;
}

.bullets--horizontal li::before,
.bullets--footer li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%);
}

.bullets--footer {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink);
  gap: 28px;
}

/* ===================== SEARCH CARD ===================== */

.search-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 32px;
  min-width: 0;
}

.search-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.search-card__rule {
  display: inline-block;
  width: 28px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
}

.search-card__header h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.field input,
.field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23555'><path d='M5.5 7.5l4.5 5 4.5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 40px;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 92, 42, 0.15);
}

.field input::placeholder {
  color: var(--muted);
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
  margin-top: 6px;
}

.btn-primary:hover {
  background: var(--brand-primary-700);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary[disabled] {
  background: #6b7a93;
  cursor: progress;
}

/* ===================== RESULTS ===================== */

.results {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.results__header {
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.results__header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.results__meta {
  margin: 0;
  color: var(--body);
  font-size: 14px;
}

.results__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.result-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.result-card:hover {
  border-color: rgba(242, 92, 42, 0.4);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04),
    0 8px 30px rgba(17, 17, 17, 0.05);
}

.result-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

.result-card__distance {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  background: rgba(242, 92, 42, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

.result-card__address {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin: 0;
}

.result-card__description {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin: 0;
  white-space: pre-line;
}

.result-card__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-card__contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.result-card__contact a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.result-card__contact-email {
  color: var(--ink);
}

.result-card__contact-note {
  color: var(--body);
  font-size: 14px;
  white-space: pre-line;
}


.result-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--body);
  border: 1px solid var(--line);
}

.badge--zvdh {
  background: var(--blue-soft);
  color: var(--blue-deep);
  border-color: transparent;
}

.results__empty,
.results__error {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--body);
  font-size: 15px;
}

.results__error {
  border-color: rgba(242, 92, 42, 0.3);
  color: var(--orange);
}

.skeleton-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 160px;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* ===================== FOOTER ===================== */

.page-footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 24px 32px 40px;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px;
  }
  .search-card {
    padding: 24px;
  }
  .results {
    padding: 0 24px 60px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 28px 18px;
    gap: 24px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .bullets--horizontal {
    gap: 14px;
  }
  .results {
    padding: 0 18px 48px;
  }
}

/* ===================== DDV-NR SITE CHROME ===================== */
/* Faithful re-skin of the main site's topbar + header + footer.
   Lives on every standalone Suchportal page. When iframed by index.html,
   .in-iframe is set on <body> by an inline <head> script and the chrome
   is suppressed (otherwise it doubles up under the hub's chrome). */

.site-topbar {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  font-size: 12px;
}
.site-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-topbar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}
.site-topbar a {
  color: var(--brand-on-primary);
  text-decoration: none;
}
.site-topbar a:hover {
  color: var(--brand-on-dark-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--brand-line);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-primary);
  text-decoration: none;
}
.site-brand img {
  width: 36px;
  height: 28px;
  object-fit: contain;
}
.site-brand__lines {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.site-brand__title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--brand-primary);
}
.site-brand__sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary-700);
}
.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-accent);
  color: var(--brand-on-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.site-header__cta:hover {
  background: var(--brand-accent-hover);
  color: var(--brand-on-primary);
}

.site-footer {
  margin-top: 64px;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}
.site-footer a {
  color: var(--brand-on-primary);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--brand-on-dark-soft);
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}
.site-footer__col h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-on-dark-soft);
  margin: 0 0 12px;
}
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.site-footer__brand img {
  width: 44px;
  height: 34px;
  object-fit: contain;
}
.site-footer__brand .site-brand__title {
  color: var(--brand-on-primary);
  font-size: 16px;
}
.site-footer__brand .site-brand__sub {
  color: var(--brand-on-dark-soft);
  font-size: 11px;
}
.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 24px 28px;
  font-size: 12px;
  color: var(--brand-on-dark-soft);
  text-align: center;
}

@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
  .site-topbar__inner {
    padding: 6px 16px;
  }
  .site-header__inner {
    padding: 10px 16px;
  }
  .site-header__cta {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* When loaded inside the hub's iframe, suppress chrome to avoid doubling.
   The .in-iframe class is added before paint by an inline <head> script. */
html.in-iframe .site-topbar,
html.in-iframe .site-header,
html.in-iframe .site-footer {
  display: none !important;
}
