/*
Theme Name: Treffpunkt-Garda-Theme
Theme URI: https://treffpunkt-gardasee.de
Author: Alexander Zeilinger (Treffpunkt-Gardasee)
Description: Block-Theme (FSE) für Treffpunkt-Gardasee.de — Schwester-Theme von Treffpunkt-Venezia-Theme. Brand-Farben: Garda-Türkis, Olivgrün, Bardolino-Wein, Bergstein-Grau, Sonne-Gold.
Version: 0.6.1
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.1
License: GPL v2 or later
Text Domain: treffpunkt-garda-theme
Tags: full-site-editing, block-templates, blog, news, travel
*/

/* Custom CSS für Tabellen-Pattern tg-decision-matrix */
.wp-block-table.tg-decision-matrix {
  overflow: visible;
  margin-block: var(--wp--preset--spacing--32);
}

.wp-block-table.tg-decision-matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.wp-block-table.tg-decision-matrix thead th {
  background: var(--wp--preset--color--primary);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.wp-block-table.tg-decision-matrix tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e6e6e6;
  vertical-align: top;
}

.wp-block-table.tg-decision-matrix tbody tr:hover td {
  background: #f7f9fa;
}

@media (max-width: 768px) {
  .wp-block-table.tg-decision-matrix thead {
    display: none;
  }
  .wp-block-table.tg-decision-matrix tbody tr {
    display: block;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
  }
  .wp-block-table.tg-decision-matrix tbody td {
    display: block;
    padding: 6px 0;
    border: 0;
  }
  .wp-block-table.tg-decision-matrix tbody td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
  }
}

/* Brand-spezifisches Hero-Pattern */
.tg-hero {
  position: relative;
  overflow: hidden;
}

.tg-hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Section-Spacing analog Venedig */
.tg-section {
  margin-block: var(--wp--preset--spacing--64);
}

/* Brand-Akzent */
.tg-accent {
  color: var(--wp--preset--color--accent);
}

/* ============================================================
   v0.4.0 — PROFESSIONAL POLISH PATTERNS
   Diese Klassen werden in Page-Inhalten genutzt für Pro-Look
   ============================================================ */

/* --- Eyebrow (Pre-Heading-Label) --- */
.tg-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin-bottom: 12px;
}

/* --- Lead (großer Subhead-Text) --- */
.tg-lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--wp--preset--color--text);
  max-width: 820px;
}

/* --- Stats Strip oben auf Pages --- */
.tg-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--wp--preset--color--border);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0 48px;
}
.tg-stats-strip__item {
  background: var(--wp--preset--color--background);
  padding: 20px 24px;
}
.tg-stats-strip__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--wp--preset--color--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.tg-stats-strip__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--wp--preset--color--neutral-dark);
  line-height: 1.2;
}

/* --- H2 / H3 mit Brand-Akzent-Bar --- */
.tg-heading-accent {
  position: relative;
  padding-left: 18px;
}
.tg-heading-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.22em;
  width: 4px;
  background: var(--wp--preset--color--primary);
  border-radius: 2px;
}

/* --- Card Grid --- */
.tg-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}
.tg-card {
  background: var(--wp--preset--color--background);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 22px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  list-style: none;
}
.tg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(74, 86, 96, 0.10);
  border-color: var(--wp--preset--color--primary);
}
.tg-card__meta {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  background: rgba(0, 159, 227, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.tg-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--wp--preset--color--neutral-dark);
  line-height: 1.3;
}
.tg-card__body {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--wp--preset--color--text);
  margin: 0;
}

/* --- Modernisierte FAQ-Details mit +/− --- */
.wp-block-details {
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding: 16px 0;
}
.wp-block-details:first-of-type { border-top: 1px solid var(--wp--preset--color--border); }
.wp-block-details > summary {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--wp--preset--color--neutral-dark);
  list-style: none;
  position: relative;
  padding: 4px 40px 4px 0;
  cursor: pointer;
  user-select: none;
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::marker { content: ""; }
.wp-block-details > summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--wp--preset--color--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--wp--preset--color--primary);
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.wp-block-details[open] > summary::after {
  content: "−";
  background: var(--wp--preset--color--primary);
  color: #fff;
}
.wp-block-details > summary:hover { color: var(--wp--preset--color--primary); }
.wp-block-details > *:not(summary) {
  margin-top: 12px;
  color: var(--wp--preset--color--text);
  padding-right: 40px;
}

/* --- EEAT Trust Box (Autor-Karte) --- */
.tg-trust-box {
  background: var(--wp--preset--color--background-alt);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 48px 0 24px;
  border-left: 4px solid var(--wp--preset--color--primary);
}
.tg-trust-box__label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--wp--preset--color--text-muted);
  margin-bottom: 8px;
}
.tg-trust-box__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--wp--preset--color--neutral-dark);
}
.tg-trust-box p {
  margin: 6px 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--wp--preset--color--text);
}

/* --- Key-Facts Pills --- */
.tg-key-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 12px 0 28px;
  padding: 0;
  list-style: none;
}
.tg-key-facts li {
  font-size: 0.85rem;
  background: var(--wp--preset--color--background-alt);
  padding: 6px 12px;
  border-radius: 100px;
  color: var(--wp--preset--color--neutral-dark);
  list-style: none;
}
.tg-key-facts li strong {
  color: var(--wp--preset--color--primary);
  font-weight: 700;
}

/* --- Related Card Grid --- */
.tg-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.tg-related-grid li { list-style: none; margin: 0; }
.tg-related-grid a {
  display: block;
  background: var(--wp--preset--color--background);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  height: 100%;
}
.tg-related-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(74, 86, 96, 0.08);
  border-color: var(--wp--preset--color--primary);
}
.tg-related-grid__title {
  display: block;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin-bottom: 6px;
  font-size: 1rem;
}
.tg-related-grid__desc {
  display: block;
  font-size: 0.88rem;
  color: var(--wp--preset--color--text-muted);
  line-height: 1.5;
}

/* --- Section mit Tint-Background (alternierend) --- */
.tg-section-tinted {
  background: var(--wp--preset--color--background-alt);
}

/* --- Featured Snippet / TL;DR Card (Türkis-Akzent links) --- */
.tg-snippet {
  background: var(--wp--preset--color--background-alt);
  border-left: 4px solid var(--wp--preset--color--primary);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 24px 0 40px;
}
.tg-snippet__label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin-bottom: 10px;
}
.tg-snippet p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--wp--preset--color--text);
}

/* --- Anchor Nav (Inhaltsverzeichnis-Strip) --- */
.tg-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 36px;
  padding: 14px 18px;
  background: var(--wp--preset--color--background-alt);
  border-radius: 8px;
  list-style: none;
  font-size: 0.88rem;
}
.tg-toc li { list-style: none; margin: 0; }
.tg-toc a {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  font-weight: 600;
}
.tg-toc a::before { content: "›"; margin-right: 4px; opacity: 0.5; }
.tg-toc a:hover { text-decoration: underline; }

/* --- Mobile-Anpassungen --- */
@media (max-width: 600px) {
  .tg-stats-strip { grid-template-columns: 1fr 1fr; }
  .tg-stats-strip__value { font-size: 1.15rem; }
  .tg-card { padding: 18px; }
  .tg-trust-box { padding: 18px; }
  .wp-block-details > summary { font-size: 0.98rem; padding-right: 36px; }
}

/* ============================================================
   v0.4.1 — Section-Divider + kompaktere Abstände
   ============================================================ */

/* Gestrichelte Trennlinie zwischen Sektionen */
.tg-divider {
  border: 0;
  border-top: 1px dashed var(--wp--preset--color--border);
  margin: 0;
  height: 0;
  max-width: 100%;
}
/* Variante mit Türkis-Akzent in der Mitte */
.tg-divider--accent {
  border: 0;
  height: 1px;
  background: var(--wp--preset--color--border);
  position: relative;
  margin: 0;
}
.tg-divider--accent::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: var(--wp--preset--color--primary);
  border-radius: 100px;
}

/* ============================================================
   v0.4.2 — UX/UI Override + Mobile-Responsive Polish
   Hard-Override für WP-Block-Library Default-Bullets
   ============================================================ */

/* === HARD BULLET RESET für alle tg-* Listen === */
ul.tg-stats-strip,
ul.tg-card-grid,
ul.tg-key-facts,
ul.tg-related-grid,
ul.tg-toc,
ul.tg-stats-strip li,
ul.tg-card-grid li,
ul.tg-key-facts li,
ul.tg-related-grid li,
ul.tg-toc li {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
}
ul.tg-stats-strip li::marker,
ul.tg-card-grid li::marker,
ul.tg-key-facts li::marker,
ul.tg-related-grid li::marker,
ul.tg-toc li::marker {
  content: "" !important;
  display: none !important;
}
ul.tg-stats-strip li::before,
ul.tg-card-grid li::before,
ul.tg-key-facts li::before,
ul.tg-related-grid li::before,
ul.tg-toc li::before {
  content: none !important;
  display: none !important;
}

/* === STATS-STRIP — überarbeitet sauber === */
.tg-stats-strip {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--wp--preset--color--background);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0 32px !important;
  padding: 0 !important;
}
.tg-stats-strip__item {
  padding: 18px 22px !important;
  border-right: 1px solid var(--wp--preset--color--border);
  background: var(--wp--preset--color--background);
  margin: 0 !important;
}
.tg-stats-strip__item:last-child { border-right: none; }
.tg-stats-strip__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.tg-stats-strip__value {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wp--preset--color--neutral-dark);
  line-height: 1.15;
}

/* === CARD-GRID — Polish === */
.tg-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 20px 0 28px !important;
  padding: 0 !important;
}
.tg-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 20px 22px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}
.tg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(74, 86, 96, 0.12);
  border-color: var(--wp--preset--color--primary);
}
.tg-card__meta {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  background: rgba(0, 159, 227, 0.10);
  padding: 4px 11px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  align-self: flex-start;
}
.tg-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--wp--preset--color--neutral-dark);
  line-height: 1.3;
}
.tg-card__body {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--wp--preset--color--text);
  margin: 0;
}

/* === KEY-FACTS Pills === */
.tg-key-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 14px 0 24px !important;
  padding: 0 !important;
}
.tg-key-facts li {
  font-size: 0.85rem;
  background: rgba(0, 159, 227, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--wp--preset--color--neutral-dark);
  margin: 0 !important;
}
.tg-key-facts li strong {
  color: var(--wp--preset--color--primary);
  font-weight: 700;
  margin-right: 4px;
}

/* === RELATED-GRID === */
.tg-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0 28px !important;
  padding: 0 !important;
}
.tg-related-grid li { margin: 0 !important; }
.tg-related-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
}
.tg-related-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(74, 86, 96, 0.10);
  border-color: var(--wp--preset--color--primary);
  text-decoration: none;
}
.tg-related-grid__title {
  display: block;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin-bottom: 4px;
  font-size: 1rem;
}
.tg-related-grid__desc {
  display: block;
  font-size: 0.86rem;
  color: var(--wp--preset--color--text-muted);
  line-height: 1.5;
}

/* === TRUST-BOX === */
.tg-trust-box {
  background: var(--wp--preset--color--background-alt);
  border-radius: 12px;
  padding: 20px 24px !important;
  margin: 32px 0 0 !important;
  border-left: 4px solid var(--wp--preset--color--primary);
}
.tg-trust-box__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--wp--preset--color--text-muted);
  margin-bottom: 6px;
}
.tg-trust-box__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px !important;
  color: var(--wp--preset--color--neutral-dark);
}
.tg-trust-box p {
  margin: 6px 0 0 !important;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--wp--preset--color--text);
}

/* === SNIPPET-BOX === */
.tg-snippet {
  background: var(--wp--preset--color--background-alt);
  border-left: 4px solid var(--wp--preset--color--primary);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0 28px !important;
}
.tg-snippet__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin-bottom: 8px;
}
.tg-snippet p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--wp--preset--color--text);
}

/* === EYEBROW === */
.tg-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin-bottom: 10px;
}

/* === LEAD === */
.tg-lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--wp--preset--color--text);
  max-width: 820px;
  margin: 0 0 24px;
}

/* === HEADING-ACCENT === */
.tg-heading-accent {
  position: relative;
  padding-left: 16px !important;
  margin-top: 0 !important;
}
.tg-heading-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.25em;
  width: 4px;
  background: var(--wp--preset--color--primary);
  border-radius: 2px;
}

/* === FAQ Details mit +/− === */
.wp-block-details {
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding: 14px 0;
}
.wp-block-details:first-of-type { border-top: 1px solid var(--wp--preset--color--border); }
.wp-block-details > summary {
  font-weight: 600;
  font-size: 1rem;
  color: var(--wp--preset--color--neutral-dark);
  list-style: none;
  position: relative;
  padding: 4px 44px 4px 0;
  cursor: pointer;
  user-select: none;
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::marker { content: ""; }
.wp-block-details > summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--wp--preset--color--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--wp--preset--color--primary);
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease;
}
.wp-block-details[open] > summary::after {
  content: "−";
  background: var(--wp--preset--color--primary);
  color: #fff;
}
.wp-block-details > summary:hover { color: var(--wp--preset--color--primary); }
.wp-block-details > *:not(summary) {
  margin-top: 10px !important;
  color: var(--wp--preset--color--text);
  padding-right: 40px;
}

/* === DIVIDER === */
.tg-divider {
  border: 0;
  border-top: 1px dashed var(--wp--preset--color--border);
  margin: 8px 0 !important;
  height: 0;
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* === DECISION-MATRIX Polish === */
.wp-block-table.tg-decision-matrix {
  margin: 16px 0 28px !important;
}
.wp-block-table.tg-decision-matrix table {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  overflow: hidden;
}
.wp-block-table.tg-decision-matrix thead th {
  padding: 14px 18px !important;
}
.wp-block-table.tg-decision-matrix tbody td {
  padding: 14px 18px !important;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === SECTION TINTED Padding-Fix === */
.tg-section-tinted {
  background: var(--wp--preset--color--background-alt);
}

/* === HEADING-SPACING === */
.wp-block-group h2 + p,
.wp-block-group h3 + p { margin-top: 10px; }

.wp-block-group h2 { margin-top: 24px !important; margin-bottom: 14px !important; }
.wp-block-group h3 { margin-top: 22px !important; margin-bottom: 10px !important; }

/* === RESPONSIVE BREAKPOINTS === */

/* Tablet 768px und kleiner */
@media (max-width: 900px) {
  .tg-stats-strip { grid-template-columns: 1fr 1fr; }
  .tg-stats-strip__item:nth-child(2) { border-right: none; }
  .tg-stats-strip__item:nth-child(1),
  .tg-stats-strip__item:nth-child(2) {
    border-bottom: 1px solid var(--wp--preset--color--border);
  }
}

/* Mobile 600px und kleiner */
@media (max-width: 600px) {
  .tg-stats-strip__value { font-size: 1.2rem; }
  .tg-stats-strip__item { padding: 14px 16px !important; }
  .tg-stats-strip__label { font-size: 0.65rem; }

  .tg-card { padding: 16px 18px !important; }
  .tg-card__title { font-size: 1rem; }
  .tg-card__body { font-size: 0.9rem; }

  .tg-snippet { padding: 14px 18px; }
  .tg-trust-box { padding: 16px 18px !important; }

  .wp-block-details > summary { font-size: 0.95rem; padding-right: 38px; }
  .wp-block-details > *:not(summary) { padding-right: 0; }

  .tg-lead { font-size: 1.05rem; }

  .tg-heading-accent { padding-left: 12px !important; }
}

/* ============================================================
   v0.4.3 — Türkis-Bar vor H2/H3 weg + kompaktere Abstände
   ============================================================ */

/* --- Heading-Accent Bar entfernen --- */
.tg-heading-accent {
  position: static !important;
  padding-left: 0 !important;
}
.tg-heading-accent::before {
  content: none !important;
  display: none !important;
  background: transparent !important;
}

/* --- Sektion-Vertikal-Abstand drastisch reduzieren --- */
.wp-block-group h2 { margin-top: 16px !important; margin-bottom: 8px !important; }
.wp-block-group h3 { margin-top: 14px !important; margin-bottom: 6px !important; }
.wp-block-group h2:first-child,
.wp-block-group h3:first-child { margin-top: 0 !important; }

.wp-block-group p { margin-top: 0.6em; margin-bottom: 0.6em; }

/* --- Divider noch dezenter --- */
.tg-divider {
  margin: 0 !important;
  padding: 0;
  border-top: 1px dashed rgba(74, 86, 96, 0.18);
}

/* --- Abstand Trust-Box zur vorherigen --- */
.tg-trust-box { margin-top: 20px !important; }

/* ============================================================
   v0.5.1 — Footer/Header Polish auf Sky-Blue Brand
   ============================================================ */

/* Footer-Links auf Sky-Blue-Dark Background — weiß mit Opacity, Hover voll weiß */
footer a {
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none;
  transition: color 0.15s ease;
}
footer a:hover,
footer a:focus {
  color: #fff !important;
  text-decoration: underline;
}

/* Footer-Site-Title hervorheben */
footer .wp-block-site-title a {
  color: #fff !important;
  font-weight: 700;
}

/* Header-Navigation auf Sky-Blue Background */
header .wp-block-navigation a {
  color: #fff !important;
  transition: color 0.15s ease, opacity 0.15s ease;
}
header .wp-block-navigation a:hover,
header .wp-block-navigation a:focus {
  color: var(--wp--preset--color--highlight) !important; /* Sonne-Gold für Hover-Akzent */
}
header .wp-block-site-title a {
  color: #fff !important;
}

/* Mobile-Menu-Overlay (Sky-Blue-Dark Background) */
.wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--wp--preset--color--primary-dark) !important;
}
.wp-block-navigation__responsive-container .wp-block-navigation a {
  color: #fff !important;
}

/* ============================================================
   v0.6.1 — UX/UI Polish (Navigation, Cards, Tabellen, Spacing)
   ============================================================ */

/* --- Header-Navigation Polish --- */
header .wp-block-navigation > .wp-block-navigation__container {
  gap: 0.25rem;
}
header .wp-block-navigation .wp-block-navigation-item > a,
header .wp-block-navigation .wp-block-navigation-submenu > a {
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  font-weight: 500;
}
header .wp-block-navigation .wp-block-navigation-item > a:hover,
header .wp-block-navigation .wp-block-navigation-submenu > a:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

/* Submenu-Container: cleaner Background + Shadow */
header .wp-block-navigation .wp-block-navigation__submenu-container {
  background-color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 32px rgba(0, 60, 90, 0.18) !important;
  padding: 0.45rem !important;
  min-width: 240px;
  margin-top: 6px;
}

/* Submenu-Items: konsistente Höhe + Padding, kein Text-Overlap */
header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item {
  width: 100%;
}
header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item > a,
header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu > a {
  display: block !important;
  padding: 0.6rem 0.85rem !important;
  line-height: 1.35 !important;
  color: var(--wp--preset--color--neutral-dark, #4a5660) !important;
  border-radius: 6px;
  font-size: 0.93rem;
  white-space: normal !important;
}
header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item > a:hover,
header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu > a:hover {
  background-color: var(--wp--preset--color--primary, #009FE3) !important;
  color: #fff !important;
}

/* Submenu-Chevron-Spacing */
header .wp-block-navigation .wp-block-navigation-submenu__toggle {
  padding-left: 0.25rem;
}

/* --- Card-Grid Polish (tg-card-grid) --- */
.tg-card-grid {
  list-style: none !important;
  padding-left: 0 !important;
  margin-block: var(--wp--preset--spacing--24, 1.5rem) !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.tg-card-grid .tg-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 1.2rem 1.25rem 1.3rem;
  box-shadow: 0 2px 6px rgba(0, 60, 90, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  list-style: none;
}
.tg-card-grid .tg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 60, 90, 0.12);
  border-color: rgba(0, 159, 227, 0.25);
}
.tg-card__meta {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--wp--preset--color--primary, #009FE3);
  background: rgba(0, 159, 227, 0.08);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.55rem;
}
.tg-card__title {
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 0 0.5rem !important;
  color: var(--wp--preset--color--neutral-dark, #4a5660) !important;
}
.tg-card__body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #555;
  margin: 0;
}

/* --- Decision-Matrix Tabellen Polish --- */
.wp-block-table.tg-decision-matrix {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 60, 90, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.wp-block-table.tg-decision-matrix table {
  margin: 0 !important;
}
.wp-block-table.tg-decision-matrix thead th {
  background: var(--wp--preset--color--primary, #009FE3) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.85rem 1rem !important;
  text-align: left !important;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.wp-block-table.tg-decision-matrix tbody td {
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
  line-height: 1.5;
}
.wp-block-table.tg-decision-matrix tbody tr:nth-child(even) td {
  background: rgba(0, 159, 227, 0.025);
}
.wp-block-table.tg-decision-matrix tbody tr:hover td {
  background: rgba(0, 159, 227, 0.06);
}
.wp-block-table.tg-decision-matrix tbody tr:last-child td {
  border-bottom: none;
}

/* --- Stats-Strip Polish --- */
.tg-stats-strip {
  list-style: none !important;
  padding: 0.75rem 0 !important;
  margin: 1.25rem 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  border-top: 1px solid rgba(0, 159, 227, 0.15);
  border-bottom: 1px solid rgba(0, 159, 227, 0.15);
}
.tg-stats-strip__item {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.85rem;
  list-style: none;
}
.tg-stats-strip__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.tg-stats-strip__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wp--preset--color--neutral-dark, #4a5660);
  line-height: 1.25;
}

/* --- Snippet-Box Polish --- */
.tg-snippet {
  background: rgba(0, 159, 227, 0.04);
  border-left: 4px solid var(--wp--preset--color--primary, #009FE3);
  padding: 1.1rem 1.4rem;
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
}
.tg-snippet__label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--wp--preset--color--primary, #009FE3);
  margin-bottom: 0.55rem;
}
.tg-snippet p {
  margin: 0 !important;
  font-size: 0.97rem;
  line-height: 1.6;
}

/* --- Lead-Absatz Polish --- */
.tg-lead {
  font-size: 1.13rem !important;
  line-height: 1.6 !important;
  color: #444;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

/* --- Eyebrow Polish --- */
.tg-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--wp--preset--color--primary, #009FE3);
  margin-bottom: 0.65rem;
  background: rgba(0, 159, 227, 0.08);
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
}

/* --- Key-Facts-Pills Polish --- */
.tg-key-facts {
  list-style: none !important;
  padding-left: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}
.tg-key-facts li {
  background: rgba(0, 159, 227, 0.06);
  border: 1px solid rgba(0, 159, 227, 0.15);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.87rem;
  line-height: 1.4;
  color: #444;
  list-style: none;
}
.tg-key-facts li strong {
  color: var(--wp--preset--color--neutral-dark, #4a5660);
  font-weight: 600;
}

/* --- Related-Grid Polish --- */
.tg-related-grid {
  list-style: none !important;
  padding-left: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0;
}
.tg-related-grid li {
  list-style: none;
}
.tg-related-grid li a {
  display: block;
  padding: 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: var(--wp--preset--color--neutral-dark, #4a5660);
}
.tg-related-grid li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 60, 90, 0.1);
  border-color: rgba(0, 159, 227, 0.3);
}
.tg-related-grid__title {
  display: block;
  font-weight: 700;
  color: var(--wp--preset--color--primary, #009FE3);
  margin-bottom: 0.2rem;
  font-size: 0.97rem;
}
.tg-related-grid__desc {
  display: block;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.45;
}

/* --- Trust-Box Polish --- */
.tg-trust-box {
  background: rgba(74, 86, 96, 0.04);
  border: 1px solid rgba(74, 86, 96, 0.1);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0 0;
}
.tg-trust-box__label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--wp--preset--color--neutral-dark, #4a5660);
  margin-bottom: 0.5rem;
  opacity: 0.65;
}
.tg-trust-box__title {
  font-size: 1.02rem !important;
  margin: 0 0 0.5rem !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--neutral-dark, #4a5660) !important;
}
.tg-trust-box p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #555;
}

/* --- Section-Tinted alternierender Background --- */
.tg-section-tinted {
  background: rgba(0, 159, 227, 0.03);
  border-radius: 14px;
  padding-block: 2rem !important;
  margin-block: 1rem;
}

/* --- Divider --- */
.tg-divider {
  border: none;
  border-top: 1px dashed rgba(0, 159, 227, 0.25);
  margin: 1.75rem 0;
}

/* --- H2 Polish (mehr Atmung, klare Hierarchie) --- */
.wp-block-group h2.wp-block-heading {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  color: var(--wp--preset--color--neutral-dark, #4a5660);
}
.wp-block-group h2.wp-block-heading + p,
.wp-block-group h2.wp-block-heading + ul,
.wp-block-group h2.wp-block-heading + ol {
  margin-top: 0.4rem;
}

/* --- H3/H4 Polish --- */
.wp-block-group h3.wp-block-heading,
.wp-block-group h4.wp-block-heading {
  color: var(--wp--preset--color--neutral-dark, #4a5660);
}

/* --- FAQ-Details Polish --- */
.wp-block-details {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  background: #fff;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.wp-block-details:hover {
  border-color: rgba(0, 159, 227, 0.2);
  box-shadow: 0 4px 12px rgba(0, 60, 90, 0.06);
}
.wp-block-details > summary {
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--wp--preset--color--neutral-dark, #4a5660);
  list-style-position: outside;
}
.wp-block-details[open] > summary {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 0.3rem;
  background: rgba(0, 159, 227, 0.03);
}
.wp-block-details > p {
  padding: 0 1.1rem 0.9rem;
  margin: 0.4rem 0 0 !important;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #555;
}

/* --- Buttons Polish (Hero-Section + überall) --- */
.wp-block-button .wp-block-button__link {
  padding: 0.7rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.18s ease, opacity 0.15s ease !important;
}
.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 60, 90, 0.18);
}

/* --- Mobile-Submenu-Polish --- */
@media (max-width: 768px) {
  .wp-block-navigation__responsive-container .wp-block-navigation .wp-block-navigation__submenu-container {
    box-shadow: none !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.06) !important;
    padding: 0.2rem 0.5rem !important;
    margin-top: 0.3rem;
    border-radius: 8px !important;
  }
  .wp-block-navigation__responsive-container .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item > a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
  }
  .wp-block-navigation__responsive-container .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item > a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
  }
  .tg-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .tg-card-grid,
  .tg-related-grid {
    grid-template-columns: 1fr;
  }
}
