/* BZT 2026 – Übergangsschicht für die alten Seiteninhalte (alle Seiten außer der Startseite).
   Teil 1: Seitenrahmen im neuen Stil. Teil 2: Regeln aus dem alten Child-Theme für Inhaltsklassen
   (automatisch ausgezogen, ohne Kopf/Menü/Flicken). Teil 3: Angleichung an die neue Handschrift.
   Wird schrittweise überflüssig, wenn die Seiten auf die neuen Muster umgestellt sind. */

/* Teil 1: Seitenrahmen */
.wp-site-blocks > * { margin-block: 0; }
.seite { padding-bottom: var(--wp--preset--spacing--80); }
.seite > .wp-block-post-content > :first-child:not(.alignfull):not(.wp-block-cover) { margin-top: var(--wp--preset--spacing--60); }
.seite > .wp-block-post-content > .alignfull:first-child, .seite > .wp-block-post-content > .wp-block-cover:first-child { margin-top: 0; }
.seite > .wp-block-post-content > .alignfull + .alignfull { margin-top: 0; }
.seite--beitrag > .wp-block-post-title { margin-top: var(--wp--preset--spacing--60); }
.seite__datum { color: var(--wp--preset--color--secondary); font-size: var(--wp--preset--font-size--small); }
.seite--liste { padding-top: var(--wp--preset--spacing--60); }
.liste__eintrag { padding-block: 1.5rem; border-bottom: 1px solid var(--wp--preset--color--contrast-2); }
.seite--404 h1 { margin-top: var(--wp--preset--spacing--70); }

.seite .wp-block-cover { min-height: 0 !important; }
.seite .wp-block-cover .wp-block-cover__inner-container { width: 100%; max-width: var(--wp--style--global--wide-size); margin-inline: auto; }
.seite .wp-block-cover h1, .seite .wp-block-cover h2, .seite .wp-block-cover p { color: inherit; }
.seite .wp-block-button__link { border-radius: 0 !important; }
.seite .is-style-outline .wp-block-button__link { background: transparent; border: 1px solid currentColor; }
.seite .wp-block-button__link.has-accent-background-color { color: var(--wp--preset--color--contrast) !important; }
.seite .wp-block-image img, .seite .wp-block-gallery img { border-radius: 0 !important; }
.seite .wp-block-separator { border: 0; border-top: 1px solid var(--wp--preset--color--contrast-2); opacity: 1; }
.seite .wp-block-details summary { cursor: pointer; font-weight: 600; font-family: var(--wp--preset--font-family--kopf); font-size: 1.1875rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.seite .wp-block-details summary::-webkit-details-marker { display: none; }
.seite .wp-block-details summary::after { content: '+'; color: var(--wp--preset--color--primary); font-size: 1.4rem; line-height: 1; }
.seite .wp-block-details[open] summary::after { content: '–'; }
.seite .wp-block-details[open] summary { color: var(--wp--preset--color--primary); margin-bottom: 0.6rem; }
.seite .is-style-checkmark { list-style: none; padding-left: 0; }
.seite .is-style-checkmark li { position: relative; padding-left: 1.6rem; }
.seite .is-style-checkmark li::before { content: ''; position: absolute; left: 0.1rem; top: 0.55em; width: 0.8rem; height: 0.4rem; border-left: 2px solid var(--wp--preset--color--primary); border-bottom: 2px solid var(--wp--preset--color--primary); transform: rotate(-45deg); }
.seite table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.seite th, .seite td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--wp--preset--color--contrast-2); text-align: left; vertical-align: top; }
.seite .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* Teil 2: Regeln aus dem alten Child-Theme (bzt-child-v4, style.css 2.2.0) */
.bzt-product-card {position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--wp--preset--color--base);
    border: 1px solid var(--wp--preset--color--contrast-2, #e0e0e0);}
.bzt-stretched-link::after {position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";}
.bzt-category-title {position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;}
.bzt-category-title::after {content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--wp--preset--color--primary, #1e40af);
    border-radius: 2px;}
.bzt-product-card:hover {transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);}
.bzt-product-card img {width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;}
.bzt-badge {display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;}
.bzt-badge--einsteiger {background: #e8f5e9;
    color: #2e7d32;}
.bzt-badge--profi {background: #e3f2fd;
    color: #1565c0;}
.bzt-badge--industrie {background: #fff3e0;
    color: #e65100;}
.bzt-badge--sonder {background: #f3e5f5;
    color: #7b1fa2;}
.bzt-grid-3 {display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;}
.bzt-grid-4 {display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;}
.bzt-contact-card {background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;}
.bzt-contact-card:hover {background: rgba(255, 255, 255, 0.08);}
.bzt-map-container {box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);}
.bzt-capability-card {transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--wp--preset--color--base);}
.bzt-capability-card:hover {transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);}
.bzt-icon-circle {display: flex;
    justify-content: center;}
.bzt-icon-circle img {object-fit: contain;}
.bzt-product-card img,
.bzt-capability-card img,
.wp-block-group img {width: 100%;
    height: auto;
    object-fit: cover;}
.bzt-capability-card .wp-block-image img {aspect-ratio: 16/10;
    object-fit: cover;}
.bzt-product-card .wp-block-image img {aspect-ratio: 4/3;
    object-fit: cover;}
.bzt-feature-card {transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;}
.bzt-feature-card:hover {transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.12);}
.bzt-check-list {list-style: none;
    padding-left: 0;}
.bzt-check-list li {position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;}
.bzt-check-list li::before {content: "\2713";
    position: absolute;
    left: 0;
    color: var(--wp--preset--color--primary, #1e40af);
    font-weight: 700;}
.bzt-icon {display: block;
    margin: 0 auto;}
.bzt-specs-table {margin: 0;}
.bzt-specs-table table {width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;}
.bzt-specs-table td {padding: 0.75rem 1rem;
    border: 1px solid var(--wp--preset--color--contrast-2, #e5e7eb);
    vertical-align: top;}
.bzt-specs-table tr:nth-child(odd) td {background-color: var(--wp--preset--color--contrast-2, #f9fafb);}
.bzt-specs-table td:first-child {font-weight: 600;
    color: var(--wp--preset--color--contrast, #1f2937);
    min-width: 120px;}
.bzt-feature-icon {display: flex;
    justify-content: center;
    margin-bottom: 1rem;}
.bzt-feature-icon img {width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;}
.bzt-service-card,
.bzt-download-card {min-height: 180px;
    display: flex;
    flex-direction: column;}
.bzt-service-card p:last-child,
.bzt-download-card p:last-child {margin-top: auto;}
.bzt-faq-item {border: 1px solid var(--wp--preset--color--contrast-2, #e5e7eb);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--wp--preset--color--base, #fff);}
.bzt-faq-item summary {padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--wp--preset--color--contrast, #1f2937);
    transition: background-color 0.2s ease;}
.bzt-faq-item summary::-webkit-details-marker {display: none;}
.bzt-faq-item summary::after {content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--wp--preset--color--primary, #1e40af);
    transition: transform 0.3s ease;}
.bzt-faq-item[open] summary::after {transform: rotate(45deg);}
.bzt-faq-item summary:hover {background-color: var(--wp--preset--color--contrast-2, #f5f5f5);}
.bzt-faq-item .bzt-faq-answer {padding: 0 1.25rem 1.25rem;
    color: var(--wp--preset--color--secondary, #64748b);
    font-size: 0.95rem;
    line-height: 1.7;}
details.wp-block-details {border: 1px solid var(--wp--preset--color--contrast-2, #e5e7eb);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--wp--preset--color--base, #fff);}
details.wp-block-details summary {padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--wp--preset--color--contrast, #1f2937);
    transition: background-color 0.2s ease;
    list-style: none;}
details.wp-block-details summary::-webkit-details-marker {display: none;}
details.wp-block-details summary::marker {display: none;
    content: "";}
details.wp-block-details summary:hover {background-color: var(--wp--preset--color--contrast-2, #f5f5f5);}
details.wp-block-details>*:not(summary) {padding: 0 1.25rem;}
details.wp-block-details>p:last-child {padding-bottom: 1.25rem;}
@media (max-width: 768px) {
  .bzt-grid-3,
    .bzt-grid-4 {grid-template-columns: 1fr;}
  .bzt-map-container {min-height: 300px !important;}
  .bzt-capability-card {margin-bottom: 1rem;}
  .bzt-feature-card {margin-bottom: 1rem;}
  .bzt-specs-table td {padding: 0.5rem;
        font-size: 0.8rem;}
}

/* Teil 3: Angleichung an die neue Handschrift (rechtwinklig, ruhig) */
.bzt-product-card, .bzt-capability-card, .bzt-contact-card, .bzt-faq-item { border-radius: 0 !important; }
.bzt-product-card:hover, .bzt-capability-card:hover { transform: none !important; box-shadow: 0 16px 32px -20px rgba(20, 24, 29, 0.35) !important; border-color: var(--wp--preset--color--primary) !important; }
.bzt-badge { border-radius: 0 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 0.8125rem !important; }
.bzt-category-title::after { border-radius: 0 !important; height: 3px !important; }
