/*
Theme Name: Tinz & Eisemann Immobilien
Theme URI: https://t-e-immobilien.de
Author: DAT Media UG
Author URI: https://dat-media.de
Description: Modernes Block-Theme (Full Site Editing) für Tinz & Eisemann Immobilienvermittlung. Petrol-Farbpalette der bisherigen Webseite, lokal eingebundene Schrift Montserrat (DSGVO-freundlich), Startseite und alle Seiten komplett im WordPress-Editor bearbeitbar. Arbeitet mit dem Plugin „TE Immobilien“ zusammen.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tinz-eisemann
*/

/* ===== Basis ===== */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
::selection { background: var(--wp--preset--color--accent); color: #14292c; }
:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main.wp-block-group { margin-block-start: 0; }

/* ===== Kopfbereich ===== */
.te-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .te-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .te-header { top: 46px; } }
.te-header .wp-block-site-logo img { display: block; width: auto; height: 46px; border-radius: 0; }
.te-header__phone .wp-block-button__link { padding: .6em 1.15em !important; font-size: .92rem; }
.te-header .wp-block-navigation__submenu-container { border-radius: 14px; border: 1px solid var(--wp--preset--color--line); box-shadow: var(--wp--preset--shadow--lifted); padding: .4rem; }
.te-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .55rem .9rem; border-radius: 8px; }
.te-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--soft); }
.te-header .wp-block-navigation-item__content { position: relative; }
.te-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--wp--preset--color--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.te-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after,
.te-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
@media (max-width: 640px) { .te-header__phone { display: none; } .te-header .wp-block-site-logo img { height: 38px; } }

/* ===== Seitenkopf (Titelbild als Banner) ===== */
.te-pagehead.wp-block-cover { min-height: 260px; }
.te-pagehead .wp-block-post-title { color: #fff; margin: 0; text-shadow: 0 2px 24px rgba(0, 40, 45, .35); }
.te-pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--wp--preset--color--accent); z-index: 2; }
.te-pagehead .wp-block-cover__inner-container { width: 100%; }

/* ===== Block-Stile ===== */
.is-style-te-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--soft); overflow: hidden; }
.wp-block-group.is-style-te-card { padding: 1.5rem; }
.wp-block-media-text.is-style-te-card .wp-block-media-text__content { padding: 2rem 2.4rem; }
.wp-block-media-text.is-style-te-card .wp-block-media-text__media img { height: 100%; object-fit: cover; }
.wp-block-image.is-style-te-rounded img { border-radius: var(--wp--custom--radius--card); }
.wp-block-button.is-style-accent .wp-block-button__link { background: var(--wp--preset--color--accent); color: #14292c; }
.wp-block-button.is-style-accent .wp-block-button__link:hover { background: #ffe34d; color: #14292c; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--primary); border: 2px solid var(--wp--preset--color--primary); padding-top: calc(.85em - 2px); padding-bottom: calc(.85em - 2px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--primary); color: #fff; }
.te-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.6; color: var(--wp--preset--color--muted); max-width: 52rem; }
.te-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--secondary); margin: 0; }
.te-section-row { margin-block: 2.5rem; scroll-margin-top: 110px; }
.te-ratgeber-card { height: 100%; }
.te-ratgeber-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ===== Startseite ===== */
.te-hero {
	position: relative; isolation: isolate; overflow: hidden; color: #fff;
	background: var(--wp--preset--gradient--petrol-deep);
}
.te-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 213, 0, .28), transparent 38%),
		radial-gradient(circle at 10% 90%, rgba(1, 145, 156, .55), transparent 45%);
}
.te-hero::after {
	content: ""; position: absolute; right: -40px; bottom: -2px; width: min(62%, 760px); height: 70%; z-index: -1; opacity: .18;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linejoin='round'%3E%3Cpath d='M10 290V170L90 110l80 60v120M170 290V200l70-50 70 50v90M310 290V130L400 55l90 75v160M490 290V190l50-40 50 40v100M0 290h600'/%3E%3Cpath d='M60 290v-60h40v60M215 290v-40h50v40M380 290v-70h40v70M530 290v-45h40v45'/%3E%3C/svg%3E") no-repeat right bottom / contain;
}
.te-hero h1 { color: #fff; font-size: var(--wp--preset--font-size--huge); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; max-width: 14ch; }
.te-hero .te-eyebrow { color: var(--wp--preset--color--accent); }
.te-hero p { color: rgba(255, 255, 255, .92); }
.te-hero .te-lead { color: rgba(255, 255, 255, .9); }
.te-hero .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .7); }
.te-hero .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--primary); }
.te-hero-search { margin-top: -3.2rem !important; position: relative; z-index: 5; }

.te-stat { background: var(--wp--preset--color--soft); border-radius: 18px; padding: 1.3rem 1.4rem; height: 100%; }
.te-stat p { margin: 0; }
.te-stat__num { font-size: 1.7rem; font-weight: 800; color: var(--wp--preset--color--primary); line-height: 1.1; letter-spacing: -.02em; }
.te-stat__txt { font-size: .9rem; color: var(--wp--preset--color--muted); margin-top: .3rem !important; line-height: 1.45; }

.te-tile { position: relative; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 20px; padding: 1.7rem 1.7rem 1.5rem; box-shadow: var(--wp--preset--shadow--soft); transition: transform .25s, box-shadow .25s, border-color .25s; height: 100%; }
.te-tile:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lifted); border-color: var(--wp--preset--color--secondary); }
.te-tile h3 { margin: 0 0 .3rem; font-size: 1.2rem; }
.te-tile h3 a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.te-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.te-tile p { margin: 0; color: var(--wp--preset--color--muted); font-size: .95rem; }
.te-tile__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--wp--preset--color--soft); color: var(--wp--preset--color--primary); margin-bottom: 1rem; font-size: 1.3rem; font-weight: 800; }
.te-tile:hover .te-tile__ico { background: var(--wp--preset--color--primary); color: #fff; }
.te-tile__more { margin-top: 1rem !important; font-weight: 700; font-size: .9rem; color: var(--wp--preset--color--primary) !important; }

.te-cta-band { background: var(--wp--preset--gradient--petrol); color: #fff; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem) !important; position: relative; overflow: hidden; }
.te-cta-band h2, .te-cta-band p { color: #fff; }
.te-cta-band p { max-width: 40rem; opacity: .95; }
.te-cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 213, 0, .22); }
.te-cta-band > * { position: relative; z-index: 1; }

.te-partner { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; justify-content: center; }
.te-partner img { max-height: 70px; width: auto; filter: grayscale(.1); }

/* ===== Fußbereich ===== */
.te-footer { background: #0b3a40; color: rgba(255, 255, 255, .85); }
.te-footer h2, .te-footer h3, .te-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.te-footer a { color: #fff; text-decoration: none; }
.te-footer a:hover { color: var(--wp--preset--color--accent); text-decoration: underline; }
.te-footer .te-address { color: rgba(255, 255, 255, .9); }
.te-footer .te-address .te-icon { color: var(--wp--preset--color--accent); }
.te-footer__logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 12px; }
.te-footer__logo img { display: block; height: 40px; width: auto; border-radius: 0; }
.te-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.te-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; color: rgba(255, 255, 255, .7); }
.te-footer__bottom a { color: rgba(255, 255, 255, .85); }

/* ===== Objekt-Einzelseite ===== */
.te-single-objekt .te-objekt-head { padding-block: 2.2rem 1.2rem; }
.te-single-objekt .te-objekt-head .wp-block-post-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); max-width: 28ch; }

/* ===== Zurück-nach-oben, Bewegung reduzieren ===== */
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .te-header, .te-footer, .te-pricebox__cta, .te-contact-forms { display: none !important; } }
