/* Gemeinschaftsbüro Markt 30, Kuchl
   Farben aus dem Logo, weiche organische Formen, keine externen Ressourcen. */

:root {
  --ink: #231F20;
  --cream: #EBE7D9;
  --cream-soft: #F5F3EC;
  --white: #FFFFFF;
  --muted: #5C5657;
  --line: rgba(35, 31, 32, .12);

  --blob-a: 58% 42% 47% 53% / 52% 46% 54% 48%;
  --blob-b: 44% 56% 52% 48% / 48% 55% 45% 52%;

  --radius: 28px;
  --wrap: 1120px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sub { color: var(--muted); margin-bottom: 2.5rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream); padding: .6rem 1rem; border-radius: 0 0 12px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* Platzhalter deutlich markieren */
mark.ph {
  background: #FFE38A;
  color: #3A2F00;
  border: 1px dashed #B48A00;
  border-radius: 6px;
  padding: 0 .3em;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--nowrap { white-space: nowrap; }
.btn--small { padding: .45rem 1rem; font-size: .95rem; }

/* Kopfzeile */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.topbar__brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.topbar__nav { display: flex; align-items: center; gap: 1.25rem; }
.topbar__nav a:not(.btn) { text-decoration: none; font-weight: 600; }
.topbar__nav a:not(.btn):hover { text-decoration: underline; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 5rem; background: var(--white); }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 720px; height: 640px; right: -220px; top: -160px;
  background: var(--cream);
  border-radius: var(--blob-a);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 3rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--muted); }
.hero__lead { font-size: 1.25rem; color: var(--muted); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__logo {
  justify-self: center;
  background: var(--white);
  border-radius: var(--blob-b);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 30px 60px -30px rgba(35, 31, 32, .35);
  max-width: 400px;
}

/* Abschnitte */
.section { padding: 5rem 0; }
section[id] { scroll-margin-top: 64px; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--cream); }
.intro p { font-size: 1.2rem; }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative;
  background: var(--white);
  border-radius: 36px 36px 36px 12px;
  padding: 2.25rem 1.75rem 1.75rem;
  box-shadow: 0 20px 40px -28px rgba(35, 31, 32, .4);
  display: flex; flex-direction: column;
}
.card:nth-child(2) { border-radius: 36px 12px 36px 36px; }
.card--dark { background: var(--ink); color: var(--cream); border-radius: 12px 36px 36px 36px; }
.card__num {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 1rem;
  background: var(--cream); color: var(--ink);
  border-radius: var(--blob-a);
  font-weight: 800; font-size: 1.2rem;
}
.card--dark .card__num { background: var(--cream); }
.price { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 700; margin-bottom: 0; }

#inklusive h3 { margin-top: 2rem; }
.cards__note { max-width: 760px; margin: 3rem auto 0; text-align: center; font-size: .95rem; color: var(--muted); }
.cards__note a { color: var(--ink); font-weight: 700; }
.card--dark .price { border-top-color: rgba(235, 231, 217, .2); }
.card a { font-weight: 700; }
.status {
  align-self: flex-start;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .3rem .8rem; margin-bottom: .9rem;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.status--free { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* Mieter-Slider */
.slider__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.slider__head .sub { margin-bottom: 2rem; }
.slider__nav { display: flex; gap: .5rem; margin-bottom: 2rem; }
.slider__nav[hidden] { display: none; }
.slider__btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer;
}
.slider__btn:hover { background: var(--ink); color: var(--cream); }
.slider__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.slider {
  list-style: none; margin: 0; padding: 0 0 1rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 3); column-gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
}
.tenant {
  scroll-snap-align: start;
  background: var(--cream-soft); border-radius: 36px 36px 36px 12px;
  padding: 1rem 1rem 1.5rem; display: flex; flex-direction: column;
}
.tenant > :not(.tenant__photo) { margin-left: .75rem; margin-right: .75rem; }
.tenant__photo {
  aspect-ratio: 1 / 1; border-radius: 28px 28px 28px 8px; overflow: hidden;
  background: var(--cream); display: grid; place-items: center; padding: 1rem; text-align: center;
  margin-bottom: 1.25rem;
}
.tenant__photo:has(img) { padding: 0; }
.tenant__photo img { width: 100%; height: 100%; object-fit: cover; }
.tenant__photo--art { background: var(--ink); color: var(--cream); }
.tenant__photo--art svg { width: 55%; height: auto; }
.tenant__sub { display: block; font-size: 1rem; font-weight: 600; color: var(--muted); margin-top: .25rem; }
.tenant__link { margin-top: auto; font-weight: 700; margin-bottom: 0; }

/* Inklusivleistungen */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: .6rem; }
.checklist li { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 18px; padding: .6rem 1rem .6rem 2.4rem; font-weight: 600; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 1rem; font-weight: 800; }
.footnote { font-size: .9rem; color: var(--muted); }

/* Lage */
.lage { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; }
.address { font-size: 1.25rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.facts li {
  background: rgba(235, 231, 217, .08);
  border: 1px solid rgba(235, 231, 217, .18);
  border-radius: 24px;
  padding: 1.1rem 1.4rem;
}
.facts strong { display: block; font-size: 1.4rem; }

/* Zielgruppen */
.pills { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.pills li { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.2rem; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--white); border-radius: 22px; padding: 0 1.4rem; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700;
  padding: 1.1rem 2rem 1.1rem 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; margin: 0; }

/* Kontakt */
.cta {
  background: var(--cream);
  border-radius: 64px 40px 72px 48px / 56px 64px 48px 72px;
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
}
.cta__contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1.25rem; font-weight: 700; font-size: 1.15rem; margin: 1.5rem 0 0; }

/* Fußzeile */
.footer { background: var(--ink); color: var(--cream); padding: 2rem 0; font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 1.5rem; }

/* Rechtliche Unterseiten */
.legal { padding: 4rem 0 5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.back { display: inline-block; margin-bottom: 2rem; font-weight: 600; }

/* Responsiv */
@media (max-width: 900px) {
  .hero__inner, .lage { grid-template-columns: 1fr; }
  .hero__logo { max-width: 280px; order: -1; }
  .cards { grid-template-columns: 1fr; }
  .slider { grid-auto-columns: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 600px) {
  .slider { grid-auto-columns: 85%; column-gap: 1rem; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero::before { width: 460px; height: 420px; right: -200px; top: -120px; }
  .hero__logo { max-width: 200px; }
  .topbar__nav a:not(.btn) { display: none; }
  .wrap { padding: 0 16px; }
}
