/*
Theme Name:   Astra Child – LINTERA
Theme URI:    https://lintera-immobilien.de
Description:  Child-Theme von Astra für lintera-immobilien.de: Gestaltung der Seitenbausteine (Klassen lin-*), Header-/Footer-Details, Template-Overrides für das Plugin „LINTERA Inserate“ (Ordner /lintera-inserate/).
Author:       LINTERA Immobilien GmbH
Template:     astra
Version:      1.7.2
Text Domain:  astra-child-lintera
*/

/* ==========================================================================
   Grundlagen
   Farben aus den Astra-Globalfarben: 0/1 Oliv, 3 Text, 4 Sand, 5 Creme.
   ========================================================================== */
:root {
	--l-olive: var(--ast-global-color-0, #414132);
	--l-ink: var(--ast-global-color-3, #2f2f2a);
	--l-sand: var(--ast-global-color-4, #d8cfc0);
	--l-cream: var(--ast-global-color-5, #fffaf0);
	--l-accent: #7e8366;
	--l-muted: #5f5f53;
	--l-line: rgba(47, 47, 42, .14);
	--l-radius: 8px;
	--l-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);
	--l-max: 1140px;
	--l-focus: 0 0 0 3px rgba(126, 131, 102, .6);
}

/* Footer schließt jede Seite ab, auch bei wenig Inhalt. */
#page { display: flex; flex-direction: column; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px)); }
#content { flex: 1 0 auto; }

/* Sichtbarer Tastaturfokus überall. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
	outline: 2px solid var(--l-accent);
	outline-offset: 2px;
}

/* Platzhalter für noch fehlende Inhalte – fallen bewusst auf. */
.lin-placeholder {
	display: inline-block;
	padding: 2px 8px;
	border: 1px dashed #b07d00;
	border-radius: 4px;
	background: #fff4cc;
	color: #5a4300 !important;
	font-style: italic;
}

/* ==========================================================================
   Header
   ========================================================================== */
.lin-header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--l-cream) !important;
	font-weight: 500;
	text-decoration: none !important;
	white-space: nowrap;
}
.lin-header-phone::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lin-header-phone:hover { opacity: .85; }
.lin-header-phone--icon {
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 250, 240, .4);
	border-radius: 50%;
}
.lin-header-phone--icon::before { width: 20px; height: 20px; }

.ast-builder-button-wrap .ast-custom-button {
	padding: 10px 18px;
	border: 1px solid var(--l-cream);
	border-radius: 3px;
	background: var(--l-cream);
	color: var(--l-olive);
	font-weight: 600;
	text-transform: none;
	white-space: nowrap;
}
.ast-primary-header-bar #ast-hf-menu-1 { flex-wrap: nowrap; }
.ast-primary-header-bar #ast-hf-menu-1 > .menu-item > .menu-link { white-space: nowrap; }
.ast-builder-button-wrap .ast-custom-button:hover { background: var(--l-sand); border-color: var(--l-sand); color: var(--l-olive); }
.ast-builder-layout-element.ast-header-html-1 { margin-inline: 8px 4px; }
@media (max-width: 1440px) and (min-width: 922px) {
	.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { padding-inline: 12px; }
}
@media (max-width: 1320px) and (min-width: 922px) {
	.ast-header-html-1 { display: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-primary-footer-wrap { padding-block: 48px 24px; color: var(--l-cream); }
.site-primary-footer-wrap p { margin: 0 0 12px; line-height: 1.6; }
.site-primary-footer-wrap .ast-builder-html-element { text-align: left !important; }
.site-primary-footer-wrap a { color: var(--l-cream) !important; text-decoration: none; }
.site-primary-footer-wrap a:hover { text-decoration: underline; }
.lin-footer-title { margin-bottom: 10px !important; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; opacity: .75; }
.lin-footer-links { margin: 0; padding: 0; list-style: none; }
.lin-footer-links li { margin: 0 0 6px; }
.site-primary-footer-wrap .lin-placeholder { font-size: .9rem; }

/* ==========================================================================
   Bausteine für Seiten (Block-Editor, Klassen lin-*)
   ========================================================================== */
.entry-content .lin-sec, .lin-sec {
	margin: 0 !important;
	padding: clamp(48px, 7vw, 88px) 16px;
	max-width: none !important;
}
.lin-sec > * {
	max-width: var(--l-max);
	/* linksbündig im Inhaltsraster, auch wenn ein Element schmaler ist (z. B. Absätze mit 68ch) */
	margin-left: max(0px, calc((100% - var(--l-max)) / 2)) !important;
	margin-right: auto !important;
}
.lin-sec--cream { background: var(--l-cream); }
.lin-sec--sand { background: var(--l-sand); }
.lin-sec--olive { background: var(--l-olive); color: var(--l-cream); }
.lin-sec--olive h1, .lin-sec--olive h2, .lin-sec--olive h3, .lin-sec--olive p, .lin-sec--olive a:not(.wp-block-button__link) { color: var(--l-cream); }
/* Formulare und Karten des Plugins behalten auf dunklen Abschnitten ihre eigenen Farben. */
.lin-sec--olive .lin-va p, .lin-sec--olive .lin-va label, .lin-sec--olive .lin-va h2, .lin-sec--olive .lin-va h3 { color: var(--l-ink); }
.lin-sec--olive .lin-va a { color: var(--l-olive); }
.lin-sec .lin-card__title { font-size: 1.25rem; line-height: 1.3; margin-bottom: 8px; }
.lin-sec--tight { padding-block: clamp(32px, 4vw, 48px); }

.lin-sec h1 { margin-bottom: 16px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.12; font-weight: 600; text-wrap: balance; }
.lin-sec h2 { margin-bottom: 14px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.2; font-weight: 600; text-wrap: balance; }
.lin-sec h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; margin-bottom: 8px; }
.lin-sec p { max-width: 68ch; }
.lin-eyebrow { margin-bottom: 8px !important; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--l-accent); }
.lin-sec--olive .lin-eyebrow { color: var(--l-sand); }
.lin-lead { font-size: 1.1rem; line-height: 1.65; color: var(--l-muted); }
.lin-sec--olive .lin-lead { color: rgba(255, 250, 240, .85); }
.lin-intro { margin-bottom: clamp(24px, 4vw, 40px) !important; }

/* Buttons */
.wp-block-buttons.lin-actions { gap: 12px; margin-top: 24px; }
.wp-block-button.lin-btn-dark .wp-block-button__link,
.wp-block-button.lin-btn-light .wp-block-button__link,
.wp-block-button.lin-btn-outline .wp-block-button__link {
	padding: 13px 24px;
	border: 1px solid transparent;
	border-radius: 3px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
}
.wp-block-button.lin-btn-dark .wp-block-button__link { background: var(--l-olive); border-color: var(--l-olive); color: var(--l-cream); }
.wp-block-button.lin-btn-dark .wp-block-button__link:hover { background: var(--l-accent); border-color: var(--l-accent); }
.wp-block-button.lin-btn-light .wp-block-button__link { background: var(--l-cream); border-color: var(--l-cream); color: var(--l-olive); }
.wp-block-button.lin-btn-light .wp-block-button__link:hover { background: var(--l-sand); border-color: var(--l-sand); }
.wp-block-button.lin-btn-outline .wp-block-button__link { background: transparent; border-color: currentColor; color: inherit; }
.lin-sec--olive .wp-block-button.lin-btn-outline .wp-block-button__link, .lin-hero .wp-block-button.lin-btn-outline .wp-block-button__link { color: var(--l-cream); }
.wp-block-button.lin-btn-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); }

/* Textlink mit Pfeil */
.lin-more a { font-weight: 600; color: var(--l-olive); text-decoration: none; }
.lin-more a::after { content: " →"; }
.lin-more a:hover { text-decoration: underline; }

/* Hero (Cover-Block mit Video) */
.wp-block-cover.lin-hero { min-height: min(78vh, 720px) !important; padding: 0 16px; align-items: center; }
.lin-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--l-max) !important; margin-inline: auto; color: var(--l-cream); }
.lin-hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(47, 47, 38, .88) 0%, rgba(47, 47, 38, .65) 50%, rgba(47, 47, 38, .25) 100%) !important; opacity: 1 !important; }
.lin-hero h1 { max-width: 18ch; margin: 0 0 16px; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); line-height: 1.1; font-weight: 600; color: var(--l-cream); text-wrap: balance; }
.lin-hero .lin-eyebrow { color: var(--l-sand) !important; }
.lin-hero .lin-lead { max-width: 52ch; color: rgba(255, 250, 240, .9) !important; font-size: 1.15rem; }
@media (max-width: 767px) {
	.wp-block-cover.lin-hero { background: url(/wp-content/uploads/2026/09/lintera-hero-poster.jpg) center / cover; min-height: 560px !important; padding-top: 112px; padding-bottom: 48px; }
	.lin-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(47, 47, 38, .55), rgba(47, 47, 38, .85)) !important; }
}

/* Schnellzugänge */
.lin-tiles { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.lin-tile {
	position: relative;
	margin: 0 !important;
	padding: 24px 22px 22px 22px;
	border-radius: var(--l-radius);
	background: #fff;
	box-shadow: var(--l-shadow);
	transition: transform .15s, box-shadow .15s;
}
.lin-tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 14px 30px rgba(0, 0, 0, .1); }
.lin-tile h3 { margin: 0 0 6px; font-size: 1.1rem; }
.lin-tile h3 a { color: var(--l-olive); text-decoration: none; }
.lin-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.lin-tile h3 a::before { content: "→"; float: right; color: var(--l-accent); }
.lin-tile p { margin: 0; font-size: .95rem; color: var(--l-muted); }
.lin-tile:focus-within { box-shadow: var(--l-focus); }

/* Vertrauensleiste */
.lin-stats { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.lin-stat { margin: 0 !important; padding: 8px 20px; text-align: center; }
.lin-stat + .lin-stat { border-left: 1px solid rgba(255, 250, 240, .16); }
.lin-stat::before {
	content: "";
	display: block;
	width: 60px;
	height: 60px;
	margin: 0 auto 16px;
	border: 1px solid rgba(216, 207, 192, .45);
	border-radius: 50%;
	background: var(--lin-stat-icon) center / 28px no-repeat;
}
.lin-stat--units { --lin-stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D8CFC0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 22v-4h6v4M8 6h.01M12 6h.01M16 6h.01M8 10h.01M12 10h.01M16 10h.01M8 14h.01M12 14h.01M16 14h.01'/%3E%3C/svg%3E"); }
.lin-stat--years { --lin-stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D8CFC0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
.lin-stat--certified { --lin-stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D8CFC0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.lin-stat--vdiv { --lin-stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D8CFC0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.lin-stat--regions { --lin-stat-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D8CFC0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.lin-stat p { margin: 0 auto; max-width: 22ch !important; }
.lin-stat .lin-stat__value { font-size: clamp(1.35rem, 1rem + .9vw, 1.85rem); font-weight: 600; line-height: 1.15; white-space: nowrap; color: var(--l-cream); }
.lin-stat .lin-stat__label { margin-top: 8px; font-size: .9rem; line-height: 1.5; opacity: .8; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: normal; }
@media (max-width: 1024px) {
	.lin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
	.lin-stat:nth-child(4) { border-left: 0; }
}
@media (max-width: 600px) {
	.lin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
	.lin-stat { padding: 0 10px; }
	.lin-stat + .lin-stat { border-left: 0; }
	.lin-stat:last-child { grid-column: 1 / -1; }
	.lin-stat::before { width: 52px; height: 52px; background-size: 24px; }
}

/* Karten (Leistungen) */
.lin-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.lin-card-box { display: flex; flex-direction: column; margin: 0 !important; padding: 28px 26px; border-radius: var(--l-radius); background: #fff; box-shadow: var(--l-shadow); }
.lin-card-box p { color: var(--l-muted); }
.lin-card-box .lin-more { margin-top: auto; padding-top: 8px; }
.lin-cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.lin-sec .wp-block-list { margin: 0 0 16px; padding-left: 1.2em; }
.lin-sec .wp-block-list li { margin-bottom: 6px; }
.lin-sec h1, .lin-sec h2, .lin-sec h3 { hyphens: auto; overflow-wrap: normal; }

/* Schritte (echte Reihenfolge → nummeriert) */
.lin-steps { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; counter-reset: lin-step; }
.lin-step { position: relative; margin: 0 !important; padding: 56px 0 0; counter-increment: lin-step; }
.lin-step::before {
	content: counter(lin-step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--l-olive);
	color: var(--l-cream);
	font-weight: 600;
}
.lin-sec--olive .lin-step::before { background: var(--l-cream); color: var(--l-olive); }
.lin-step h3 { margin-bottom: 6px; }
.lin-step p { margin: 0; color: var(--l-muted); }
.lin-steps--2 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lin-number { margin: 0 0 6px !important; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); font-weight: 600; line-height: 1; color: var(--l-accent); opacity: .55; }
.lin-sec--olive .lin-step p { color: rgba(255, 250, 240, .85); }

/* Zwei Spalten: Text links, Punkte rechts */
.lin-split { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) { .lin-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.lin-points { margin: 0 !important; }
.lin-point { margin: 0 0 20px !important; padding-bottom: 20px; border-bottom: 1px solid var(--l-line); }
.lin-point:last-child { border-bottom: 0; }
.lin-point h3 { margin-bottom: 6px; }
.lin-point p { margin: 0; color: var(--l-muted); }

/* Zitate (Platzhalter) */
.lin-quotes { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.lin-quote { margin: 0 !important; padding: 28px; border-radius: var(--l-radius); background: #fff; box-shadow: var(--l-shadow); }
.lin-quote blockquote, .lin-quote .wp-block-quote { margin: 0; padding: 0; border: 0; font-size: 1.05rem; line-height: 1.6; }
.lin-quote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 600; color: var(--l-muted); }

/* Kontakt-Karte statt eingebetteter Karte */
.lin-address-card { padding: 28px; border-radius: var(--l-radius); background: #fff; box-shadow: var(--l-shadow); }
.lin-address-card p { margin-bottom: 10px; }
.lin-address-card a { color: var(--l-olive); font-weight: 600; }

/* FAQ (Details-Block) */
.lin-faq .wp-block-details { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--l-line); }
.lin-faq .wp-block-details summary { font-weight: 600; cursor: pointer; }
.lin-faq .wp-block-details[open] summary { margin-bottom: 8px; }

/* Zeitleiste (Über uns) */
.lin-timeline { position: relative; margin: 0 !important; padding-left: 28px !important; list-style: none; border-left: 2px solid var(--l-sand); }
.lin-timeline li { position: relative; margin: 0 0 22px; }
.lin-timeline li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--l-olive); border: 3px solid var(--l-cream); }
.lin-timeline strong { display: block; color: var(--l-olive); }

/* Formularbereich */
.lin-form-wrap { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) { .lin-form-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } }
.lin-form-wrap .lin-va, .lin-form-panel { padding: clamp(20px, 3vw, 32px); border-radius: var(--l-radius); background: var(--l-cream); color: var(--l-ink); }
.lin-sec--olive .lin-form-wrap .lin-va p, .lin-sec--olive .lin-form-wrap .lin-va label { color: var(--l-ink); }

/* ==========================================================================
   Bestehende Seiten: Lesbarkeit und Kontrast
   ========================================================================== */
/* Keine zentrierten Fließtext-Blöcke über mehrere Zeilen. */
.entry-content .uagb-ifb-desc, .entry-content .uagb-desc-text { text-align: left; }
/* Helle Buttons mit zu wenig Kontrast (Sand auf Creme) → Oliv. */
.entry-content .wp-block-button:not([class*="lin-btn"]) .wp-block-button__link,
.entry-content .uagb-infobox-cta-link,
.entry-content .uagb-forms-main-submit-button {
	background: var(--l-olive) !important;
	border-color: var(--l-olive) !important;
	color: var(--l-cream) !important;
}
.entry-content .wp-block-button:not([class*="lin-btn"]) .wp-block-button__link:hover,
.entry-content .uagb-infobox-cta-link:hover,
.entry-content .uagb-forms-main-submit-button:hover { background: var(--l-accent) !important; border-color: var(--l-accent) !important; }

/* ==========================================================================
   Schadenformular (Elementor)
   ========================================================================== */
.elementor-element-linh1ttl { margin-top: clamp(32px, 5vw, 64px); }
.elementor-element-linh1ttl .elementor-heading-title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.12; font-weight: 600; color: var(--l-ink); }
.elementor-element-linhint1 a { color: var(--l-olive); font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   Regionenkarte ([lintera_regionen_karte])
   ========================================================================== */
.lin-map-wrap { margin: 0; }
.lin-map { display: block; width: 100%; height: auto; border-radius: var(--l-radius); box-shadow: var(--l-shadow); }
.lin-map__sea { fill: #dfe5e0; }
.lin-map__foreign { fill: #f1eee6; stroke: #d3cdbf; stroke-width: .8; stroke-linejoin: round; }
.lin-map__land { fill: #ffffff; stroke: #cdc4b1; stroke-width: .8; stroke-linejoin: round; }
.lin-map__sea-label { font-size: 15px; font-style: italic; letter-spacing: .2em; fill: #97a097; }
.lin-map__area { fill: #7e8366; fill-opacity: .28; stroke: #7e8366; stroke-opacity: .5; stroke-width: 1; }
.lin-map__town { fill: #a39d8c; }
.lin-map__town-label { font-size: 13px; fill: #8a8577; }
.lin-map__pin { fill: #414132; stroke: #fffaf0; stroke-width: 3; }
.lin-map__pin--hq { fill: #2f2f2a; stroke-width: 4; }
.lin-map__label { font-size: 18px; font-weight: 600; fill: #2f2f2a; paint-order: stroke; stroke: #fffaf0; stroke-width: 5px; stroke-linejoin: round; }
.lin-map__region:hover .lin-map__label, .lin-map__region:focus .lin-map__label { fill: #7e8366; text-decoration: underline; }
.lin-map__region:focus-visible { outline: 2px solid #414132; }
.lin-region-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0 !important; padding: 0 !important; list-style: none; }
.lin-region-list li { margin: 0; }
.lin-region-list a { display: inline-block; padding: 8px 14px; border: 1px solid var(--l-olive); border-radius: 999px; color: var(--l-olive); font-weight: 600; text-decoration: none; }
.lin-region-list a:hover { background: var(--l-olive); color: var(--l-cream); }

/* Mietangebote-Teaser in Seitenabschnitten: Button linksbündig wie die übrigen Abschnitts-Buttons */
.lin-sec .lin-teaser__more { margin-top: 32px; text-align: left; }
.lin-sec .lin-teaser__more .lin-btn { padding: 13px 24px; border-radius: 3px; font-size: 1rem; font-weight: 600; line-height: 1.2; }

/* Untermenü im Header (Desktop): heller Kasten, dunkle Schrift */
.ast-primary-header-bar .main-header-menu .sub-menu { min-width: 250px; padding: 8px 0; border: 0; border-radius: var(--l-radius); background: #fff; box-shadow: var(--l-shadow); }
.ast-primary-header-bar .main-header-menu .sub-menu { width: auto; }
.ast-primary-header-bar .main-header-menu .sub-menu .menu-link { padding: 10px 20px; color: var(--l-ink) !important; font-size: .95rem; white-space: nowrap; }
.ast-primary-header-bar .main-header-menu .sub-menu .menu-item:hover > .menu-link,
.ast-primary-header-bar .main-header-menu .sub-menu .menu-link:focus { background: var(--l-cream); color: var(--l-olive) !important; }
.ast-primary-header-bar .main-header-menu .sub-menu .menu-item.lin-menu-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--l-line); }

/* Sprungziele (z. B. /services/#weg) mit etwas Luft über der Nummer */
.lin-sec .wp-block-heading[id] { scroll-margin-top: 110px; }

/* Karriere: Vorteile als Karten mit Piktogramm */
.lin-benefits { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.lin-benefit::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--l-sand) var(--lin-benefit-icon) center / 26px no-repeat;
}
.lin-benefit h3 { margin-bottom: 6px; }
.lin-benefit p { margin: 0; }
.lin-benefit--hybrid { --lin-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23414132' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E"); }
.lin-benefit--lernen { --lin-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23414132' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5Z'/%3E%3Cpath d='M6 12v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E"); }
.lin-benefit--digital { --lin-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23414132' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
.lin-benefit--herz { --lin-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23414132' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7Z'/%3E%3C/svg%3E"); }
.lin-benefit--events { --lin-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23414132' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.8 11.3 2 22l10.7-3.8'/%3E%3Cpath d='M4 3h.01M22 8h.01M15 2h.01M22 20h.01'/%3E%3Cpath d='m22 2-2.2.8a3 3 0 0 0-2 3.3v0a3 3 0 0 1-2 3.3L14 10'/%3E%3Cpath d='M11 13c1.9 1.9 2.8 4.2 2 5s-3.1-.1-5-2-2.8-4.2-2-5 3.1.1 5 2Z'/%3E%3C/svg%3E"); }
.lin-benefit--getraenke { --lin-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23414132' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 8h1a4 4 0 1 1 0 8h-1'/%3E%3Cpath d='M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z'/%3E%3Cpath d='M6 2v2M10 2v2M14 2v2'/%3E%3C/svg%3E"); }
.lin-benefit--obst { --lin-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23414132' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.9c1.2 0 2.1.9 3.5.9 2.5 0 5.5-5 5.5-9.3C21 9 19 7 16.5 7c-2 0-3 1-4.5 1s-2.5-1-4.5-1C5 7 3 9 3 12.5c0 4.3 3 9.3 5.5 9.3 1.4 0 2.3-.9 3.5-.9Z'/%3E%3Cpath d='M12 7c0-2 1-4 3-5'/%3E%3C/svg%3E"); }
.lin-benefit--geburtstag { --lin-benefit-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23414132' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8'/%3E%3Cpath d='M4 16s1.5-1 4-1 4 2 6 2 4-1 4-1'/%3E%3Cpath d='M2 21h20M7 8v3M12 8v3M17 8v3M7 4h.01M12 4h.01M17 4h.01'/%3E%3C/svg%3E"); }
@media (min-width: 1100px) { .lin-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* LINTERA-Portal (Service-Seite) */
.lin-form-panel { background: #fff; box-shadow: var(--l-shadow); }
.lin-form-panel .lin-va { padding: 0; background: none; }
.lin-form-panel > h3 { margin-top: 0; }
.lin-sec .wp-block-list.lin-checklist { padding-left: 0; list-style: none; }
.lin-checklist li { position: relative; padding-left: 30px; }
.lin-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--l-olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffaf0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
#portal-zugang { scroll-margin-top: 110px; }
@media (min-width: 1100px) { .lin-tiles:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Startseiten-Kopf „geteilt“: Text links, Bild rechts */
.lin-hero-split { padding-block: clamp(40px, 6vw, 96px) clamp(48px, 7vw, 104px); }
.lin-hero-split__grid { display: grid !important; gap: 40px; align-items: center; }
@media (min-width: 900px) { .lin-hero-split__grid { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: 64px; } }
.lin-hero-split h1 { max-width: 19ch; margin-bottom: 18px; font-size: clamp(2rem, 1.2rem + 2.3vw, 3.1rem); line-height: 1.1; color: var(--l-ink); hyphens: manual; -webkit-hyphens: manual; }
.lin-hero-split .lin-lead { max-width: 46ch; font-size: 1.15rem; }
.lin-hero-split__media { position: relative; margin: 0 !important; isolation: isolate; }
.lin-hero-split__media::before { content: ""; position: absolute; inset: 28px -20px -20px 28px; z-index: -1; border-radius: var(--l-radius); background: var(--l-sand); }
.lin-hero-split__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--l-radius); box-shadow: var(--l-shadow); }
@media (max-width: 899px) { .lin-hero-split__media { margin-right: 20px !important; } }

/* Hinweiskasten (z. B. Notfall auf „Schaden melden“) */
.lin-callout { margin: 28px 0 !important; padding: 20px 22px; border-left: 4px solid var(--l-olive); border-radius: 0 var(--l-radius) var(--l-radius) 0; background: var(--l-sand); }
.lin-callout h3 { margin: 0 0 6px; font-size: 1.05rem; }
.lin-callout p { margin: 0 0 8px; }
.lin-callout p:last-child { margin-bottom: 0; }
.lin-callout a, .lin-small-note a { color: var(--l-olive); font-weight: 600; }
.lin-small-note { font-size: .92rem; color: var(--l-muted); }
.lin-form-panel > h2 { margin-top: 0; font-size: 1.4rem; }
#schadenformular { scroll-margin-top: 110px; }

/* Untere Footer-Zeile: einzeilig, ruhig */
.site-below-footer-wrap { font-size: .875rem; }
.site-below-footer-wrap .ast-footer-copyright, .site-below-footer-wrap .ast-footer-copyright p { margin: 0; white-space: nowrap; opacity: .85; }
.site-below-footer-wrap .footer-widget-area.widget-area { text-align: right; }
.site-below-footer-wrap .site-footer-section-2 { justify-content: center; }
.site-below-footer-wrap .site-footer-section-3 { justify-content: flex-end; }
.site-below-footer-wrap .footer-nav-wrap .menu-link { padding: 0 12px !important; font-size: .875rem; }
@media (max-width: 921px) {
	.site-below-footer-wrap .ast-builder-grid-row { row-gap: 14px; }
	.site-below-footer-wrap .site-footer-section { justify-content: center !important; text-align: center; }
	.site-below-footer-wrap .ast-footer-copyright, .site-below-footer-wrap .ast-footer-copyright p { white-space: normal; }
	.site-below-footer-wrap .footer-widget-area.widget-area { text-align: center; }
}
@media (max-width: 921px) { .site-primary-footer-wrap .site-footer-section + .site-footer-section { margin-top: 20px; } }

/* Startseiten-Video im Bildrahmen */
.lin-hero-split__media.wp-block-video video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.4 !important; object-fit: cover; border-radius: var(--l-radius); box-shadow: var(--l-shadow); background: var(--l-sand); }
.lin-hero-video__toggle {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 250, 240, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23414132'%3E%3Crect x='6' y='5' width='4' height='14' rx='1'/%3E%3Crect x='14' y='5' width='4' height='14' rx='1'/%3E%3C/svg%3E") center / 18px no-repeat;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
	cursor: pointer;
	opacity: .85;
	transition: opacity .2s;
}
.lin-hero-video__toggle.is-paused { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23414132'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.9l10-6.5a1 1 0 0 0 0-1.7l-10-6.5A1 1 0 0 0 8 5.5Z'/%3E%3C/svg%3E"); }
.lin-hero-video__toggle:hover, .lin-hero-video__toggle:focus-visible { opacity: 1; }
.lin-hero-video__toggle:focus-visible { outline: 3px solid var(--l-olive); outline-offset: 2px; }

/* Pause-Knopf auch im Vollflächen-Video; Überschrift nur an der vorgesehenen Stelle trennen */
.wp-block-cover.lin-hero .lin-hero-video__toggle { z-index: 2; right: 20px; bottom: 20px; }
.lin-hero h1 { max-width: 20ch; hyphens: manual; -webkit-hyphens: manual; }

/* Über uns – Team-Überschrift: Text direkt unter „Unser Team“ statt daneben (Spectra-Container aus dem Bestand) */
.wp-block-uagb-container.uagb-block-rcgtry8d { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
.uagb-block-rcgtry8d > .wp-block-uagb-info-box { width: 100% !important; max-width: 68ch; margin: 0 !important; }
.uagb-block-rcgtry8d .uagb-block-ieih0gep .uagb-ifb-title-wrap { display: none; }
.uagb-block-rcgtry8d .uagb-ifb-desc { margin: 0 !important; }
.wp-block-uagb-container.uagb-block-cvjvpusf { padding-bottom: 8px !important; margin-bottom: -1px !important; position: relative; z-index: 1; }
