/* Betreutes Wohnen am Marktplatz – Markt Indersdorf
   Nachbau in HTML/CSS, MBcom, 28.11.2026
   Farben und Schrift aus dem bisherigen YOOtheme-Design übernommen */

@font-face { font-family: "Lato"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/lato-300.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/lato-700.woff2") format("woff2"); }

:root {
  --olive: #8a982d;        /* Kopfleiste */
  --olive-dark: #839125;   /* Überschriften (wie bisher) */
  --olive-link: #5c6a12;   /* Links: dunkler für ausreichenden Kontrast */
  --olive-light: #adbc45;  /* Linien, Akzente */
  --cream: #f8faf3;        /* Kopfbereich */
  --cream-2: #f1f4e3;      /* Fußzeile, Kacheln */
  --text: #3c3b3b;
  --muted: #696969;
  --white: #ffffff;
  --radius: 6px;
  --wrap: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1875rem;   /* 19px wie bisher */
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

a { color: var(--olive-link); text-underline-offset: .15em; }
a:hover { color: var(--olive-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--olive-light); outline-offset: 2px; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--olive-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.875rem); }   /* bis 46px wie bisher */
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 1.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Kopfleiste ---------- */
.topbar { background: var(--olive); color: var(--white); font-size: .95rem; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { text-decoration: underline; color: var(--white); }
.topbar svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header { background: var(--cream); position: sticky; top: 0; z-index: 50; transition: box-shadow .2s ease; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; transition: padding .2s ease; }
.logo img { width: 360px; height: auto; transition: width .2s ease; }
.site-header.is-stuck { box-shadow: 0 2px 12px rgba(0,0,0,.10); }
.site-header.is-stuck .wrap { padding-top: 8px; padding-bottom: 8px; }
.site-header.is-stuck .logo img { width: 200px; }
main, [id] { scroll-margin-top: 110px; }

.nav-toggle { display: none; background: none; border: 2px solid var(--olive-dark); border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: 1rem; color: var(--text); cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.main-nav a { font-size: 1.3rem; color: var(--text); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--olive-dark); border-bottom-color: var(--olive-light); }

/* ---------- Hero ---------- */
/* Kopfbild: ab 1600 px Bildschirmbreite „boxed“, Rand links und rechts cremefarben */
.hero {
  position: relative; overflow: hidden; background: #e9ece4;
  max-width: 1600px; margin: 0 auto;
  box-shadow: 0 0 0 100vmax var(--cream); clip-path: inset(0 -100vmax);
}
.hero img { width: 100%; height: clamp(260px, 42vw, 620px); object-fit: cover; }
.hero-claim {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  margin: 0; padding: 0 20px 0 max(20px, calc((100% - var(--wrap)) / 2 + 20px));   /* 100 % = Breite des Kopfbilds */
  font-size: clamp(1.6rem, 1rem + 2.6vw, 2.5rem); font-weight: 700; line-height: 1.2;
  color: var(--olive-dark);
  box-sizing: content-box; max-width: 560px;   /* Innenabstand nicht von der Textbreite abziehen */
  white-space: nowrap;                         /* nur am festen Umbruch nach „Lebensfreude“ umbrechen */
}
.hero-claim::after { content: ""; display: block; width: 100%; max-width: 400px; height: 2px; background: var(--white); margin-top: 18px; }
.hero--small img { height: clamp(180px, 32vw, 520px); }
.hero img.pos-top { object-position: center 20%; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 28px 0 8px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }

/* ---------- Inhalt ---------- */
main { padding-bottom: 56px; }
.page-head { border-bottom: 2px solid var(--olive-light); padding-bottom: 6px; margin-bottom: 28px; }
.page-head h1 { margin-bottom: .2em; }
.intro { max-width: 820px; }
.lead { font-size: 1.3rem; }
section { margin-top: 48px; }

.wide-img { margin: 40px 0 0; }
.wide-img img { width: 100%; border-radius: var(--radius); }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* Kacheln Startseite */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.tile { background: var(--cream-2); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--olive-light); display: flex; flex-direction: column; }
.tile h2 { font-size: 1.35rem; }
.tile p { flex: 1; }
.tile a { font-weight: 700; }

/* Listen */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .5em; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--olive-dark); border-bottom: 3px solid var(--olive-dark); transform: rotate(-45deg); }

/* Grundrisse */
.floorplans { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.floorplans img { border: 1px solid #e3e3e3; border-radius: var(--radius); }
.size-list { list-style: none; padding: 0; margin: 0; }
.size-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e3e3e3; }
.size-list strong { color: var(--olive-dark); white-space: nowrap; }

/* Bild-Text-Reihen */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: center; margin-top: 56px; }
.feature img { border-radius: var(--radius); width: 100%; }
.feature--rev { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.feature--rev .feature-img { order: 2; }

/* Kontakt */
.contact-box { background: var(--cream-2); border-radius: var(--radius); padding: 24px 28px; max-width: 560px; }
.contact-box p:last-child { margin-bottom: 0; }
address { font-style: normal; }

.btn { display: inline-block; background: var(--olive-link); color: var(--white); text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: var(--radius); }
.btn:hover { background: var(--olive-dark); color: var(--white); }

/* Rechtstexte */
.legal { max-width: 860px; }
.legal h2 { margin-top: 1.6em; }
.legal h3 { margin-top: 1.4em; color: var(--text); }
.legal h4 { margin: 1.2em 0 .4em; font-size: 1.05rem; }
.legal .caps { font-size: .95rem; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--cream-2); border-top: 4px solid var(--olive-light); font-size: 1.125rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.site-footer h2 { font-size: 1.25rem; margin-bottom: .5em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35em; }
.footer-bottom { border-top: 1px solid #dfe3cf; font-size: .9375rem; color: var(--muted); }
.footer-bottom .wrap { display: block; padding-top: 14px; padding-bottom: 14px; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr; }
  .floorplans, .feature { grid-template-columns: 1fr; gap: 20px; }
  .feature--rev { grid-template-columns: 1fr; }
  .feature--rev .feature-img { order: 0; }
  .feature-img { max-width: 600px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 820px) {
  .logo img { width: 240px; }
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-top: 1px solid #e3e6d6; box-shadow: 0 8px 16px rgba(0,0,0,.08); z-index: 20; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid #e3e6d6; }
  .site-header.is-stuck .logo img { width: 160px; }
  .topbar .wrap { justify-content: space-between; gap: 12px; }
  .topbar .label { display: none; }
  .hero-claim { position: static; transform: none; padding: 20px; max-width: none; background: var(--cream); }
  .hero-claim::after { background: var(--olive-light); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header, .site-header .wrap, .logo img { transition: none; }
}
