/*
Theme Name: Larcher Detail
Theme URI: https://www.larcher-bz.it/
Author: Torus Web Consulting
Author URI: https://torus-web.com/
Description: Schlankes Block-Theme für den One-Pager des Larcher Detailgeschäfts am Obstplatz in Bozen (DE/IT mit Polylang). Ohne Tracking, Schrift lokal.
Version: 0.3.3
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: larcher-detail
*/

/* ---------- Basis ---------- */
:root {
	--ld-blue: var(--wp--preset--color--blue, #005b8c);
	--ld-blue-dark: var(--wp--preset--color--blue-dark, #00466c);
	--ld-navy: var(--wp--preset--color--navy, #005b8c);
	--ld-grey: var(--wp--preset--color--grey, #8d9190);
	--ld-ink: var(--wp--preset--color--ink, #1d2b33);
	--ld-muted: var(--wp--preset--color--muted, #56656e);
	--ld-line: var(--wp--preset--color--line, #dde4e8);
	--ld-mist: var(--wp--preset--color--mist, #f2f6f8);
	--ld-wide: 1200px;
	--ld-radius: 14px;
	--ld-shadow: 0 1px 2px rgba(11, 42, 60, .06), 0 8px 24px rgba(11, 42, 60, .08);
	--ld-header-h: 76px;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ld-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
:where(a, button):focus-visible { outline: 3px solid var(--ld-blue); outline-offset: 3px; border-radius: 4px; }
.ld-main { padding-top: 0; }
/* Kein Block-Abstand zwischen Header, Inhalt und Footer (weißer Streifen über dem Hero). */
.wp-site-blocks > * + * { margin-block-start: 0; }
.ld-main > .wp-block-post-content > *:first-child { margin-block-start: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ld-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ld-navy); color: #fff; padding: .75rem 1rem; }
.ld-skip:focus { left: 1rem; top: 1rem; }

/* ---------- Icons, Buttons ---------- */
.ld-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.ld-btn {
	box-sizing: border-box; display: inline-flex; align-items: center; gap: .55rem;
	padding: .8rem 1.35rem; border-radius: 999px; font-weight: 700; line-height: 1.2;
	text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
	white-space: nowrap;
}
.ld-btn--primary { background-color: var(--ld-blue); color: #fff; }
.ld-btn--primary:hover { background-color: var(--ld-blue-dark); color: #fff; }
.ld-btn--ghost { border: 2px solid currentColor; color: var(--ld-blue); padding: calc(.8rem - 2px) calc(1.35rem - 2px); }
.ld-btn--ghost:hover { background-color: var(--ld-blue); border-color: var(--ld-blue); color: #fff; }
.ld-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.ld-actions--dark .ld-btn--primary { background-color: #fff; color: var(--ld-navy); }
.ld-actions--dark .ld-btn--primary:hover { background-color: var(--ld-mist); color: var(--ld-navy); }
.ld-actions--dark .ld-btn--ghost { color: #fff; }
.ld-actions--dark .ld-btn--ghost:hover { background-color: #fff; border-color: #fff; color: var(--ld-navy); }

/* ---------- Header ---------- */
.ld-site-header { position: sticky; top: 0; z-index: 50; margin: 0; }
.admin-bar .ld-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ld-site-header { top: 0; } }
.ld-header { background-color: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--ld-line); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); }
.ld-header__inner {
	max-width: var(--ld-wide); margin: 0 auto; min-height: var(--ld-header-h);
	padding: .6rem clamp(1rem, 4vw, 2rem); display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}
.ld-logo { display: inline-flex; flex-direction: column; gap: .25rem; text-decoration: none; color: var(--ld-muted); }
.ld-logo svg { display: block; height: 30px; width: auto; }
.ld-logo__sub { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ld-grey); }
.ld-nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); margin-left: auto; }
.ld-nav a { white-space: nowrap; color: var(--ld-ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.ld-nav a:hover { color: var(--ld-blue); border-bottom-color: var(--ld-blue); }
.ld-langs { display: inline-flex; border: 1px solid var(--ld-line); border-radius: 999px; padding: 3px; }
.ld-langs a { font-size: .8rem; font-weight: 800; letter-spacing: .05em; color: var(--ld-muted); text-decoration: none; padding: .3rem .6rem; border-radius: 999px; }
.ld-langs a.is-current { background-color: var(--ld-navy); color: #fff; }
.ld-langs a:not(.is-current):hover { color: var(--ld-blue); }
.ld-btn--call { background-color: var(--ld-blue); color: #fff; padding: .65rem 1.1rem; }
.ld-btn--call:hover { background-color: var(--ld-blue-dark); color: #fff; }
@media (max-width: 1020px) { .ld-nav { display: none; } .ld-langs { margin-left: auto; } }
@media (max-width: 600px) {
	:root { --ld-header-h: 64px; }
	.ld-logo svg { height: 22px; }
	.ld-logo__sub { font-size: .66rem; }
	.ld-btn--call span { display: none; }
	.ld-btn--call { padding: .65rem; }
	.ld-btn--call .ld-ico { width: 1.25rem; height: 1.25rem; }
	.ld-header__inner { gap: .75rem; }
}

/* ---------- Sektionen allgemein ---------- */
.ld-section { padding-block: var(--wp--preset--spacing--100); padding-inline: clamp(1rem, 4vw, 2rem) !important; }
.ld-section > * { max-width: var(--ld-wide); margin-inline: auto; }
.ld-eyebrow { font-size: .82rem !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ld-blue); margin-bottom: .5rem; }
.ld-lead { font-size: var(--wp--preset--font-size--large); color: var(--ld-muted); }
.ld-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ld-grid-2 > * { margin-block-start: 0 !important; }
@media (max-width: 900px) { .ld-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.ld-hero { background-color: var(--ld-navy); color: #fff; position: relative; overflow: hidden; padding: 0 !important; }
.ld-hero__inner { max-width: var(--ld-wide); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; min-height: min(640px, 78vh); }
.ld-hero__inner > * { margin-block-start: 0 !important; }
.ld-hero__text { padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 2rem) clamp(5.5rem, 9vw, 7.5rem); display: flex; flex-direction: column; justify-content: center; }
.ld-hero__text > * { margin-block: 0; }
.ld-hero__text > * + * { margin-block-start: 1.25rem; }
.ld-hero .ld-eyebrow { color: #cfe6f5; }
.ld-hero h1 { color: #fff; max-width: 21ch; }
.ld-hero p { color: rgba(255, 255, 255, .86); max-width: 36rem; }
.ld-hero .ld-lead { color: rgba(255, 255, 255, .86); }
.ld-hero .ld-actions { margin-top: 2rem; }
.ld-hero__media { position: relative; margin: 0; }
.ld-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ld-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ld-navy) 0, rgba(0, 91, 140, 0) 28%); pointer-events: none; }
/* Bild läuft auf breiten Schirmen bis zum rechten Rand. Container-Einheit statt 100vw,
   damit es auch mit der Breitbild-Skalierung (zoom) exakt am Rand endet. */
.ld-hero { container-type: inline-size; }
.ld-hero__media { margin-right: calc(-1 * max(0px, (100cqw - var(--ld-wide)) / 2)); }
@media (max-width: 900px) {
	.ld-hero__inner { grid-template-columns: 1fr; min-height: 0; }
	.ld-hero__media { order: -1; aspect-ratio: 16 / 10; }
	.ld-hero__media::before { background: linear-gradient(0deg, var(--ld-navy) 0, rgba(0, 91, 140, 0) 45%); }
	.ld-hero__text { padding-top: 1.5rem; padding-bottom: 5.5rem; }
}

/* Status-Chip */
.ld-status { display: inline-flex; align-items: center; gap: .55rem; align-self: flex-start; font-size: .92rem; font-weight: 700; padding: .45rem .9rem; border-radius: 999px; background-color: rgba(255, 255, 255, .1); color: #fff !important; margin: 0; }
.ld-status__dot { width: .6rem; height: .6rem; border-radius: 50%; background-color: var(--ld-grey); }
.ld-status.is-open .ld-status__dot { background-color: #3ccf7a; box-shadow: 0 0 0 4px rgba(60, 207, 122, .25); }
.ld-status.is-closed .ld-status__dot { background-color: #f0a35a; }

/* Faktenleiste */
.ld-factbar { max-width: var(--ld-wide) !important; margin-inline: auto !important; margin-top: -3.5rem !important; position: relative; z-index: 2; }
.ld-facts { list-style: none; margin: 0 auto; padding: 0; max-width: var(--ld-wide); display: grid; grid-template-columns: repeat(3, 1fr); background-color: #fff; border-radius: var(--ld-radius); box-shadow: var(--ld-shadow); }
.ld-facts li { display: flex; gap: .9rem; align-items: flex-start; padding: 1.4rem 1.5rem; margin: 0; }
.ld-facts li + li { border-left: 1px solid var(--ld-line); }
.ld-facts .ld-ico { color: var(--ld-blue); width: 1.6rem; height: 1.6rem; margin-top: .1rem; }
.ld-facts span { display: flex; flex-direction: column; font-size: .98rem; color: var(--ld-muted); }
.ld-facts strong { color: var(--ld-navy); font-size: 1.02rem; }
.ld-facts a { color: var(--ld-blue); font-weight: 700; text-decoration: none; }
@media (max-width: 900px) {
	.ld-facts { grid-template-columns: 1fr; }
	.ld-facts li + li { border-left: 0; border-top: 1px solid var(--ld-line); }
	.ld-facts li { padding: 1.1rem 1.25rem; }
}

/* ---------- Schlüssel nachmachen ---------- */
.ld-steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.ld-steps li { counter-increment: s; position: relative; padding: 0 0 0 3.6rem; min-height: 2.6rem; margin: 0; color: var(--ld-muted); }
.ld-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; background-color: var(--ld-mist); color: var(--ld-blue); font-weight: 800; display: grid; place-items: center; border: 1px solid var(--ld-line); }
.ld-steps strong { display: block; color: var(--ld-navy); font-size: 1.08rem; }
.ld-keyart { position: relative; padding: 1rem 0 0; }
.ld-keyart svg { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 18px 24px rgba(11, 42, 60, .12)); }
.ld-note { background-color: var(--ld-mist); border-radius: var(--ld-radius); padding: 1.4rem 1.5rem !important; border-left: 4px solid var(--ld-blue); margin-top: 1.5rem !important; }
.ld-note > * { margin-block: 0; }
.ld-note > * + * { margin-block-start: .6rem; }
.ld-note h3 { font-size: 1.08rem; }
.ld-note p { color: var(--ld-muted); font-size: .98rem; }
.ld-note__links { font-size: .95rem !important; line-height: 1.7; }
.ld-note__links a { font-weight: 700; }
.ld-note .ld-img { display: block; width: 220px; mix-blend-mode: multiply; margin-top: .4rem; }

/* ---------- Leistungen ---------- */
.ld-services { background-color: var(--ld-mist); }
.ld-services__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.ld-services__head .ld-img { border-radius: var(--ld-radius); display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ld-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ld-cards > * { margin-block-start: 0 !important; }
.ld-card { background-color: #fff; border: 1px solid var(--ld-line); border-radius: var(--ld-radius); padding: 1.6rem 1.5rem 1.5rem !important; transition: box-shadow .2s, border-color .2s; }
.ld-card:hover { box-shadow: var(--ld-shadow); border-color: transparent; }
.ld-card > * { margin-block: 0; }
.ld-card > * + * { margin-block-start: .5rem; }
.ld-card h3 { font-size: 1.15rem; }
.ld-card p { color: var(--ld-muted); font-size: .98rem; }
.ld-card__icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background-color: rgba(0, 91, 140, .08); color: var(--ld-blue); margin-bottom: .6rem; }
.ld-card__icon .ld-ico { width: 1.6rem; height: 1.6rem; }
@media (max-width: 1000px) { .ld-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ld-cards { grid-template-columns: 1fr; } }

/* ---------- Partner Larcher X ---------- */
.ld-partner { background-color: var(--ld-blue); background-image: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .14) 0, rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, #0a6aa1 0%, var(--ld-blue) 55%, #00466c 100%); color: #fff; }
.ld-partner h2 { color: #fff; }
.ld-partner .ld-eyebrow { color: #cfe6f5; }
.ld-partner .ld-lead { color: rgba(255, 255, 255, .9); }
.ld-partner__text > * { margin-block: 0; }
.ld-partner__text > * + * { margin-block-start: 1rem; }
.ld-partner__btn .wp-block-button__link { background-color: #fff !important; color: var(--ld-navy) !important; margin-top: .75rem; }
.ld-partner__btn .wp-block-button__link:hover { background-color: var(--ld-mist) !important; }
.ld-ptiles { display: grid; gap: .9rem; }
.ld-ptiles > * { margin-block-start: 0 !important; }
.ld-ptile { position: relative; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; align-items: center; background-color: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--ld-radius); padding: 1.1rem 1.25rem !important; transition: background-color .2s, border-color .2s; }
.ld-ptile:hover { background-color: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); }
.ld-ptile > * { margin: 0 !important; }
.ld-ptile .ld-card__icon { grid-row: 1 / span 2; background-color: rgba(255, 255, 255, .16); color: #fff; margin: 0; }
.ld-ptile h3 { font-size: 1.08rem; color: #fff; }
.ld-ptile h3 a { color: #fff; text-decoration: none; }
.ld-ptile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--ld-radius); } /* ganze Kachel klickbar */
.ld-ptile h3 a::before { content: "\2192"; float: right; margin-left: .5rem; opacity: .8; }
.ld-ptile p { color: rgba(255, 255, 255, .82); font-size: .95rem; }

/* ---------- Tradition-Band ---------- */
.ld-band { padding-inline: clamp(1rem, 4vw, 2rem) !important; position: relative; overflow: hidden; background-color: var(--ld-navy); color: #fff; padding-block: clamp(4rem, 10vw, 8rem) !important; }
.ld-band .ld-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; margin: 0; max-width: none; }
.ld-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 91, 140, .92) 0, rgba(0, 91, 140, .6) 60%, rgba(0, 91, 140, .3) 100%); }
.ld-band__text { position: relative; z-index: 1; max-width: var(--ld-wide); margin: 0 auto; }
.ld-band__text > * { max-width: 34rem; margin-block: 0; }
.ld-band__text > * + * { margin-block-start: 1rem; }
.ld-band h2 { color: #fff; }
.ld-band p { color: rgba(255, 255, 255, .88); font-size: var(--wp--preset--font-size--large); }
.ld-band .ld-eyebrow { color: #cfe6f5; }

/* ---------- Besuch ---------- */
.ld-visit .ld-grid-2 { align-items: stretch; }
.ld-panel { background-color: #fff; border: 1px solid var(--ld-line); border-radius: var(--ld-radius); padding: clamp(1.5rem, 3vw, 2.25rem) !important; }
.ld-panel > * { margin-block: 0; }
.ld-panel > * + * { margin-block-start: 1rem; }
.ld-panel .ld-status { background-color: var(--ld-mist); color: var(--ld-navy) !important; }
.ld-hours { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.ld-hours th, .ld-hours td { text-align: left; padding: .7rem .25rem; border-bottom: 1px solid var(--ld-line); font-weight: 600; }
.ld-hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ld-ink); }
.ld-hours tr.is-closed td { color: var(--ld-grey); }
.ld-hours__note { margin: .75rem 0 0; font-size: .92rem; color: var(--ld-muted); }
.ld-hours__today { display: none; margin-left: .5rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background-color: var(--ld-blue); color: #fff; padding: .15rem .45rem; border-radius: 999px; vertical-align: middle; }
.ld-hours tr.is-today th, .ld-hours tr.is-today td { color: var(--ld-blue); font-weight: 800; }
.ld-hours tr.is-today .ld-hours__today { display: inline-block; }
.ld-addr { background-color: var(--ld-navy); color: #fff; border-radius: var(--ld-radius); padding: clamp(1.5rem, 3vw, 2.25rem); height: 100%; box-sizing: border-box; position: relative; overflow: hidden; }
.ld-addr::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .05); pointer-events: none; }
.ld-addr p { margin: 0; position: relative; z-index: 1; }
.ld-addr p + p { margin-top: 1rem; }
.ld-addr__icon .ld-ico { width: 2.2rem; height: 2.2rem; color: #cfe6f5; }
.ld-addr__name { font-size: 1.35rem; line-height: 1.25; font-weight: 800; }
.ld-addr__street { font-size: 1.2rem; line-height: 1.45; }
.ld-addr__hint { color: rgba(255, 255, 255, .75); }
.ld-addr__contact { display: flex; flex-direction: column; gap: .4rem; }
.ld-addr__contact a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.ld-addr__contact a:hover { text-decoration: underline; }
.ld-addr .ld-btn--primary { background-color: #fff; color: var(--ld-navy); margin-top: .5rem; }
.ld-addr .ld-btn--primary:hover { background-color: var(--ld-mist); }

/* ---------- Rechtstexte ---------- */
.ld-main--text { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.ld-main--text h1 { font-size: var(--wp--preset--font-size--xl); }
.ld-main--text h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.ld-main--text p, .ld-main--text li { color: var(--ld-ink); }
.ld-main--text figure.wp-block-table { margin-block: 1.25rem; overflow-x: auto; }
.ld-main--text table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.ld-main--text th, .ld-main--text td { border: 1px solid var(--ld-line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.ld-main--text thead th { background-color: var(--ld-mist); }

/* ---------- Footer ---------- */
.ld-site-footer { margin: 0; }
.ld-footer { background-color: var(--ld-navy); color: rgba(255, 255, 255, .78); padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem) 1.5rem; font-size: .98rem; }
.ld-footer__inner { max-width: var(--ld-wide); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.ld-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .75rem; }
.ld-footer p { margin: 0 0 .6rem; }
.ld-footer a:not(.ld-btn) { color: #fff; text-decoration: none; }
.ld-footer a:not(.ld-btn):hover { text-decoration: underline; }
.ld-logo--white svg { height: 28px; }
.ld-footer__brand p { margin-top: .75rem; }
.ld-footer__legal { max-width: var(--ld-wide); margin: 2.5rem auto 0 !important; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 900px) { .ld-footer__inner { grid-template-columns: 1fr 1fr; } .ld-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ld-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Mobile Aktionsleiste ---------- */
.ld-mbar { display: none; }
@media (max-width: 900px) {
	.ld-mbar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background-color: rgba(255, 255, 255, .97); border-top: 1px solid var(--ld-line); box-shadow: 0 -6px 20px rgba(11, 42, 60, .08); }
	.ld-mbar a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem; border-radius: 999px; font-weight: 800; text-decoration: none; }
	.ld-mbar__call { background-color: var(--ld-blue); color: #fff; }
	.ld-mbar__route { background-color: var(--ld-mist); color: var(--ld-navy); }
	body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.ld-hero .ld-actions { display: none; }
}
@media (max-width: 600px) {
	.ld-section .ld-btn { justify-content: center; }
	.ld-addr .ld-btn { width: 100%; }
}
