/*
Theme Name: Solowerkzeug
Description: Helles, sachliches Block-Theme für Solowerkzeug.de (Tools, Vorlagen und Technik für Selbstständige).
Author: Solowerkzeug
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: solowerkzeug
*/

:root { --sw-radius: 16px; --sw-shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .06); }

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #93b4ff; outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

/* Header */
.sw-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--wp--preset--color--border); }
.sw-header .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.sw-header .wp-block-navigation a { text-decoration: none; font-weight: 500; }
.sw-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }

/* Hero */
.sw-hero { background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%); border-bottom: 1px solid var(--wp--preset--color--border); }
.sw-hero h1 { max-width: 16ch; }
.sw-eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--primary); background: var(--wp--preset--color--tint); padding: .35rem .75rem; border-radius: 999px; margin: 0; }
.sw-note { font-size: .875rem; color: var(--wp--preset--color--muted); }
.sw-hero-art svg { width: 100%; height: auto; display: block; }

/* Karten */
.sw-card { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: var(--sw-radius); padding: 1.6rem; box-shadow: var(--sw-shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; height: 100%; }
.sw-card:hover { transform: translateY(-2px); border-color: #c9d6ee; box-shadow: 0 2px 4px rgba(15,27,45,.06), 0 14px 32px rgba(15,27,45,.09); }
.sw-card h3 { margin-top: .25rem; }
.sw-card p { color: var(--wp--preset--color--muted); }
.sw-card .sw-more { font-weight: 600; text-decoration: none; }
.sw-badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: #e6f6f4; color: #0b6e69; margin: 0; }
.sw-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--wp--preset--color--tint); color: var(--wp--preset--color--primary); display: grid; place-items: center; margin-bottom: .6rem; }
.sw-icon svg { width: 24px; height: 24px; }

/* Abschnitte */
.sw-section-alt { background: var(--wp--preset--color--surface); border-top: 1px solid var(--wp--preset--color--border); border-bottom: 1px solid var(--wp--preset--color--border); }
.sw-section-title { max-width: 28ch; }
.sw-lead { font-size: 1.2rem; color: var(--wp--preset--color--muted); max-width: 60ch; }

/* Beitragsliste */
.sw-post-card { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: var(--sw-radius); overflow: hidden; box-shadow: var(--sw-shadow); height: 100%; }
.sw-post-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.sw-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
.sw-post-card .wp-block-post-featured-image { margin: 0; }
.sw-post-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sw-meta { font-size: .85rem; color: var(--wp--preset--color--muted); }
.sw-meta a { color: inherit; text-decoration: none; }

/* Hinweisbox */
.sw-ad-box { border-left: 4px solid var(--wp--preset--color--primary); background: var(--wp--preset--color--tint); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; font-size: .95rem; color: #223a66; }
.sw-form-box { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: var(--sw-radius); padding: 1.75rem; box-shadow: var(--sw-shadow); }
.sw-checklist { list-style: none; padding-left: 0; }
.sw-checklist li { position: relative; padding-left: 1.9rem; margin: .55rem 0; }
.sw-checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #e6f6f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.6' fill='none' stroke='%230b6e69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Footer */
.sw-footer { background: var(--wp--preset--color--navy); color: #cdd7e6; }
.sw-footer a { color: #e8eefb; text-decoration: none; }
.sw-footer a:hover { text-decoration: underline; }
.sw-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.sw-footer .sw-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #9fb0cc; }

/* Buttons */
.wp-block-button__link { transition: background-color .15s ease, transform .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-outline > .wp-block-button__link { border: 1.5px solid #c3d0ea; color: var(--wp--preset--color--ink); background: #fff; }

@media (max-width: 781px) {
  .sw-hero h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Korrekturen */
.sw-section-head > * { max-width: 760px; }
.wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part:last-child { margin-block-start: 0; }
.sw-card h3 { font-size: 1.3rem; line-height: 1.25; }
.sw-section-title { max-width: 28ch; }
.sw-form-box h3 { font-size: 1.35rem; margin-top: 0; }
.sw-form-box { position: sticky; top: 6rem; }
@media (max-width: 781px) { .sw-form-box { position: static; } }
