/**
 * Die Solaristen – ergänzende Styles
 *
 * Gestaltung (Farben, Abstände, Typografie) ist in Elementor an den Elementen gepflegt.
 * Hier steht nur, was Elementor Free nicht abbilden kann: Verhalten (Menü, Slider, Dropdown),
 * Gruppen-Hover-Effekte, Formularfelder (Contact Form 7) und die Beitragslisten.
 */

/* Farben der Referenz (oklch) – je Standort eigene Akzentfarbe ---------------- */
:root {
	--sol-navy: oklch(22% .07 260);
	--sol-navy-deep: oklch(15% .05 260);
	--sol-ink: oklch(22% .05 260);
	--sol-muted: oklch(50% .03 260);
	--sol-border: oklch(92% .01 250);
	--sol-mint: oklch(97% .005 250);
	--sol-accent: oklch(70% .21 50);
	--sol-accent-soft: oklch(82% .16 60);
	--sol-grad-from: oklch(78% .2 65);
	--sol-grad-to: oklch(65% .22 45);
}
body.sol-city-nuernberg { --sol-accent: oklch(63% .22 35); --sol-accent-soft: oklch(78% .16 45); --sol-grad-from: oklch(74% .2 52); --sol-grad-to: oklch(58% .22 32); }
body.sol-city-erlangen  { --sol-accent: oklch(74% .18 72); --sol-accent-soft: oklch(85% .14 82); --sol-grad-from: oklch(83% .17 85); --sol-grad-to: oklch(69% .19 60); }
body.sol-city-bamberg   { --sol-accent: oklch(62% .19 42); --sol-accent-soft: oklch(79% .14 55); --sol-grad-from: oklch(75% .17 58); --sol-grad-to: oklch(57% .19 38); }
body.sol-city-coburg    { --sol-accent: oklch(68% .2 58);  --sol-accent-soft: oklch(83% .15 68); --sol-grad-from: oklch(80% .18 72); --sol-grad-to: oklch(63% .21 50); }
body.sol-city-wuerzburg { --sol-accent: oklch(76% .17 80); --sol-accent-soft: oklch(87% .13 88); --sol-grad-from: oklch(85% .16 92); --sol-grad-to: oklch(71% .19 66); }

/* Grundlagen ------------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body.sol-site {
	margin: 0;
	background: #fff;
	color: var(--sol-ink);
	font-family: "Inter", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
.sol-site h1, .sol-site h2, .sol-site h3, .sol-site h4 { font-family: "Poppins", system-ui, sans-serif; }
.sol-site a { text-decoration: none; }
.sol-site img, .sol-site video { max-width: 100%; }
.sol-site .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.sol-site .skip-link:focus { clip: auto; width: auto; height: auto; top: 8px; left: 8px; z-index: 100000; padding: 12px 16px; background: #fff; color: var(--sol-navy); border-radius: 8px; box-shadow: 0 10px 25px -8px rgba(0,0,0,.3); }
#sol-main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.sol-site *, .sol-site *::before, .sol-site *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Hervorhebung in Überschriften (Span in Akzentfarbe) --------------------------- */
.sol-hl-accent span { color: var(--sol-accent); }
.sol-hl-white span { color: #fff; }

/* Header: Standorte-Dropdown ------------------------------------------------------ */
.sol-dropdown { position: relative; }
.sol-dropdown .sol-dropdown-panel { opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.sol-dropdown:hover .sol-dropdown-panel,
.sol-dropdown:focus-within .sol-dropdown-panel { opacity: 1; visibility: visible; }

/* Header: mobiles Menü -------------------------------------------------------------- */
.sol-burger { cursor: pointer; }
.sol-mobile-panel { display: none !important; }
.sol-mobile-panel.is-open { display: block !important; }
@media (min-width: 1024px) { .sol-mobile-panel.is-open { display: none !important; } }

/* Slider (Produkte, Projekte, Standorte) -------------------------------------------- */
.sol-slider-track {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.sol-slider-track::-webkit-scrollbar { display: none; }
.sol-slider-track > * { scroll-snap-align: start; }
/* Schatten der Karten nicht durch den Scroll-Container abschneiden */
.sol-slider-track { padding-block: 24px 40px !important; margin-block: -24px -40px !important; }
.sol-slider-prev, .sol-slider-next, .sol-slider-dot { cursor: pointer; }
.sol-slider-dot.is-active { width: 2rem !important; background: var(--sol-accent) !important; }

/* Gruppen-Hover (Karten) ------------------------------------------------------------ */
.sol-group .sol-zoom-110, .sol-group .sol-zoom-105 { transition: transform .5s; }
.sol-group:hover .sol-zoom-110 { transform: scale(1.1); }
.sol-group:hover .sol-zoom-105 { transform: scale(1.05); }
.sol-group .sol-group-accent { transition: color .15s; }
.sol-group:hover .sol-group-accent { color: var(--sol-accent) !important; }
.sol-group .sol-group-shift { transition: transform .15s; }
.sol-group:hover .sol-group-shift { transform: translateX(4px); }

/* KI-Hinweis auf Bildern ---------------------------------------------------------- */
.sol-ai-wrap { position: relative; }
.sol-ai-badge { cursor: pointer; }
.sol-ai-badge:hover, .sol-ai-badge:focus, .sol-ai-badge.is-active { background-color: var(--sol-accent) !important; }
.sol-ai-tip { pointer-events: none; opacity: 0; transition: opacity .2s; }
.sol-ai-badge:hover + .sol-ai-tip,
.sol-ai-badge:focus + .sol-ai-tip,
.sol-ai-badge.is-active + .sol-ai-tip { opacity: 1; }

/* Solarplaner --------------------------------------------------------------------- */
#pv-lead-generator { display: block; }

/* FAQ (Elementor Akkordeon, <details>) -------------------------------------------- */
.sol-faq summary { list-style: none; }
.sol-faq summary > * { line-height: inherit; }
.sol-faq summary::-webkit-details-marker { display: none; }
/* space-y-3 der Referenz: kein Abstand nach dem letzten Eintrag */
.sol-faq > details:last-child { margin-bottom: 0 !important; }

/* Kontaktformular (Contact Form 7) --------------------------------------------------- */
.sol-form .wpcf7-form { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.sol-form .wpcf7-form > p, .sol-form .wpcf7-form p { margin: 0; }
.sol-form .wpcf7-form-control-wrap { display: block; }
.sol-form input[type="text"],
.sol-form input[type="email"],
.sol-form input[type="tel"],
.sol-form select,
.sol-form textarea {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid var(--sol-border);
	border-radius: .75rem;
	padding: .75rem 1rem;
	font: inherit;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--sol-ink);
	background: #fff;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.sol-form ::placeholder { color: oklch(50% .03 260 / .75); }
.sol-form input:focus, .sol-form select:focus { border-color: var(--sol-accent); }
.sol-form textarea { resize: none; min-height: 7.5rem; }
.sol-form textarea:focus { box-shadow: 0 0 0 2px oklch(70% .21 50 / .3); border-color: var(--sol-border); }
.sol-form .sol-consent { font-size: .75rem; line-height: 1rem; color: var(--sol-muted); }
.sol-form .sol-consent .wpcf7-list-item-label, .sol-form .sol-consent label, .sol-form .sol-consent span { font-size: .75rem; line-height: 1rem; }
.sol-form .sol-consent .wpcf7-list-item { margin: 0; display: block; }
.sol-form .sol-consent label { display: flex; align-items: flex-start; gap: .5rem; cursor: pointer; }
.sol-form .sol-consent input[type="checkbox"] { margin-top: .25rem; flex: 0 0 auto; }
.sol-form .sol-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sol-form .wpcf7-submit {
	display: inline-flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	gap: .5rem;
	padding: .9rem 1.75rem;
	border: 0;
	border-radius: 9999px;
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, var(--sol-grad-from), var(--sol-grad-to));
	box-shadow: 0 10px 25px -8px oklch(68% .22 50 / .6);
	transition: transform .25s, box-shadow .25s, background-color .25s;
}
.sol-form .wpcf7-submit:hover { background: var(--sol-navy); transform: translateY(-2px); box-shadow: 0 16px 32px -8px oklch(22% .07 260 / .35); }
.sol-form .wpcf7-submit:disabled, .sol-form .submitting .wpcf7-submit { opacity: .6; }
.sol-form .wpcf7-spinner { display: none; }
.sol-form .wpcf7-not-valid-tip { color: oklch(57.7% .245 27.325); font-size: .8125rem; margin-top: .35rem; }
.sol-form .wpcf7-response-output { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: .875rem; line-height: 1.25rem; color: oklch(57.7% .245 27.325); }
.sol-form .wpcf7-form.sent .wpcf7-response-output { color: var(--sol-ink); }
.sol-form .wpcf7-form.init .wpcf7-response-output,
.sol-form .wpcf7-form.resetting .wpcf7-response-output,
.sol-form .wpcf7-form.submitting .wpcf7-response-output { display: none; }

/* Solar-Ratgeber: Karten (Startseite, Blog) ----------------------------------------- */
.sol-posts { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sol-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sol-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* In Elementor steht der Shortcode im Raster der Referenz (grid md:2 / lg:3 Spalten): Karten werden direkte Rasterelemente */
.elementor-widget-shortcode:has(.sol-posts),
.elementor-widget-shortcode:has(.sol-posts) > .elementor-shortcode,
.elementor-widget-shortcode .sol-posts { display: contents; }
.sol-post-card {
	display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--sol-border); border-radius: 1rem; background: #fff;
	box-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
	color: inherit; transition: transform .35s, box-shadow .35s;
}
.sol-post-card:hover { transform: translateY(-6px); box-shadow: 0 22px 45px -20px oklch(22% .07 260 / .25); }
.sol-post-card__media { position: relative; height: 11rem; overflow: hidden; }
.sol-post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .15s; }
.sol-post-card:hover .sol-post-card__media img { transform: scale(1.05); }
.sol-post-card__new { position: absolute; left: 1rem; top: 1rem; border-radius: 9999px; background: var(--sol-accent); padding: .25rem .75rem; font-size: .75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #fff; }
.sol-post-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.sol-post-card__meta { font-size: .75rem; line-height: 1rem; color: var(--sol-muted); }
.sol-post-card__title { margin: .5rem 0 0; font-family: "Poppins", system-ui, sans-serif; font-size: 1.125rem; line-height: 1.375; font-weight: 600; letter-spacing: -.02em; color: var(--sol-navy); transition: color .15s; }
.sol-post-card:hover .sol-post-card__title { color: var(--sol-accent); }
.sol-post-card__excerpt { margin: .5rem 0 0; flex: 1; font-size: .875rem; line-height: 1.25rem; color: var(--sol-muted); }
.sol-post-card__more { margin-top: 1rem; display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; line-height: 1.25rem; font-weight: 600; color: var(--sol-accent); }
.sol-post-card__more svg { width: .875rem; height: .875rem; transition: transform .15s; }
.sol-post-card:hover .sol-post-card__more svg { transform: translateX(4px); }

/* KI-Hinweis in Beitragsbildern (gleich wie Elementor-Bilder) */
.sol-ai { position: absolute; right: .75rem; bottom: .75rem; z-index: 10; display: flex; align-items: center; justify-content: flex-end; }
.sol-ai__btn { display: flex; width: 1.75rem; height: 1.75rem; align-items: center; justify-content: center; border-radius: 9999px; background: rgb(0 0 0 / .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; transition: background-color .15s; }
.sol-ai__btn svg { width: 1rem; height: 1rem; }
.sol-ai__btn:hover, .sol-ai__btn:focus, .sol-ai__btn.is-active { background: var(--sol-accent); outline: none; }
.sol-ai__tip { pointer-events: none; position: absolute; bottom: 2.25rem; right: 0; white-space: nowrap; border-radius: .5rem; background: var(--sol-navy); padding: .375rem .75rem; font-size: .75rem; line-height: 1rem; font-weight: 500; color: #fff; opacity: 0; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); transition: opacity .2s; }
.sol-ai__btn:hover + .sol-ai__tip, .sol-ai__btn:focus + .sol-ai__tip, .sol-ai__btn.is-active + .sol-ai__tip { opacity: 1; }


/* Inline-Hervorhebungen in Überschriften/Texten (aus der Referenz übernommen) ----------------- */
.sol-h1-subline span{display:block;font-size:24px;font-weight:400;line-height:32px;color:rgba(255,255,255,0.9);font-family:Poppins;margin-top:8px;letter-spacing:-1.2px}@media (max-width:1023px){.sol-h1-subline span{display:block;font-size:24px;font-weight:400;line-height:32px;color:rgba(255,255,255,0.9);font-family:Poppins;margin-top:8px;letter-spacing:-0.96px}}@media (max-width:767px){.sol-h1-subline span{display:block;font-size:20px;font-weight:400;line-height:28px;color:rgba(255,255,255,0.9);font-family:Poppins;margin-top:8px;letter-spacing:-0.72px}}
.sol-inl-white70 span{color:rgba(255,255,255,0.7)}
.sol-inl-muted span{color:#596475}
.sol-inl-navy span{color:#0c1a32;font-weight:600}

/* SVG-Icons (Elementor setzt fill=currentColor – Lucide-Icons sind Linien-Icons) --------------- */
.e-svg-base svg { fill: none; }
.sol-svg-fill svg, .e-svg-base.sol-svg-fill svg { fill: currentColor; }
/* Aufzählungen (ul.list-disc / ol.list-decimal der Referenz; in Elementor als Box mit Absätzen) */
.sol-list-disc > * { display: list-item !important; list-style: disc outside; }
.sol-list-decimal > * { display: list-item !important; list-style: decimal outside; }
/* Klick-zum-Laden für externe Dienste (Solarplaner/Envolta, Apple Podcasts) ------------------------ */
.sol-embed-consent { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; font-family: "Inter", system-ui, sans-serif; color: var(--sol-navy); }
.sol-embed-consent--planner {
	min-height: 810px;
	padding: 2rem 1.25rem;
	background-color: #f8fafc;
	background-image: linear-gradient(135deg, rgba(219, 234, 254, .6), rgba(255, 255, 255, 0) 45%),
		linear-gradient(rgba(148, 163, 184, .12) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, .12) 1px, transparent 1px);
	background-size: auto, 32px 32px, 32px 32px;
}
@media (max-width: 1023px) { .sol-embed-consent--planner { min-height: 614px; } }
@media (max-width: 767px) { .sol-embed-consent--planner { min-height: 0; padding: 1.25rem .75rem; } }
.sol-embed-consent__card { box-sizing: border-box; width: 100%; max-width: 36rem; padding: 1.25rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); text-align: left; }
.sol-embed-consent__title { margin: 0; font-family: "Poppins", system-ui, sans-serif; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: #0f172a; }
.sol-embed-consent__text { margin: .25rem 0 0; font-size: .875rem; line-height: 1.625; color: #475569; }
.sol-embed-consent__note { margin: .75rem 0 0; font-size: .8125rem; line-height: 1.5; color: #64748b; }
.sol-embed-consent a { color: var(--sol-accent); text-decoration: underline; }
.sol-embed-consent__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	width: 100%; margin-top: 1rem; padding: .75rem 1.5rem; border: 0; border-radius: 9999px;
	background: linear-gradient(135deg, var(--sol-grad-from), var(--sol-grad-to)); color: #fff;
	font-family: "Inter", system-ui, sans-serif; font-size: .9375rem; font-weight: 600; line-height: 1.25rem; cursor: pointer;
	box-shadow: 0 10px 25px -8px oklch(68% .22 50 / .6); transition: transform .25s, background-color .25s;
}
.sol-embed-consent__btn:hover, .sol-embed-consent__btn:focus-visible { background: var(--sol-navy); transform: translateY(-2px); }
.sol-embed-consent__btn:disabled { opacity: .7; cursor: progress; transform: none; }
.sol-embed-consent--podcast { min-height: 175px; padding: 1rem 1.25rem; gap: .25rem; text-align: center; background: #f8fafc; }
.sol-embed-consent--podcast .sol-embed-consent__text { max-width: 34rem; }
.sol-embed-consent--podcast .sol-embed-consent__btn { width: auto; }
