/*
Theme Name: DC Deutsche Cert
Theme URI: https://deutsche-cert.de
Author: Markus
Description: Individuelles Theme fuer DC Deutsche Cert GmbH & Co. KG. Abgeleitet aus dem Variante-2-Entwurf. Ab 0.3.0 sind die Seitentexte als Bloecke im WordPress-Editor pflegbar.
Version: 0.3.12
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: dc
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, 'Segoe UI', sans-serif; background: #fff; color: #1a1a1a; }

/* NAV */
nav { display: flex; align-items: center; padding: 0 2rem; height: 80px; background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; max-width: 960px; margin: 0 auto; }
.logo-wrap { display: flex; align-items: center; justify-self: start; }
.nav-links { display: flex; gap: 0; justify-self: center; }
.nav-links a { font-size: 12px; color: #555; text-decoration: none; padding: 0 0.85rem; height: 80px; display: flex; align-items: center; border-bottom: 3px solid transparent; transition: color 0.2s; }
.nav-links a:hover { color: #c0000a; }
.nav-links a.active { color: #c0000a; font-weight: 600; border-bottom-color: #c0000a; }
.nav-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.btn-anfrage { font-size: 12px; padding: 7px 16px; border: 1.5px solid #c0000a; color: #c0000a; background: none; border-radius: 20px; text-decoration: none; white-space: nowrap; }
.btn-anfrage:hover { background: #c0000a; color: #fff; }

/* SUCHE */
.search-wrap { display: flex; align-items: center; gap: 6px; }
.search-icon { width: 36px; height: 36px; border-radius: 50%; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #555; font-size: 16px; transition: color 0.2s; }
.search-icon:hover { color: #c0000a; }
.search-box { display: none; align-items: center; background: #f5f5f5; border-radius: 20px; padding: 5px 14px; gap: 8px; border: 1px solid #e0e0e0; }
.search-box.open { display: flex; }
.search-box input { border: none; background: none; outline: none; font-size: 12px; width: 180px; color: #1a1a1a; }
.search-box input::placeholder { color: #aaa; }
.search-close { background: none; border: none; cursor: pointer; color: #aaa; font-size: 14px; padding: 0; line-height: 1; }
.search-close:hover { color: #c0000a; }

.search-results-inner { max-width: 900px; margin: 0 auto; }
.search-result-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #999; margin-bottom: 0.75rem; }
.search-result-item { padding: 0.75rem 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #fafafa; margin: 0 -1rem; padding: 0.75rem 1rem; }
.search-result-item h4 { font-size: 13px; font-weight: 600; color: #c0000a; margin-bottom: 2px; }
.search-result-item p { font-size: 12px; color: #666; line-height: 1.5; }
.search-result-item .result-page { font-size: 10px; color: #bbb; margin-top: 2px; }
.search-no-result { font-size: 13px; color: #888; padding: 1rem 0; }

/* TRUST BAR */
.trust-bar { display: flex; align-items: center; padding: 0.6rem 2rem; background: #1a1a1a; }
.trust-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; width: 100%; max-width: 960px; margin: 0 auto; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #ccc; font-weight: 700; white-space: nowrap; }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: #c0000a; flex-shrink: 0; }

/* FOOTER */
footer { background: #111; padding: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: auto; }
footer a { font-size: 11px; color: #666; text-decoration: none; margin-right: 1.25rem; }
footer a:hover { color: #c0000a; }
footer p { font-size: 11px; color: #444; }

/* SECTION UTILS */
.section { padding: 3rem 2rem; }
.section + .section { padding-top: 0; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #c0000a; margin-bottom: 0.5rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-tag::before { content: ''; width: 14px; height: 2px; background: #c0000a; display: inline-block; }
.section h2 { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 0.75rem; }
.section-intro { font-size: 13px; color: #555; line-height: 1.7; max-width: 640px; margin-bottom: 2rem; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { border: 1px solid #e5e5e5; border-radius: 6px; padding: 1.5rem; background: #fff; border-top: 3px solid #c0000a; }
.card.featured { border-top-color: #c0000a; }
.card-num { font-size: 10px; font-weight: 700; color: #c0000a; letter-spacing: 1px; margin-bottom: 0.5rem; }
.card h3 { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 0.5rem; }
.card p { font-size: 12px; color: #666; line-height: 1.6; }
.highlight-band { background: #ececec; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; padding: 3rem 2rem; }
.highlight-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.highlight-inner h2 { font-size: 20px; font-weight: 700; margin-bottom: 0.75rem; }
.highlight-inner h2 em { color: #c0000a; font-style: normal; }
.highlight-inner p { font-size: 13px; color: #555; line-height: 1.7; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #444; }
.check-box { width: 18px; height: 18px; border: 2px solid #c0000a; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.check-box span { color: #c0000a; font-size: 10px; font-weight: 700; }
.steps-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 1.5rem; }
.step { text-align: center; padding: 0 0.75rem; }
.step-bubble { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid #e5e5e5; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; font-size: 12px; font-weight: 700; color: #999; }
.step.active .step-bubble { background: #c0000a; border-color: #c0000a; color: #fff; }
.step h4 { font-size: 13px; font-weight: 700; color: #1a1a1a; margin-bottom: 0.3rem; }
.step p { font-size: 12px; color: #777; line-height: 1.5; }
.cta-band { border-top: 4px solid #c0000a; padding: 3rem 2rem; text-align: center; background: #fff; }
.cta-band h2 { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 0.5rem; }
.cta-band p { font-size: 13px; color: #555; margin-bottom: 1.75rem; }
.cta-btns { display: flex; gap: 10px; justify-content: center; }
.btn-cta-p { font-size: 13px; padding: 10px 22px; background: #c0000a; color: #fff; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-cta-s { font-size: 13px; padding: 10px 22px; background: none; color: #1a1a1a; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; text-decoration: none; }
.page-hero { background: #f0f0f0; border-bottom: 1px solid #e5e5e5; padding: 2.5rem 2rem; }
.page-hero-inner { max-width: 960px; margin: 0 auto; }
.page-hero h1 { font-size: 28px; font-weight: 700; color: #c0000a; margin-bottom: 0.5rem; }
.page-hero p { font-size: 14px; color: #666; line-height: 1.7; max-width: 600px; }
.breadcrumb { font-size: 11px; color: #aaa; margin-bottom: 0.75rem; }
.breadcrumb a { color: #aaa; text-decoration: none; }
.breadcrumb a:hover { color: #c0000a; }
.breadcrumb span { color: #c0000a; margin: 0 4px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .highlight-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar-inner { gap: 0.75rem 1.25rem; justify-content: center; }
}

.hero { background: #fff; padding: 0 2rem; }
.hero-photo { flex-shrink: 0; position: relative; top: 30px; }
.overlay { display: none; }
.hero-content { max-width: 480px; }
.hero-tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #c0000a; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 8px; }
.hero-tag::before { content: ''; width: 20px; height: 2px; background: #c0000a; display: inline-block; }
.hero-content h1 { font-size: 30px; font-weight: 700; color: #1a1a1a; line-height: 1.2; margin-bottom: 1rem; }
.hero-content h1 em { color: #c0000a; font-style: normal; }
.hero-content p { font-size: 13px; color: #555; line-height: 1.7; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.news-strip { background: #fff; position: relative; z-index: 1; }
.news-strip-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: stretch; }
.news-label-block { background: #c0000a; color: #fff; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 0 0.4rem; display: flex; align-items: center; flex-shrink: 0; font-weight: 700; white-space: nowrap; }
.news-items { display: flex; flex-direction: column; flex: 1; }
.news-entry { padding: 0.75rem 1.25rem; border-bottom: 1px solid #e5e5e5; display: flex; align-items: baseline; gap: 0.9rem; text-decoration: none; }
.news-entry:last-child { border-bottom: none; }
.news-entry-date { font-size: 9px; font-weight: 700; color: #1a1a1a; margin-bottom: 0; flex-shrink: 0; width: 72px; }
.news-entry-text { font-size: 11px; color: #444; line-height: 1.4; flex: 1; }
.news-entry:hover .news-entry-text { color: #c0000a; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, 'Segoe UI', sans-serif; background: #fff; color: #1a1a1a; }

/* NAV */
nav { display: flex; align-items: center; padding: 0 2rem; height: 80px; background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; max-width: 960px; margin: 0 auto; }
.logo-wrap { display: flex; align-items: center; justify-self: start; }
.nav-links { display: flex; gap: 0; justify-self: center; }
.nav-links a { font-size: 12px; color: #555; text-decoration: none; padding: 0 0.85rem; height: 80px; display: flex; align-items: center; border-bottom: 3px solid transparent; transition: color 0.2s; }
.nav-links a:hover { color: #c0000a; }
.nav-links a.active { color: #c0000a; font-weight: 600; border-bottom-color: #c0000a; }
.nav-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.btn-anfrage { font-size: 12px; padding: 7px 16px; border: 1.5px solid #c0000a; color: #c0000a; background: none; border-radius: 20px; text-decoration: none; white-space: nowrap; }
.btn-anfrage:hover { background: #c0000a; color: #fff; }

/* SUCHE */
.search-wrap { display: flex; align-items: center; gap: 6px; }
.search-icon { width: 36px; height: 36px; border-radius: 50%; border: none; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #555; font-size: 16px; transition: color 0.2s; }
.search-icon:hover { color: #c0000a; }
.search-box { display: none; align-items: center; background: #f5f5f5; border-radius: 20px; padding: 5px 14px; gap: 8px; border: 1px solid #e0e0e0; }
.search-box.open { display: flex; }
.search-box input { border: none; background: none; outline: none; font-size: 12px; width: 180px; color: #1a1a1a; }
.search-box input::placeholder { color: #aaa; }
.search-close { background: none; border: none; cursor: pointer; color: #aaa; font-size: 14px; padding: 0; line-height: 1; }
.search-close:hover { color: #c0000a; }

.search-results-inner { max-width: 900px; margin: 0 auto; }
.search-result-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #999; margin-bottom: 0.75rem; }
.search-result-item { padding: 0.75rem 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #fafafa; margin: 0 -1rem; padding: 0.75rem 1rem; }
.search-result-item h4 { font-size: 13px; font-weight: 600; color: #c0000a; margin-bottom: 2px; }
.search-result-item p { font-size: 12px; color: #666; line-height: 1.5; }
.search-result-item .result-page { font-size: 10px; color: #bbb; margin-top: 2px; }
.search-no-result { font-size: 13px; color: #888; padding: 1rem 0; }

/* TRUST BAR */
.trust-bar { display: flex; align-items: center; padding: 0.6rem 2rem; background: #1a1a1a; }
.trust-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; width: 100%; max-width: 960px; margin: 0 auto; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #ccc; font-weight: 700; white-space: nowrap; }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: #c0000a; flex-shrink: 0; }

/* FOOTER */
footer { background: #111; padding: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: auto; }
footer a { font-size: 11px; color: #666; text-decoration: none; margin-right: 1.25rem; }
footer a:hover { color: #c0000a; }
footer p { font-size: 11px; color: #444; }

/* SECTION UTILS */
.section { padding: 3rem 2rem; }
.section + .section { padding-top: 0; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #c0000a; margin-bottom: 0.5rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-tag::before { content: ''; width: 14px; height: 2px; background: #c0000a; display: inline-block; }
.section h2 { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 0.75rem; }
.section-intro { font-size: 13px; color: #555; line-height: 1.7; max-width: 640px; margin-bottom: 2rem; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { border: 1px solid #e5e5e5; border-radius: 6px; padding: 1.5rem; background: #fff; border-top: 3px solid #c0000a; }
.card.featured { border-top-color: #c0000a; }
.card-num { font-size: 10px; font-weight: 700; color: #c0000a; letter-spacing: 1px; margin-bottom: 0.5rem; }
.card h3 { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 0.5rem; }
.card p { font-size: 12px; color: #666; line-height: 1.6; }
.highlight-band { background: #ececec; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; padding: 3rem 2rem; }
.highlight-inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.highlight-inner h2 { font-size: 20px; font-weight: 700; margin-bottom: 0.75rem; }
.highlight-inner h2 em { color: #c0000a; font-style: normal; }
.highlight-inner p { font-size: 13px; color: #555; line-height: 1.7; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #444; }
.check-box { width: 18px; height: 18px; border: 2px solid #c0000a; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.check-box span { color: #c0000a; font-size: 10px; font-weight: 700; }
.steps-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 1.5rem; }
.step { text-align: center; padding: 0 0.75rem; }
.step-bubble { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid #e5e5e5; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; font-size: 12px; font-weight: 700; color: #999; }
.step.active .step-bubble { background: #c0000a; border-color: #c0000a; color: #fff; }
.step h4 { font-size: 13px; font-weight: 700; color: #1a1a1a; margin-bottom: 0.3rem; }
.step p { font-size: 12px; color: #777; line-height: 1.5; }
.cta-band { border-top: 4px solid #c0000a; padding: 3rem 2rem; text-align: center; background: #fff; }
.cta-band h2 { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 0.5rem; }
.cta-band p { font-size: 13px; color: #555; margin-bottom: 1.75rem; }
.cta-btns { display: flex; gap: 10px; justify-content: center; }
.btn-cta-p { font-size: 13px; padding: 10px 22px; background: #c0000a; color: #fff; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-cta-s { font-size: 13px; padding: 10px 22px; background: none; color: #1a1a1a; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; text-decoration: none; }
.page-hero { background: #f0f0f0; border-bottom: 1px solid #e5e5e5; padding: 2.5rem 2rem; }
.page-hero-inner { max-width: 960px; margin: 0 auto; }
.page-hero h1 { font-size: 28px; font-weight: 700; color: #c0000a; margin-bottom: 0.5rem; }
.page-hero p { font-size: 14px; color: #666; line-height: 1.7; max-width: 600px; }
.breadcrumb { font-size: 11px; color: #aaa; margin-bottom: 0.75rem; }
.breadcrumb a { color: #aaa; text-decoration: none; }
.breadcrumb a:hover { color: #c0000a; }
.breadcrumb span { color: #c0000a; margin: 0 4px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .highlight-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar-inner { gap: 0.75rem 1.25rem; justify-content: center; }
}

.faq-item { border-bottom: 1px solid #e5e5e5; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.25rem 0; background: none; border: none; text-align: left; cursor: pointer; font-size: 14px; font-weight: 600; color: #1a1a1a; font-family: inherit; }
.faq-q:hover { color: #c0000a; }
.faq-q-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-q-icon::before, .faq-q-icon::after { content: ''; position: absolute; top: 50%; left: 50%; background: #c0000a; transform: translate(-50%, -50%); transition: transform 0.2s ease; }
.faq-q-icon::before { width: 16px; height: 2px; }
.faq-q-icon::after { width: 2px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-q-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.25s ease, opacity 0.2s ease; font-size: 13px; color: #555; line-height: 1.7; }
.faq-a.open { opacity: 1; padding-bottom: 1.25rem; }
.faq-a p { font-size: 13px; color: #555; line-height: 1.7; }

.scope-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.scope-list li { display: flex; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid #e5e5e5; font-size: 13px; color: #444; line-height: 1.6; }
.scope-list li:last-child { border-bottom: none; }
.scope-code { flex-shrink: 0; width: 2.5rem; font-weight: 700; color: #c0000a; }
.scope-note { font-size: 13px; color: #555; line-height: 1.7; margin-top: 1.5rem; }
.dc-prose-list { list-style: disc; padding-left: 1.5rem; margin: 1.5rem 0 0; }
.dc-prose-list li { font-size: 14px; color: #333; line-height: 1.7; margin-bottom: 0.5rem; }
.dl-list { display: flex; flex-direction: column; gap: 0.75rem; } .dl-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 1px solid #e5e5e5; border-radius: 6px; text-decoration: none; color: #1a1a1a; } .dl-item:hover { border-color: #c0000a; } .dl-icon { width: 36px; height: 36px; background: #fff0f0; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #c0000a; font-size: 16px; flex-shrink: 0; } .dl-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; } .dl-info p { font-size: 11px; color: #888; } .dl-badge { margin-left: auto; font-size: 10px; font-weight: 700; color: #c0000a; background: #fff0f0; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }

.kontakt-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; } .kontakt-form { display: flex; flex-direction: column; gap: 1rem; } .form-group { display: flex; flex-direction: column; gap: 4px; } .form-group label { font-size: 11px; font-weight: 600; color: #555; letter-spacing: 0.5px; text-transform: uppercase; } .form-group .wpcf7-form-control-wrap { display: block; width: 100%; }
.form-group input:not([type="checkbox"]):not([type="radio"]), .form-group textarea, .form-group select { width: 100%; border: 1px solid #e0e0e0; border-radius: 4px; padding: 9px 12px; font-size: 13px; font-family: inherit; color: #1a1a1a; outline: none; } .form-group input:focus, .form-group textarea:focus { border-color: #c0000a; } .form-group textarea { min-height: 120px; resize: vertical; } .kontakt-info { display: flex; flex-direction: column; gap: 1.5rem; } .info-block h3 { font-size: 12px; font-weight: 700; color: #1a1a1a; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.4rem; } .info-block p { font-size: 13px; color: #444; line-height: 1.7; } @media(max-width:768px){.kontakt-grid{grid-template-columns:1fr;}}
.form-consent { border: 1px solid #e0e0e0; border-radius: 4px; padding: 10px 12px; }
.form-consent .wpcf7-form-control-wrap, .form-consent .wpcf7-acceptance, .form-consent .wpcf7-list-item { margin: 0; padding: 0; display: block; }
.form-consent label { display: flex; align-items: flex-start; gap: 8px; margin: 0; cursor: pointer; }
.form-consent input[type="checkbox"] { margin: 3px 0 0; flex-shrink: 0; }
.form-consent .wpcf7-list-item-label { font-size: 13px; color: #444; line-height: 1.6; text-transform: none; }
.form-consent a { color: #c0000a; }

/* ==== WordPress-Anpassungen ==== */
body { display: flex; flex-direction: column; min-height: 100vh; }
.nav-links ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.nav-links li { list-style: none; }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: #c0000a; font-weight: 600; border-bottom-color: #c0000a; }
.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px){ .admin-bar nav { top: 46px; } }
img { max-width: 100%; height: auto; }

/* ==== Content-Typografie: Absätze und Listen angleichen ==== */
.faq-item ul, .faq-item ol { padding-left: 1.4rem; margin: 0.5rem 0; list-style-position: outside; }
.faq-item li { font-size: 13px; color: #555; line-height: 1.7; margin-bottom: 0.35rem; }
.faq-item ul ul, .faq-item ol ol, .faq-item ul ol, .faq-item ol ul { margin: 0.35rem 0; }

.dc-prose { font-size: 14px; color: #333; line-height: 1.7; }
.dc-prose p { margin-bottom: 0.85rem; }
.dc-prose ul, .dc-prose ol { padding-left: 1.5rem; margin: 0.5rem 0 0.85rem; }
.dc-prose li { font-size: 14px; color: #333; line-height: 1.7; margin-bottom: 0.35rem; }
.dc-prose h2, .dc-prose h3 { margin: 1.4rem 0 0.5rem; }
.dc-prose .red-bullets li::marker { color: #c0000a; }


/* ==== Hero: zentrierter Container wie die Sections ==== */
.hero-inner { max-width: 960px; margin: 0 auto; padding: 3rem 0; display: flex; align-items: center; justify-content: space-between; gap: 3rem; min-height: 360px; }
.hero + .section { padding-top: 1rem; }
.hero-photo img { height: 300px; width: auto; object-fit: contain; display: block; }
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; min-height: auto; }
  .hero-photo { display: none; }
  .news-strip-inner { flex-direction: column; }
  .news-items { flex-direction: column; }
  .news-entry { border-right: none; border-bottom: 1px solid #e5e5e5; }
  .news-entry:last-child { border-bottom: none; }
}

/* ==== Trust-Bar unter der Navigation fixieren ==== */
.trust-bar { position: sticky; top: 80px; z-index: 99; }
.admin-bar .trust-bar { top: 112px; }
@media screen and (max-width: 782px) { .admin-bar .trust-bar { top: 126px; } }


/* ==================================================================
   Block-Inhalte (ab 0.3.0)
   Die Seiten bestehen aus Gutenberg-Blöcken mit den bisherigen Klassen.
   Hier nur Anpassungen, die durch die Block-Struktur nötig sind.
   ================================================================== */

/* Klassische Themes: WordPress legt in jede Gruppe einen zusätzlichen
   Wrapper. Er wird layout-neutral gemacht, damit Grid/Flex der Gruppe
   (Schritte, Hero, Grauband, Kontakt …) direkt auf die Inhalte wirkt. */
.wp-block-group > .wp-block-group__inner-container { display: contents; }

/* Kennzeilen und Spezial-Absätze gegen allgemeine Absatzregeln absichern */
p.section-tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #c0000a; margin-bottom: 0.5rem; font-weight: 700; line-height: normal; }
.hero-content p.hero-tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #c0000a; margin-bottom: 0.75rem; line-height: normal; }
.step p.step-bubble { font-size: 12px; font-weight: 700; color: #999; line-height: normal; }
.step.active p.step-bubble { color: #fff; }
.page-hero .breadcrumb { font-size: 11px; color: #aaa; margin-bottom: 0.75rem; }

/* Ersatz für frühere Inline-Styles */
.highlight-band.dc-bleed { margin: 0 -2rem; }
.highlight-band.is-weiss { background: #fff; border-top: none; border-bottom: none; }
/* Weißer Seitenkopf (wie der erste Block der Startseite) */
.page-hero.is-weiss { background: #fff; border-bottom: none; }
.page-hero.is-weiss + .section { padding-top: 1rem; }
/* Fließtext im grauen Kasten */
:is(.highlight-band, .highlight-band > .wp-block-group__inner-container) > .dc-prose { margin-top: 1rem; }
/* Inhalte im grauen Kasten: Trennlinien und Kacheln kontrastreicher */
.highlight-band .scope-list li,
.highlight-band .faq-item { border-bottom-color: #d4d4d4; }
.highlight-band .dl-item { background: #fff; }
.highlight-band .dl-item:hover { border-color: #c0000a; }
.highlight-band.dc-prose > :first-child { margin-top: 0; }
.highlight-band.dc-prose > :last-child { margin-bottom: 0; }
/* Textseiten (Impressum, Datenschutz, neue Seiten mit Standard-Template):
   Abstandshalter-Blöcke ausblenden – die Abstände regelt das Theme
   (Absatz unten ~14px, vor Zwischenüberschriften ~22px). */
.dc-prose .wp-block-spacer { display: none; }
/* FAQ- und Download-Liste (Shortcodes, ab 0.3.4) */
.faq-tools { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.dl-list { margin-top: 1.5rem; }
p.dc-leer { color: #888; }
:is(.section-inner, .section-inner > .wp-block-group__inner-container) > .dc-prose { margin-top: 1rem; }
.kontakt-form { margin-top: 1.5rem; }
.info-block a { color: inherit; }
.info-block a[href^="tel:"] { text-decoration: none; }

/* Hero-Bild als Bild-Block */
.wp-block-image.hero-photo { margin: 0; }
.wp-block-image.hero-photo img { height: 300px; width: auto; max-width: none; object-fit: contain; display: block; }

/* Aktuelles: Einträge sind Gruppen statt Links */
.news-entry p { margin: 0; }

/* Listen */
.wp-block-list.scope-list li strong { flex-shrink: 0; width: 2.5rem; font-weight: 700; color: #c0000a; }
.check-list li::before,
.is-style-dc-haken li::before { content: '✓'; box-sizing: border-box; width: 18px; height: 18px; border: 2px solid #c0000a; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; color: #c0000a; font-size: 10px; font-weight: 700; }
.is-style-dc-haken { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.is-style-dc-haken li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #444; }

/* Buttons (core/button) im DC-Stil. Ohne gewählten Stil = Primär. */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-block-buttons.cta-btns { justify-content: center; }
.wp-block-button .wp-block-button__link { display: inline-block; font-size: 13px; line-height: normal; padding: 10px 22px; background: #c0000a; color: #fff; border: none; border-radius: 4px; font-weight: 600; text-decoration: none; }
.wp-block-button.is-style-dc-sekundaer .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link { background: none; color: #1a1a1a; border: 1px solid #ccc; font-weight: 400; }

/* Freier Text, den DC direkt in einen Abschnitt setzt, im Stil des Fließtexts */
:is(.section-inner, .section-inner > .wp-block-group__inner-container) > p:not([class]) { font-size: 14px; color: #333; line-height: 1.7; margin-bottom: 0.85rem; }
:is(.section-inner, .section-inner > .wp-block-group__inner-container) > .wp-block-list:not(.scope-list):not(.check-list):not(.dc-prose-list):not(.is-style-dc-haken) { font-size: 14px; color: #333; line-height: 1.7; margin: 0.5rem 0 0.85rem; padding-left: 1.5rem; }
.red-bullets li::marker { color: #c0000a; }
:is(.section-inner, .section-inner > .wp-block-group__inner-container) > h3 { font-size: 16px; font-weight: 700; margin: 1.4rem 0 0.5rem; }

/* Seiten ohne Seitenkopf-Vorlage (Template „Volle Breite“): Mindestabstand */
.dc-bloecke > p:not([class]), .dc-bloecke > h2, .dc-bloecke > .wp-block-list { max-width: 960px; margin-left: auto; margin-right: auto; padding-left: 2rem; padding-right: 2rem; }


/* ==================================================================
   Abstände kompakter (ab 0.3.6)
   ================================================================== */
.section { padding-top: 2rem; padding-bottom: 2rem; }
.section + .section { padding-top: 0; }
.highlight-band { padding-top: 2rem; padding-bottom: 2rem; }

/* Startseite: Hero */
.hero-inner { padding: 2rem 0; min-height: 0; }
.hero + .section { padding-top: 0; }
.hero-photo, .wp-block-image.hero-photo { top: 0; }
/* Das Logo-Bild hat unten ca. ein Drittel weiße Fläche. Diese wird abgeschnitten,
   damit das sichtbare Logo (inkl. Spiegelung) vertikal mittig zum Text sitzt.
   Logo-Größe bleibt wie bisher (Breite ca. 176 px). */
.hero-photo img, .wp-block-image.hero-photo img { height: 210px; width: auto; aspect-ratio: 840 / 1004; object-fit: cover; object-position: top; }

/* Unterseiten: weißer Seitenkopf direkt über dem grauen Kasten */
.page-hero.is-weiss { padding-bottom: 1.5rem; }
.page-hero.is-weiss + .section { padding-top: 0; }

/* Grauer Kasten: kein zusätzlicher Abstand unter dem letzten Absatz/der letzten Liste */
.highlight-band .dc-prose :is(p, ul, ol):last-child,
.highlight-band > :is(p, ul, ol):last-child,
.highlight-band > .wp-block-group__inner-container > :is(p, ul, ol):last-child { margin-bottom: 0; }

/* ==================================================================
   Desktop-Navigation: größere Schrift, gleiche Gesamtbreite (ab 0.3.11)
   ================================================================== */
.nav-links a { font-size: 14px; padding: 0 0.55rem; }
/* Logo: Desktop 68px (im header.php), mobil bleibt es bei 56px */
@media (max-width: 768px) { .logo-wrap img { height: 56px !important; } }

/* ==================================================================
   Mobiles Menü / Burger (ab 0.3.8, ab 0.3.12 bis 1023px Breite)
   ================================================================== */
.nav-toggle { display: none; }
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
}
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-right { gap: 6px; grid-column: 2; justify-self: end; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 9px; background: none; border: none; cursor: pointer; flex-shrink: 0; }
  .nav-toggle span { display: block; height: 2px; background: #1a1a1a; border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
  .nav-toggle:hover span { background: #c0000a; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  nav.menu-offen .nav-links { display: block; justify-self: stretch; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 3px solid #c0000a; box-shadow: 0 10px 20px rgba(0,0,0,0.08); max-height: calc(100vh - 80px); overflow-y: auto; z-index: 101; }
  nav.menu-offen .nav-links ul { flex-direction: column; }
  nav.menu-offen .nav-links a { height: auto; padding: 0.9rem 1.5rem; font-size: 15px; border-bottom: 1px solid #eee; border-left: 3px solid transparent; }
  nav.menu-offen .nav-links .current-menu-item > a,
  nav.menu-offen .nav-links .current_page_item > a { border-bottom-color: #eee; border-left-color: #c0000a; }
}
/* Sehr schmale Displays: „Anfrage senden“ steckt im Menü (Kontakt) */
@media (max-width: 380px) {
  .btn-anfrage { display: none; }
}

/* ==================================================================
   Mobil: Vorteils-Leiste scrollt mit (ab 0.3.9)
   ================================================================== */
@media (max-width: 768px) {
  .trust-bar, .admin-bar .trust-bar { position: static; }
}

/* ==================================================================
   Footer kompakter, Links deutlicher (ab 0.3.9)
   ================================================================== */
footer { padding: 1rem max(2rem, calc((100% - 960px) / 2)); }
footer a { font-size: 13px; color: #d0d0d0; font-weight: 500; margin-right: 1.5rem; }
footer a:hover, footer a:focus-visible { color: #fff; text-decoration: underline; text-decoration-color: #c0000a; text-underline-offset: 4px; text-decoration-thickness: 2px; }
footer p { font-size: 12px; color: #8a8a8a; }
@media (max-width: 768px) {
  footer { padding: 1rem; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  footer > div { display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
  footer a { display: inline-block; padding: 0.4rem 0; }
}

