/* =========================================================
   HETZENDORF — blog.css
   Alle Blog/Ratgeber-Komponenten (Übersicht + Artikel)
   ========================================================= */

/* ── ÜBERSICHT: FILTER ── */
.blog-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.blog-filter-btn {
  background: #fff;
  border: 1.5px solid rgba(30,127,186,.3);
  color: #145a87;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 9px 20px;
  cursor: pointer;
  border-radius: 3px;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.blog-filter-btn:hover {
  background: #e8f4fd;
  border-color: #1e7fba;
  color: #0d4e78;
}
.blog-filter-btn.active {
  background: #1e7fba;
  color: #fff;
  border-color: #1e7fba;
}

/* ── ÜBERSICHT: GRID ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── ÜBERSICHT: KARTE ── */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(30,127,186,.15);
  box-shadow: 0 4px 18px rgba(13,27,42,.07);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(13,27,42,.13);
}

/* Thumbnail */
.blog-thumb-wrap {
  position: relative;
  overflow: hidden;
}
.blog-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.blog-card:hover .blog-thumb {
  transform: scale(1.04);
}

/* Badge */
.blog-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1e7fba;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

/* Karten-Inhalt */
.blog-content {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blog-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
}
.blog-meta i {
  margin-right: 4px;
  color: #1e7fba;
}
.blog-title {
  font-size: 17px;
  font-weight: 700;
  color: #0d1b2a;
  line-height: 1.32;
  margin: 0;
}
.blog-title a {
  color: inherit;
  text-decoration: none;
  transition: color .18s;
}
.blog-title a:hover {
  color: #1e7fba;
}
.blog-excerpt {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.65;
  flex: 1;
  margin: 0;
}
.blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #1e7fba;
  text-decoration: none;
  margin-top: 4px;
  align-self: flex-start;
  transition: color .18s, gap .18s;
}
.blog-readmore:hover {
  color: #145a87;
  gap: 9px;
}

/* =========================================================
   ARTIKEL-SEITE
   ========================================================= */

/* ── Wrapper ── */
.article-body {
  background: #f8fafc;
  padding: 28px 0 48px;
}
@media (max-width: 680px) {
  .article-body { padding: 16px 0 32px; }
}
.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (max-width: 400px) {
  .article-container { padding: 0 12px; }
}

/* ── Header ── */
.article-header {
  margin-bottom: 20px;
}
.article-category-badge {
  display: inline-block;
  background: #e8f4fd;
  color: #145a87;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.article-main-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  color: #0d1b2a;
  line-height: 1.22;
  margin: 0 0 18px;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(30,127,186,.15);
}
.article-meta-bar strong {
  color: #0d1b2a;
}
.article-hero-img-wrap {
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}
.article-hero-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
@media (max-width: 680px) {
  .article-hero-img { max-height: 220px; }
}

/* ── Inhaltsverzeichnis ── */
.article-toc {
  background: #fff;
  border: 1px solid rgba(30,127,186,.2);
  border-left: 4px solid #1e7fba;
  border-radius: 4px;
  padding: 14px 18px;
  margin: 20px 0 24px;
}
.article-toc-title {
  font-size: 14px;
  font-weight: 700;
  color: #145a87;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.article-toc-title i {
  margin-right: 7px;
}
.article-toc-list,
.article-toc-list li {
  list-style: none !important;
  padding: 0;
  margin: 0;
}
.article-toc-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.article-toc-list li a {
  color: #1e7fba;
  font-size: 14px;
  text-decoration: none;
  transition: color .15s;
}
.article-toc-list li a:hover {
  color: #0d4e78;
  text-decoration: underline;
}

/* ── Artikeltext ── */
.article-content {
  background: #fff;
  border-radius: 4px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(13,27,42,.06);
  font-size: 15.5px;
  color: #1e293b;
  line-height: 1.62;
}
@media (max-width: 680px) {
  .article-content { padding: 18px 16px; }
}
.article-body .article-content h2 {
  font-size: 18px !important;
  font-weight: 700;
  color: #0d1b2a;
  margin: 24px 0 8px;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
  line-height: 1.35;
}
.article-body .article-content h2:first-child,
.article-body .article-content .article-toc + h2 {
  border-top: none;
  margin-top: 0;
}
.article-body .article-content h3 {
  font-size: 15px !important;
  font-weight: 700;
  color: #145a87;
  margin: 16px 0 6px;
  line-height: 1.4;
}
.article-content p {
  margin: 0 0 10px;
}
.article-content ul {
  list-style-type: disc;
  margin: 0 0 14px 0;
  padding: 0 0 0 22px;
}
.article-content ol {
  list-style-type: decimal;
  margin: 0 0 14px 0;
  padding: 0 0 0 22px;
}
.article-content li {
  list-style: inherit;
  margin-bottom: 4px;
  line-height: 1.55;
  padding: 0;
}
.article-content li + li {
  margin-top: 2px;
}
.article-content a {
  color: #1e7fba;
  text-decoration: underline;
  text-decoration-color: rgba(30,127,186,.35);
  text-underline-offset: 3px;
  transition: color .15s;
}
.article-content a:hover {
  color: #145a87;
}
.article-content strong {
  color: #0d1b2a;
  font-weight: 700;
}

/* ── AEO Antwort-Box ── */
.aeo-answer-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-left: 4px solid #16a34a;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 0 0 20px;
  font-size: 15px;
  color: #14532d;
  line-height: 1.65;
}
.aeo-answer-box strong {
  color: #15803d;
}

/* ── Meister-Tipp-Box ── */
.master-tip-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 15px;
  color: #1e3a8a;
  font-style: italic;
  line-height: 1.65;
}
.master-tip-box::before {
  content: '💡 Meister-Tipp: ';
  font-style: normal;
  font-weight: 700;
  color: #1d4ed8;
}

/* ── Artikel-Tabelle ── */
.article-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 4px;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.article-table th {
  background: #1e7fba;
  color: #fff;
  text-align: left;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
}
.article-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}
.article-table tr:nth-child(even) td {
  background: #f8fafc;
}
.article-table tr:last-child td {
  border-bottom: none;
}

/* ── Autor-Bio ── */
.author-bio-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(30,127,186,.2);
  border-radius: 4px;
  padding: 24px 26px;
  margin: 36px 0 30px;
  box-shadow: 0 2px 12px rgba(13,27,42,.06);
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #1e7fba;
}
.author-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0d1b2a;
  margin: 0 0 4px;
}
.author-role {
  font-size: 12px;
  font-weight: 600;
  color: #1e7fba;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.author-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 500px) {
  .author-bio-box { flex-direction: column; }
  .author-avatar { width: 56px; height: 56px; }
}

/* ── CTA-Box ── */
.article-cta-box {
  background: linear-gradient(135deg, #0d1b2a 0%, #145a87 100%);
  color: #fff;
  border-radius: 6px;
  padding: 30px 32px;
  text-align: center;
  margin: 10px 0 0;
}
.article-cta-box h3 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}
.article-cta-box p {
  font-size: 15px;
  color: rgba(255,255,255,.78);
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.6;
}
.article-cta-btn {
  display: inline-block;
  background: #1e7fba;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 13px 28px;
  border-radius: 3px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.article-cta-btn:hover {
  background: #2c97de;
  transform: translateY(-2px);
  color: #fff;
}

/* ── ARTIKEL-UNTERMENÜ (Breadcrumb-Nav) ── */
.article-subnav {
  background: #f4f8fb;
  border-bottom: 1px solid rgba(30,127,186,.12);
  padding: 0;
}
.article-subnav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  flex-wrap: wrap;
  font-size: 13px;
}
.article-subnav a {
  color: #1e7fba;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.article-subnav a:hover { color: #0d1b2a; text-decoration: underline; }
.article-subnav .subnav-sep {
  color: #b0c4d4;
  font-size: 11px;
  flex-shrink: 0;
}
.article-subnav .subnav-current {
  color: #555;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
@media (max-width: 480px) {
  .article-subnav .subnav-current { max-width: 180px; }
}

/* ── RELATED ARTICLES SLIDER ── */
.rg-related-section {
  background: #f4f8fb;
  padding: 52px 0 48px;
  border-top: 1px solid rgba(30,127,186,.1);
}
.rg-related-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #0d1b2a;
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rg-slide-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .rg-slide-track { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .rg-slide-track { grid-template-columns: 1fr; } }
.rg-slide-item { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.rg-slide-item:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(30,127,186,.13); }
.rg-slide-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.rg-slide-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.rg-slide-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.rg-slide-item:hover .rg-slide-img-wrap img { transform: scale(1.04); }
.rg-slide-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.rg-slide-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #1e7fba; }
.rg-slide-title { font-size: 14px; font-weight: 600; color: #0d1b2a; line-height: 1.45; margin: 0; flex: 1; }
.rg-slide-btn { margin-top: auto; font-size: 12px; font-weight: 700; color: #1e7fba; display: inline-flex; align-items: center; gap: 5px; transition: gap .15s; }
.rg-slide-item:hover .rg-slide-btn { gap: 8px; }

/* ── ÖFFNUNGSZEITEN SECTION ── */
.oeffnung-section {
  background: var(--theme-color2, #0d1b2a) !important;
  padding: 4rem 0 !important;
}
.oeffnung-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 900px) { .oeffnung-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .oeffnung-grid { grid-template-columns: 1fr; } }
.oe-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--theme-accent-light, #7fb3f5);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.oe-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}
.oe-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  text-decoration: none;
  transition: color 0.15s;
}
.oe-links a:hover { color: #fff; }

/* ── FAQ ACCORDION ── */
.faq-accordion {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-accordion details {
  border: 1px solid rgba(30,127,186,.18);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-accordion details[open] {
  box-shadow: 0 2px 12px rgba(30,127,186,.10);
}
.faq-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #1a3a52;
  list-style: none;
  gap: 12px;
  line-height: 1.4;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: #1e7fba;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-accordion details[open] summary::after {
  content: '\2212';
}
.faq-accordion details > p,
.faq-accordion details > div {
  padding: 0 18px 16px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #3a3a3a;
  margin: 0;
}
.faq-accordion details > p a { color: #1e7fba; }
@media (max-width: 600px) {
  .faq-accordion summary { font-size: 14px; padding: 13px 14px; }
  .faq-accordion details > p, .faq-accordion details > div { padding: 0 14px 14px; }
}
