/* =============================================================================
 * Baugenossenschaft München von 1871 – Design-Auffrischung (baugen2.tc-r.de, 23.11.2026)
 * Wird nach style.css geladen. Aufbau, Schrift und Rot bleiben; neu sind ein
 * ruhigerer Hintergrund, runde Ecken, Verläufe im Titelbild und leichtere Linien.
 * ========================================================================== */
:root {
	--b-red: rgb(226, 0, 26);
	--b-red-dark: #a8001a;
	--b-red-soft: rgba(226, 0, 26, .22);
	--b-ink: #3d3d3d;
	--b-bg: #f3f4f6;
	--b-radius: 16px;
	--b-radius-s: 10px;
	--b-shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 10px 30px rgba(20, 20, 40, .08);
	--b-shadow-hover: 0 2px 4px rgba(20, 20, 40, .07), 0 18px 44px rgba(20, 20, 40, .14);
	--b-ease: cubic-bezier(.2, .7, .2, 1);
}

body {
	background-color: var(--b-bg);
	background-image: radial-gradient(1400px 700px at 20% 0%, #fff 0%, rgba(255, 255, 255, 0) 70%);
	-webkit-font-smoothing: antialiased;
}

/* --- Seite als ruhige Karte -------------------------------------------------- */
@media (min-width: 1249px) {
	.page {
		margin: 1.75rem auto 2.5rem;
		border-radius: var(--b-radius);
		overflow: clip;
		box-shadow: 0 1px 2px rgba(20, 20, 40, .04), 0 24px 60px rgba(20, 20, 40, .10);
	}
}

/* --- Kopf ------------------------------------------------------------------ */
.section--header .contactbar a, .section--header .contactbar div { transition: color .2s; }
#fullwidth .nav {
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
}
@media (min-width: 960px) {
	.nav--main .level_1 > li > a, .nav--main .level_1 > li > span { position: relative; }
	.nav--main .level_1 > li > a::after, .nav--main .level_1 > li > span::after {
		content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .55rem; height: 2px;
		border-radius: 2px; background: var(--b-red);
		transform: scaleX(0); transform-origin: left; transition: transform .3s var(--b-ease);
	}
	.nav--main .level_1 > li:hover > a::after, .nav--main .level_1 > li:hover > span::after,
	.nav--main .level_1 > li > span.active::after, .nav--main .level_1 > li > span.trail::after,
	.nav--main .level_1 > li.trail > a::after, .nav--main .level_1 > li > a.trail::after { transform: scaleX(1); }
	.nav--main .level_1 > li:hover > a, .nav--main .level_1 > li:hover > span { color: var(--b-red); }
	.nav--main .level_2 {
		border-radius: var(--b-radius-s); overflow: hidden;
		box-shadow: var(--b-shadow-hover) !important;
		transform: translateY(6px); transition: opacity .2s, transform .25s var(--b-ease) !important;
	}
	.nav--main .level_1 li.submenu:hover .level_2 { transform: translateY(0); }
	.nav--main .level_2 li a, .nav--main .level_2 li span.active { transition: background-color .2s, color .2s, padding-left .25s var(--b-ease); }
	.nav--main .level_2 li a:hover { background: #fbf1f2; color: var(--b-red); padding-left: 2.4rem; }
}
.toggle { border-radius: 999px !important; }

/* --- Titelbild ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero .ce_image { position: relative; margin: 0; }
.hero .ce_image img { width: 100%; transform: scale(1.001); }
.hero .ce_image .image_container::after, .hero .ce_image figure::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(30, 10, 14, .38) 0%, rgba(30, 10, 14, .12) 30%, rgba(30, 10, 14, 0) 55%),
		linear-gradient(0deg, rgba(20, 10, 12, .30) 0%, rgba(20, 10, 12, 0) 45%),
		linear-gradient(200deg, rgba(226, 0, 26, .10) 0%, rgba(226, 0, 26, 0) 40%);
}
.hero .ce_image figure { position: relative; }
.hero .ce_text {
	left: 2.5rem; bottom: 2rem !important;
	width: 23rem; padding: 1.4rem 1.6rem 1.5rem 1.8rem !important;
	background: rgba(255, 255, 255, .86) !important;
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	border-radius: var(--b-radius-s);
	box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
	border-left: 4px solid var(--b-red);
}
.hero .ce_text h2 { letter-spacing: .08em; margin-bottom: .35rem !important; }

/* --- Inhalt ------------------------------------------------------------------- */
.section--main .area--main h1 {
	border-bottom: 0 !important; position: relative; padding-bottom: .85rem;
}
.section--main .area--main h1::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, var(--b-red) 0%, var(--b-red) 12%, var(--b-red-soft) 45%, rgba(226, 0, 26, 0) 100%);
}
.area--main img, .area--main video, .area--main iframe { border-radius: var(--b-radius-s); }
.area--main video { box-shadow: var(--b-shadow); }
.area--main .ce_image figure, .area--main .ce_text figure { overflow: hidden; border-radius: var(--b-radius-s); }

/* Tabellen: leichtere Linien */
table { border-bottom-color: var(--b-red-soft); }
table tr { border-top-color: var(--b-red-soft); }
table tr:first-child { border-top-color: var(--b-red); }
table td { padding: .6rem .5rem .6rem 0; }
table tbody tr { transition: background-color .2s; }
table tbody tr:hover { background: #fcf5f6; }

/* Liste der Wohnanlagen als Karten */
.wohnanlagenliste { border-bottom: 0 !important; display: grid; gap: 1rem; }
.wohnanlagenliste .bg18-wohnanlagen-liste {
	border-top: 0 !important; background: #fff; border-radius: var(--b-radius);
	overflow: hidden; box-shadow: var(--b-shadow);
	transition: transform .3s var(--b-ease), box-shadow .3s var(--b-ease);
}
.wohnanlagenliste .bg18-wohnanlagen-liste:hover { transform: translateY(-3px); box-shadow: var(--b-shadow-hover); }
.wohnanlagenliste .bg18-wohnanlagen-liste h2, .wohnanlagenliste .bg18-wohnanlagen-liste p { padding-left: 1.25rem; }
.wohnanlagenliste .bg18-wohnanlagen-liste h2 { padding-top: 1.25rem; }
.wohnanlagenliste .bg18-wohnanlagen-liste a .image_container, .wohnanlagenliste .bg18-wohnanlagen-liste img { border-radius: 0; height: 100%; }
.wohnanlagenliste .bg18-wohnanlagen-liste img { object-fit: cover; transition: transform 1s var(--b-ease); }
.wohnanlagenliste .bg18-wohnanlagen-liste:hover img { transform: scale(1.05); }
.wohnanlagenliste .bg18-wohnanlagen-liste a { overflow: hidden; display: block; }

/* Seitenleiste */
.section--main .area--sidebar ul:not([class]) li a, .section--main .sidebar--left nav a { transition: color .2s, padding-left .25s var(--b-ease); }
.section--main .sidebar--left nav a:hover { padding-left: .3rem; }
.openings {
	background: linear-gradient(160deg, #fff 0%, #faf6f6 100%);
	border-radius: var(--b-radius-s); padding: 1.25rem 1.4rem;
	box-shadow: var(--b-shadow); margin-right: 1rem;
}

/* Knöpfe und Formularfelder */
button:not(.toggle), [type="button"], [type="reset"], [type="submit"], .submit, .ce_hyperlink.button a {
	border-radius: 999px !important; padding-left: 1.4rem !important; padding-right: 1.4rem !important;
	background: linear-gradient(135deg, #f0283c 0%, var(--b-red) 50%, var(--b-red-dark) 100%) !important;
	border-color: transparent !important;
	box-shadow: 0 6px 18px rgba(226, 0, 26, .22) !important;
	transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease);
}
button:not(.toggle):hover, [type="submit"]:hover, .submit:hover, .ce_hyperlink.button a:hover {
	transform: translateY(-2px); box-shadow: 0 10px 26px rgba(226, 0, 26, .30) !important; color: #fff;
}
input[type="text"], input[type="password"], input[type="search"], input[type="email"], input[type="tel"], select, textarea {
	border-radius: 8px !important; transition: box-shadow .2s, background-color .2s;
}
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(226, 0, 26, .15) !important; outline: 0 !important; }

/* Akkordeons */
.ce_accordion { border-radius: var(--b-radius-s); }
.ce_accordion .toggler { transition: color .2s; }

/* --- Fußzeile ------------------------------------------------------------------ */
.section--footer {
	border-top: 0 !important;
	background: linear-gradient(180deg, #fafafa 0%, #f1f1f3 100%);
	position: relative;
}
.section--footer::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
	background: linear-gradient(90deg, var(--b-red) 0%, #ff5a6a 50%, var(--b-red) 100%);
}

/* --- Kleine Bildschirme: nichts darf seitlich überstehen --------------------- */
.page { max-width: 100%; }
.area--main { min-width: 0; }
.area--main table { table-layout: auto; }
.area--main td { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.area--main td a { overflow-wrap: anywhere; }
@media (max-width: 999px) {
	.section--footer > .grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
	.section--footer > .grid { grid-template-columns: 1fr !important; }
	.hero .ce_text { left: 1rem; right: 1rem; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* --- Bildergalerien: gleich große Kacheln mit Abstand, Bild füllt die Kachel -- */
.ce_gallery ul { gap: 10px !important; margin-bottom: 1.5rem; }
.ce_gallery ul li { margin: 0; }
.ce_gallery ul li::before { content: none !important; }
.ce_gallery .image_container { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--b-radius-s); box-shadow: 0 2px 10px rgba(20, 20, 40, .08); }
.ce_gallery .image_container a { display: block; width: 100%; height: 100%; }
.ce_gallery .image_container img {
	width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important;
	transition: transform .8s var(--b-ease), filter .3s;
}
.ce_gallery .image_container a:hover img { transform: scale(1.06); }
@media (max-width: 560px) { .ce_gallery ul.cols_4 { grid-template-columns: 1fr 1fr !important; } }
/* Lightbox-Pfeile im gleichen Stil */
#cboxPrevious, #cboxNext, #cboxClose { border-radius: 50%; }

/* --- Google-Karte erst nach Zustimmung (Stil wie postbau-regensburg) ----------- */
.karte-zustimmung {
	position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center;
	padding: 2rem 1.25rem; text-align: center; color: rgba(255, 255, 255, .88);
	background-color: #2e3236;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(135deg, #3a3f44 0%, #24272b 100%);
	background-size: 32px 32px, 32px 32px, auto;
}
.karte-zustimmung__box { max-width: 32rem; }
.karte-zustimmung__label { margin: 0 0 .6rem; font-size: var(--font-size-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #ff6b78; }
.karte-zustimmung__text { margin: 0 0 1.4rem; line-height: 1.65; }
.karte-zustimmung__text a { color: #fff !important; text-decoration: underline; }
button.karte-zustimmung__knopf {
	margin: 0 !important; padding: .85rem 2.1rem !important; font-size: 1.05rem; font-weight: 600;
	background: #fff !important; color: #2e3236 !important; border: 0 !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .3) !important;
}
button.karte-zustimmung__knopf:hover { color: var(--b-red) !important; }
.karte-zustimmung__link { display: inline-block; margin-top: 1.1rem; font-size: var(--font-size-s); color: rgba(255, 255, 255, .8) !important; }
.karte-zustimmung__link:hover { color: #fff !important; }
.karte-zustimmung.ist-geladen { padding: 0; min-height: 0; display: block; background: none; }
.karte-zustimmung.ist-geladen iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 560px) { .karte-zustimmung.ist-geladen iframe { height: 320px; } }

/* --- Daten der Wohnanlagen ------------------------------------------------------ */
.wa-daten { margin: .25rem 0 1.5rem; }
.area--main .wa-daten h3 { font-size: var(--font-size-s); text-transform: uppercase; letter-spacing: .1em; color: #888; margin: 1.5rem 0 .6rem; font-weight: 600; }
.area--main .wa-daten ul { list-style: none; padding: 0; margin: 0; }
.area--main .wa-daten li::before { content: none !important; }
.wa-kennzahl {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem;
	background: linear-gradient(120deg, #fff4f5 0%, #fff 70%); border-left: 4px solid var(--b-red);
	border-radius: var(--b-radius-s); padding: 1rem 1.25rem; margin: 0 !important; color: var(--b-ink);
}
.wa-kennzahl strong { font-size: 2rem; line-height: 1; color: var(--b-red); font-weight: 700; }
.wa-kennzahl span { color: #666; }
.wa-gebaeude li {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: .55rem 0; border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.wa-gebaeude li:last-child { border-bottom: 0; }
.wa-adresse { padding-left: 1.4rem; position: relative; }
.wa-adresse::before {
	content: ""; position: absolute; left: 0; top: .25em; width: .85rem; height: .85rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e2001a' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wa-baujahr { flex-shrink: 0; font-size: var(--font-size-xs); background: #f3f4f6; border-radius: 999px; padding: .2rem .7rem; color: #555; white-space: nowrap; }
.wa-baujahr::before { content: "Baujahr "; color: #999; }
.wa-zimmer { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .6rem; }
.wa-zimmer li { background: #fff; border-radius: var(--b-radius-s); box-shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 4px 14px rgba(20, 20, 40, .07); padding: .8rem .9rem; line-height: 1.3; }
.wa-zimmer strong { display: block; font-size: 1.5rem; color: var(--b-red); font-weight: 700; margin-bottom: .2rem; }
.wa-zimmer span { font-size: var(--font-size-s); color: #555; }
.wa-stellplaetze li { display: flex; gap: .75rem; align-items: baseline; padding: .4rem 0; }
.wa-stellplaetze strong { min-width: 2.2rem; text-align: right; color: var(--b-red); font-weight: 700; }
.wa-stellplaetze li:not(:has(strong)) span { padding-left: 2.95rem; color: #666; }
@media (max-width: 560px) {
	.wa-gebaeude li { flex-direction: column; align-items: flex-start; gap: .3rem; }
	.wa-baujahr { margin-left: 1.4rem; }
}
.karte-zustimmung__link { display: block !important; width: fit-content; margin-left: auto !important; margin-right: auto !important; }
