/* Guru-Ratgeber (29.10.2026): Uebersicht (blog/overview.tpl, blog/preview.tpl) und Beitrag (blog/details.tpl).
   Guru-Stil 2027: schwarzer Kopf, Barlow-Titel, Creme als Akzent, kantige Karten mit Schattenkante.
   Eigene Datei mit Aenderungszeit (layout/header.tpl), kein Minify-Cache. */
.g27-rg { max-width: 1240px; margin-left: auto; margin-right: auto; color: var(--g27-tinte, #1C1917); }
#content .container.blog-details { max-width: 1240px !important; }
.g27-rg-hero { margin: 8px 0 28px; padding: clamp(24px, 4vw, 48px); color: #fff; background: var(--g27-tinte, #1C1917); border-radius: var(--g27-r, 3px); }
.g27-rg-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; font-family: var(--g27-titel); font-size: 15px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--g27-akzent-weich, #FBEEDF); }
.g27-rg-kicker a { color: inherit; text-decoration: none; }
.g27-rg-kicker a:hover { text-decoration: underline; color: #fff; }
.g27-rg-hero h1 { max-width: 24ch; margin: 0 0 14px; font-family: var(--g27-titel); font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.05;
  text-transform: uppercase; color: #fff; }
.g27-rg-lead { max-width: 62ch; margin: 0 0 16px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.g27-rg-geprueft { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: rgba(255, 255, 255, .75); }
.g27-rg-geprueft::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--g27-akzent-weich, #FBEEDF); color: var(--g27-tinte, #1C1917); font-size: 12px; font-weight: 800; }
/* Karten */
.g27-rg-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.g27-rg-karte { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--g27-flaeche, #fff); color: var(--g27-tinte, #1C1917);
  border: 1.5px solid var(--g27-tinte, #1C1917); border-radius: var(--g27-r, 3px); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.g27-rg-karte:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--g27-tinte, #1C1917); color: var(--g27-tinte, #1C1917); text-decoration: none; }
.g27-rg-karte-kopf { display: flex; align-items: center; gap: 10px; }
.g27-rg-karte-kopf .g27-rg-ic { flex: none; width: 38px; height: 38px; padding: 8px; color: var(--g27-tinte, #1C1917); background: var(--g27-akzent-weich, #FBEEDF); border-radius: var(--g27-r, 3px); }
.g27-rg-rubrik { font-family: var(--g27-titel); font-size: 14px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.g27-rg-zeit { margin-left: auto; font-size: 13px; color: var(--g27-leise, #6B635B); }
.g27-rg-karte-titel { font-family: var(--g27-titel); font-size: 22px; font-weight: 800; line-height: 1.1; }
.g27-rg-karte-text { font-size: 15px; line-height: 1.5; color: var(--g27-leise, #6B635B); }
.g27-rg-weiter { margin-top: auto; padding-top: 8px; font-weight: 800; }
.g27-rg-weiter::after { content: " →"; }
/* Werkzeuge unter der Uebersicht */
.g27-rg-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.g27-rg-extra, .g27-rg-rechner { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; color: #fff; background: var(--g27-tinte, #1C1917);
  border-radius: var(--g27-r, 3px); text-decoration: none; }
.g27-rg-extra:hover, .g27-rg-rechner:hover { color: #fff; text-decoration: none; background: var(--g27-akzent-dunkel, #080808); }
.g27-rg-extra span, .g27-rg-rechner span { font-family: var(--g27-titel); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--g27-akzent-weich, #FBEEDF); }
.g27-rg-extra strong, .g27-rg-rechner strong { font-family: var(--g27-titel); font-size: 26px; font-weight: 800; text-transform: uppercase; }
.g27-rg-extra em, .g27-rg-rechner em { font-style: normal; color: rgba(255, 255, 255, .8); }
.g27-rg-extra--hell { color: var(--g27-tinte, #1C1917); background: var(--g27-akzent-weich, #FBEEDF); }
.g27-rg-extra--hell:hover { color: var(--g27-tinte, #1C1917); background: #F6E2CC; }
.g27-rg-extra--hell span { color: var(--g27-leise, #6B635B); }
.g27-rg-extra--hell em { color: var(--g27-leise, #6B635B); }
.g27-rg-rechner { margin-top: 28px; }
/* Beitrag */
.g27-rg-rumpf { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 48px; justify-content: center; margin-bottom: 40px; }
.g27-rg-inhalt[hidden] { display: none; }
.g27-rg-rumpf:has(.g27-rg-inhalt[hidden]) { grid-template-columns: minmax(0, 760px); }
.g27-rg-inhalt { position: sticky; top: 150px; align-self: start; padding: 16px; background: var(--g27-flaeche, #fff); border: 1.5px solid var(--g27-tinte, #1C1917); border-radius: var(--g27-r, 3px); }
.g27-rg-inhalt-titel { margin: 0 0 8px; font-family: var(--g27-titel); font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.g27-rg-inhalt ol { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: rg; }
.g27-rg-inhalt li { counter-increment: rg; }
.g27-rg-inhalt li a { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; line-height: 1.35; color: var(--g27-tinte, #1C1917); text-decoration: none; border-top: 1px solid var(--g27-linie, #E4DED5); }
.g27-rg-inhalt li:first-child a { border-top: 0; }
.g27-rg-inhalt li a::before { content: counter(rg); flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: 12px; font-weight: 800;
  color: #fff; background: var(--g27-tinte, #1C1917); border-radius: 2px; }
.g27-rg-inhalt li a:hover { text-decoration: underline; }
.g27-rg-inhalt-rechner { display: block; padding: 9px 12px; font-weight: 800; color: var(--g27-tinte, #1C1917); background: var(--g27-akzent-weich, #FBEEDF); border-radius: var(--g27-r, 3px); text-decoration: none; }
.g27-rg-inhalt-rechner::after { content: " →"; }
.g27-rg-text .blog-details-content { font-size: 1.05rem; line-height: 1.7; }
.g27-rg-text .blog-details-content h2 { scroll-margin-top: 140px; margin: 36px 0 12px; padding-top: 14px; border-top: 1.5px solid var(--g27-tinte, #1C1917);
  font-family: var(--g27-titel); font-size: 28px; font-weight: 800; text-transform: uppercase; }
.g27-rg-text .blog-details-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.g27-rg-text .blog-details-content h3 { font-family: var(--g27-titel); font-size: 21px; font-weight: 800; margin: 24px 0 8px; }
.g27-rg-text .blog-details-content a { color: var(--g27-tinte, #1C1917); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: #E8A35C; text-underline-offset: 3px; }
.g27-rg-text .blog-details-content table { width: 100%; margin: 14px 0 20px; border-collapse: collapse; font-size: .95rem; border: 1.5px solid var(--g27-tinte, #1C1917); }
.g27-rg-text .blog-details-content th { padding: 9px 12px; text-align: left; color: #fff; background: var(--g27-tinte, #1C1917); }
.g27-rg-text .blog-details-content td { padding: 9px 12px; border-top: 1px solid var(--g27-linie, #E4DED5); vertical-align: top; }
.g27-rg-text .blog-details-content tbody tr:nth-child(even) { background: var(--g27-flaeche2, #F0ECE6); }
.g27-rg-block { margin-bottom: 40px; }
.g27-rg-block h2 { margin: 0 0 16px; font-family: var(--g27-titel); font-size: clamp(26px, 3vw, 34px); font-weight: 800; text-transform: uppercase; }
.g27-rg-shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g27-rg-shop a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; color: var(--g27-tinte, #1C1917); background: var(--g27-akzent-weich, #FBEEDF);
  border-radius: var(--g27-r, 3px); text-decoration: none; }
.g27-rg-shop a strong { font-family: var(--g27-titel); font-size: 20px; font-weight: 800; }
.g27-rg-shop a strong::after { content: " →"; }
.g27-rg-shop a span { font-size: 14px; color: var(--g27-leise, #6B635B); }
.g27-rg-shop a:hover { background: #F6E2CC; text-decoration: none; color: var(--g27-tinte, #1C1917); }
@media (max-width: 991px) {
  .g27-rg-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g27-rg-rumpf { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .g27-rg-inhalt { position: static; }
}
@media (max-width: 767px) {
  .g27-rg-karten, .g27-rg-extras, .g27-rg-shop { grid-template-columns: 1fr; }
  .g27-rg-text .blog-details-content table { display: block; overflow-x: auto; }
}
/* custom.css (Stand 23.10.) macht den Beitrag zum 800 px breiten weissen Blatt und faerbt die h1 dunkel; fuer den
   neuen Aufbau zuruecksetzen */
.blog-details article.g27-rg-artikel { max-width: 1240px; padding: 0; background: transparent; border: 0; }
.blog-details article.g27-rg-artikel .g27-rg-hero h1[itemprop="headline"] { margin: 0 0 14px; color: #fff; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; text-transform: uppercase; }
.blog-details article.g27-rg-artikel .g27-rg-hero h1[itemprop="headline"]::before { display: none; }
.blog-details article.g27-rg-artikel .g27-rg-text { padding: clamp(20px, 3vw, 40px); background: #fff; border: 1px solid var(--g27-linie, #E4DED5); border-radius: var(--g27-r, 3px); }

/* Guide-Seite /Guide_6 als Ratgeber-Uebersicht (snippets/dg_guide.tpl) */
.g27-guide { padding-top: 8px; }
.g27-guide .g27-rg-karte--rechner { color: #fff; background: var(--g27-tinte, #1C1917); }
.g27-guide .g27-rg-karte--rechner:hover { color: #fff; }
.g27-guide .g27-rg-karte--rechner .g27-rg-karte-text { color: rgba(255, 255, 255, .8); }
.g27-guide .g27-rg-karte--rechner .g27-rg-rubrik { color: var(--g27-akzent-weich, #FBEEDF); }
