/* Heddesheimer Liste – Bausteine für den Block-Editor (Klassen mit Präfix hl-) */
:root { --hl-radius: 4px; --hl-radius-btn: 6px; }
body { -webkit-text-size-adjust: 100%; }
:focus-visible { outline: 3px solid var(--wp--preset--color--ring-blue); outline-offset: 2px; }
.wp-block-button__link { border-radius: var(--hl-radius-btn); line-height: 1.3; }
.wp-block-image img, .hl-card img { border-radius: var(--hl-radius); }

/* Kopf */
.hl-header .wp-block-site-logo img { width: 150px; height: auto; }
.hl-nav a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.hl-nav a:hover, .hl-nav .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 781px) { .hl-header-cta { display: none; } }

/* Fuß */
.hl-foot-h { font-size: 15px !important; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.hl-foot-list { list-style: none; padding: 0; margin: 0; }
.hl-foot-list li { margin: 0 0 8px; }
.hl-foot-list a, .hl-footer a { text-decoration: none; }
.hl-foot-list a:hover { text-decoration: underline; }
.hl-foot-legal { border-top: 1px solid rgba(255,255,255,.16); padding-top: 20px; }

/* Text */
.hl-kicker { font-size: 13px !important; line-height: 1.3; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--slate); margin: 0; }
.hl-lead { font-size: 20px; line-height: 1.6; color: var(--wp--preset--color--text); max-width: 34em; }
.hl-text, .hl-prose p { color: var(--wp--preset--color--text); }
.hl-link-strong a, a.hl-link-strong { font-weight: 600; }

/* Merkmale mit Ringfarben */
.hl-traits { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; font-size: 17px; font-weight: 500; }
.hl-traits li { display: flex; align-items: center; gap: 12px; }
.hl-traits li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--hl-c, var(--wp--preset--color--slate)); flex-shrink: 0; }
.hl-traits li:nth-child(4n+1) { --hl-c: var(--wp--preset--color--ring-blue); }
.hl-traits li:nth-child(4n+2) { --hl-c: var(--wp--preset--color--ring-orange); }
.hl-traits li:nth-child(4n+3) { --hl-c: var(--wp--preset--color--ring-green); }
.hl-traits li:nth-child(4n+4) { --hl-c: var(--wp--preset--color--ring-berry); }
@media (max-width: 600px) { .hl-traits { grid-template-columns: 1fr; } }

/* Listen-Kopf und Termine */
.hl-list-head { border-bottom: 1px solid var(--wp--preset--color--contrast); padding-bottom: 18px; }
.hl-list-head h2 { font-size: 28px !important; }
.hl-list-head a { font-size: 16px; font-weight: 600; }
.hl-event { display: grid !important; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--wp--preset--color--line); align-items: start; }
.hl-event > * { margin: 0 !important; }
.hl-event-date { font-size: 15px; color: var(--wp--preset--color--muted); line-height: 1.3; }
.hl-event-date strong { display: block; font-size: 26px; font-weight: 500; color: var(--wp--preset--color--contrast); line-height: 1.1; white-space: nowrap; }
.hl-event-title { font-size: 20px !important; font-weight: 600; line-height: 1.3; margin: 0 0 4px !important; }
.hl-event-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.hl-event-title a:hover { text-decoration: underline; }
.hl-event-text { color: var(--wp--preset--color--text); font-size: 17px; margin: 0 !important; }

/* Breitbild-Band */
.hl-band { margin-left: 0; margin-right: 0; }
.hl-band img { width: 100%; height: 520px; object-fit: cover; object-position: 50% 45%; border-radius: 0 !important; }
.hl-band figcaption { max-width: 1200px; margin: 0 auto; padding: 14px 32px 0; font-size: 15px; color: var(--wp--preset--color--muted); text-align: left; }
@media (max-width: 781px) { .hl-band img { height: 300px; } }

/* Karten */
.hl-cards { gap: 64px 40px !important; }
.hl-card { gap: 12px !important; }
.hl-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hl-card .hl-tag { font-size: 15px; font-weight: 600; color: var(--wp--preset--color--muted); display: flex; align-items: center; gap: 10px; margin: 6px 0 0; }
.hl-card .hl-tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--hl-c, var(--wp--preset--color--slate)); }
.hl-card h3 { font-size: 22px !important; margin: 0; }
.hl-card h3 a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.hl-card h3 a:hover { text-decoration: underline; }
.hl-card p:last-child { font-size: 17px; color: var(--wp--preset--color--text); margin: 0; }
.hl-c-blue { --hl-c: var(--wp--preset--color--ring-blue); }
.hl-c-orange { --hl-c: var(--wp--preset--color--ring-orange); }
.hl-c-green { --hl-c: var(--wp--preset--color--ring-green); }
.hl-c-berry { --hl-c: var(--wp--preset--color--ring-berry); }

/* Schritte */
.hl-steps { list-style: none; margin: 0; padding: 0; counter-reset: hl; border-bottom: 1px solid var(--wp--preset--color--line); }
.hl-steps li { counter-increment: hl; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--text); }
.hl-steps li::before { content: counter(hl); font-size: 30px; line-height: 1; color: var(--wp--preset--color--slate); }
.hl-steps strong { color: var(--wp--preset--color--contrast); font-weight: 600; }

/* Dunkler Abschnitt */
.hl-slate a { color: #fff; }
.hl-slate p { color: var(--wp--preset--color--on-slate); }

/* Kontaktformular [hl_kontakt] */
.hl-form { background: #fff; color: var(--wp--preset--color--contrast); border-radius: 8px; padding: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.hl-form label { display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 500; }
.hl-form .opt, .hl-form .hint { font-weight: 400; color: var(--wp--preset--color--muted); }
.hl-form .hint { font-size: 15px; }
.hl-form input, .hl-form textarea { font: inherit; font-weight: 400; font-size: 18px; padding: 12px 14px; border: 2px solid #8a8d94; border-radius: var(--hl-radius); background: #fff; color: var(--wp--preset--color--contrast); width: 100%; box-sizing: border-box; }
.hl-form input { height: 50px; }
.hl-form input:focus, .hl-form textarea:focus { border-color: var(--wp--preset--color--slate); }
.hl-form .full { grid-column: 1 / -1; }
.hl-form .privacy { font-size: 15px; line-height: 1.55; color: var(--wp--preset--color--text) !important; padding: 16px 18px; background: var(--wp--preset--color--stone); border-radius: var(--hl-radius); margin: 0; }
.hl-form .privacy a { color: var(--wp--preset--color--slate); }
.hl-form .send { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.hl-form .send p { color: var(--wp--preset--color--muted) !important; font-size: 15px; margin: 0; }
.hl-form button { font: inherit; font-weight: 600; font-size: 18px; padding: 15px 26px; border: 0; border-radius: var(--hl-radius-btn); background: var(--wp--preset--color--slate); color: #fff; cursor: pointer; }
.hl-form button:hover { background: var(--wp--preset--color--slate-deep); }
.hl-form .hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hl-form-msg { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--hl-radius); font-size: 16px; border-left: 4px solid var(--wp--preset--color--ring-berry); background: #fbeef3; color: var(--wp--preset--color--contrast) !important; margin: 0; }
@media (max-width: 781px) { .hl-form { grid-template-columns: 1fr; padding: 24px; } .hl-form .send { align-items: stretch; text-align: left; } }

/* Button als kräftiger Link (Zweitaktion neben dem Hauptbutton) */
.wp-block-button.is-style-hl-link .wp-block-button__link { background: none; color: var(--wp--preset--color--slate); padding: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: 18px; }
.wp-block-button.is-style-hl-link .wp-block-button__link:hover { color: var(--wp--preset--color--contrast); background: none; }
.hl-slate .wp-block-button__link { background: #fff; color: var(--wp--preset--color--slate); }
.hl-rule { border-top: 1px solid var(--wp--preset--color--line); }
.hl-prose > p + p { margin-top: 18px; }

/* Karten-Raster: 3 / 2 / 1 Spalten, Karten füllen die Spalte */
.hl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1023px) { .hl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .hl-cards { grid-template-columns: minmax(0, 1fr) !important; gap: 48px !important; } }
.hl-card { align-items: stretch !important; }
.hl-card > * { width: 100%; margin: 0 !important; }
.hl-card .wp-block-image { margin: 0; }
.hl-card .has-stone-background-color { aspect-ratio: 3 / 2; border-radius: var(--hl-radius); align-items: center; padding: 0 !important; }
/* Bild im Kopfbereich */
.hl-hero-img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
