/* ═══════════════════════════════════════════════════════
   RuhrFarbe Protokoll-Portal v3.0.0
   Roboto · Orange #f6851f · Grün #07793e · Responsive
═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --rfp-primary:      #f6851f;
    --rfp-primary-dk:   #d4700f;
    --rfp-secondary:    #07793e;
    --rfp-secondary-dk: #055e2f;
    --rfp-text:         #1a1a1a;
    --rfp-muted:        #666;
    --rfp-border:       #d9d9d9;
    --rfp-bg:           #f5f5f3;
    --rfp-white:        #ffffff;
    --rfp-error:        #dc2626;
    --rfp-error-bg:     #fef2f2;
    --rfp-radius:       8px;
    --rfp-radius-lg:    12px;
    --rfp-shadow:       0 1px 4px rgba(0,0,0,.08);
    --rfp-shadow-md:    0 4px 14px rgba(0,0,0,.12);
}

#rfp-portal {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px; color: var(--rfp-text);
    max-width: 980px; margin: 0 auto; line-height: 1.6;
}

/* ── LOADING ────────────────────────────────────────── */
.rfp-loading { text-align:center; padding:80px 20px; color:var(--rfp-muted); }
.rfp-spinner {
    display:inline-block; width:36px; height:36px;
    border:3px solid var(--rfp-border); border-top-color:var(--rfp-primary);
    border-radius:50%; animation:rfp-spin .7s linear infinite; margin-bottom:12px;
}
@keyframes rfp-spin { to { transform:rotate(360deg); } }

/* ── NAV ────────────────────────────────────────────── */
.rfp-nav {
    display:flex; border-bottom:3px solid var(--rfp-primary);
    margin-bottom:28px; gap:2px; overflow-x:auto; scrollbar-width:none;
}
.rfp-nav::-webkit-scrollbar { display:none; }
.rfp-nav-btn {
    padding:11px 20px; border:none; background:none; cursor:pointer;
    font-family:'Roboto',sans-serif; font-size:14px; font-weight:500;
    color:var(--rfp-muted); border-bottom:3px solid transparent;
    margin-bottom:-3px; transition:color .18s,border-color .18s;
    white-space:nowrap;
}
.rfp-nav-btn:hover { color:#fff; background:var(--rfp-primary); border-radius:var(--rfp-radius) var(--rfp-radius) 0 0; }
.rfp-nav-btn.active { color:var(--rfp-primary); border-bottom-color:var(--rfp-primary); background:transparent; }
.rfp-nav-btn.active:hover { color:#fff; background:var(--rfp-primary); }

/* ── HERO ───────────────────────────────────────────── */
.rfp-hero {
    background: linear-gradient(135deg, var(--rfp-primary) 0%, var(--rfp-primary-dk) 100%);
    border-radius: var(--rfp-radius-lg);
    margin-bottom: 24px; overflow: hidden;
    box-shadow: var(--rfp-shadow-md);
    position: relative;
}
/* Falling paint drops – Option E */
.rfp-drop {
    position: absolute; border-radius: 50%;
    filter: blur(1px); z-index: 2; pointer-events: none;
}
.rfp-drop-1 { width:70px; height:70px; top:-20px; right:80px;
    background: radial-gradient(circle at 40% 35%, rgba(255,230,100,.72), rgba(255,180,40,.4), transparent 70%);
    animation: rfp-drip1 6s ease-in-out infinite; }
.rfp-drop-2 { width:50px; height:50px; top:-10px; right:200px;
    background: radial-gradient(circle at 40% 35%, rgba(7,200,120,.55), rgba(7,121,62,.32), transparent 70%);
    animation: rfp-drip2 8s ease-in-out infinite 1.5s; }
.rfp-drop-3 { width:90px; height:90px; top:-30px; right:330px;
    background: radial-gradient(circle at 40% 35%, rgba(255,210,60,.5), rgba(246,133,31,.28), transparent 70%);
    animation: rfp-drip3 7s ease-in-out infinite 3s; }
.rfp-drop-4 { width:40px; height:40px; bottom:-15px; right:140px;
    background: radial-gradient(circle at 40% 35%, rgba(7,180,100,.6), rgba(5,94,47,.32), transparent 70%);
    animation: rfp-drip4 9s ease-in-out infinite .8s; }
.rfp-drop-5 { width:55px; height:55px; bottom:-20px; right:60px;
    background: radial-gradient(circle at 40% 35%, rgba(255,210,80,.52), rgba(255,150,20,.3), transparent 70%);
    animation: rfp-drip5 7.5s ease-in-out infinite 2s; }
.rfp-drop-6 { width:34px; height:34px; top:28px; right:22px;
    background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.32), transparent 70%);
    animation: rfp-drip2 5s ease-in-out infinite .5s; }

@keyframes rfp-drip1 {
    0%,100% { transform: translateY(0)   scale(1);    opacity: .85; }
    40%      { transform: translateY(60px) scale(.85); opacity: .7; }
    70%      { transform: translateY(110px) scale(.65); opacity: .25; }
    80%      { transform: translateY(135px) scale(.5);  opacity: 0; }
    81%      { transform: translateY(-22px) scale(.45); opacity: 0; }
    92%      { transform: translateY(-8px)  scale(.95); opacity: .8; }
}
@keyframes rfp-drip2 {
    0%,100% { transform: translateY(0)   scale(1);    opacity: .8; }
    45%      { transform: translateY(70px) scale(.8);  opacity: .6; }
    72%      { transform: translateY(120px) scale(.6); opacity: .2; }
    80%      { transform: translateY(142px) scale(.45); opacity: 0; }
    81%      { transform: translateY(-18px) scale(.4);  opacity: 0; }
    93%      { transform: translateY(-5px)  scale(.9);  opacity: .78; }
}
@keyframes rfp-drip3 {
    0%,100% { transform: translateY(0)   scale(1);    opacity: .8; }
    35%      { transform: translateY(50px) scale(.9);  opacity: .7; }
    68%      { transform: translateY(100px) scale(.65); opacity: .28; }
    78%      { transform: translateY(128px) scale(.5);  opacity: 0; }
    79%      { transform: translateY(-26px) scale(.42); opacity: 0; }
    92%      { transform: translateY(-9px)  scale(.92); opacity: .75; }
}
@keyframes rfp-drip4 {
    0%,100% { transform: translateY(0)    scale(1);   opacity: .85; }
    50%      { transform: translateY(-55px) scale(.8); opacity: .65; }
    75%      { transform: translateY(-102px) scale(.6); opacity: .22; }
    83%      { transform: translateY(-125px) scale(.48); opacity: 0; }
    84%      { transform: translateY(18px)   scale(.42); opacity: 0; }
    95%      { transform: translateY(5px)    scale(.95); opacity: .8; }
}
@keyframes rfp-drip5 {
    0%,100% { transform: translateY(0)    scale(1);    opacity: .8; }
    50%      { transform: translateY(-60px) scale(.85); opacity: .65; }
    73%      { transform: translateY(-112px) scale(.65); opacity: .25; }
    82%      { transform: translateY(-135px) scale(.5);  opacity: 0; }
    83%      { transform: translateY(16px)   scale(.4);  opacity: 0; }
    94%      { transform: translateY(4px)    scale(.92); opacity: .78; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rfp-drop { animation: none !important; opacity: .35; }
}

.rfp-hero-inner {
    display: flex; align-items: flex-start; gap: 28px;
    padding: 36px 36px 32px;
    position: relative; z-index: 3;
}
/* White pill – keeps customer logo in full colour */
.rfp-hero-logo-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 10px 18px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    min-width: 140px; min-height: 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.rfp-hero-logo  { max-height: 52px; max-width: 180px; display: block; }
.rfp-hero-title { font-size: 24px; font-weight: 700; color: #fff; margin: 0 0 8px; text-shadow: 0 1px 4px rgba(0,0,0,.15); }
.rfp-hero-sub   { font-size: 14px; color: rgba(255,255,255,.88); margin: 0 0 22px; max-width: 560px; }
.rfp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ────────────────────────────────────────── */
.rfp-btn {
    display:inline-flex; align-items:center; gap:7px;
    padding:11px 22px; border-radius:var(--rfp-radius);
    font-family:'Roboto',sans-serif; font-size:14px; font-weight:700;
    cursor:pointer; border:2px solid transparent;
    text-decoration:none; transition:all .18s; white-space:nowrap;
}
.rfp-btn:disabled { opacity:.5; cursor:not-allowed; }

/* Orange – primary action */
.rfp-btn-primary { background:var(--rfp-primary); color:#fff; border-color:var(--rfp-primary); }
.rfp-btn-primary:hover:not(:disabled),
.rfp-btn-primary:focus:not(:disabled) { background:var(--rfp-primary-dk); border-color:var(--rfp-primary-dk); color:#fff !important; transform:translateY(-1px); box-shadow:0 4px 12px rgba(246,133,31,.3); }

/* Green – hero CTA "Neues Protokoll" */
.rfp-btn-green { background:var(--rfp-secondary); color:#fff; border-color:var(--rfp-secondary); }
.rfp-btn-green:hover:not(:disabled) { background:var(--rfp-secondary-dk); border-color:var(--rfp-secondary-dk); transform:translateY(-1px); box-shadow:0 4px 12px rgba(7,121,62,.35); }

/* White outline – "Meine Protokolle" on hero */
.rfp-btn-outline-white { background:transparent; color:#fff; border-color:rgba(255,255,255,.55); }
.rfp-btn-outline-white:hover:not(:disabled) { background:rgba(255,255,255,.1); border-color:#fff; }

/* Orange outline – secondary actions */
.rfp-btn-outline { background:transparent; color:var(--rfp-primary); border-color:var(--rfp-primary); }
.rfp-btn-outline:hover:not(:disabled) { background:var(--rfp-primary); color:#fff !important; }
.rfp-btn-outline:hover:not(:disabled) * { color:#fff !important; }

/* Green accent – PDF-erstellen */
.rfp-btn-accent { background:var(--rfp-secondary); color:#fff; border-color:var(--rfp-secondary); }
.rfp-btn-accent:hover:not(:disabled) { background:var(--rfp-secondary-dk); border-color:var(--rfp-secondary-dk); transform:translateY(-1px); }

.rfp-btn-sm { padding:7px 14px; font-size:13px; }
.rfp-btn-danger { background:#dc2626;color:#fff;border-color:#dc2626; }
.rfp-btn-danger:hover:not(:disabled) { background:#b91c1c;border-color:#b91c1c; }
.rfp-btn-danger-outline { background:transparent;color:#dc2626;border-color:#dc2626; }
.rfp-btn-danger-outline:hover:not(:disabled) { background:#fef2f2;color:#dc2626; }

/* Logo preview with inline delete */
.rfp-logo-prev-wrap { display:flex;align-items:center;gap:14px;margin-bottom:12px;flex-wrap:wrap; }
.rfp-logo-prev-wrap .rfp-logo-prev { margin-bottom:0; }

/* Branding footer */
.rfp-branding-foot { gap:12px; }
.rfp-branding-foot .rfp-btn-danger-outline { margin-left:auto; }

/* ── CARDS ──────────────────────────────────────────── */
.rfp-card {
    background:var(--rfp-white); border:1px solid var(--rfp-border);
    border-radius:var(--rfp-radius-lg); padding:28px;
    margin-bottom:20px; box-shadow:var(--rfp-shadow);
}
.rfp-card-title {
    font-size:18px; font-weight:700; color:var(--rfp-text);
    margin:0 0 6px; border-left:4px solid var(--rfp-primary); padding-left:12px;
}
.rfp-card-sub { color:var(--rfp-muted); margin:0 0 22px; font-size:14px; }

/* ── STEPS ──────────────────────────────────────────── */
.rfp-steps { display:flex; align-items:center; margin-bottom:24px; }
.rfp-step { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:500; color:#bbb; }
.rfp-step.active { color:var(--rfp-primary); }
.rfp-step.done   { color:var(--rfp-secondary); }
.rfp-step-num { width:30px; height:30px; border-radius:50%; background:#e8e8e8; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; flex-shrink:0; }
.rfp-step.active .rfp-step-num { background:var(--rfp-primary); color:#fff; }
.rfp-step.done   .rfp-step-num { background:var(--rfp-secondary); color:#fff; }
.rfp-step-sep { flex:1; height:2px; background:#e8e8e8; min-width:16px; }
.rfp-step.done + .rfp-step-sep { background:var(--rfp-secondary); }

/* ── TYPE GRID ──────────────────────────────────────── */
.rfp-type-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px; margin:20px 0; }
.rfp-type-card {
    border:2px solid var(--rfp-border); border-radius:var(--rfp-radius);
    padding:20px 16px; cursor:pointer; display:flex; flex-direction:column; gap:6px;
    background:var(--rfp-white); transition:border-color .2s,transform .15s,box-shadow .2s;
}
.rfp-type-card:hover  { border-color:var(--rfp-primary); transform:translateY(-2px); box-shadow:var(--rfp-shadow-md); }
.rfp-type-card.selected { border-color:var(--rfp-primary); background:#fff8f3; box-shadow:0 0 0 3px rgba(246,133,31,.15); }
.rfp-type-icon { font-size:30px; line-height:1; }
.rfp-type-name { font-weight:700; font-size:14px; }
.rfp-type-desc { font-size:12px; color:var(--rfp-muted); line-height:1.45; }
.rfp-type-norms { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.rfp-norm-badge { background:#f0faf4; color:var(--rfp-secondary); border:1px solid #a7dfbf; border-radius:4px; font-size:10px; font-weight:700; padding:2px 6px; }

/* ── FORM ───────────────────────────────────────────── */
.rfp-form-section { margin-bottom:4px; }
.rfp-section-header {
    background:var(--rfp-primary); color:#fff;
    font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.8px;
    padding:7px 14px;
    border-radius:var(--rfp-radius) var(--rfp-radius) 0 0;
}
.rfp-section-body {
    display:grid; grid-template-columns:1fr 1fr; gap:14px;
    padding:16px; background:#fafafa;
    border:1px solid var(--rfp-border); border-top:none;
    border-radius:0 0 var(--rfp-radius) var(--rfp-radius);
    margin-bottom:8px;
}

/* Fields */
.rfp-field { display:flex; flex-direction:column; gap:5px; }
.rfp-field--full { grid-column:1/-1; }
.rfp-field--cb   { grid-column:1/-1; }
.rfp-label { font-size:12px; font-weight:600; color:#444; }
.rfp-req   { color:var(--rfp-error); }

.rfp-input {
    border:1px solid var(--rfp-border); border-radius:6px;
    padding:8px 11px; font-size:14px; font-family:'Roboto',sans-serif;
    color:var(--rfp-text); background:#fff;
    transition:border-color .18s,box-shadow .18s;
    width:100%; box-sizing:border-box;
}
.rfp-input:focus { outline:none; border-color:var(--rfp-primary); box-shadow:0 0 0 3px rgba(246,133,31,.15); }
.rfp-input::placeholder { color:#b0b0b0; }
textarea.rfp-input { resize:vertical; min-height:80px; }
.rfp-input--mono { font-family:monospace; font-size:13px; width:105px; flex-shrink:0; }
.rfp-input-mock  { background:#f0f0f0; border:1px solid #e0e0e0; border-radius:6px; padding:8px 11px; font-size:14px; color:#aaa; }

/* Error state */
.rfp-field--error .rfp-input,
.rfp-field--error select.rfp-input,
.rfp-field--error textarea.rfp-input {
    border-color:var(--rfp-error);
    box-shadow:0 0 0 3px rgba(220,38,38,.12);
    background:var(--rfp-error-bg);
}
.rfp-field--error .rfp-label { color:var(--rfp-error); }

/* Checkboxes */
.rfp-cb-group  { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:4px; }
.rfp-cb-item   { display:flex; align-items:center; gap:7px; cursor:pointer; user-select:none; }
.rfp-cb-item input[type="checkbox"] { position:absolute; opacity:0; width:0; height:0; }
.rfp-cb-box    { width:18px; height:18px; border-radius:4px; border:2px solid var(--rfp-border); background:#fff; flex-shrink:0; display:flex; align-items:center; justify-content:center; transition:border-color .15s,background .15s; }
.rfp-cb-item input:checked + .rfp-cb-box { background:var(--rfp-primary); border-color:var(--rfp-primary); }
.rfp-cb-item input:checked + .rfp-cb-box::after { content:''; display:block; width:5px; height:9px; border:2px solid #fff; border-top:none; border-left:none; transform:rotate(45deg) translate(-1px,-1px); }
.rfp-cb-label  { font-size:13px; }
.rfp-privacy-cb { align-items:flex-start; }
.rfp-privacy-cb .rfp-cb-box { margin-top:2px; }

/* Matrix / table */
.rfp-matrix-wrap,.rfp-table-wrap { grid-column:1/-1; }
.rfp-matrix-scroll { overflow-x:auto; border:1px solid var(--rfp-border); border-radius:0 0 var(--rfp-radius) var(--rfp-radius); }
.rfp-matrix { width:100%; border-collapse:collapse; font-size:12.5px; min-width:500px; }
.rfp-matrix th,.rfp-matrix-col { background:var(--rfp-secondary); color:#fff; padding:8px 10px; text-align:center; font-weight:700; font-size:12px; border:1px solid rgba(255,255,255,.2); white-space:nowrap; }
.rfp-matrix-rowlabel { padding:6px 10px; font-weight:600; background:#f5f5f5; font-size:12px; border:1px solid var(--rfp-border); white-space:nowrap; min-width:160px; }
.rfp-matrix-cell { border:1px solid var(--rfp-border); padding:2px; text-align:center; }
.rfp-matrix-inp { border:none; padding:6px 8px; width:100%; min-width:80px; font-size:12.5px; font-family:'Roboto',sans-serif; background:transparent; text-align:center; box-sizing:border-box; }
.rfp-matrix-inp:focus { outline:none; background:#fff8f3; }
.rfp-matrix-inp::placeholder { color:#ccc; font-size:11px; }
tr.rfp-matrix-odd .rfp-matrix-rowlabel,
tr.rfp-matrix-odd .rfp-matrix-cell { background:#f9f9f9; }

/* Form footer */
.rfp-form-foot { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:28px; flex-wrap:wrap; }
.rfp-form-foot--left { justify-content:flex-start; }

/* ── FIELDSET (branding) ────────────────────────────── */
.rfp-fieldset { border:1px solid var(--rfp-border); border-radius:var(--rfp-radius); padding:16px 20px 20px; margin-bottom:20px; }
.rfp-legend   { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:var(--rfp-primary); padding:0 6px; }
.rfp-fields-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.rfp-fields-grid--2 { grid-template-columns:1fr 1fr; }
.rfp-color-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.rfp-color-pick { width:44px; height:44px; border:1px solid var(--rfp-border); border-radius:6px; padding:2px; cursor:pointer; flex-shrink:0; }
.rfp-color-swatch { width:44px; height:44px; border-radius:6px; border:1px solid var(--rfp-border); flex-shrink:0; }
.rfp-logo-hint-box { background:#f0faf4; border:1px solid #a7dfbf; border-radius:var(--rfp-radius); padding:12px 14px; font-size:13px; margin-bottom:14px; line-height:1.6; }
.rfp-logo-prev { max-height:72px; border-radius:6px; border:1px solid var(--rfp-border); padding:6px; background:#fafafa; margin-bottom:12px; display:block; }
.rfp-logo-upload-row { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.rfp-logo-upload-error { color:var(--rfp-error); font-size:13px; margin-top:8px; font-weight:600; }

/* ── BRANDING LOCK ──────────────────────────────────── */
.rfp-branding-lock-wrap { position:relative; }
.rfp-branding-blurred { filter:blur(3px); opacity:.6; pointer-events:none; user-select:none; padding:8px 0; }
.rfp-branding-overlay {
    position:absolute; inset:0;
    display:flex; align-items:center; justify-content:center;
    background:rgba(255,255,255,.5);
    backdrop-filter:blur(2px);
    border-radius:var(--rfp-radius);
    z-index:10;
}
.rfp-lock-box {
    background:#fff; border:1.5px solid var(--rfp-border);
    border-radius:var(--rfp-radius-lg); padding:28px 32px;
    max-width:420px; width:90%; text-align:center;
    box-shadow:var(--rfp-shadow-md);
}
.rfp-lock-icon  { font-size:40px; margin-bottom:12px; }
.rfp-lock-title { font-size:17px; font-weight:700; margin:0 0 8px; }
.rfp-lock-desc  { font-size:13px; color:var(--rfp-muted); margin:0 0 20px; }
.rfp-lock-form  { display:flex; flex-direction:column; align-items:center; gap:10px; }

/* ── ALERTS ─────────────────────────────────────────── */
.rfp-alert { padding:12px 16px; border-radius:var(--rfp-radius); font-size:13px; margin-bottom:14px; border:1px solid transparent; }
.rfp-alert-success { background:#ecfdf5; color:#065f46; border-color:#a7f3d0; }
.rfp-alert-error   { background:var(--rfp-error-bg); color:#991b1b; border-color:#fca5a5; }
.rfp-alert-info    { background:#eff6ff; color:#1e40af; border-color:#bfdbfe; }

/* ── PROTOCOL LIST ──────────────────────────────────── */
.rfp-prot-list { list-style:none; padding:0; margin:0; }
.rfp-prot-item { display:flex; align-items:center; gap:14px; padding:14px 16px; border:1px solid var(--rfp-border); border-radius:var(--rfp-radius); margin-bottom:10px; background:var(--rfp-white); transition:box-shadow .18s; }
.rfp-prot-item:hover { box-shadow:var(--rfp-shadow); }
.rfp-prot-actions { display:flex; gap:6px; align-items:center; flex-shrink:0; }
.rfp-prot-icon { font-size:26px; flex-shrink:0; }
.rfp-prot-info { flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.rfp-prot-title { font-weight:700; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rfp-prot-meta  { font-size:12px; color:var(--rfp-muted); }

/* ── DONE ───────────────────────────────────────────── */
.rfp-done-card { text-align:center; padding:48px 36px; }
.rfp-done-icon { width:72px; height:72px; border-radius:50%; background:var(--rfp-secondary); color:#fff; font-size:36px; font-weight:700; display:flex; align-items:center; justify-content:center; margin:0 auto 20px; }
.rfp-done-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:24px; }

/* ── EMPTY ──────────────────────────────────────────── */
.rfp-empty { text-align:center; padding:48px 20px; color:var(--rfp-muted); border:2px dashed var(--rfp-border); border-radius:var(--rfp-radius); margin:10px 0; }

/* ── LOGIN NOTICE ───────────────────────────────────── */
.rfp-login-notice { text-align:center; padding:48px 20px; color:var(--rfp-muted); background:#fafafa; border:1px dashed var(--rfp-border); border-radius:var(--rfp-radius-lg); }
.rfp-login-notice a { color:var(--rfp-primary); font-weight:700; }

/* ── ABOUT / SEO ────────────────────────────────────── */
.rfp-about {
    background:var(--rfp-white); border:1px solid var(--rfp-border);
    border-top:3px solid var(--rfp-primary);
    border-radius:var(--rfp-radius-lg); margin-top:36px;
    box-shadow:var(--rfp-shadow);
}
.rfp-about-inner { padding:32px 36px; }
.rfp-about-title { font-size:20px; font-weight:700; margin:0 0 18px; color:var(--rfp-text); border-left:4px solid var(--rfp-primary); padding-left:12px; }
.rfp-about-body  { font-size:14px; line-height:1.8; color:#333; }
.rfp-about-body p { margin:0 0 14px; }
.rfp-about-sub   { font-size:16px; font-weight:700; color:var(--rfp-secondary); margin:22px 0 10px; }
.rfp-about-body a { color:var(--rfp-primary); text-decoration:none; font-weight:500; }
.rfp-about-body a:hover { text-decoration:underline; }
.rfp-about-links { display:flex; flex-direction:column; gap:12px; margin:16px 0 20px; }
.rfp-about-link {
    display:flex; align-items:flex-start; gap:14px;
    padding:14px 16px; background:#f9f9f9;
    border:1px solid var(--rfp-border); border-radius:var(--rfp-radius);
    text-decoration:none; color:var(--rfp-text);
    transition:border-color .18s, background .18s;
}
.rfp-about-link:hover { border-color:var(--rfp-primary); background:#fff8f3; color:var(--rfp-text); text-decoration:none; }
.rfp-about-link-icon { font-size:24px; flex-shrink:0; margin-top:2px; }
.rfp-about-link strong { color:var(--rfp-text); font-size:14px; }
.rfp-about-link small  { color:var(--rfp-muted); font-size:12.5px; display:block; margin-top:3px; }

/* ── LOGO – force transparent background ────────────── */
.rfp-hero-logo-wrap img,
.rfp-hero-logo {
    background: transparent !important;
    mix-blend-mode: multiply;
}

/* ── NAV MOBILE – scroll hint gradient ──────────────── */
.rfp-nav-wrap {
    position: relative; margin-bottom: 28px;
}
.rfp-nav {
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
}
.rfp-nav-fade {
    display: none;
    position: absolute; right: 0; top: 0; bottom: 3px;
    width: 48px;
    background: linear-gradient(to right, transparent, #fff 80%);
    pointer-events: none; z-index: 5;
}
/* Privacy checkbox text – spacing fix */
.rfp-cb-label {
    word-spacing: normal;
    letter-spacing: normal;
}
.rfp-privacy-cb .rfp-cb-label {
    font-size: 12.5px;
    line-height: 1.55;
}

/* ── COATING MATRIX MOBILE ───────────────────────────── */
/* On mobile: stack rows as label+4 input grid */
@media (max-width: 700px) {
    .rfp-matrix-scroll { border-radius: var(--rfp-radius); }
    .rfp-matrix { min-width: unset; display: block; }
    .rfp-matrix thead { display: none; }
    .rfp-matrix tbody { display: block; }
    .rfp-matrix tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        border-bottom: 1px solid var(--rfp-border);
        padding: 6px 0;
    }
    .rfp-matrix tr.rfp-matrix-odd { background: #f9f9f9; }
    .rfp-matrix-rowlabel {
        grid-column: 1 / -1;
        border: none;
        border-bottom: 1px solid var(--rfp-border);
        background: var(--rfp-secondary);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .4px;
        padding: 5px 10px;
        white-space: normal;
        min-width: unset;
    }
    .rfp-matrix-cell {
        border: none;
        border-right: 1px solid var(--rfp-border);
        padding: 0;
        position: relative;
    }
    .rfp-matrix-cell::before {
        content: attr(data-col);
        display: block;
        font-size: 10px;
        font-weight: 700;
        color: var(--rfp-muted);
        padding: 3px 8px 0;
        text-transform: uppercase;
        letter-spacing: .3px;
    }
    .rfp-matrix-inp {
        padding: 4px 8px 6px;
        text-align: left;
        font-size: 13px;
        min-width: unset;
        width: 100%;
    }
    /* Regular data tables (Messwerte etc.) stay scrollable */
    .rfp-table-wrap .rfp-matrix-scroll { overflow-x: auto; }
    .rfp-table-wrap .rfp-matrix { min-width: 420px; display: table; }
    .rfp-table-wrap .rfp-matrix thead { display: table-header-group; }
    .rfp-table-wrap .rfp-matrix tbody { display: table-row-group; }
    .rfp-table-wrap .rfp-matrix tr { display: table-row; border: none; padding: 0; }
    .rfp-table-wrap .rfp-matrix-cell::before { display: none; }
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width:700px) {
    .rfp-card { padding:16px 14px; }
    .rfp-hero-inner { flex-direction:column; padding:24px 18px; gap:18px; }
    .rfp-hero-logo-wrap { min-width:auto; align-self:flex-start; }
    .rfp-hero-title { font-size:20px; }
    .rfp-fields-grid, .rfp-fields-grid--2 { grid-template-columns:1fr; }
    .rfp-type-grid { grid-template-columns:1fr 1fr; }
    .rfp-section-body { grid-template-columns:1fr; }
    .rfp-nav-btn { padding:9px 14px; font-size:13px; }
    .rfp-nav-fade { display:block; }
    .rfp-steps { flex-wrap:wrap; gap:8px; }
    .rfp-step-sep { display:none; }
    .rfp-about-inner { padding:20px 18px; }
    .rfp-lock-box { padding:22px 20px; }
    .rfp-branding-overlay { align-items:flex-start; padding-top:20px; }
    .rfp-drop-3 { display:none; } /* hide 3rd drop on narrow screens */
}
@media (max-width:420px) {
    .rfp-type-grid { grid-template-columns:1fr; }
    .rfp-hero-actions,.rfp-done-actions { flex-direction:column; }
    .rfp-form-foot { justify-content:center; }
    .rfp-matrix tr { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   SEO LANDING PAGE (nicht eingeloggte Besucher)
══════════════════════════════════════════════════════ */
.rfp-seo-landing {
    font-family: 'Roboto', -apple-system, sans-serif;
    color: var(--rfp-text, #1a1a1a);
    max-width: 980px; margin: 0 auto;
}

/* Hero */
.rfp-seo-hero {
    background: linear-gradient(135deg, #f6851f 0%, #d4700f 100%);
    border-radius: 12px; overflow: hidden;
    padding: 40px 40px 36px;
    margin-bottom: 32px;
    position: relative;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.rfp-seo-hero-drop {
    position: absolute; border-radius: 50%;
    filter: blur(1px); pointer-events: none; z-index: 1;
}
.rfp-seo-d1 { width:70px;height:70px;top:-20px;right:80px;background:radial-gradient(circle at 40% 35%,rgba(255,230,100,.72),rgba(255,180,40,.4),transparent 70%);animation:rfp-drip1 6s ease-in-out infinite; }
.rfp-seo-d2 { width:50px;height:50px;top:-10px;right:200px;background:radial-gradient(circle at 40% 35%,rgba(7,200,120,.55),rgba(7,121,62,.32),transparent 70%);animation:rfp-drip2 8s ease-in-out infinite 1.5s; }
.rfp-seo-d3 { width:90px;height:90px;top:-30px;right:320px;background:radial-gradient(circle at 40% 35%,rgba(255,210,60,.5),rgba(246,133,31,.28),transparent 70%);animation:rfp-drip3 7s ease-in-out infinite 3s; }
@media (prefers-reduced-motion: reduce) { .rfp-seo-hero-drop { animation:none !important; opacity:.3; } }

.rfp-seo-hero-inner { position:relative;z-index:2;display:flex;align-items:flex-start;gap:24px;flex-wrap:wrap; }
.rfp-seo-logo-pill { background:#fff;border-radius:10px;padding:10px 18px;display:flex;align-items:center;justify-content:center;min-width:130px;min-height:54px;flex-shrink:0;box-shadow:0 2px 10px rgba(0,0,0,.18); }
.rfp-seo-logo-pill img { max-height:44px;max-width:170px;background:transparent;mix-blend-mode:multiply; }
.rfp-seo-hero-text { flex:1; min-width:220px; }
.rfp-seo-h1 { font-size:22px;font-weight:700;color:#fff;margin:0 0 10px;line-height:1.3;text-shadow:0 1px 4px rgba(0,0,0,.15); }
.rfp-seo-h1-sub { font-size:16px;font-weight:400;opacity:.9; }
.rfp-seo-hero-p { font-size:14px;color:rgba(255,255,255,.88);margin:0 0 20px;line-height:1.5; }
.rfp-seo-hero-btns { display:flex;gap:10px;flex-wrap:wrap; }

/* Buttons */
.rfp-seo-btn {
    display:inline-flex;align-items:center;gap:6px;
    padding:11px 22px;border-radius:8px;
    font-family:'Roboto',sans-serif;font-size:14px;font-weight:700;
    cursor:pointer;border:2px solid transparent;
    text-decoration:none;transition:all .18s;white-space:nowrap;
}
.rfp-seo-btn-green { background:#07793e;color:#fff;border-color:#07793e; }
.rfp-seo-btn-green:hover { background:#055e2f;border-color:#055e2f;transform:translateY(-1px);box-shadow:0 4px 12px rgba(7,121,62,.35);color:#fff; }
.rfp-seo-btn-outline { background:transparent;color:#fff;border-color:rgba(255,255,255,.6); }
.rfp-seo-btn-outline:hover { background:rgba(255,255,255,.15);border-color:#fff;color:#fff; }
/* Orange outline for non-hero contexts */
.rfp-seo-btn-orange { background:transparent;color:#f6851f;border-color:#f6851f; }
.rfp-seo-btn-orange:hover { background:#f6851f;color:#fff;transform:translateY(-1px); }
.rfp-seo-btn-lg { padding:14px 30px;font-size:16px; }

/* ── BRANDING HIGHLIGHT BANNER ──────────────────────── */
:root { --seo-primary:#f6851f; --seo-secondary:#07793e; }
.rfp-seo-branding-banner {
    background:#fff;
    border:2px solid #f6851f;
    border-left:5px solid #f6851f;
    border-radius:12px;
    margin-bottom:28px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(246,133,31,.12);
}
.rfp-seo-branding-banner-inner {
    display:flex;align-items:flex-start;gap:18px;
    padding:22px 24px;
}
.rfp-seo-branding-icon { font-size:36px;flex-shrink:0;margin-top:2px; }
.rfp-seo-branding-text { flex:1; }
.rfp-seo-branding-text > strong { font-size:16px;font-weight:700;color:#1a1a1a;display:block;margin-bottom:6px; }
.rfp-seo-branding-text > p { font-size:14px;color:#444;line-height:1.6;margin:0 0 16px; }
.rfp-seo-branding-tiers { display:flex;flex-direction:column;gap:10px; }
.rfp-seo-tier { display:flex;align-items:flex-start;gap:10px;font-size:13px;color:#444;line-height:1.5; }
.rfp-seo-tier-badge {
    flex-shrink:0;
    padding:3px 10px;border-radius:20px;
    font-size:11px;font-weight:700;white-space:nowrap;
    margin-top:2px;
}
.rfp-seo-tier-free { background:#f0faf4;color:#07793e;border:1px solid #a7dfbf; }
.rfp-seo-tier-pro  { background:#fff8f3;color:#f6851f;border:1px solid #fcd3a0; }
.rfp-seo-tier a { color:#f6851f;text-decoration:none;font-weight:600; }
.rfp-seo-tier a:hover { text-decoration:underline; }

/* Sections */
.rfp-seo-section { padding:32px 0; }
.rfp-seo-section--alt { background:#f9f9f7;border-radius:12px;padding:32px 28px;margin:8px 0; }
.rfp-seo-h2 { font-size:20px;font-weight:700;color:#1a1a1a;margin:0 0 20px;border-left:4px solid #f6851f;padding-left:12px; }
.rfp-seo-h3 { font-size:16px;font-weight:700;color:#07793e;margin:24px 0 8px; }

/* Protocol type cards */
.rfp-seo-types { display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px; }
.rfp-seo-type-card {
    background:#fff;border:1px solid #d9d9d9;border-radius:10px;
    padding:20px 16px;box-shadow:0 1px 4px rgba(0,0,0,.06);
    transition:border-color .18s,transform .15s,box-shadow .18s;
}
.rfp-seo-type-card:hover { border-color:#f6851f;transform:translateY(-2px);box-shadow:0 4px 14px rgba(246,133,31,.14); }
.rfp-seo-type-card h3 { font-size:14px;font-weight:700;margin:8px 0 8px;color:#1a1a1a; }
.rfp-seo-type-card p { font-size:13px;color:#555;line-height:1.55;margin:0 0 12px; }
.rfp-seo-icon { font-size:28px;display:block; }
.rfp-seo-norms { display:flex;flex-wrap:wrap;gap:4px; }
.rfp-seo-norms span { background:#f0faf4;color:#07793e;border:1px solid #a7dfbf;border-radius:4px;font-size:10px;font-weight:700;padding:2px 6px; }

/* Why section */
.rfp-seo-why { display:grid;grid-template-columns:1fr 340px;gap:32px;align-items:start; }
.rfp-seo-why-text p { font-size:14px;line-height:1.75;color:#333;margin:0 0 14px; }
.rfp-seo-why-text a { color:#f6851f;text-decoration:none;font-weight:500; }
.rfp-seo-why-text a:hover { color:#d4700f;text-decoration:underline; }
.rfp-seo-list { list-style:none;padding:0;margin:16px 0 0; }
.rfp-seo-list li { font-size:14px;padding:5px 0;color:#333;border-bottom:1px solid #eee; }
.rfp-seo-list li:last-child { border:none; }
.rfp-seo-cta-card {
    background:#fff;border:1.5px solid #d9d9d9;border-top:3px solid #f6851f;
    border-radius:10px;padding:24px;box-shadow:0 2px 8px rgba(0,0,0,.08);text-align:center;
}
.rfp-seo-cta-card h3 { font-size:17px;font-weight:700;margin:12px 0 10px; }
.rfp-seo-cta-card p { font-size:13px;color:#555;line-height:1.55;margin:0; }
.rfp-seo-cta-card a.rfp-seo-btn-green:hover { background:#055e2f;color:#fff; }
.rfp-seo-cta-card a.rfp-seo-btn-orange { color:#f6851f;border-color:#f6851f;background:transparent; }
.rfp-seo-cta-card a.rfp-seo-btn-orange:hover { background:#f6851f;color:#fff; }
.rfp-seo-cta-card a[style*="color:#999"] { font-size:12px;color:#888 !important; }
.rfp-seo-cta-card a[style*="color:#999"]:hover { color:#f6851f !important;text-decoration:underline; }
.rfp-seo-cta-icon { font-size:36px; }

/* SEO body text */
.rfp-seo-body { font-size:14px;line-height:1.8;color:#333; }
.rfp-seo-body p { margin:0 0 16px; }
.rfp-seo-body a { color:#f6851f;text-decoration:none;font-weight:500; }
.rfp-seo-body a:hover { color:#d4700f;text-decoration:underline; }
.rfp-seo-blog-links { display:flex;flex-direction:column;gap:10px;margin:20px 0; }
.rfp-seo-blog-link {
    display:flex;align-items:flex-start;gap:14px;padding:14px 16px;
    background:#f9f9f9;border:1px solid #d9d9d9;border-radius:8px;
    text-decoration:none;color:#1a1a1a;
    transition:border-color .18s,background .18s,transform .15s;
    font-size:14px;
}
.rfp-seo-blog-link:hover { border-color:#f6851f;background:#fff8f3;transform:translateX(3px);color:#1a1a1a; }
.rfp-seo-blog-link span:first-child { font-size:22px;flex-shrink:0;margin-top:2px; }
.rfp-seo-blog-link strong { display:block;font-size:14px;color:#1a1a1a; }
.rfp-seo-blog-link small { font-size:12px;color:#777;margin-top:3px;display:block; }

/* Final CTA */
.rfp-seo-final-cta { text-align:center;background:linear-gradient(135deg,#f6851f,#d4700f);border-radius:12px;padding:40px 24px;margin-top:8px; }
.rfp-seo-final-cta h2 { font-size:22px;font-weight:700;color:#fff;margin:0 0 10px; }
.rfp-seo-final-cta p { font-size:15px;color:rgba(255,255,255,.88);margin:0 0 24px; }
.rfp-seo-final-cta .rfp-seo-btn-green { box-shadow:0 4px 16px rgba(0,0,0,.2); }
.rfp-seo-final-cta .rfp-seo-btn-green:hover { box-shadow:0 6px 20px rgba(0,0,0,.28); }

/* SEO responsive */
@media (max-width:700px) {
    .rfp-seo-hero { padding:24px 18px 22px; }
    .rfp-seo-h1 { font-size:18px; }
    .rfp-seo-types { grid-template-columns:1fr 1fr; }
    .rfp-seo-why { grid-template-columns:1fr; }
    .rfp-seo-why-cta { order:-1; }
    .rfp-seo-section--alt { padding:20px 16px; }
    .rfp-seo-d3 { display:none; }
    .rfp-seo-branding-banner-inner { flex-direction:column; gap:12px; padding:18px 16px; }
    .rfp-seo-branding-icon { font-size:28px; margin-top:0; }
    .rfp-seo-tiers { gap:8px; }
}
@media (max-width:420px) {
    .rfp-seo-types { grid-template-columns:1fr; }
    .rfp-seo-hero-btns { flex-direction:column; }
    .rfp-seo-final-cta { padding:28px 16px; }
}
