/* keyono.at - Startseite nach der Vorlage des Auftraggebers (2026-11-19). Ergänzt site.css (Schrift, Farben, Fuß);
   alles hier beginnt mit st-, damit Impressum, Datenschutz & Co. unberührt bleiben. Mobile first.
   ⛔ Keine Stilangaben im HTML und kein Skript im HTML - nur Dateien vom eigenen Host (Sicherheits-Header). */
.st { --gruen: #2E6B3A; --gruen-100: #E3F1DF; --sand: #F3ECDF; --schatten: 0 10px 30px rgba(20, 49, 86, .10); }
/* --st-seite: Abstand zum Bildschirmrand - am Handy großzügig wie in der Vorlage */
.st { --st-seite: 28px; }
.st-huelle { max-width: 1160px; margin: 0 auto; padding: 0 var(--st-seite); }

/* ---------------------------------------------------------------- Kopf (liegt über dem Startbild) */
.st-kopf { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: 14px 0; }
.st-kopf .st-huelle { display: flex; align-items: center; gap: 12px; }
.st-kopf .firma img { height: 40px; width: auto; }
.st-nav { display: none; gap: 6px; margin: 0 auto; font-weight: 500; font-size: .9375rem; }
.st-nav a { text-decoration: none; color: var(--navy); padding: 8px 16px; border-radius: 999px; }
.st-nav a:hover, .st-nav a.an { background: rgba(243, 236, 223, .9); color: var(--navy); }
.st-rechts { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.st-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); }
.st-icon:hover { background: rgba(243, 236, 223, .9); color: var(--navy); }
.st-sprache { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 500; letter-spacing: .04em; color: var(--navy-300); padding: 0 4px; }
.st-sprache a { text-decoration: none; color: var(--navy-500); padding: 12px 2px; }
.st-sprache a[aria-current] { color: var(--navy); font-weight: 600; }
.st-sprache span { color: var(--navy-500); }
.st-menue { position: relative; }
.st-menue summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--navy); }
.st-menue summary::-webkit-details-marker { display: none; }
.st-menue summary:hover { background: rgba(243, 236, 223, .9); }
.st-menue nav { position: absolute; right: 0; top: 52px; min-width: 240px; background: var(--white); border-radius: 16px; box-shadow: var(--schatten);
  padding: 8px; display: grid; }
.st-menue nav a { text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.st-menue nav a:hover { background: var(--cream); color: var(--navy); }
.st-menue nav hr { border: 0; border-top: 1px solid var(--line); margin: 6px 8px; width: auto; }
.st-menue nav a.klein { font-weight: 400; font-size: .9375rem; color: var(--navy-500); }

/* ---------------------------------------------------------------- Startbild */
.st-held { position: relative; overflow: hidden; background: var(--cream); padding: 96px 0 40px; min-height: 520px; display: flex; align-items: center; }
.st-held picture { position: absolute; inset: 0; }
.st-held picture img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
/* Helle Fläche links, damit die Schrift lesbar bleibt - das Bild läuft nach rechts aus ihr heraus */
.st-held picture::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(250, 246, 238, 0.96) 0%, rgba(250, 246, 238, 0.96) 22%, rgba(250, 246, 238, 0.955) 28%, rgba(250, 246, 238, 0.926) 34%, rgba(250, 246, 238, 0.861) 40%, rgba(250, 246, 238, 0.759) 46%, rgba(250, 246, 238, 0.627) 52%, rgba(250, 246, 238, 0.48) 58%, rgba(250, 246, 238, 0.333) 64%, rgba(250, 246, 238, 0.201) 70%, rgba(250, 246, 238, 0.099) 76%, rgba(250, 246, 238, 0.034) 82%, rgba(250, 246, 238, 0.005) 88%, rgba(250, 246, 238, 0) 94%),
    linear-gradient(0deg, rgba(250, 246, 238, 1) 0%, rgba(250, 246, 238, 0.995) 1.08%, rgba(250, 246, 238, 0.965) 2.17%, rgba(250, 246, 238, 0.896) 3.25%, rgba(250, 246, 238, 0.79) 4.33%, rgba(250, 246, 238, 0.653) 5.42%, rgba(250, 246, 238, 0.5) 6.5%, rgba(250, 246, 238, 0.347) 7.58%, rgba(250, 246, 238, 0.21) 8.67%, rgba(250, 246, 238, 0.104) 9.75%, rgba(250, 246, 238, 0.035) 10.83%, rgba(250, 246, 238, 0.005) 11.92%, rgba(250, 246, 238, 0) 13%),
    linear-gradient(180deg, rgba(250, 246, 238, 0.85) 0%, rgba(250, 246, 238, 0.846) 1.33%, rgba(250, 246, 238, 0.82) 2.67%, rgba(250, 246, 238, 0.762) 4%, rgba(250, 246, 238, 0.672) 5.33%, rgba(250, 246, 238, 0.555) 6.67%, rgba(250, 246, 238, 0.425) 8%, rgba(250, 246, 238, 0.295) 9.33%, rgba(250, 246, 238, 0.178) 10.67%, rgba(250, 246, 238, 0.088) 12%, rgba(250, 246, 238, 0.03) 13.33%, rgba(250, 246, 238, 0.004) 14.67%, rgba(250, 246, 238, 0) 16%); }
.st-held .st-huelle { position: relative; z-index: 1; width: 100%; }
.st-ueber { text-transform: uppercase; letter-spacing: .22em; font-size: .6875rem; font-weight: 600; color: var(--navy); margin: 0 0 14px; }
.st-held h1 { font-size: 2.375rem; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; max-width: 12ch; }
/* Wie von Hand unterstrichen: ein leicht geschwungener Strich, vorne kräftig, hinten auslaufend */
.st-held h1 em { font-style: normal; position: relative; display: inline-block; }
.st-strich { position: absolute; left: -3%; bottom: -.24em; width: 106%; height: .3em; fill: var(--amber); overflow: visible; }
.st-held p.st-unter { font-size: 1.0625rem; color: var(--navy); max-width: 22ch; margin: 0 0 24px; }
.st-knopf { display: inline-flex; align-items: center; gap: 12px; background: var(--amber); color: var(--navy); font-weight: 600; text-decoration: none;
  padding: 14px 26px; border-radius: 999px; min-height: 48px; }   /* ohne Schatten - wie der Hauptknopf der Guideline */
.st-knopf:hover { color: var(--navy); filter: brightness(1.04); }

/* ---------------------------------------------------------------- So einfach */
.st-abschnitt { padding: 40px 0 8px; }
.st-abschnitt h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 24px; }
.st-mitte { text-align: center; }
.st-schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.st-schritte li { position: relative; text-align: center; margin: 0; display: grid; justify-items: center; gap: 8px; align-content: start; }
.st-schritte svg { width: 52px; height: 52px; padding: 13px; border-radius: 14px; background: var(--sand); color: var(--navy); }
.st-schritte b { font-size: .875rem; line-height: 1.25; }
.st-schritte span { display: none; color: var(--navy-500); font-size: .9375rem; line-height: 1.4; max-width: 22ch; }
.st-schritte li:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: calc(50% + 34px); width: calc(100% - 68px); height: 2px; background: var(--amber); border-radius: 2px; }

/* ---------------------------------------------------------------- Wohnungskarten */
.st-wohnen-kopf { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.st-wohnen-kopf h2 { margin: 0; }
/* Schmal wie in der Vorlage: nur „Aktuelle Wohnungen“ als Überschrift neben „Alle Wohnungen“ */
.st-wohnen-kopf { align-items: center; }
.st-wohnen-kopf h2 { display: none; }
.st-wohnen-kopf .st-ueber { margin: 0; text-transform: none; letter-spacing: -.01em; font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.st-alle { font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.st-band { position: relative; }
.st-karten { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--st-seite) 24px; margin: 0 calc(-1 * var(--st-seite));
  -webkit-overflow-scrolling: touch; }
.st-karten::-webkit-scrollbar { display: none; }
.st-karte { position: relative; flex: 0 0 84%; scroll-snap-align: start; scroll-margin-left: var(--st-seite); }
.st-karte > a { display: block; text-decoration: none; color: inherit; border-radius: 20px; overflow: hidden; background: var(--white); box-shadow: var(--schatten); height: 100%; }
.st-karte img, .st-karte .st-ohne-bild { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sand); }
.st-karte-text { display: grid; gap: 4px; padding: 14px 16px 16px; }
.st-ort { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; }
.st-ort svg { flex: 0 0 auto; color: var(--navy); }
.st-titel { font-weight: 500; color: var(--navy); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.st-unten { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--navy-500); font-size: .9375rem; }
.st-preis { color: var(--navy); font-weight: 600; font-size: 1.0625rem; white-space: nowrap; }
.st-buchbar { display: inline-flex; align-items: center; gap: 8px; background: var(--gruen-100); color: var(--gruen); font-weight: 600; font-size: .8125rem; line-height: 1.2;
  padding: 8px 12px; border-radius: 12px; justify-self: start; margin-top: 6px; }
.st-herz { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(20, 49, 86, .28); color: #fff;
  display: grid; place-items: center; cursor: pointer; }
.st-herz[aria-pressed="true"] { background: var(--white); color: #C8553D; }
.st-herz[aria-pressed="true"] svg { fill: currentColor; }
/* Am Handy wird gewischt (Vorgabe 2026-11-19) - Pfeile nur, wo es eine Maus gibt (breite Ansicht) */
.st-pfeil { display: none; position: absolute; top: 38%; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--white); color: var(--navy);
  box-shadow: var(--schatten); cursor: pointer; place-items: center; z-index: 2; }
.st-pfeil.vor { right: -18px; } .st-pfeil.zurueck { left: -18px; }
.st-pfeil[disabled] { opacity: 0; pointer-events: none; }
.st-punkte { display: flex; justify-content: center; gap: 10px; margin-top: -4px; }
.st-punkte i { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-300); opacity: .5; }
.st-punkte i.an { background: var(--navy); opacity: 1; }
/* „Alle Wohnungen“ unter dem Karussell (2026-11-20): derselbe Knopf wie oben im Startbild, mittig */
.st-alle-unten { display: flex; justify-content: center; margin: 28px 0 0; }

/* ---------------------------------------------------------------- Für Vermieter, Anbieter */
.st-info { padding: 24px 0 0; }
.st-info[hidden] { display: none; }
.st-info .karte { margin-top: 16px; }
.st-info h2 { font-size: 1.25rem; margin: 0 0 8px; }
.st-info .hinweis { margin: 16px 0 0; }

@media (min-width: 560px) { .st-karte { flex-basis: 46%; } }
@media (min-width: 900px) {
  .st { --st-seite: 32px; }
  .st-kopf { padding: 20px 0; }
  .st-kopf .firma img { height: 48px; }
  .st-nav { display: flex; }
  .st-held { min-height: 600px; padding: 120px 0 72px; }
  /* Das Bild reicht bis an den rechten Rand, ohne Verlauf rechts (Vorgabe 2026-11-19) - links läuft es in die helle Fläche aus */
  .st-held picture { left: auto; right: 0; width: 68%; }
  .st-held picture img { object-position: center; }
  .st-held picture::after { background: linear-gradient(90deg, rgba(250, 246, 238, 1) 0%, rgba(250, 246, 238, 0.995) 3.83%, rgba(250, 246, 238, 0.965) 7.67%, rgba(250, 246, 238, 0.896) 11.5%, rgba(250, 246, 238, 0.79) 15.33%, rgba(250, 246, 238, 0.653) 19.17%, rgba(250, 246, 238, 0.5) 23%, rgba(250, 246, 238, 0.347) 26.83%, rgba(250, 246, 238, 0.21) 30.67%, rgba(250, 246, 238, 0.104) 34.5%, rgba(250, 246, 238, 0.035) 38.33%, rgba(250, 246, 238, 0.005) 42.17%, rgba(250, 246, 238, 0) 46%),
    linear-gradient(0deg, rgba(250, 246, 238, 1) 0%, rgba(250, 246, 238, 0.995) 0.92%, rgba(250, 246, 238, 0.965) 1.83%, rgba(250, 246, 238, 0.896) 2.75%, rgba(250, 246, 238, 0.79) 3.67%, rgba(250, 246, 238, 0.653) 4.58%, rgba(250, 246, 238, 0.5) 5.5%, rgba(250, 246, 238, 0.347) 6.42%, rgba(250, 246, 238, 0.21) 7.33%, rgba(250, 246, 238, 0.104) 8.25%, rgba(250, 246, 238, 0.035) 9.17%, rgba(250, 246, 238, 0.005) 10.08%, rgba(250, 246, 238, 0) 11%),
    linear-gradient(180deg, rgba(250, 246, 238, 0.85) 0%, rgba(250, 246, 238, 0.846) 1.33%, rgba(250, 246, 238, 0.82) 2.67%, rgba(250, 246, 238, 0.762) 4%, rgba(250, 246, 238, 0.672) 5.33%, rgba(250, 246, 238, 0.555) 6.67%, rgba(250, 246, 238, 0.425) 8%, rgba(250, 246, 238, 0.295) 9.33%, rgba(250, 246, 238, 0.178) 10.67%, rgba(250, 246, 238, 0.088) 12%, rgba(250, 246, 238, 0.03) 13.33%, rgba(250, 246, 238, 0.004) 14.67%, rgba(250, 246, 238, 0) 16%); }
  .st-held h1 { font-size: 3.5rem; max-width: 13ch; }
  .st-held p.st-unter { font-size: 1.25rem; max-width: none; }
  .st-abschnitt { padding: 56px 0 8px; }
  .st-abschnitt h2 { font-size: 2.125rem; }
  .st-wohnen-kopf { align-items: end; }
  .st-wohnen-kopf h2 { display: block; }
  .st-wohnen-kopf .st-ueber { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .22em; font-size: .6875rem; }
  .st-schritte { gap: 16px; max-width: 980px; margin: 0 auto; }
  .st-schritte svg { width: 64px; height: 64px; padding: 16px; border-radius: 16px; }
  .st-schritte b { font-size: 1.125rem; }
  .st-schritte span { display: block; }
  .st-schritte li:not(:last-child)::after { top: 31px; left: calc(50% + 56px); width: calc(100% - 112px); }
  .st-karten { gap: 20px; padding: 4px 4px 28px; margin: 0 -4px; }
  .st-karte { flex-basis: calc((100% - 40px) / 3); scroll-margin-left: 4px; }
  .st-pfeil { display: grid; }
  .st-sprache { gap: 6px; padding: 0 8px; }
  .st-info .st-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
}
@media (prefers-reduced-motion: no-preference) { .st-karten { scroll-behavior: smooth; } }

/* ---------------------------------------------------------------- Eine linke Kante (2026-11-19)
   Logo, Überzeile, Überschrift, Unterzeile und Knopf beginnen sichtbar auf derselben Linie. Das Logo hat in der
   Datei links Luft, Buchstaben haben einen Vorraum - beides wird hier ausgeglichen (gemessen am Bildschirmfoto). */
.st-kopf .firma { margin-left: -6px; }
.st-held h1 { margin-left: -.085em; }
.st-held p.st-unter { margin-left: -.09em; }
.st-held .st-ueber { margin-left: -1px; }
.st-wohnen-kopf .st-ueber { margin-left: -.06em; }
@media (min-width: 900px) {
  .st-kopf .firma { margin-left: -7px; }
  .st-wohnen-kopf h2 { margin-left: -.07em; }
  .st-wohnen-kopf .st-ueber { margin-left: -1px; }
}
/* Sehr schmale Handys: Überschriften bleiben einzeilig, die vier Schritte bekommen Luft */
@media (max-width: 379px) { .st-abschnitt h2 { font-size: 1.375rem; } .st-schritte b { font-size: .8125rem; } .st-schritte { gap: 2px; } }
