/* =============================================================================
 * GFBW – Design-Auffrischung (gfbw2.tc-r.de, 23.11.2026)
 * Wird nach customize.css geladen. Farben, Schriften und Aufbau bleiben;
 * neu sind Verläufe statt flacher Farbflächen, runde Ecken, weichere Schatten
 * und ruhigere Titelbilder.
 * ========================================================================== */
:root {
	--g-blue: #007fbe;
	--g-blue-dark: #00598a;
	--g-blue-light: #29a3dc;
	--g-gold: #b68322;
	--g-gold-dark: #8c6214;
	--g-red: #8a3c48;
	--g-red-dark: #632630;
	--g-radius: 14px;
	--g-radius-s: 10px;
	--g-shadow: 0 1px 2px rgba(0, 40, 70, .06), 0 8px 24px rgba(0, 40, 70, .10);
	--g-shadow-hover: 0 2px 4px rgba(0, 40, 70, .08), 0 16px 40px rgba(0, 40, 70, .16);
	--g-ease: cubic-bezier(.2, .7, .2, 1);
}

html { animation: none; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* --- Kopfbereich ----------------------------------------------------------- */
#header { transition: box-shadow .3s var(--g-ease); }
.header.cloned, .stickyheader #header.cloned {
	background: rgba(255, 255, 255, .92) !important;
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
	box-shadow: 0 6px 24px rgba(0, 40, 70, .10);
}
#top-wrapper { box-shadow: 0 1px 0 rgba(0, 40, 70, .06); position: relative; z-index: 5; }

/* Hauptmenü: dezente Unterstreichung statt reinem Farbwechsel */
.mainmenu .level_1 > li > a > span { position: relative; }
.mainmenu .level_1 > li > a > span::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
	border-radius: 2px; background: currentColor;
	transform: scaleX(0); transform-origin: left; transition: transform .3s var(--g-ease);
}
.mainmenu .level_1 > li > a:hover > span::after,
.mainmenu .level_1 > li.active > a > span::after,
.mainmenu .level_1 > li.trail > a > span::after { transform: scaleX(1); }
.mainmenu .level_1 > li > a { text-decoration: none !important; border-bottom: 0 !important; }
.mainmenu .level_2 {
	border-radius: var(--g-radius-s); overflow: hidden;
	box-shadow: var(--g-shadow-hover) !important; border: 0 !important;
}

/* --- Titelbilder der Unterseiten ------------------------------------------- */
.ce_headerimage {
	position: relative; overflow: hidden;
	background-size: cover !important;
	background-position: center 45% !important;
}
.ce_headerimage.height_small { height: 340px; }
.ce_headerimage.height_medium { height: 380px; }
.ce_headerimage::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(0, 60, 100, .78) 0%, rgba(0, 90, 140, .45) 38%, rgba(0, 127, 190, 0) 70%),
		linear-gradient(0deg, rgba(0, 30, 50, .45) 0%, rgba(0, 30, 50, 0) 55%);
}
.neuaubing .ce_headerimage::before {
	background:
		linear-gradient(90deg, rgba(110, 72, 8, .80) 0%, rgba(182, 131, 34, .45) 38%, rgba(182, 131, 34, 0) 70%),
		linear-gradient(0deg, rgba(40, 25, 0, .45) 0%, rgba(40, 25, 0, 0) 55%);
}
.ffb .ce_headerimage::before {
	background:
		linear-gradient(90deg, rgba(90, 30, 40, .82) 0%, rgba(138, 60, 72, .45) 38%, rgba(138, 60, 72, 0) 70%),
		linear-gradient(0deg, rgba(40, 10, 15, .45) 0%, rgba(40, 10, 15, 0) 55%);
}
.ce_headerimage .ce_headerimage_inside { position: relative; z-index: 1; }
.ce_headerimage h1 {
	text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
	letter-spacing: .02em;
}
.ce_headerimage .content::after {
	content: ""; display: block; width: 64px; height: 4px; margin-top: 14px;
	border-radius: 4px; background: rgba(255, 255, 255, .9);
}
/* Bildausschnitte, damit Gebäude und Logos nicht abgeschnitten werden */
.ce_headerimage_63024, .ce_headerimage_63445, .ce_headerimage_63085, .ce_headerimage_63233 { background-position: center 38% !important; }
.ce_headerimage_63061, .ce_headerimage_63388, .ce_headerimage_63394, .ce_headerimage_63401,
.ce_headerimage_63408, .ce_headerimage_63418, .ce_headerimage_63517 { background-position: center 55% !important; }
.ce_headerimage_63101, .ce_headerimage_63460, .ce_headerimage_63482, .ce_headerimage_63500 { background-position: center 50% !important; }
.ce_headerimage_63671 { background-position: center 60% !important; }
@media (max-width: 767px) {
	.ce_headerimage.height_small, .ce_headerimage.height_medium { height: 240px; }
	.ce_headerimage::before { background: linear-gradient(0deg, rgba(0, 50, 85, .80) 0%, rgba(0, 50, 85, .25) 70%, rgba(0, 50, 85, .1) 100%); }
	.neuaubing .ce_headerimage::before { background: linear-gradient(0deg, rgba(110, 72, 8, .82) 0%, rgba(110, 72, 8, .25) 70%, rgba(110, 72, 8, .1) 100%); }
	.ffb .ce_headerimage::before { background: linear-gradient(0deg, rgba(90, 30, 40, .82) 0%, rgba(90, 30, 40, .25) 70%, rgba(90, 30, 40, .1) 100%); }
}

/* --- Startseite: drei große Kacheln ---------------------------------------- */
#home { padding: 15px 15px 0 !important; }
#home .ce_autogridwrapper { padding-left: 0 !important; }
#home > .autogrid_wrapper { margin-left: 0 !important; margin-right: 0 !important; width: auto !important; }
#home .ce_bgimage {
	position: relative; overflow: hidden; isolation: isolate;
	border-radius: var(--g-radius); box-shadow: var(--g-shadow);
	background: var(--g-blue-dark);
}
#home .ce_bgimage .ce_bgimage-image {
	opacity: 1 !important; background-size: cover; background-position: center;
	transition: transform 1.2s var(--g-ease); z-index: -2;
}
#home .ce_bgimage:hover .ce_bgimage-image { transform: scale(1.04); }
#home .ce_bgimage::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
#home .ce_bgimage.startblockblau::before {
	background: linear-gradient(255deg, rgba(0, 127, 190, .55) 0%, rgba(0, 95, 150, .82) 45%, rgba(0, 60, 100, .94) 100%);
}
#home .ce_bgimage.startblockgelb::before {
	background: linear-gradient(105deg, rgba(140, 98, 20, .94) 0%, rgba(182, 131, 34, .78) 45%, rgba(182, 131, 34, .25) 100%);
}
#home .ce_bgimage.startblockrot::before {
	background: linear-gradient(105deg, rgba(99, 38, 48, .94) 0%, rgba(138, 60, 72, .78) 45%, rgba(138, 60, 72, .25) 100%);
}
#home .ce_bgimage-outer, #home .ce_bgimage-inside { position: relative; z-index: 1; }
#home .ce_bgimage h2 { text-shadow: 0 2px 16px rgba(0, 0, 0, .25); }
#home .ce_bgimage.startblockrot { margin-top: 15px !important; }
#home .ce_autogridwrapper.two_fifth { padding-right: 15px !important; }
#home .ce_autogridwrapper.three_fifth { padding-right: 0 !important; }
@media (max-width: 767px) {
	#home { padding: 12px 12px 0 !important; }
	#home .ce_autogridwrapper.two_fifth { padding-right: 0; margin-bottom: 12px; }
	#home .ce_bgimage.startblockrot { margin-top: 12px !important; }
}

/* --- Knöpfe ------------------------------------------------------------------ */
.ce_hyperlink a.hyperlink_txt, .ce_hyperlink-extended a {
	border-radius: 999px !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	transition: transform .25s var(--g-ease), box-shadow .25s var(--g-ease), background-color .25s, color .25s;
}
.ce_hyperlink a.hyperlink_txt:hover, .ce_hyperlink-extended a:hover {
	transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}
.ce_hyperlink a.hyperlink_txt::after { content: " →"; font-weight: 500; }

/* --- Kacheln auf den Wohnanlagen-Seiten (ce_iconbox_v2) --------------------- */
.neuaubing .ce_iconbox_v2, .ffb .ce_iconbox_v2 {
	border-radius: var(--g-radius); overflow: hidden;
	box-shadow: var(--g-shadow);
	transition: transform .3s var(--g-ease), box-shadow .3s var(--g-ease);
}
.neuaubing .ce_iconbox_v2 { background: linear-gradient(140deg, #cf9a35 0%, var(--g-gold) 45%, var(--g-gold-dark) 100%) !important; }
.ffb .ce_iconbox_v2 { background: linear-gradient(140deg, #a65665 0%, var(--g-red) 45%, var(--g-red-dark) 100%) !important; }
.neuaubing .ce_iconbox_v2:hover, .ffb .ce_iconbox_v2:hover { transform: translateY(-4px); box-shadow: var(--g-shadow-hover); }
.neuaubing .ce_iconbox_v2 a.link, .ffb .ce_iconbox_v2 a.link {
	border-radius: 999px; padding: 4px 14px !important; border-width: 1.5px !important;
	transition: background-color .25s, color .25s;
}
.neuaubing .ce_iconbox_v2 a.link:hover { background: #fff; color: var(--g-gold-dark) !important; }
.ffb .ce_iconbox_v2 a.link:hover { background: #fff; color: var(--g-red-dark) !important; }

/* --- News-Kacheln ------------------------------------------------------------ */
.newsteaser_v7 { border-radius: var(--g-radius); overflow: hidden; box-shadow: var(--g-shadow); transition: transform .3s var(--g-ease), box-shadow .3s var(--g-ease); }
.newsteaser_v7:hover { transform: translateY(-4px); box-shadow: var(--g-shadow-hover); }
.newsteaser_v7 .image_container { overflow: hidden; }
.newsteaser_v7 .image_container img { transition: transform 1s var(--g-ease); object-fit: cover; }
.newsteaser_v7:hover .image_container img { transform: scale(1.06); }
.newsteaser_v7 .item-overlay {
	background: linear-gradient(180deg, rgba(0, 90, 140, .92) 0%, rgba(0, 127, 190, .70) 45%, rgba(0, 127, 190, .25) 100%) !important;
}
.newsteaser_v7:hover .item-overlay {
	background: linear-gradient(180deg, rgba(0, 90, 140, .88) 0%, rgba(0, 127, 190, .45) 50%, rgba(0, 127, 190, 0) 100%) !important;
}
.nnews .newsteaser_v7 .item-overlay { background: linear-gradient(180deg, rgba(140, 98, 20, .92) 0%, rgba(182, 131, 34, .65) 50%, rgba(182, 131, 34, .2) 100%) !important; }
.fnews .newsteaser_v7 .item-overlay { background: linear-gradient(180deg, rgba(99, 38, 48, .92) 0%, rgba(138, 60, 72, .65) 50%, rgba(138, 60, 72, .2) 100%) !important; }
.newsteaser_v7 a.weiterlesen {
	border-radius: 999px; padding: 6px 18px; line-height: 1.6;
	transition: background-color .25s, color .25s;
}
.newsteaser_v7 a.weiterlesen:hover { background: #fff; color: var(--g-blue) !important; }

/* --- Inhaltsbilder und Bildergalerien ---------------------------------------- */
#main .ce_image .image_container img,
#main .ce_text .image_container img,
#main .ce_gallery img,
#main .rsts-main,
#main .mod_rocksolid_slider,
#main .ce_rocksolid_slider { border-radius: var(--g-radius-s); }
#main .rsts-main, #main .mod_rocksolid_slider { overflow: hidden; box-shadow: var(--g-shadow); }

/* Akkordeons, Downloads und Formulare */
.ce_accordion { border-radius: var(--g-radius-s); overflow: hidden; }
.ce_accordion .toggler { transition: background-color .25s; }
#main input[type="text"], #main input[type="email"], #main input[type="tel"], #main input[type="number"],
#main input[type="date"], #main select, #main textarea {
	border-radius: 8px !important; transition: border-color .2s, box-shadow .2s;
}
#main input:focus, #main select:focus, #main textarea:focus {
	border-color: var(--g-blue) !important; box-shadow: 0 0 0 3px rgba(0, 127, 190, .15) !important; outline: 0;
}
#main input[type="submit"], #main button[type="submit"], #main .submit {
	border-radius: 999px !important; padding-left: 28px !important; padding-right: 28px !important;
	background: linear-gradient(135deg, var(--g-blue-light), var(--g-blue-dark)) !important; border: 0 !important;
	box-shadow: 0 6px 18px rgba(0, 90, 140, .25); transition: transform .25s var(--g-ease), box-shadow .25s;
}
#main input[type="submit"]:hover, #main button[type="submit"]:hover, #main .submit:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 90, 140, .32); }

/* --- Fußzeile ---------------------------------------------------------------- */
#footer { background: linear-gradient(180deg, #fff 0%, #f1f7fb 100%) !important; }
#bottom {
	background: linear-gradient(100deg, var(--g-blue-dark) 0%, var(--g-blue) 55%, var(--g-blue-light) 100%) !important;
}
#bottom a { transition: opacity .2s; }
#bottom a:hover { opacity: .75; }

/* Barrierefreiheits-Knopf etwas weicher */
#tabnav-button, .tabnav-button { box-shadow: var(--g-shadow) !important; }

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