/*
Theme Name: Einsam – echt – verbunden
Description: Block-Theme für einsam-echt-frei.de. Nachbau der bisherigen Workshop-Seite (Hellblau, Playfair Display + Inter). Alle Inhalte im Block-Editor bearbeitbar.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: einsam
*/

/* ------------------------------------------------------------------
   Grundlagen
------------------------------------------------------------------ */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
[id] { scroll-margin-top: 5rem; }
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main.wp-block-group { margin-top: 0; }
.ee-nolink a { text-decoration: none; }
a { text-decoration: none; }
p a, li a { text-decoration: none; }
.wp-element-button, .wp-block-button__link { transition: background-color .2s, color .2s; white-space: nowrap; }
.wp-block-button__link i { margin-left: .5rem; }

/* ------------------------------------------------------------------
   Navigation (Kopfzeile) – fixiert, transparent → weiß beim Scrollen
------------------------------------------------------------------ */
.ee-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	background: transparent;
	transition: background-color .5s, box-shadow .5s, backdrop-filter .5s;
}
.admin-bar .ee-header { top: var(--wp-admin--admin-bar--height, 32px); }
.ee-header.is-scrolled {
	background: rgba(255,255,255,.95);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.ee-header > .wp-block-group { min-height: 5rem; }
@media (max-width: 781px) { .ee-header > .wp-block-group { min-height: 4rem; } }
.ee-brand { font-family: var(--wp--preset--font-family--playfair); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.ee-brand a { color: var(--wp--preset--color--sky-900); }
.ee-header .wp-block-navigation { font-size: .875rem; font-weight: 500; color: var(--wp--preset--color--sky-800); }
.ee-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--sky-600); }
.ee-header .wp-block-button__link { padding: .625rem 1.25rem; font-size: .875rem; background: var(--wp--preset--color--sky-700); }
.ee-header .wp-block-button__link:hover { background: var(--wp--preset--color--sky-800); }
@media (max-width: 599px) { .ee-header .ee-nav-btn { display: none; } }

/* ------------------------------------------------------------------
   Hero (Cover-Block mit Hintergrundbild)
------------------------------------------------------------------ */
.ee-hero.wp-block-cover { min-height: 100vh; padding-top: 6rem; }
.ee-hero .wp-block-cover__image-background { object-position: top; }
.ee-hero h1 { margin-bottom: 1.5rem; }
.ee-hero .ee-hero-untertitel { max-width: 42rem; margin-left: auto; margin-right: auto; margin-bottom: 2.5rem; }
.ee-pfeil-runter {
	position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
	animation: ee-bounce 1s infinite; z-index: 2;
}
.ee-pfeil-runter a { color: var(--wp--preset--color--sky-700); font-size: 1.5rem; }
.ee-pfeil-runter a:hover { color: var(--wp--preset--color--sky-900); }
@keyframes ee-bounce {
	0%,100% { transform: translate(-50%, -25%); animation-timing-function: cubic-bezier(.8,0,1,1); }
	50% { transform: translate(-50%, 0); animation-timing-function: cubic-bezier(0,0,.2,1); }
}

/* ------------------------------------------------------------------
   Block-Stile (im Editor unter „Stile“ wählbar)
------------------------------------------------------------------ */
/* Absatz: Kleine Überschrift (Großbuchstaben, gesperrt) */
.is-style-ee-label {
	font-size: .875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
	color: var(--wp--preset--color--sky-600);
}
/* Absatz: große Nummer „01“ */
.is-style-ee-nummer {
	font-family: var(--wp--preset--font-family--playfair); font-weight: 700;
	font-size: clamp(3rem, 5vw, 3.75rem); line-height: 1; color: rgba(12,74,110,.2); margin: 0;
}
/* Absatz: Pille / Badge (z. B. „Wann“) */
.is-style-ee-pille {
	display: inline-block; padding: .25rem 1rem; border-radius: 9999px;
	background: var(--wp--preset--color--sky-800); color: #fff; font-size: .875rem; font-weight: 500;
}
/* Absatz: Badge mit Rahmen (z. B. „Für alle, die …“) */
.is-style-ee-badge {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .5rem 1rem; border-radius: 9999px; background: #fff; border: 1px solid var(--wp--preset--color--sky-200);
	font-size: .875rem; font-weight: 500; color: var(--wp--preset--color--sky-800);
}
/* Gruppe: Karte (abgerundet) */
.is-style-ee-karte { border-radius: 1.5rem; position: relative; }
/* Gruppe: Karte mit Rahmen (weiß) */
.is-style-ee-karte-rahmen {
	border-radius: 1.5rem; position: relative; background: #fff;
	border: 1px solid var(--wp--preset--color--sky-100); transition: border-color .3s;
}
.is-style-ee-karte-rahmen:hover { border-color: var(--wp--preset--color--sky-200); }

/* ------------------------------------------------------------------
   Icons (Remix Icon, über HTML-Codeblöcke)
------------------------------------------------------------------ */
.ee-icon {
	width: 3rem; height: 3rem; border-radius: 1rem; background: var(--wp--preset--color--sky-100);
	display: flex; align-items: center; justify-content: center;
	color: var(--wp--preset--color--sky-700); font-size: 1.25rem;
}
.ee-icon.ee-icon-gross { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; }
.ee-icon-rund {
	position: absolute; top: 1.5rem; right: 1.5rem; width: 2.5rem; height: 2.5rem; border-radius: 9999px;
	background: #fff; display: flex; align-items: center; justify-content: center;
	color: var(--wp--preset--color--sky-800); transition: transform .2s;
}
.ee-icon-rund:hover { transform: scale(1.1); }
.ee-info { display: inline-flex; align-items: center; gap: .5rem; }

/* ------------------------------------------------------------------
   Sektionen
------------------------------------------------------------------ */
.ee-sektion { position: relative; }

/* Über-Karten */
.ee-karte-zitat { font-style: italic; }

/* Was-dich-erwartet-Karten */
.ee-feature { overflow: hidden; }
.ee-feature .wp-block-image { margin: 0; overflow: hidden; }
.ee-feature .wp-block-image img {
	width: 100%; height: 20rem; object-fit: cover; object-position: top; display: block;
	transition: transform .5s;
}
@media (max-width: 781px) { .ee-feature .wp-block-image img { height: 18rem; } }
.ee-feature:hover .wp-block-image img { transform: scale(1.05); }

/* Details-Karten: Pille ragt oben aus der Karte */
.ee-detail { overflow: visible; }
.ee-detail .is-style-ee-pille { position: absolute; top: -1rem; left: 2rem; margin: 0; }

/* Anmeldebereich */
.ee-cta .wp-block-columns { gap: 0; margin: 0; }
.ee-cta .ee-cta-bild.wp-block-cover { height: 100%; min-height: 600px; padding: clamp(2rem, 4vw, 3rem); }
@media (max-width: 781px) { .ee-cta .ee-cta-bild.wp-block-cover { min-height: 340px; } }
.ee-cta .ee-cta-bild .wp-block-cover__image-background { object-position: top; }

/* Formular (HTML-Codeblock) */
.ee-form { display: grid; gap: 1rem; }
.ee-form label { display: block; font-size: .875rem; font-weight: 500; color: var(--wp--preset--color--sky-800); margin-bottom: .5rem; }
.ee-form input, .ee-form textarea {
	width: 100%; box-sizing: border-box; padding: .75rem 1rem; font: inherit; font-size: .875rem;
	background: var(--wp--preset--color--sky-50); border: 1px solid var(--wp--preset--color--sky-200);
	border-radius: .75rem; color: var(--wp--preset--color--sky-900); resize: none;
}
.ee-form input::placeholder, .ee-form textarea::placeholder { color: var(--wp--preset--color--sky-400); }
.ee-form input:focus, .ee-form textarea:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--wp--preset--color--sky-200); }
.ee-form .ee-zeichen { font-size: .75rem; color: var(--wp--preset--color--sky-500); text-align: right; margin: .25rem 0 0; }
.ee-form button {
	width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: 1rem 2rem; border: 0; border-radius: 9999px; cursor: pointer;
	background: var(--wp--preset--color--sky-800); color: #fff; font: inherit; font-weight: 500;
	transition: background-color .2s;
}
.ee-form button:hover { background: var(--wp--preset--color--sky-900); }
.ee-form button:disabled { opacity: .5; cursor: default; }
.ee-form-fehler { color: #b91c1c; font-size: .875rem; text-align: center; margin: 0; }
.ee-danke { background: var(--wp--preset--color--sky-50); border-radius: 1.5rem; padding: 2rem; text-align: center; }
.ee-danke .ee-danke-icon {
	width: 4rem; height: 4rem; border-radius: 9999px; background: var(--wp--preset--color--sky-100);
	display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
	font-size: 1.5rem; color: var(--wp--preset--color--sky-700);
}
.ee-danke h4 { margin: 0 0 .5rem; font-size: 1.25rem; color: var(--wp--preset--color--sky-900); }
.ee-danke p { margin: 0; color: rgba(3,105,161,.8); }
.ee-spin { display: inline-block; animation: ee-spin 1s linear infinite; }
@keyframes ee-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------
   Fußzeile
------------------------------------------------------------------ */
.ee-footer { position: relative; overflow: hidden; }
.ee-footer::before {
	content: ""; position: absolute; right: -5rem; top: -5rem; width: 24rem; height: 24rem; opacity: .05; pointer-events: none;
	background: no-repeat center/contain url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M44.7,-76.4C58.9,-69.2,71.8,-59.1,81.6,-46.6C91.4,-34.1,98.1,-19.2,95.8,-5.3C93.5,8.6,82.2,21.5,71.6,32.3C61,43.1,51.1,51.8,40.3,59.5C29.5,67.2,17.8,73.9,5.3,75.5C-7.2,77.1,-20.5,73.6,-32.7,67.1C-44.9,60.6,-56,51.1,-65.3,39.7C-74.6,28.3,-82.1,15,-81.3,2.1C-80.5,-10.8,-71.4,-23.3,-61.4,-33.8C-51.4,-44.3,-40.5,-52.8,-28.8,-61.3C-17.1,-69.8,-4.6,-78.3,8.3,-91.3L21.2,-104.3' transform='translate(100 100)'/%3E%3C/svg%3E");
}
.ee-footer > * { position: relative; z-index: 1; }
.ee-footer a { color: rgba(125,211,252,.8); transition: color .2s; }
.ee-footer a:hover { color: #fff; }
.ee-footer .ee-footer-marke a { color: #fff; }
.ee-footer h4 { font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--wp--preset--color--sky-200); margin: 0 0 1rem; }
.ee-footer ul { list-style: none; padding: 0; margin: 0; }
.ee-footer ul li { margin-bottom: .75rem; font-size: .875rem; color: rgba(125,211,252,.8); }
.ee-footer .ee-kontakt li::before {
	font-family: "remixicon"; color: var(--wp--preset--color--sky-400); margin-right: .5rem; vertical-align: -1px;
}
.ee-footer .ee-kontakt li:nth-child(1)::before { content: "\eef6"; }
.ee-footer .ee-kontakt li:nth-child(2)::before { content: "\ef14"; }
.ee-footer .ee-kontakt li:nth-child(3)::before { content: "\efec"; }
.ee-footer .wp-block-social-links .wp-social-link {
	background: transparent !important; color: var(--wp--preset--color--sky-200) !important;
	border: 1px solid var(--wp--preset--color--sky-700); border-radius: .5rem;
}
.ee-footer .wp-block-social-links .wp-social-link a { padding: .55rem; color: inherit; }
.ee-footer .wp-block-social-links .wp-social-link:hover { background: var(--wp--preset--color--sky-800) !important; color: #fff !important; transform: none; }
.ee-footer-unten { border-top: 1px solid var(--wp--preset--color--sky-800); }
.ee-footer-unten, .ee-footer-unten a { font-size: .75rem; color: rgba(56,189,248,.6); }
.ee-footer-unten a:hover { color: var(--wp--preset--color--sky-200); }

/* Unterseiten (Impressum etc.) brauchen Platz unter der fixierten Navigation */
.ee-unterseite { padding-top: 8rem; }

/* ------------------------------------------------------------------
   Ergänzungen: Icons per CSS (bleiben beim Textbearbeiten erhalten)
------------------------------------------------------------------ */
h1 em, h2 em { font-weight: 400; }
.ee-mit-icon::before, .ee-pfeil::after { font-family: "remixicon"; font-style: normal; font-weight: normal; }
.ee-mit-icon::before { margin-right: .5rem; vertical-align: -2px; }
.ee-icon-herz::before { content: "\f263"; color: var(--wp--preset--color--sky-600); }
.ee-icon-uhr::before { content: "\f20f"; }
.ee-icon-wlan::before { content: "\f2c0"; }
.ee-icon-award::before { content: "\ea8a"; }
.ee-pfeil .wp-block-button__link::after { font-family: "remixicon"; content: "\ea6c"; margin-left: .5rem; vertical-align: -2px; }
form.ee-form[hidden], .ee-danke[hidden], .ee-form-fehler[hidden] { display: none; }
.ee-hero .wp-block-cover__inner-container { position: static; }
.ee-hero .wp-block-cover__inner-container > * { position: relative; z-index: 1; }
.ee-hero .wp-block-cover__inner-container > .ee-pfeil-runter { position: absolute; }
.is-style-ee-badge.has-text-align-center { display: flex; width: fit-content; margin-left: auto !important; margin-right: auto !important; }

/* ------------------------------------------------------------------
   Elementor-Startseite (Klassen werden in Elementor unter
   Erweitert → CSS-Klassen gesetzt)
------------------------------------------------------------------ */
.elementor .ee-header.e-con { position: fixed; top: 0; left: 0; right: 0; width: 100%; max-width: none; z-index: 50; background: transparent; --margin-top: 0; }
.admin-bar .elementor .ee-header.e-con { top: var(--wp-admin--admin-bar--height, 32px); }
.elementor .ee-header.e-con.is-scrolled { background: rgba(255,255,255,.95); }
body.elementor-editor-active .elementor .ee-header.e-con { position: sticky; }
.ee-nav-links p { margin: 0; display: flex; gap: 2rem; }
.elementor .ee-pfeil-runter.elementor-widget { position: absolute; bottom: 2rem; left: 50%; width: auto; }
.elementor .ee-icon-rund-e.elementor-widget { position: absolute; top: 1.5rem; right: 1.5rem; width: auto; }
.elementor .ee-icon-rund-e .elementor-icon { transition: transform .2s; }
.elementor .ee-icon-rund-e .elementor-icon:hover { transform: scale(1.1); }
.ee-badge-e .elementor-icon-list-items { background: #fff; border: 1px solid #bae6fd; border-radius: 9999px; padding: .5rem 1rem; }
.ee-feature-e .elementor-widget-image img { transition: transform .5s; }
.ee-feature-e:hover .elementor-widget-image img { transform: scale(1.05); }
.ee-feature-e .elementor-widget-image { overflow: hidden; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.ee-fuss-liste ul { list-style: none; margin: 0; padding: 0; }
.ee-fuss-liste li { margin-bottom: .75rem; }
.ee-fuss-recht p { display: flex; gap: 1.5rem; }
.elementor .ee-form button { font-family: Inter, sans-serif; }
