.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--rechtstexte a {
    position: relative;
    padding-right: 34px;
}

.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--rechtstexte a::before {
    content: "§" !important;
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    color: #d8c293 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transform: translateY(-50%) !important;
    box-sizing: border-box;
}

.ipp-rt-has-outdated .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--rechtstexte a::after {
    content: "!" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    margin-left: 8px !important;
    border-radius: 999px !important;
    background: #d83b3b !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    box-shadow: 0 2px 6px rgba(216, 59, 59, .3) !important;
}

.ipp-rechtstexte {
    --ipp-legal-gold: #c2a25a;
    --ipp-legal-gold-dark: #806417;
    --ipp-legal-border: #e7dcc4;
    --ipp-legal-text: #292929;
    --ipp-legal-muted: #687083;
    display: grid;
    gap: 24px;
    width: 100%;
    color: var(--ipp-legal-text);
}

.ipp-rechtstexte__header,
.ipp-rechtstexte__notice {
    border: 1px solid var(--ipp-legal-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(29, 33, 41, 0.07);
}

.ipp-rechtstexte__header {
    padding: clamp(24px, 4vw, 42px);
    border-left: 6px solid var(--ipp-legal-gold);
    background: linear-gradient(135deg, #fff 0%, #fbf7ef 100%);
}

.ipp-rechtstexte__kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--ipp-legal-gold-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.ipp-rechtstexte__header h2 {
    margin: 0 0 12px;
    color: var(--ipp-legal-text);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.ipp-rechtstexte__header p,
.ipp-rechtstexte__notice p {
    margin: 0;
    color: var(--ipp-legal-muted);
    font-size: 16px;
    line-height: 1.65;
}

.ipp-rechtstexte__notice {
    padding: clamp(20px, 3vw, 28px);
}

.ipp-rechtstexte__notice strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.ipp-rechtstexte__notice--integration { border-left: 5px solid #d99a18; background:#fffaf0; }
.ipp-rt-toolbar { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border:1px solid var(--ipp-legal-border);border-radius:12px;background:#fff; }
.ipp-rt-plan,.ipp-rt-limit { font-weight:700; }
.ipp-rt-limit { color:#8a6412; }
.ipp-rt-layout { display:grid;grid-template-columns:minmax(220px,28%) minmax(0,1fr);gap:20px; }
.ipp-rt-projects,.ipp-rt-documents { min-width:0;padding:20px;border:1px solid var(--ipp-legal-border);border-radius:12px;background:#fff;box-shadow:0 10px 28px rgba(29,33,41,.05); }
.ipp-rt-projects h3,.ipp-rt-project-title { margin:0 0 16px; }
.ipp-rt-project { display:flex;align-items:stretch;margin-bottom:10px;border:1px solid #e9e3d7;border-radius:10px;overflow:hidden; }
.ipp-rt-project.is-active { border-color:var(--ipp-legal-gold);box-shadow:0 0 0 1px var(--ipp-legal-gold); }
.ipp-rt-project.is-current:not(.is-active) { border-color:#87cf9b; }
.ipp-rt-project.is-outdated:not(.is-active) { border-color:#ef8e8e; }
.ipp-rt-project.is-locked { opacity:.66; }
.ipp-rt-project a { display:flex;flex:1;flex-direction:column;gap:3px;padding:11px 12px;color:var(--ipp-legal-text);text-decoration:none; }
.ipp-rt-project a span { align-self:flex-start;padding:3px 8px;border:1px solid transparent;border-radius:999px;color:var(--ipp-legal-muted);font-size:12px;font-weight:700; }
.ipp-rt-project.is-current a span { border-color:#87cf9b;background:#effaf1;color:#187638; }
.ipp-rt-project.is-outdated a span { border-color:#ef8e8e;background:#fff1f1;color:#b32626; }
.ipp-rt-project button { width:40px;border:0;border-left:1px solid #e9e3d7;background:#fff;color:#a33;font-size:22px;cursor:pointer; }
.ipp-rt-button { display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 13px;border:1px solid #ccb678;border-radius:9px;background:#fff;color:#624b0c;font:inherit;font-weight:700;text-decoration:none;cursor:pointer; }
.ipp-rt-button--primary { border-color:var(--ipp-legal-gold);background:var(--ipp-legal-gold);color:#fff; }
.ipp-rt-button--subtle { color:var(--ipp-legal-muted);font-size:13px; }
.ipp-rt-button--danger { border-color:#d45b5b;background:#fff4f4;color:#a52323; }
.ipp-rechtstexte .ipp-rt-button:hover,
.ipp-rechtstexte .ipp-rt-button:focus,
.ipp-rechtstexte .ipp-rt-button:focus-visible,
.ipp-rechtstexte .ipp-rt-button:active,
.ipp-rechtstexte .ipp-rt-button.is-active,
.ipp-rechtstexte .ipp-rt-button[aria-pressed="true"] {
    border-color:var(--ipp-legal-gold) !important;
    background:var(--ipp-legal-gold) !important;
    color:#fff !important;
    text-decoration:none !important;
}
.ipp-rechtstexte .ipp-rt-button:visited { color:#624b0c; }
.ipp-rechtstexte .ipp-rt-button--primary:visited { color:#fff; }
.ipp-rt-button:disabled { opacity:.55;cursor:wait; }
.ipp-rt-tabs { display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px; }
.ipp-rt-tab { display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid #e4dac2;border-radius:999px;background:#faf8f2;color:#4b4538;font:inherit;font-weight:700;cursor:pointer; }
.ipp-rt-warning-triangle { color:#d83b3b;font-size:14px;line-height:1; }
.ipp-rechtstexte .ipp-rt-tab.ipp-rt-tab--locked,
.ipp-rechtstexte .ipp-rt-tab.ipp-rt-tab--locked:visited {
    position:relative;
    border-color:#d9d7d1 !important;
    background:#f1f1ef !important;
    color:#96938d !important;
    text-decoration:none !important;
    cursor:pointer;
    filter:grayscale(.18);
}
.ipp-rechtstexte .ipp-rt-tab.ipp-rt-tab--locked:hover,
.ipp-rechtstexte .ipp-rt-tab.ipp-rt-tab--locked:focus,
.ipp-rechtstexte .ipp-rt-tab.ipp-rt-tab--locked:focus-visible,
.ipp-rechtstexte .ipp-rt-tab.ipp-rt-tab--locked:active {
    border-color:#bdb8ae !important;
    background:#e8e7e3 !important;
    color:#706d67 !important;
    outline:0;
    box-shadow:0 0 0 3px rgba(203,168,88,.16);
}
.ipp-rt-tab__lock { font-size:11px;line-height:1;opacity:.72; }
.ipp-rt-upgrade-tooltip {
    position:absolute;
    left:50%;
    bottom:calc(100% + 10px);
    z-index:50;
    width:max-content;
    max-width:min(330px,80vw);
    padding:9px 11px;
    border-radius:7px;
    background:#242321;
    color:#fff;
    font-size:12px;
    font-weight:600;
    line-height:1.45;
    text-align:left;
    white-space:normal;
    box-shadow:0 8px 22px rgba(0,0,0,.2);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translate(-50%,4px);
    transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
}
.ipp-rt-upgrade-tooltip::after {
    content:"";
    position:absolute;
    top:100%;
    left:50%;
    margin-left:-6px;
    border:6px solid transparent;
    border-top-color:#242321;
}
.ipp-rt-tab--locked:hover .ipp-rt-upgrade-tooltip,
.ipp-rt-tab--locked:focus .ipp-rt-upgrade-tooltip,
.ipp-rt-tab--locked:focus-visible .ipp-rt-upgrade-tooltip {
    opacity:1;
    visibility:visible;
    transform:translate(-50%,0);
}
.ipp-rechtstexte .ipp-rt-tab:hover,
.ipp-rechtstexte .ipp-rt-tab:focus,
.ipp-rechtstexte .ipp-rt-tab:focus-visible,
.ipp-rechtstexte .ipp-rt-tab:active,
.ipp-rechtstexte .ipp-rt-tab.is-active {
    border-color:var(--ipp-legal-gold) !important;
    background:var(--ipp-legal-gold) !important;
    color:#fff !important;
}
.ipp-rechtstexte .ipp-rt-tab.is-active .ipp-rt-warning-triangle,
.ipp-rechtstexte .ipp-rt-tab:hover .ipp-rt-warning-triangle,
.ipp-rechtstexte .ipp-rt-tab:focus-visible .ipp-rt-warning-triangle { color:#fff; }
.ipp-rt-document { display:none; }
.ipp-rt-document.is-active { display:block; }
.ipp-rt-document__head { display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid #eee8dc; }
.ipp-rt-document__head-main { display:flex;align-items:center;gap:10px;flex-wrap:wrap; }
.ipp-rt-document__head-actions { display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap; }
.ipp-rt-document__head h4 { margin:0;font-size:22px; }
.ipp-rt-status { display:inline-block;padding:4px 9px;border:1px solid #d9d9d9;border-radius:999px;background:#f7f7f7;font-size:12px;font-weight:700; }
.ipp-rt-status.is-good { border-color:#87cf9b;background:#effaf1;color:#187638; }
.ipp-rt-status.is-warning { border-color:#e1be70;background:#fff8e8;color:#805b08; }
.ipp-rt-status.is-reviewed { border-color:#65b87b;background:#eaf8ee;color:#146a2c; }
.ipp-rt-button--review { border-color:#806417;background:#fffaf0;color:#6d5208; }
.ipp-rt-actions { display:flex;flex-wrap:wrap;gap:8px;margin:16px 0; }
.ipp-rt-preview { padding:20px;border:1px solid #e9e3d7;border-radius:10px;background:#fff;overflow-wrap:anywhere; }
.ipp-rt-customer-editor__input { display:block;width:100%;min-height:320px;padding:18px;border:1px solid #cdb77d;border-radius:10px;background:#fff;color:var(--ipp-legal-text);font:inherit;line-height:1.65;resize:vertical;box-sizing:border-box; }
.ipp-rt-customer-editor__input:focus { border-color:var(--ipp-legal-gold-dark);outline:0;box-shadow:0 0 0 3px rgba(194,162,90,.2); }
.ipp-rt-customer-editor__input[hidden],.ipp-rt-preview[hidden] { display:none!important; }
.ipp-rt-customer-editor__footer { display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;margin-top:9px; }
.ipp-rt-customer-editor__footer .ipp-rt-button { min-height:32px;padding:5px 11px; }
.ipp-rt-customer-editor.is-editing .ipp-rt-customer-editor__footer .ipp-rt-button { border-color:var(--ipp-legal-gold);background:var(--ipp-legal-gold);color:#fff; }
.ipp-rt-review { margin-top:14px;padding:20px;border:1px solid var(--ipp-legal-border);border-radius:10px;background:#fcfaf5; }
.ipp-rt-review strong { display:block;margin-bottom:7px;font-size:17px; }
.ipp-rt-review p { margin:0 0 14px;color:var(--ipp-legal-muted);line-height:1.6; }
.ipp-rt-review--approved { border-color:#8bcea0;background:#f0faf3; }
.ipp-rt-review--approved strong { color:#146a2c; }
.ipp-rt-review__button { transform:scale(1);transform-origin:center;transition:transform .22s ease,box-shadow .22s ease; }
.ipp-rt-review__button:hover,
.ipp-rt-review__button:focus-visible { transform:scale(1.025);box-shadow:0 7px 18px rgba(128,100,23,.2); }
.ipp-rt-hidden { position:fixed!important;left:-10000px!important;top:-10000px!important;width:1px!important;height:1px!important;opacity:0!important; }
.ipp-rt-meta,.ipp-rt-muted { color:var(--ipp-legal-muted);font-size:13px; }
.ipp-rt-empty { padding:36px 22px;border:1px dashed #d9cba9;border-radius:10px;background:#fcfaf5;text-align:center; }
.ipp-rt-empty h3 { margin-top:0; }
.ipp-rt-empty--small { padding:22px;margin-top:16px; }
.ipp-rt-config-missing { color:#8a6412;font-size:13px;font-weight:700; }
.ipp-rt-lawyer-portal { --ipp-legal-gold:#c2a25a;--ipp-legal-border:#e7dcc4;--ipp-legal-muted:#687083;display:grid;gap:20px; }
.ipp-rt-lawyer-context,.ipp-rt-lawyer-message { padding:20px;border:1px solid var(--ipp-legal-border);border-radius:10px;background:#fff; }
.ipp-rt-lawyer-context h2 { margin-top:0; }
.ipp-rt-lawyer-context dl { display:grid;gap:8px;margin:0; }
.ipp-rt-lawyer-context dl div { display:grid;grid-template-columns:minmax(100px,140px) minmax(0,1fr);gap:12px; }
.ipp-rt-lawyer-context dt { font-weight:700; }
.ipp-rt-lawyer-context dd { margin:0;overflow-wrap:anywhere; }
.ipp-rt-lawyer-message p:last-child { margin-bottom:0; }
.ipp-rt-lawyer-message.is-error { border-color:#e69a9a;background:#fff3f3;color:#9d2222; }
.ipp-rt-lawyer-message.is-success { border-color:#8bcea0;background:#f0faf3;color:#146a2c; }
.ipp-rt-expert-login { max-width:620px;margin:32px auto; }
.ipp-rt-expert-login__form { display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:18px; }
.ipp-rt-expert-login__form label { display:grid;flex:1 1 300px;gap:7px;font-weight:700; }
.ipp-rt-expert-login__form input[type="password"] { min-height:44px;padding:9px 12px;border:1px solid var(--ipp-legal-border);border-radius:9px;background:#fff;font:inherit; }

@media (max-width: 600px) {
    .ipp-rechtstexte {
        gap: 16px;
    }

    .ipp-rechtstexte__header,
    .ipp-rechtstexte__notice {
        border-radius: 10px;
    }

    .ipp-rechtstexte__header {
        border-left-width: 4px;
    }

    .ipp-rt-toolbar,.ipp-rt-document__head { align-items:stretch;flex-direction:column; }
    .ipp-rt-document__head-main { align-items:flex-start;flex-direction:column; }
    .ipp-rt-document__head-actions { width:100%;align-items:stretch;flex-direction:column; }
    .ipp-rt-layout { grid-template-columns:1fr; }
    .ipp-rt-projects,.ipp-rt-documents { padding:15px; }
    .ipp-rt-button { width:100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ipp-rt-upgrade-tooltip { transition:none; }
    .ipp-rt-review__button { transition:none; }
    .ipp-rt-review__button:hover,
    .ipp-rt-review__button:focus-visible { transform:none; }
}

.ipp-rt-rich-editor { overflow:hidden;border:1px solid #b99441;border-radius:9px;background:#fff;box-shadow:0 1px 2px rgba(30,25,18,.04); }
.ipp-rt-rich-editor:focus-within { border-color:#92701f;box-shadow:0 0 0 2px rgba(185,148,65,.18); }
.ipp-rt-rich-editor__toolbar { display:flex;flex-wrap:wrap;gap:5px;padding:8px;border-bottom:1px solid #ddd5c6;background:#f8f6f1; }
.ipp-rt-rich-editor__toolbar button { min-width:38px;height:36px;padding:0 10px;border:1px solid #cec4b2;border-radius:6px;background:#fff;color:#38342d;font:inherit;font-weight:700;line-height:1;cursor:pointer; }
.ipp-rt-rich-editor__toolbar button:hover,.ipp-rt-rich-editor__toolbar button:focus { border-color:#b99441;background:#fffaf0;color:#725719;outline:0; }
.ipp-rt-rich-editor__surface { min-height:520px;max-height:75vh;overflow:auto;padding:24px;background:#fff;color:#2f2d2a;font-size:16px;line-height:1.65;outline:0; }
.ipp-rt-rich-editor__surface h1 { margin:0 0 24px;font-size:34px;line-height:1.2; }
.ipp-rt-rich-editor__surface h2,.ipp-rt-rich-editor__surface h3,.ipp-rt-rich-editor__surface h4 { margin:28px 0 12px;line-height:1.3; }
.ipp-rt-rich-editor__surface p { margin:0 0 16px; }
.ipp-rt-rich-editor__surface ul,.ipp-rt-rich-editor__surface ol { margin:0 0 18px;padding-left:28px; }
.ipp-rt-rich-editor__surface li { margin:0 0 7px; }
.ipp-rt-rich-editor__surface blockquote { margin:18px 0;padding:10px 16px;border-left:4px solid #c2a25a;background:#faf8f3; }
.ipp-rt-rich-editor__hint { margin:0;padding:9px 12px;border-top:1px solid #e7e0d4;background:#fcfbf8;color:#686158;font-size:13px; }
.ipp-rt-rich-editor-source { position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important; }
@media(max-width:600px){.ipp-rt-rich-editor__surface{min-height:380px;padding:16px}.ipp-rt-rich-editor__toolbar{gap:4px}.ipp-rt-rich-editor__toolbar button{min-width:34px;padding:0 8px}}
