/* Wohnen auf Zeit: scoped additions to the existing WiPo design. */
.ss-page, .ss-teaser {
  color: var(--ink, #1a2029);
  font-family: var(--sans, 'Segoe UI', sans-serif);
  overflow-wrap: break-word;
}
.ss-wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 28px);
}
.ss-page *, .ss-teaser * { min-width: 0; }
.ss-page h1, .ss-page h2, .ss-page h3, .ss-teaser h2 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--navy, #0e1d33);
  text-wrap: balance;
}
.ss-page p, .ss-teaser p { line-height: 1.75; }
.ss-page a:focus-visible, .ss-teaser a:focus-visible {
  outline: 3px solid var(--navy, #0e1d33);
  outline-offset: 5px;
  border-radius: 3px;
}
.ss-kicker {
  color: #80612c;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .035em;
  margin: 0 0 16px;
}
.ss-hero { padding: 30px 0 72px; background: var(--cream, #fbf9f4); }
.ss-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: var(--muted, #5f6b7a);
  margin-bottom: 32px;
}
.ss-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted, #5f6b7a);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ss-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(30px, 4.5vw, 58px);
}
.ss-hero h1 {
  font-size: clamp(2.05rem, 3.8vw, 3.1rem);
  line-height: 1.14;
  max-width: 16ch;
  margin: 0 0 24px;
}
.ss-lead { color: var(--muted, #5f6b7a); font-size: 1.08rem; max-width: 51ch; }
.ss-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 28px;
}
.ss-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--gold, #c3a05a);
  border-radius: var(--radius, 4px);
  background: var(--gold, #c3a05a);
  color: var(--navy, #0e1d33);
  font-size: .94rem;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.ss-button:hover {
  background: var(--gold-light, #e3d3ad);
  border-color: var(--gold-d, #a8863f);
  color: var(--navy, #0e1d33);
}
.ss-button span, .ss-text-link span { flex: 0 0 auto; }
.ss-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding-block: 8px;
  color: var(--navy, #0e1d33);
  font-size: .93rem;
  line-height: 1.5;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #bcb3a3;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.ss-text-link:hover { color: #80612c; text-decoration-color: currentColor; }
.ss-action-note { margin-top: 14px; color: var(--muted, #5f6b7a); font-size: .84rem; max-width: 45ch; }
.ss-hero-photo {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line, #e5ddcf);
  border-radius: var(--radius, 4px);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(14, 29, 51, .09);
}
.ss-hero-photo img, .ss-gallery img, .ss-teaser-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper, #f7f4ee);
}
.ss-hero-photo figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 16px;
  padding: 16px 20px;
  border-bottom: 3px solid var(--gold, #c3a05a);
  color: var(--muted, #5f6b7a);
  font-size: .82rem;
}
.ss-hero-photo figcaption strong { color: var(--navy, #0e1d33); font-size: .94rem; }
.ss-schwan { padding: 76px 0 80px; background: #fff; scroll-margin-top: 100px; }
.ss-project-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  margin-bottom: 40px;
}
.ss-project-intro h2, .ss-robin-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.2;
  margin: 0 0 14px;
}
.ss-project-intro .ss-subtitle { color: var(--navy, #0e1d33); font-size: 1.16rem; margin-bottom: 18px; }
.ss-project-intro > p:not(.ss-kicker):not(.ss-subtitle) { color: var(--muted, #5f6b7a); max-width: 59ch; }
.ss-facts { display: flex; gap: 18px 32px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line, #e5ddcf); }
.ss-facts span { color: var(--muted, #5f6b7a); font-size: .88rem; }
.ss-facts strong { display: block; color: var(--navy, #0e1d33); font-family: var(--serif, Georgia, serif); font-size: 1.6rem; font-weight: 400; line-height: 1.3; margin-bottom: 3px; }
.ss-visit { padding: 28px; background: var(--cream, #fbf9f4); border: 1px solid var(--line, #e5ddcf); border-radius: var(--radius, 4px); }
.ss-visit h3 { font-size: 1.4rem; margin-bottom: 12px; line-height: 1.3; }
.ss-visit > p { color: var(--muted, #5f6b7a); font-size: .94rem; margin-bottom: 22px; }
.ss-social { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line, #e5ddcf); }
.ss-social p { color: var(--muted, #5f6b7a); font-size: .84rem; }
.ss-gallery { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); gap: 24px; }
.ss-gallery figure { margin: 0; }
.ss-gallery img { aspect-ratio: auto; border-radius: var(--radius, 4px); }
.ss-gallery figcaption { padding-top: 12px; color: var(--muted, #5f6b7a); font-size: .84rem; }
.ss-robin { padding: 72px 0; background: var(--paper, #f7f4ee); scroll-margin-top: 100px; }
.ss-robin-card {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line, #e5ddcf);
  border-radius: var(--radius, 4px);
  background: #fff;
}
.ss-robin-brand img { display: block; width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; object-fit: contain; margin-inline: auto; }
.ss-status { display: inline-block; padding: 5px 12px; margin-bottom: 18px; border: 1px solid #d9c9a7; border-radius: 3px; background: #f7f0e1; color: #675126; font-size: .78rem; font-weight: 700; line-height: 1.5; }
.ss-robin-copy .ss-robin-location { font-size: .94rem; color: #80612c; font-weight: 600; margin-bottom: 22px; }
.ss-robin-copy p { color: var(--muted, #5f6b7a); margin-bottom: 16px; }
.ss-robin-copy strong { color: var(--navy, #0e1d33); }
.ss-robin-copy .ss-project-note { font-size: .88rem; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line, #e5ddcf); }
.ss-company { padding: 30px 0 36px; background: var(--cream, #fbf9f4); }
.ss-company p { color: var(--muted, #5f6b7a); font-size: .84rem; margin-bottom: 6px; }
.ss-company strong { color: var(--navy, #0e1d33); font-weight: 600; }
.ss-company a { color: var(--navy, #0e1d33); text-decoration: underline; text-underline-offset: 3px; }
.ss-teaser { padding: 60px 0; background: var(--paper, #f7f4ee); border-top: 1px solid var(--line, #e5ddcf); border-bottom: 1px solid var(--line, #e5ddcf); }
.ss-teaser-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.ss-teaser-photo { margin: 0; overflow: hidden; border-radius: var(--radius, 4px); }
.ss-teaser-copy h2 { font-size: clamp(1.75rem, 2.8vw, 2.35rem); line-height: 1.2; margin: 0 0 20px; }
.ss-teaser-copy > p:not(.ss-kicker) { color: var(--muted, #5f6b7a); font-size: 1rem; max-width: 61ch; }
.ss-teaser .ss-actions { margin-top: 24px; }
@media (max-width: 900px) {
  .ss-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .ss-hero-copy { max-width: 680px; }
  .ss-hero h1 { max-width: 22ch; }
  .ss-hero-photo { max-width: 700px; }
  .ss-project-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .ss-visit { padding: 24px; }
  .ss-robin-card { grid-template-columns: minmax(150px, .5fr) minmax(0, 1fr); gap: 28px; padding: 28px; }
  .ss-teaser-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; }
  .ss-teaser .ss-actions { gap: 8px 18px; }
}
@media (max-width: 640px) {
  .ss-hero { padding: 18px 0 48px; }
  .ss-breadcrumb { margin-bottom: 20px; }
  .ss-hero h1 { margin-bottom: 20px; }
  .ss-lead { font-size: 1rem; }
  .ss-actions { gap: 8px 18px; margin-top: 24px; }
  .ss-hero-photo figcaption { padding: 14px 16px; }
  .ss-schwan, .ss-robin { padding: 48px 0; }
  .ss-project-head { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 30px; }
  .ss-gallery { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ss-visit { padding: 24px 20px; }
  .ss-facts { margin-top: 24px; padding-top: 18px; }
  .ss-robin-card { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; gap: 24px; }
  .ss-robin-brand img { max-width: 180px; }
  .ss-robin-copy h2 { font-size: 1.8rem; }
  .ss-company { padding: 26px 0; }
  .ss-teaser { padding: 42px 0; }
  .ss-teaser-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ss-teaser-photo { max-width: 520px; }
}
@media (max-width: 380px) {
  .ss-actions { align-items: stretch; flex-direction: column; }
  .ss-actions .ss-text-link { align-self: flex-start; }
  .ss-button { padding-inline: 16px; }
  .ss-visit .ss-button { width: 100%; }
  .ss-hero-photo figcaption { display: block; }
  .ss-hero-photo figcaption span { display: block; margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .ss-button { transition: none; }
}

/* Integration in Hauptnavigation, Startseite und Footer. */
.ss-external-icon { display: inline-block; flex-shrink: 0; vertical-align: -0.1em; }
.ss-website-link { margin-top: 10px; }
.ss-footer-social { margin-top: 16px; }
.burger:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
#leistungen .ss-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) {
  .nav-links { gap: 22px; }
  .nav-links a { white-space: nowrap; }
}
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .brand { min-width: 0; }
  .burger { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; flex: 0 0 44px; line-height: 1; }
  .nav-links { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 6px; padding: 20px 28px 28px; background: var(--cream); border-bottom: 1px solid var(--line); max-height: calc(100vh - 75px); max-height: calc(100dvh - 75px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { text-align: center; margin-top: 8px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}
@media (max-width: 640px) {
  #leistungen .ss-services { grid-template-columns: minmax(0, 1fr); }
}
