/*
Theme Name: Verbrauchsklar
Theme URI: https://verbrauchsklar.de/
Author: Mario Günter
Author URI: https://it-guenter.de/
Description: Schnelles, barrierearmes Block-Theme für Verbrauchsklar. Sämtliche Inhalte und Layoutbausteine bleiben im WordPress-Standardeditor bearbeitbar.
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 8.1
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verbrauchsklar
Tags: block-patterns, full-site-editing, accessibility-ready, blog, news
*/

html {
  scroll-behavior: smooth;
}

body {
  text-wrap: pretty;
}

a,
button,
input,
textarea,
select {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--wp--preset--color--signal);
  outline-offset: 3px;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  background: var(--wp--preset--color--action-dark);
  transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  color: var(--wp--preset--color--white);
  background: var(--wp--preset--color--ink);
}

.vk-card,
.is-style-vk-card {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgb(11 31 51 / 8%);
  overflow: hidden;
}

.vk-soft,
.is-style-vk-soft {
  border-radius: 16px;
  background: var(--wp--preset--color--mint);
}

.vk-eyebrow {
  color: var(--wp--preset--color--action);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vk-meta-row {
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
}

.vk-disclosure {
  border-left: 4px solid var(--wp--preset--color--signal);
  border-radius: 0 12px 12px 0;
  background: var(--wp--preset--color--signal-soft);
}

.vk-check-list {
  list-style: none;
  padding-left: 0;
}

.vk-check-list li {
  position: relative;
  margin-block: 0.7rem;
  padding-left: 2rem;
}

.vk-check-list li::before {
  position: absolute;
  top: 0.05em;
  left: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  color: #fff;
  background: var(--wp--preset--color--action);
  content: "✓";
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35rem;
  text-align: center;
}

.vk-topic-card {
  min-height: 100%;
}

.vk-trust-strip .wp-block-column {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.vk-trust-strip .vk-trust-icon {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--wp--preset--color--white);
  background: var(--wp--preset--color--action);
  font-size: 0.9rem;
  font-weight: 800;
}

.wp-block-post-content > :where(h2, h3) {
  scroll-margin-top: 7rem;
}

.wp-block-post-content :where(table) {
  border-collapse: collapse;
}

.wp-block-post-content :where(th) {
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--mint);
  text-align: left;
}

.wp-block-post-content :where(th, td) {
  padding: 0.85rem 1rem;
  border: 1px solid var(--wp--preset--color--line);
}

.wp-block-post-content > .wp-block-paragraph:first-child,
.vk-article-lead {
  color: var(--wp--preset--color--ink);
  font-size: clamp(1.2rem, 1.08rem + 0.35vw, 1.4rem);
  line-height: 1.55;
}

.vk-article-facts {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 16px;
  background: var(--wp--preset--color--white);
}

.vk-toc a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.vk-source-list {
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
}

.vk-source-list li {
  margin-block: 0.7rem;
}

.wp-block-post-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wp-block-post-featured-image img,
.vk-card .wp-block-post-featured-image img {
  object-fit: cover;
}

.vk-card .wp-block-post-title a {
  text-decoration: none;
}

.vk-card .wp-block-post-title a:hover {
  color: var(--wp--preset--color--action);
}

.vk-ad-card {
  border: 1px solid #f2c78e;
}

@media (max-width: 781px) {
  .vk-hide-mobile {
    display: none !important;
  }

  .vk-trust-strip .wp-block-columns {
    gap: 0.9rem;
  }

  .wp-block-post-content :where(th, td) {
    min-width: 8.5rem;
    padding: 0.7rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
