/* ===================================
   BESTATTUNGSPLANER FRONTEND CSS v1.2.9
   Einheitliches Design für alle Fieldsets
   BEREINIGT - Alte Extras-Styles entfernt
   =================================== */

:root{
  --brand-primary:#1A1552;         /* Primär Indigo */
  --brand-primary-dark:#0F0B33;    /* Indigo dunkel */
  --brand-interact:#2B4E99;        /* Interaktiv Blau */
  --brand-accent:#597765;          /* Preis-Akzent Sage */
  --paper:#F7F6F2;                 /* Papier (warm) */
  --neutral:#6B7280;               /* Neutral Grau */
  --divider:#E5E7EB;               /* Linien/Trenner */
  --success:#10b981;               /* Erfolg Grün */
  --warning:#f59e0b;               /* Warnung Orange */
  --error:#ef4444;                 /* Fehler Rot */
}

/* ===================================
   PAKET-AUSWAHL
   =================================== */

/* Layout Pakete als Grid – gleiche Höhen */
.bp-packages{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px;
  align-items:stretch;
}
.bp-package-card{
  box-sizing:border-box;
  border:1px solid var(--divider);
  border-radius:8px;
  background:#fff;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  cursor:pointer;
  transition:border-color .2s, box-shadow .2s;
}
.bp-package-card:hover{
  border-color:var(--brand-interact);
  box-shadow:0 0 0 2px rgba(43,78,153,.15);
}
.bp-package-card.selected{
  border-color:var(--brand-primary);
  box-shadow:0 0 0 3px rgba(26,21,82,.20);
}

/* Titel */
.bp-title{
  font-size:1.2rem;
  font-weight:700;
  margin:0 0 8px 0;
  text-align:center;
}

/* Professionelles Grid-Layout für Extras */
.bp-extras-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    grid-auto-rows: 200px !important;
    gap: 20px !important;
    margin: 24px 0 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bp-extras-list {
        gap: 6px !important;
        margin: 8px 0 !important;
        grid-auto-rows: 140px !important;
    }
}

.bp-extra-item { 
    display: grid !important;
    grid-template-rows: 1fr auto auto !important; /* Inhalt, Preis, Mengenfeld */
    padding: 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    overflow: hidden !important;
}

.bp-extra-content {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
}

.bp-extra-text {
    flex: 1 !important;
}

.bp-extra-text strong {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.3 !important;
}

.bp-extra-price {
    text-align: right !important;
    font-weight: 700 !important;
    color: #059669 !important;
    margin: 8px 0 !important;
}

.bp-extra-qty {
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
}

.bp-extra-qty.show {
    display: flex !important;
}

/* Bild */
.bp-thumb{ position:relative; width:100%; aspect-ratio:520/320; overflow:hidden; }
.bp-thumb img.bp-thumb-img, .bp-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

/* "Mehr Informationen" Button – immer farbig, keine feste 44x44 mehr */
.bp-thumb .bp-info-btn{
  position:absolute; top:10px; right:10px; z-index:3;
  width:auto !important; height:auto !important;
  padding:8px 12px !important;
  border:none !important;
  border-radius:9999px !important;
  background:var(--brand-interact) !important;
  color:#fff !important;
  font-weight:700; font-size:.9rem; line-height:1;
  cursor:pointer;
}
.bp-thumb .bp-info-btn:hover{ background:var(--brand-primary) !important; }

/* Preise */
.bp-price{ font-weight:700; font-size:1.2em; margin-top:6px; text-align:center; }
.bp-old-price{ text-decoration:line-through; color:#888; text-align:center; }

/* Auswählen-Button in Karte */
.bp-select-btn{
  width:100%;
  padding:10px 16px;
  border:1px solid #222;
  background:#fff;
  cursor:pointer;
  border-radius:8px;
  font-weight:600;
  font-size:16px;
  line-height:1.2;
  transition:background .2s;
}
.bp-select-btn:hover{ background:#f3f3f3; }

/* ===================================
   NAVIGATION UND BUTTONS
   =================================== */

/* Navigation unter Boxen */
.bp-nav{ margin-top:20px; display:flex; gap:12px; flex-wrap:wrap; }

/* Buttons – EINHEITLICH */
.bp-btn-primary,
#bp-offer-email,#bp-order-now,
#bp-go-to-summary,#bp-go-to-contact,
#bp-final-form button[type=submit],
#bp-order-continue{
  -webkit-appearance:none; appearance:none;
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:12px 16px; min-height:46px;
  border-radius:8px; border:1px solid var(--brand-primary);
  background:var(--brand-primary); color:#fff;
  font-weight:700; font-size:16px; line-height:1.2; cursor:pointer;
  box-sizing:border-box; transition:background .2s, filter .2s;
}
.bp-btn-primary:hover,
#bp-offer-email:hover,#bp-order-now:hover,
#bp-go-to-summary:hover,#bp-go-to-contact:hover,
#bp-final-form button[type=submit]:hover,
#bp-order-continue:hover{ 
  background:var(--brand-primary-dark); 
}

.bp-btn-secondary{
  -webkit-appearance:none; appearance:none;
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:12px 16px; min-height:46px;
  border-radius:8px; border:1px solid #222;
  background:#f5f5f5; color:#111; font-weight:600; font-size:16px; line-height:1.2;
  cursor:pointer; box-sizing:border-box; transition:background .2s;
}
.bp-btn-secondary:hover{ background:#e2e2e2; }

/* ===================================
   FIELDSETS - EINHEITLICHES DESIGN
   =================================== */

/* Basis-Fieldset Styling */
.bp-fieldset {
    border: 2px solid var(--divider);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: #fafbfc;
    position: relative;
}

.bp-fieldset legend {
    background: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    color: var(--brand-primary);
    border: 2px solid var(--divider);
    font-size: 1.1rem;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Fieldset-spezifische Icons */
.bp-fieldset legend::before {
    font-size: 1.2rem;
}

/* Icons für verschiedene Fieldsets */
fieldset[class*="verstorbene"] legend::before,
fieldset[class*="deceased"] legend::before {
    content: "👤";
}

fieldset[class*="auftraggeber"] legend::before,
fieldset[class*="customer"] legend::before {
    content: "📋";
}

.bp-signature-fieldset legend::before {
    content: "✍️";
}

/* Legacy fieldset ohne Icons */
.bp-fieldset:not([class*="signature"]) legend::before {
    content: "📝";
}

/* Grid-Layout für Felder */
.bp-grid-2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bp-grid-3{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bp-grid-span-2{
    grid-column: span 2;
}

/* Feld-Styling */
.bp-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.bp-field label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.95rem;
}

.bp-field input,
.bp-field select,
.bp-field textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.bp-field input:focus,
.bp-field select:focus,
.bp-field textarea:focus {
    outline: none;
    border-color: var(--brand-interact);
    box-shadow: 0 0 0 3px rgba(43, 78, 153, 0.1);
}

.bp-field input[required],
.bp-field select[required] {
    border-left: 4px solid var(--error);
}

.bp-field input[required]:valid,
.bp-field select[required]:valid {
    border-left: 4px solid var(--success);
}

/* Inline-Elemente (Radio-Buttons, Checkboxes) */
.bp-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.bp-inline label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.bp-inline label:hover {
    background: #f3f4f6;
}

.bp-inline input[type="radio"],
.bp-inline input[type="checkbox"] {
    margin: 0;
    transform: scale(1.1);
}

/* Conditional Fields (per JS gesteuert) */
[data-block] {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

[data-block][style*="display: none"] {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* ===================================
   ANGEBOTS-FORMULAR - ANGEPASST AN AUFTRAGSFORMULAR
   =================================== */

/* Angebots-Schritt Container */
.bp-step-quote {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.bp-step-quote h2 {
    color: var(--brand-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--divider);
    padding-bottom: 1rem;
}

/* Angebots-Formular als Fieldset */
#bp-quote-form {
    background: #fafbfc;
    border: 2px solid var(--divider);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

/* Pseudo-Legend für Angebots-Formular */
#bp-quote-form::before {
    content: "📋 Ihre Kontaktdaten für das Angebot";
    position: absolute;
    top: -12px;
    left: 1rem;
    background: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    color: var(--brand-primary);
    border: 2px solid var(--divider);
    font-size: 1.1rem;
    z-index: 1;
}

/* Grid-Layout für Angebots-Felder */
.bp-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0 1.5rem 0;
}

/* Feld-Styling für Angebots-Formular */
.bp-form-grid p {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.bp-form-grid label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bp-form-grid input,
.bp-form-grid select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
    box-sizing: border-box;
}

.bp-form-grid input:focus,
.bp-form-grid select:focus {
    outline: none;
    border-color: var(--brand-interact);
    box-shadow: 0 0 0 3px rgba(43, 78, 153, 0.1);
}

.bp-form-grid input[required],
.bp-form-grid select[required] {
    border-left: 4px solid var(--error);
}

.bp-form-grid input[required]:valid,
.bp-form-grid select[required]:valid {
    border-left: 4px solid var(--success);
}

/* Privacy Checkbox Styling */
.bp-privacy {
    background: #f0f4f8;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--brand-interact);
    margin: 1.5rem 0;
}

.bp-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.5;
    font-size: 0.95rem;
    color: #374151;
    margin: 0;
}

.bp-privacy input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.bp-privacy a {
    color: var(--brand-interact);
    text-decoration: none;
    font-weight: 500;
}

.bp-privacy a:hover {
    text-decoration: underline;
}

/* Honeypot verstecken */
.bp-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
}

/* Hinweis-Text */
.bp-hint {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

/* Formular-Aktionen */
.bp-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider);
}

/* Button-Styling einheitlich mit Auftragsformular */
.bp-form-actions button[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    min-height: 46px;
    border-radius: 8px;
    border: 1px solid var(--brand-primary);
    background: var(--brand-primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s, filter 0.2s;
}

.bp-form-actions button[type="submit"]:hover {
    background: var(--brand-primary-dark);
}

.bp-form-actions button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bp-form-actions button[type="button"] {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    min-height: 46px;
    border-radius: 8px;
    border: 1px solid #6b7280;
    background: #f5f5f5;
    color: #111;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s;
}

.bp-form-actions button[type="button"]:hover {
    background: #e2e2e2;
}

/* Pflichtfeld-Hinweis */
.bp-required-note {
    font-size: 0.9rem;
    color: var(--neutral);
    margin: 1rem 0 0 0;
    font-style: italic;
}

/* Erfolgsmeldung */
#bp-quote-result {
    margin-top: 1.5rem;
}

#bp-quote-result .success,
#bp-quote-result .bp-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 1rem;
    color: #065f46;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#bp-quote-result .success::before,
#bp-quote-result .bp-success::before {
    content: "✓";
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===================================
   UNTERSCHRIFTEN-SPEZIFISCHES STYLING
   =================================== */

/* Rechtliche Hinweise */
.bp-signature-agreement {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f0f4f8;
    border-radius: 8px;
    border-left: 4px solid var(--brand-interact);
}

.bp-legal-text p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.bp-legal-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.bp-link-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--brand-interact);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.bp-link-button:hover {
    background: var(--brand-primary);
    color: white;
}

/* Fehleranzeige */
.bp-error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #a00;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modus-Auswahl */
.bp-signature-mode-selection {
    margin-bottom: 1.5rem;
}

.bp-subsection-title {
    color: var(--brand-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.bp-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bp-radio-option {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border: 2px solid var(--divider);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.bp-radio-option:hover {
    border-color: var(--brand-interact);
    background: #f8f9ff;
}

.bp-radio-option input[type="radio"] {
    margin: 0;
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.bp-radio-option input[type="radio"]:checked + .bp-radio-indicator + .bp-radio-content {
    color: var(--brand-primary);
}

.bp-radio-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
}

.bp-radio-icon {
    font-size: 1.5rem;
    margin-top: 0.1rem;
}

.bp-radio-label {
    flex: 1;
}

.bp-radio-label strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--brand-primary);
}

.bp-radio-label small {
    color: var(--neutral);
    font-size: 0.9rem;
}

/* Canvas-Container */
.bp-digital-signature-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--divider);
}

.bp-signature-canvas-wrapper {
    text-align: center;
    margin-bottom: 1rem;
}

.bp-signature-canvas {
    max-width: 100%;
    display: block;
    margin: 0 auto 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: crosshair;
}

.bp-signature-status {
    margin: 1rem 0;
}

.bp-signature-empty,
.bp-signature-valid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

.bp-signature-empty {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.bp-signature-valid {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.bp-signature-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bp-button {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.bp-button-secondary {
    background: var(--neutral);
    color: white;
}

.bp-button-secondary:hover {
    background: #4b5563;
}

.bp-signature-hint {
    text-align: center;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 6px;
    border: 1px solid #bae6fd;
}

/* Metadata-Felder */
.bp-signature-metadata {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--divider);
}

.bp-signature-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bp-field-group {
    display: flex;
    flex-direction: column;
}

.bp-field-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.bp-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.bp-input:focus {
    outline: none;
    border-color: var(--brand-interact);
    box-shadow: 0 0 0 3px rgba(43, 78, 153, 0.1);
}

/* Manueller Unterschriften-Container */
.bp-manual-signature-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--divider);
}

.bp-info-box {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.bp-info-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.bp-info-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.bp-info-content {
    flex: 1;
}

.bp-info-content p {
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
}

.bp-manual-signature-steps {
    margin-bottom: 1.5rem;
}

.bp-step-list {
    padding-left: 1.5rem;
    line-height: 1.6;
}

.bp-step-list li {
    margin-bottom: 0.75rem;
}

.bp-return-contact {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.bp-company-address {
    font-style: normal;
    line-height: 1.6;
}

.bp-company-address a {
    color: var(--brand-interact);
    text-decoration: none;
}

.bp-company-address a:hover {
    text-decoration: underline;
}

.bp-manual-confirmation {
    background: #f0f4f8;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--brand-interact);
}

.bp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.5;
}

.bp-checkbox-label input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
    margin-top: 0.1rem;
}

.bp-checkbox-text {
    flex: 1;
}

/* ===================================
   MODAL UND ZUSAMMENFASSUNG
   =================================== */

/* Modal */
.bp-modal-inner{
  background:#fff; padding:20px; border:1px solid #ccc; max-width:600px; margin:40px auto; border-radius:8px;
}
#bp-modal{ position:fixed; inset:0; background:rgba(0,0,0,.35); display:none; align-items:center; justify-content:center; z-index:9999; }

/* Zusammenfassung im Corporate Design */
.bp-summary-box{
    border: 2px solid var(--divider);
    border-radius: 8px;
    background: #fafbfc; /* Gleicher heller Hintergrund wie Extras */
    padding: 20px;
    margin: 20px 0;
}

.bp-summary-head h3{ 
    margin: 0 0 16px 0; 
    font-size: 1.2rem; 
    font-weight: 600;
    color: var(--brand-primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--divider);
}

.bp-summary-list{ 
    display: flex; 
    flex-direction: column; 
    gap: 8px;
}

.bp-summary-row{
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    gap: 24px; 
    padding: 12px 0; 
    border-bottom: 1px dashed var(--divider);
}

.bp-summary-row:last-child{ 
    border-bottom: none; 
}

.bp-summary-label{ 
    font-weight: 500;
    color: var(--brand-primary-dark);
    flex: 1;
}

.bp-summary-price{ 
    white-space: nowrap;
    font-weight: 600;
    color: var(--brand-accent);
    font-size: 1.1rem;
}

.bp-summary-total{
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    gap: 24px;
    padding: 16px 0 0 0; 
    margin-top: 16px; 
    border-top: 2px solid var(--brand-primary);
    font-size: 1.25rem; 
    font-weight: 700;
}

.bp-summary-total .bp-summary-label {
    color: var(--brand-primary);
    font-weight: 700;
}

.bp-summary-total .bp-summary-price {
    color: var(--brand-accent);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ===================================
   LEGACY FORM SUPPORT
   =================================== */

.bp-legal{ font-size:.92rem; color:#333; margin-top:8px; }

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .bp-fieldset {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .bp-fieldset legend {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        margin-left: 0.5rem;
    }
    
    .bp-grid-2,
    .bp-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .bp-grid-span-2 {
        grid-column: span 1;
    }
    
    .bp-inline {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .bp-legal-links {
        flex-direction: column;
    }
    
    .bp-radio-group {
        gap: 0.5rem;
    }
    
    .bp-radio-option {
        padding: 0.75rem;
    }
    
    .bp-signature-canvas {
        width: 100%;
        height: 150px;
    }
    
    .bp-signature-fields {
        grid-template-columns: 1fr;
    }
	
	.bp-extras-list { 
        gap: 6px !important;
        margin: 8px 0 !important;
    }
    
    /* Mobile Anpassungen für Angebots-Formular */
    .bp-step-quote {
        padding: 0.5rem;
    }
    
    .bp-step-quote h2 {
        font-size: 1.5rem;
    }
    
    #bp-quote-form {
        padding: 1rem;
        border-radius: 8px;
    }
    
    #bp-quote-form::before {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        left: 0.5rem;
        content: "📋 Kontaktdaten";
    }
    
    .bp-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .bp-form-grid input,
    .bp-form-grid select {
        padding: 0.625rem;
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
    
    .bp-form-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .bp-form-actions button {
        width: 100%;
    }
    
    .bp-privacy {
        padding: 0.75rem;
    }
    
    .bp-hint {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width:640px){
  .bp-nav{ flex-direction:column; }
}

@media (max-width: 480px) {
    .bp-fieldset {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .bp-field input,
    .bp-field select,
    .bp-field textarea {
        padding: 0.625rem;
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
    
    /* Weitere Mobile Anpassungen für Angebots-Formular */
    #bp-quote-form {
        padding: 0.75rem;
        margin: 1rem 0;
    }
    
    .bp-form-grid {
        margin: 1rem 0;
    }
}

/* ===================================
   DRUCKEN
   =================================== */

@media print {
    .bp-fieldset {
        break-inside: avoid;
    }
    
    .bp-signature-canvas {
        border: 2px solid #000;
    }
    
    .bp-button,
    .bp-btn-primary,
    .bp-btn-secondary {
        display: none;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.bp-radio-option:focus-within {
    outline: 2px solid var(--brand-interact);
    outline-offset: 2px;
}

.bp-checkbox-label:focus-within {
    outline: 2px solid var(--brand-interact);
    outline-offset: 2px;
    border-radius: 4px;
}

.bp-field input:focus,
.bp-field select:focus,
.bp-field textarea:focus {
    outline: none;
    border-color: var(--brand-interact);
    box-shadow: 0 0 0 3px rgba(43, 78, 153, 0.1);
}

/* ===================================
   ANIMATIONS
   =================================== */

/* Animation für Modusumschaltung */
.bp-digital-signature-container,
.bp-manual-signature-container {
    transition: opacity 0.3s ease-in-out;
}

.bp-digital-signature-container[style*="display: none"],
.bp-manual-signature-container[style*="display: none"] {
    opacity: 0;
}

/* Nuclear CSS - überschreibt garantiert alles */
.bp-extra-item {
    height: 180px !important;
    min-height: 180px !important; 
    max-height: 180px !important;
}

.bp-extra-item {
    height: 180px !important;
}

.bp-extra-item {
    height: 180px !important;
}

/* Dreifache Regel für maximale Spezifität */
.bp-extra-item, .bp-extra-item, .bp-extra-item {
    height: 180px !important;
    box-sizing: border-box !important;
}