/*
Theme Name: OLVAYA
Theme URI: https://olvaya.de
Author: OLVAYA
Description: Schlankes, barrierearmes Theme für die OLVAYA-Website. Keine externen Schriften, keine Tracking-Dienste.
Version: 1.4.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: olvaya
*/

/* ---------- Grundgerüst ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(a) { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 3px; border-radius: 4px; }
.wp-site-blocks { padding: 0; }

/* ---------- Kopfzeile ---------- */
.olv-header { padding: 1rem var(--wp--style--root--padding-right, 1.25rem); border-bottom: 1px solid var(--wp--preset--color--line);
  background: var(--wp--preset--color--base); position: sticky; top: 0; z-index: 10; }
.olv-header > .wp-block-group { max-width: var(--wp--style--global--wide-size); margin-inline: auto; width: 100%; }
.olv-logo { display: block; line-height: 0; }
.olv-logo-svg { height: 2.6rem; width: auto; display: block; }
@media (max-width: 720px) { .olv-logo-svg { height: 2.2rem; } }
.olv-nav { gap: .25rem 1.5rem !important; }
.olv-nav p { margin: 0; font-size: 1.05rem; }
.olv-nav a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.olv-nav a.wp-block-button__link, .olv-nav a.wp-block-button__link:hover { color: #fff; text-decoration: none; }
.olv-nav a:hover { color: var(--wp--preset--color--primary); text-decoration: underline; }
.olv-nav .wp-block-button__link { padding: .55em 1.1em; font-size: 1rem; }
@media (max-width: 720px) { .olv-nav .olv-nav-link { display: none; } .olv-header { position: static; } }

/* ---------- Abschnitte ---------- */
.olv-section { padding: clamp(3rem, 7vw, 5.5rem) var(--wp--style--root--padding-right, 1.25rem); }
.olv-section > * { max-width: var(--wp--style--global--wide-size); margin-inline: auto !important; }
.olv-section-intro { max-width: 46rem !important; margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important; color: var(--wp--preset--color--muted); }
.olv-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .9rem !important; font-weight: 700;
  color: var(--wp--preset--color--primary); margin-bottom: .5rem; }
.olv-tint { background: var(--wp--preset--color--tint); }
.olv-plum { background: var(--wp--preset--color--primary); color: #fff; }
.olv-plum :where(h2, p, a) { color: #fff; }

/* ---------- Hero ---------- */
.olv-hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.olv-hero h1 { margin-top: .4rem; }
.olv-lead { font-size: var(--wp--preset--font-size--large) !important; color: var(--wp--preset--color--muted); }
.olv-badge { display: inline-block; background: var(--wp--preset--color--sun); color: var(--wp--preset--color--contrast);
  font-weight: 700; font-size: .95rem !important; padding: .35em .9em; border-radius: 999px; margin: 0; }
.olv-hero-art svg { width: 100%; height: auto; max-width: 30rem; display: block; margin-inline: auto; }
.olv-small { font-size: .95rem !important; color: var(--wp--preset--color--muted); }

/* ---------- Karten ---------- */
.olv-cards { gap: 1.5rem !important; }
.olv-card { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--line); border-radius: 18px;
  padding: 1.75rem !important; height: 100%; box-shadow: 0 1px 2px rgba(31,35,40,.04), 0 6px 20px rgba(91,46,145,.06); }
.olv-card h3 { margin-top: .75rem; margin-bottom: .5rem; }
.olv-card p { margin: 0 0 .5rem; }
.olv-step { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--wp--preset--color--sun); color: var(--wp--preset--color--contrast); font-weight: 800; font-size: 1.35rem !important; margin: 0; }
.olv-icon { margin: 0; }
.olv-icon svg { width: 3rem; height: 3rem; display: block; }

/* ---------- Tasten ---------- */
.olv-keys { list-style: none; padding: 0 !important; margin: .75rem 0 0; }
.olv-keys li { display: flex; align-items: center; gap: .75rem; margin: .45rem 0; }
.olv-keys strong { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 2.2rem;
  border-radius: 8px; border: 2px solid var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); font-size: 1.15rem; }

/* ---------- Gespräch ---------- */
.olv-chat-art svg { width: 100%; height: auto; max-width: 26rem; display: block; margin-inline: auto; }
.olv-checks { list-style: none; padding: 0 !important; margin-top: 1.25rem; }
.olv-checks li { position: relative; padding-left: 2.1rem; margin: .7rem 0; }
.olv-checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* ---------- Vertrauen ---------- */
.olv-promise { border-left: 5px solid var(--wp--preset--color--primary); padding: .25rem 0 .25rem 1.25rem !important; }
.olv-promise h3 { margin: 0 0 .35rem; }
.olv-promise p { margin: 0; }

/* ---------- FAQ ---------- */
.olv-faq .wp-block-details { border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 1rem 1.25rem;
  background: var(--wp--preset--color--base); margin-bottom: .85rem; }
.olv-faq summary { font-weight: 700; cursor: pointer; font-size: 1.15rem; }
.olv-faq details[open] summary { margin-bottom: .5rem; color: var(--wp--preset--color--primary); }
.olv-faq details p { margin: .25rem 0 0; }

/* ---------- Kontakt-Band ---------- */
.olv-cta { text-align: center; }
.olv-cta p { max-width: 40rem; margin-inline: auto; }
.olv-cta .wp-block-buttons { justify-content: center; }
.olv-cta .wp-block-button__link { background: #fff; color: var(--wp--preset--color--primary); }
.olv-cta .wp-block-button__link:hover { background: var(--wp--preset--color--sun); }

/* ---------- Fußzeile ---------- */
.olv-footer { padding: 2rem var(--wp--style--root--padding-right, 1.25rem); border-top: 1px solid var(--wp--preset--color--line); }
.olv-footer > .wp-block-group { max-width: var(--wp--style--global--wide-size); margin-inline: auto; width: 100%; }
.olv-footer p { margin: 0; font-size: 1rem; color: var(--wp--preset--color--muted); }
.olv-footer a { color: var(--wp--preset--color--muted); }

.olv-footer-brand { display: flex; align-items: center; gap: .6rem; }
.olv-footer-symbol { width: 1.8rem; height: 1.8rem; flex: none; }

/* ---------- Unterseiten ---------- */
.olv-page { padding: clamp(2rem, 5vw, 3.5rem) var(--wp--style--root--padding-right, 1.25rem) 4rem; }
.olv-plum .olv-small, .olv-plum .olv-small a { color: #fff; opacity: .92; }
.olv-section[id] { scroll-margin-top: 5rem; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Hinweis im Impressum, bis die Platzhalter ersetzt sind. */
.olv-placeholder-note {
	background: var(--wp--preset--color--sun);
	border-left: 4px solid var(--wp--preset--color--accent);
	padding: .75rem 1rem;
	border-radius: 6px;
}

/* Lange deutsche Wörter (z. B. „Verbraucherstreitbeilegung“) auf dem Handy trennen statt seitlich überstehen lassen. */
h1, h2, h3 {
	hyphens: auto;
	overflow-wrap: break-word;
}
