/* Startseite: Suchfeld wie bei den großen Portalen, Schnellwege, Services, Bewertung.
   Farben und Schriften aus portal.css (:root). Grün nur für die kleinen Etiketten. */
:root { --frisch: #3ccf9e; --frisch-text: #05301f; --haken: #1d6b47; }

.symbol { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.etikett-gruen { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--frisch); color: var(--frisch-text); font-family: var(--sans); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.4; white-space: nowrap; }

/* Bild oben: das Auswahlfeld liegt über den folgenden Abschnitten */
.held--start { z-index: 3; }
.held--start .wrap { padding-bottom: clamp(28px, 5vw, 56px); }

/* Suchfeld */
.schnell { position: relative; margin-top: 30px; max-width: 940px; color: var(--text); }
.schnell__zeile { position: relative; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 7px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.schnell__frei { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 54px; padding-inline: 18px 8px; border-radius: 999px; }
.schnell__frei:focus-within { box-shadow: inset 0 0 0 2px var(--ziegel); }
.schnell__funke { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ziegel); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.schnell__frei input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; font-weight: 600; padding: 8px 0; outline: none; -webkit-appearance: none; appearance: none; }
.schnell__frei input::placeholder { color: #6b7480; font-weight: 500; }
.schnell__frei input::-webkit-search-cancel-button { cursor: pointer; }
.schnell__los { min-height: 54px; border-radius: 999px; padding-inline: 26px; }
.schnell__hilfe { margin-top: 12px; padding-inline: 20px; font-size: 14px; color: rgba(255, 255, 255, .88); }

/* Auswahl „Wonach suchst du?“ */
.suchwahl { flex: none; }
.suchwahl__knopf { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding-inline: 18px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--nacht); cursor: pointer; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.suchwahl__knopf::-webkit-details-marker { display: none; }
.suchwahl__knopf::marker { content: ""; }
.suchwahl__knopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.suchwahl[open] .suchwahl__knopf { background: var(--sand); }
.suchwahl[open] .suchwahl__knopf svg { transform: rotate(180deg); }
@media (hover: hover) { .suchwahl__knopf:hover { background: var(--sand); } }
.suchwahl__knopf:focus-visible { outline: 3px solid var(--ziegel); outline-offset: 2px; }

.suchwahl__feld { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 30; width: min(460px, 100%); max-height: min(560px, 72vh); overflow-y: auto; overscroll-behavior: contain; background: #fff; color: var(--text); border-radius: 22px; padding: 22px; box-shadow: 0 24px 60px -18px rgba(10, 24, 40, .45), 0 0 0 1px rgba(16, 38, 63, .06); }
.suchwahl__feld fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.suchwahl__titel { display: block; padding: 0; margin: 0 0 10px; font-weight: 800; font-size: 15px; color: var(--nacht); }
.suchwahl__block + .suchwahl__block { margin-top: 22px; }

.suchwahl__arten { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--sand); }
.suchwahl__art, .suchwahl__kachel { position: relative; cursor: pointer; }
.suchwahl__art input, .suchwahl__kachel input { position: absolute; inset-inline-start: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.suchwahl__art span { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--grau); transition: background-color .15s, color .15s; }
.suchwahl__art input:checked + span { background: #fff; color: var(--nacht); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .3); }
.suchwahl__art input:focus-visible + span, .suchwahl__kachel input:focus-visible + span { outline: 3px solid var(--ziegel); outline-offset: 2px; }

.suchwahl__reiter { display: flex; gap: 22px; margin-bottom: 14px; box-shadow: inset 0 -1px 0 var(--linie); }
.suchwahl__reiter[hidden] { display: none; }
.suchwahl__reiter button { border: 0; background: none; padding: 8px 0 10px; font-weight: 700; font-size: 14.5px; color: var(--grau); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.suchwahl__reiter button[aria-selected="true"] { color: var(--nacht); box-shadow: inset 0 -2px 0 var(--ziegel); }

.suchwahl__gruppe + .suchwahl__gruppe { margin-top: 16px; }
.suchwahl__gruppe legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--grau); }
.suchwahl__kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.suchwahl__kachel span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--linie); font-weight: 600; font-size: 14.5px; line-height: 1.25; text-align: center; color: var(--text); transition: background-color .15s, color .15s, box-shadow .15s; }
@media (hover: hover) { .suchwahl__kachel:hover span { box-shadow: inset 0 0 0 1.5px var(--nacht); } }
.suchwahl__kachel input:checked + span { background: var(--nacht); color: #fff; box-shadow: none; }

.suchwahl__bauen { margin-top: 18px; font-size: 14px; color: var(--grau); }
.suchwahl__fertig { width: 100%; margin-top: 20px; min-height: 48px; }
.suchwahl__fertig[hidden] { display: none; }

/* Mit JavaScript: Reiter statt zwei Listen, Hinweis „Bauen“ nur bei Bauen */
.schnell.ist-js .suchwahl__gruppe legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.schnell.ist-js .suchwahl__gruppe[hidden] { display: none; }
.schnell.ist-js .suchwahl__gruppe + .suchwahl__gruppe { margin-top: 0; }
.schnell.ist-js .suchwahl__bauen { display: none; }
.schnell.ist-js[data-art="bauen"] .suchwahl__bauen { display: block; margin-top: 22px; }
.schnell.ist-js[data-art="bauen"] [data-wahl-typ] { display: none; }

@media (max-width: 760px) {
  .schnell { margin-top: 24px; }
  .schnell__zeile { flex-wrap: wrap; border-radius: 22px; padding: 8px; gap: 8px; }
  .schnell__frei { flex: 1 1 100%; padding-inline: 14px 6px; border-radius: 14px; min-height: 52px; }
  .suchwahl { flex: 1 1 0; min-width: 0; }
  .suchwahl__knopf { display: flex; width: 100%; justify-content: space-between; min-height: 52px; border-radius: 14px; background: var(--sand); padding-inline: 16px 12px; }
  .suchwahl__knopf span[data-wahl-text] { overflow: hidden; text-overflow: ellipsis; }
  .schnell__los { min-height: 52px; border-radius: 14px; padding-inline: 18px; }
  .suchwahl__feld { inset-inline: 0; width: auto; top: calc(100% + 8px); padding: 18px; max-height: 68vh; }
  .schnell__hilfe { padding-inline: 4px; }
}
@media (max-width: 400px) {
  .schnell__los span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .schnell__los { padding-inline: 16px; }
}

/* Schnellwege unter dem Bild */
.schnellwege { position: relative; z-index: 1; background: #fff; box-shadow: 0 1px 0 var(--linie); }
.schnellwege ul { list-style: none; margin: 0 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px clamp(8px, 2.4vw, 32px); padding-block: 14px; }
.schnellwege li { position: relative; }
.schnellwege a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding-inline: 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--nacht); transition: background-color .15s; }
.schnellwege a .symbol { color: var(--ziegel); }
@media (hover: hover) { .schnellwege a:hover { background: var(--sand); } }
.schnellwege .etikett-gruen { order: 3; }
@media (max-width: 760px) {
  .schnellwege ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-block: 16px; }
  .schnellwege a { display: flex; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: 14px; background: var(--sand); font-size: 14.5px; line-height: 1.25; }
  .schnellwege .etikett-gruen { position: absolute; top: -8px; inset-inline-end: 8px; font-size: 11.5px; padding: 2px 8px; }
}

/* Services */
.dienste__kopf { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.dienste__kopf p { margin-top: 14px; font-size: 17px; color: var(--grau); }
.dienste__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.dienste__liste a { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; padding: 8px 4px; border-radius: 16px; text-decoration: none; color: inherit; }
.dienste__liste .symbol { width: 30px; height: 30px; color: var(--ziegel); box-sizing: content-box; padding: 14px; border-radius: 50%; background: #fff; margin-bottom: 6px; }
.dienste__liste strong { font-family: var(--serif); font-weight: 560; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; color: var(--nacht); }
.dienste__liste span { color: var(--grau); font-size: 15.5px; }
.dienste__liste em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 700; font-size: 15px; color: #8a2a17; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
@media (hover: hover) { .dienste__liste a:hover em { color: var(--nacht); } }
@media (max-width: 1000px) { .dienste__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dienste__liste { grid-template-columns: 1fr; gap: 28px; } }

/* Jetzt Immobilie bewerten */
.bewerten-start__kopf { text-align: center; max-width: 640px; margin: 0 auto; }
.bewerten-start__kopf .etikett-gruen { margin-bottom: 16px; }
.bewerten-start__kopf p { margin-top: 14px; font-size: 17px; color: var(--grau); }
.bewerten-start__kacheln { list-style: none; margin: clamp(32px, 4vw, 48px) auto 0; padding: 0; max-width: 940px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bewerten-start__kacheln a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 156px; padding: 20px 12px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--linie); background: #fff; text-decoration: none; font-weight: 700; font-size: 16px; color: var(--nacht); transition: box-shadow .15s, background-color .15s; }
.bewerten-start__kacheln .symbol { width: 42px; height: 42px; color: var(--ziegel); stroke-width: 1.6; }
@media (hover: hover) { .bewerten-start__kacheln a:hover { box-shadow: inset 0 0 0 2px var(--nacht); background: var(--sand); } }
.bewerten-start__haken { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.bewerten-start__haken li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text); }
.bewerten-start__haken li::before { content: ""; width: 20px; height: 20px; flex: none; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d6b47' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
@media (max-width: 700px) {
  .bewerten-start__kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bewerten-start__kacheln a { min-height: 128px; }
  .bewerten-start__haken { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .suchwahl__knopf svg, .suchwahl__art span, .suchwahl__kachel span, .schnellwege a, .bewerten-start__kacheln a { transition: none; }
}

/* Lesbarkeit über dem Foto: Hilfesatz und Untertitel mit leichtem Schatten, unten etwas dunkler */
.held .schnell__hilfe, .held p { text-shadow: 0 1px 2px rgba(10, 24, 40, .55), 0 0 12px rgba(10, 24, 40, .35); }
.held::after { background: linear-gradient(180deg, rgba(10, 24, 40, .1) 0%, rgba(10, 24, 40, .18) 35%, rgba(10, 24, 40, .8) 100%); }
