/* Basis-Styling der Referenz-Bausteine (NT-4/NT-6). Wird mit der Baustein-Bibliothek ausgebaut. */
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--cms-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); color: #1a1a1a; }

.cms-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: #fff;
    text-align: center;
    background-color: var(--cms-hero-bg, #2b3a42);
}
.cms-hero--vh-100 { min-height: 100vh; }
.cms-hero--left { text-align: left; justify-content: flex-start; }
.cms-hero__overlay { position: absolute; inset: 0; background: #000; }
.cms-hero__content { position: relative; z-index: 1; max-width: 820px; padding: 2rem; }
.cms-hero__content h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 1rem; }

.cms-richtext { max-width: 820px; margin: 2.5rem auto; padding: 0 1rem; line-height: 1.6; }

/* Such-Baustein (NT-7) */
.cms-search { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.cms-search__count { color: #667; margin: 0 0 1rem; }
.cms-search__layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; }
.cms-search__facets .facet { margin-bottom: 1.25rem; }
.cms-search__facets h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; color: #556; margin: 0 0 .4rem; }
.cms-search__facets ul { list-style: none; padding: 0; margin: 0; }
.cms-search__facets a { color: #2b3a42; text-decoration: none; }
.cms-search__facets a:hover { text-decoration: underline; }
.cms-search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.cms-card { border: 1px solid #e3e6e8; border-radius: 10px; padding: 1rem; }
.cms-card h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.cms-card dl { display: grid; grid-template-columns: auto 1fr; gap: .15rem .6rem; margin: 0; font-size: .9rem; }
.cms-card dt { color: #889; }
.cms-card dd { margin: 0; }
@media (max-width: 700px) { .cms-search__layout { grid-template-columns: 1fr; } }

/* Detail-Baustein (NT-7) */
.cms-detail { max-width: 820px; margin: 2rem auto; padding: 0 1rem; }
.cms-detail h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 1rem; }
.cms-detail__facts { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; }
.cms-detail__facts dt { color: #889; }
.cms-detail__facts dd { margin: 0; }
.cms-chip { display: inline-block; background: #eef1f3; border-radius: 999px; padding: .15rem .6rem; margin: 0 .25rem .25rem 0; font-size: .85rem; }

/* Navigation (NT-6) */
.cms-header { border-bottom: 1px solid #e3e6e8; background: #fff; position: sticky; top: 0; z-index: 10; }
.cms-header__inner, .cms-footer__inner { max-width: 1100px; margin: 0 auto; padding: .75rem 1rem; display: flex; align-items: center; gap: 1.5rem; }
.cms-header__brand { font-weight: 700; font-size: 1.15rem; color: var(--cms-primary, #2b3a42); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.cms-header__logo { height: 80px; width: auto; display: block; }   /* Default; pro Site via Inline-Style überschrieben */
.cms-header__brandtext { font-weight: 700; }
.cms-header__nav { display: flex; gap: 1rem; margin-left: auto; align-items: center; }
.cms-header__nav a { color: #2b3a42; text-decoration: none; }
.cms-header__nav a:hover { text-decoration: underline; }
/* Mobile-Navigation: CSS-only Hamburger (Checkbox-Hack), nur unter dem Breakpoint sichtbar. */
.cms-header__toggle { display: none; }
.cms-header__burger { display: none; margin-left: auto; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.cms-header__burger span { width: 24px; height: 2px; background: var(--cms-primary, #2b3a42); border-radius: 2px; display: block; transition: transform .2s, opacity .2s; }
@media (max-width: 720px) {
    .cms-header__inner { flex-wrap: wrap; gap: .75rem; }
    .cms-header__logo { max-height: 56px; }                 /* große Logos mobil deckeln */
    .cms-header__burger { display: flex; }
    .cms-header__nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-left: 0; }
    .cms-header__nav a { padding: .6rem .2rem; border-top: 1px solid #eef0f2; }
    .cms-header__toggle:checked ~ .cms-header__nav { display: flex; }
    /* Burger → X, wenn offen */
    .cms-header__toggle:checked ~ .cms-header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .cms-header__toggle:checked ~ .cms-header__burger span:nth-child(2) { opacity: 0; }
    .cms-header__toggle:checked ~ .cms-header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
.cms-footer { border-top: 1px solid #e3e6e8; margin-top: 3rem; color: #667; }
.cms-footer__inner { flex-direction: column; align-items: flex-start; gap: .5rem; }
.cms-footer__nav { display: flex; gap: 1rem; }
.cms-footer__nav a { color: #556; text-decoration: none; }
.cms-footer__legal { display: flex; gap: 1rem; font-size: .85rem; }
.cms-footer__legal a { color: #778; text-decoration: none; }
.cms-footer__text { margin: 0; font-size: .9rem; }
/* NT-16: reicher Footer (Marke/Tagline/Adresse) */
.cms-footer__brand { display: flex; flex-direction: column; gap: .2rem; }
.cms-footer__name { font-weight: 700; font-size: 1.1rem; color: var(--cms-primary, #2b3a42); }
.cms-footer__tagline { color: var(--cms-accent-ink, #0a9b7d); font-size: .9rem; }
.cms-footer__address { font-style: normal; color: #667; font-size: .85rem; }

/* Layout (NT-6) */
.cms-section--light { background: var(--cms-bg-alt, #f5f7f8); }
.cms-section--dark { background: var(--cms-bg-dark, #2b3a42); color: #fff; text-align: center; }
.cms-section--dark h2, .cms-section--dark h3 { color: #fff; }
.cms-section--dark .cms-cta--secondary { color: #fff; border-color: rgba(255,255,255,.5); }
.cms-section__inner { max-width: 1100px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.cms-section--pad-sm .cms-section__inner { padding-top: 1rem; padding-bottom: 1rem; }
.cms-section--pad-md .cms-section__inner { padding-top: 2rem; padding-bottom: 2rem; }
.cms-section--pad-lg .cms-section__inner { padding-top: 4rem; padding-bottom: 4rem; }
.cms-spacer--sm { height: 1rem; }
.cms-spacer--md { height: 2rem; }
.cms-spacer--lg { height: 4rem; }

/* Inhalt (NT-6) */
.cms-cta-wrap { text-align: center; }
.cms-cta { display: inline-block; padding: .7rem 1.4rem; border-radius: 8px; text-decoration: none; font-weight: 600; }
.cms-cta--primary { background: var(--cms-primary, #2b6cb0); color: #fff; }
.cms-cta--secondary { background: transparent; color: var(--cms-primary, #2b6cb0); border: 1px solid var(--cms-primary, #2b6cb0); }
.cms-image { margin: 1.5rem auto; max-width: 820px; }
.cms-image img { width: 100%; height: auto; border-radius: 8px; display: block; }
.cms-image figcaption { color: #889; font-size: .85rem; margin-top: .4rem; text-align: center; }

/* NT-8: Detail-Bildergalerie (Listing-Medien) */
.cms-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; margin: 1.2rem 0; }
.cms-gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; display: block; }

/* NT-8: Kontaktformular-Baustein (Leads) */
.cms-contact { max-width: 560px; margin: 1.5rem auto; }
.cms-contact__form { display: flex; flex-direction: column; gap: .6rem; }
.cms-contact__form label { display: flex; flex-direction: column; font-size: .85rem; color: #667; gap: .2rem; }
.cms-contact__form input, .cms-contact__form textarea { padding: .55rem .7rem; border: 1px solid #ccd; border-radius: 6px; font: inherit; }
.cms-contact__form button { align-self: flex-start; padding: .6rem 1.3rem; border: 0; border-radius: 8px; cursor: pointer;
    background: var(--cms-primary, #2b6cb0); color: #fff; font-weight: 600; }
.cms-contact__ok { background: #ebfbee; color: #2b7a34; padding: .6rem .9rem; border-radius: 6px; }

/* NT-15: Sektions-Header (GA section-header) */
.cms-section-header { max-width: 1100px; margin: 2.5rem auto 1.5rem; padding: 0 1rem; }
.cms-section-header--center { text-align: center; }
.cms-section-header h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin: 0 0 .5rem; }
.cms-section-header .cms-lead { color: #667; font-size: 1.05rem; margin: 0; max-width: 720px; }
.cms-section-header--center .cms-lead { margin-left: auto; margin-right: auto; }

/* NT-15: Karten-Grid + Kacheln (GA Themes / Regionen) */
.cms-cardgrid { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem; display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cms-cardgrid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.cms-cardgrid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.cms-cardgrid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.cms-card-tile { display: flex; flex-direction: column; border: 1px solid #e3e6e8; border-radius: 10px;
    overflow: hidden; text-decoration: none; color: #1a1a1a; background: #fff; transition: box-shadow .15s, transform .15s; }
.cms-card-tile:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.cms-card-tile__img { display: block; aspect-ratio: 3/2; overflow: hidden; background: #eef1f3; }
.cms-card-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cms-card-tile__body { padding: .9rem 1rem; }
.cms-card-tile__body h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.cms-card-tile__body p { margin: 0; color: #667; font-size: .9rem; }
@media (max-width: 700px) { .cms-cardgrid, .cms-cardgrid--cols-2, .cms-cardgrid--cols-3, .cms-cardgrid--cols-4 {
    grid-template-columns: repeat(2, 1fr); } }

/* NT-15: Featured/Spotlight-Karussell (GA LandlordSpotlight) */
.cms-featured { max-width: 1180px; margin: 2rem auto; padding: 0 1rem; }
.cms-featured__bar { display: flex; align-items: center; gap: .5rem; }
.cms-featured__bar .cms-section-header { margin: 1rem 0; padding: 0; flex: 1; }
.cms-featured__nav { border: 1px solid #ccd; background: #fff; border-radius: 999px; width: 38px; height: 38px;
    cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--cms-primary, #2b6cb0); }
.cms-featured__nav:hover { background: var(--cms-primary, #2b6cb0); color: #fff; }
.cms-featured__track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding-bottom: .5rem; }
.cms-featured__track::-webkit-scrollbar { height: 8px; }
.cms-featured__card { flex: 0 0 260px; scroll-snap-align: start; border: 1px solid #e3e6e8; border-radius: 10px;
    overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.cms-featured__card img { width: 100%; height: 170px; object-fit: cover; display: block; background: #eef1f3; }
.cms-featured__card .cms-featured__cardbody { padding: .8rem 1rem; }
.cms-featured__card h3 { margin: 0 0 .3rem; font-size: 1rem; }
.cms-featured__card .cms-featured__meta { color: #667; font-size: .85rem; margin: 0 0 .5rem; }
.cms-featured__card a.cms-cta { padding: .4rem 1rem; font-size: .9rem; }

/* NT-15: Such-Hero (GA Jumbobox) */
.cms-searchhero { position: relative; display: flex; align-items: center; min-height: 70vh;
    background-color: var(--cms-hero-bg, #2b3a42); color: #fff; overflow: hidden; }
.cms-searchhero__overlay { position: absolute; inset: 0; background: #000; }
.cms-searchhero__content { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; width: 100%; }
.cms-searchhero__content h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 0 0 .5rem; max-width: 640px; }
.cms-searchhero__sub { font-size: 1.1rem; opacity: .9; margin: 0 0 1.5rem; max-width: 560px; }
.cms-searchbox { display: flex; gap: .5rem; max-width: 560px; background: #fff; padding: .5rem; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.cms-searchbox input { flex: 1; border: 0; padding: .7rem .9rem; font: inherit; border-radius: 8px; color: #1a1a1a; }
.cms-searchbox input:focus { outline: 2px solid var(--cms-primary, #2b6cb0); }
.cms-searchbox button { border: 0; border-radius: 8px; padding: .7rem 1.4rem; font-weight: 600; cursor: pointer;
    background: var(--cms-primary, #2b6cb0); color: #fff; }

/* NT-16: neotec-Bausteine (token-getrieben; Defaults greifen für andere Sites) */
/* Hero light + Eyebrow/Subline */
.cms-hero--light { background: var(--cms-bg-alt, #f6f7fb); color: var(--cms-ink, #0a1124); text-align: left; justify-content: flex-start; }
.cms-hero--light .cms-hero__content { max-width: 1100px; margin: 0 auto; width: 100%; padding: 4rem 1rem; }
.cms-hero--light h1 { color: var(--cms-ink, #0a1124); }
.cms-hero__eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
    font-weight: 700; color: var(--cms-accent-ink, #0a9b7d); margin-bottom: .6rem; }
.cms-hero__subline { font-size: 1.15rem; opacity: .85; margin: 0 0 1.5rem; max-width: 640px; }
.cms-hero--light .cms-hero__subline { color: var(--cms-ink-soft, #424559); opacity: 1; }

/* Section-Header Label (Eyebrow) */
.cms-section-header__label { display: inline-block; text-transform: uppercase; letter-spacing: .08em;
    font-size: .78rem; font-weight: 700; color: var(--cms-accent-ink, #0a9b7d); margin-bottom: .5rem; }

/* Stats */
.cms-stats { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem; display: flex; flex-wrap: wrap; gap: 2.5rem; }
.cms-stat__value { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1; color: var(--cms-primary, #2b6cb0); }
.cms-stat__label { color: #667; font-size: .95rem; margin-top: .3rem; max-width: 220px; }

/* Pills */
.cms-pills { max-width: 1100px; margin: 1rem auto; padding: 0 1rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.cms-pill { border: 1px solid var(--cms-line, #d0d4dc); border-radius: 999px; padding: .45rem 1rem; font-size: .9rem;
    background: #fff; color: var(--cms-ink, #1a1a1a); }

/* Service-Card Icon + CTA */
.cms-card-tile__icon { display: block; font-size: 1.6rem; color: var(--cms-accent-ink, #0a9b7d); margin-bottom: .5rem; }
.cms-card-tile__cta { display: inline-block; margin-top: .6rem; color: var(--cms-primary, #2b6cb0); font-weight: 600; font-size: .9rem; }

/* Produkt-Karte */
.cms-productcard { border: 1px solid var(--cms-line, #e3e6e8); border-radius: 12px; padding: 1.6rem; background: #fff;
    display: flex; flex-direction: column; }
.cms-productcard__label { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 700;
    color: var(--cms-accent-ink, #0a9b7d); }
.cms-productcard h3 { margin: .4rem 0 .6rem; font-size: 1.35rem; }
.cms-productcard__lead { color: #556; margin: 0 0 1rem; }
.cms-productcard__features { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .4rem; }
.cms-productcard__features li { padding-left: 1.4rem; position: relative; color: #445; }
.cms-productcard__features li::before { content: "✓"; position: absolute; left: 0; color: var(--cms-accent-ink, #0a9b7d); font-weight: 700; }
.cms-productcard__ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; }

/* Dark-Section-Kontrast für Eyebrows/Labels (CTA-Banner etc.) */
.cms-section--dark .cms-section-header__label, .cms-section--dark .cms-hero__eyebrow { color: var(--cms-accent, #00d4a8); }
.cms-section--dark .cms-lead { color: rgba(255,255,255,.8); }

/* NT-16: Langform-Artikel (Dienstleistungen/Produkte/Recht) + Hero-/Banner-CTA-Layout */
.cms-richtext h2 { margin: 2rem 0 .7rem; font-size: 1.5rem; }
.cms-richtext h3 { margin: 1.3rem 0 .5rem; font-size: 1.15rem; }
.cms-richtext ul { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.cms-richtext li { margin: .3rem 0; }
.cms-richtext code { background: #eef1f4; padding: .1rem .4rem; border-radius: 4px; font-size: .9em; }
.cms-hero__content .cms-cta-wrap, .cms-section--dark .cms-cta-wrap { display: inline-block; text-align: left; margin: .4rem .6rem .4rem 0; }

/* Bild-&-Text-Baustein (mediatext): zweispaltig, Bild links/rechts umschaltbar */
.cms-mediatext__inner { max-width: 1100px; margin: 0 auto; padding: 3rem 1rem; display: grid; gap: 2.5rem;
    grid-template-columns: 1fr 1fr; align-items: center; }
.cms-mediatext--img-right .cms-mediatext__media { order: 2; }   /* Bild rechts */
.cms-mediatext--img-left  .cms-mediatext__media { order: 0; }   /* Bild links */
.cms-mediatext__media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; display: block; }
.cms-mediatext__body h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); margin: 0 0 .8rem; }
.cms-mediatext__text { color: #556; font-size: 1.05rem; line-height: 1.6; }
.cms-mediatext__text p { margin: 0 0 .8rem; }
.cms-mediatext--bg-light { background: var(--cms-bg-alt, #f5f7f8); }
.cms-mediatext--bg-dark { background: var(--cms-bg-dark, #2b3a42); color: #fff; }
.cms-mediatext--bg-dark .cms-mediatext__text { color: rgba(255,255,255,.85); }
@media (max-width: 760px) {
    .cms-mediatext__inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1rem; }
    .cms-mediatext__media { order: 2 !important; }   /* mobil: Text zuerst, Bild darunter */
}
