/**
 * Schilcher User Service Plugin Styles
 * Unified CSS for all user management components
 * Based on Schilcher Käse Brand Style Guide
 *
 * IMPORTANT: This file uses centralized CSS variables from schilcher-variables.css
 * All styling uses rem units (scaled at 70%) and CSS custom properties for consistency
 * Strictly enforces 5-size type scale for consistency
 */

/* =====================================
   LOGIN PAGE STYLES
   ===================================== */

.schilcher-login-page-wrapper {
    font-family: var(--schilcher-font-family);
    max-width: 42rem;  /* 672px → 42rem, effective ~537.6px at 80% */
    margin: var(--schilcher-space-3xl) auto;  /* 40px → 2.5rem */
    padding: var(--schilcher-space-lg);  /* 20px → 1.25rem */
    color: var(--schilcher-text-primary);
}

.schilcher-logo {
    margin-bottom: var(--schilcher-space-2xl);  /* 30px → 1.875rem */
    text-align: center;
}

.schilcher-logo img {
    max-width: 17.5rem;  /* 280px → 17.5rem, effective ~224px */
    width: 100%;
    height: auto;
    display: inline-block;
}

.schilcher-login-header {
    background: var(--schilcher-bg-secondary);
    color: var(--schilcher-text-primary);
    padding: var(--schilcher-space-3xl) var(--schilcher-space-2xl);  /* 40px 30px */
    border-radius: var(--schilcher-radius-xl) var(--schilcher-radius-xl) 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--schilcher-border-color-strong);
    border-bottom: none;
}

.schilcher-login-header::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.875rem;  /* -30px → -1.875rem */
    width: 5rem;  /* 80px → 5rem */
    height: 5rem;
    background: var(--schilcher-accent-yellow);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.schilcher-login-header h1 {
    font-size: var(--schilcher-text-display);  /* DISPLAY - page title */
    margin: 0 0 var(--schilcher-space-sm) 0;  /* 12px */
    font-weight: var(--schilcher-font-weight-bold);
    position: relative;
    z-index: 1;
    color: var(--schilcher-primary-text-brown);
}

.schilcher-login-header p {
    font-size: var(--schilcher-text-body);  /* BODY - normal text */
    margin: 0;
    position: relative;
    z-index: 1;
    color: var(--schilcher-text-secondary);
    line-height: var(--schilcher-line-height-normal);
}

.schilcher-login-container {
    background: var(--schilcher-bg-primary);
    padding: var(--schilcher-space-3xl) var(--schilcher-space-2xl);  /* 40px 30px */
    border: 1px solid var(--schilcher-border-color-strong);
    border-top: none;
    border-radius: 0 0 var(--schilcher-radius-xl) var(--schilcher-radius-xl);
    box-shadow: var(--schilcher-shadow-lg);
}

.schilcher-login-section {
    margin-bottom: var(--schilcher-space-2xl);  /* 30px */
}

.schilcher-login-section:last-child {
    margin-bottom: 0;
}

.schilcher-section-title {
    font-size: var(--schilcher-text-heading);  /* HEADING - section headers */
    font-weight: var(--schilcher-font-weight-bold);
    color: var(--schilcher-text-primary);
    margin-bottom: var(--schilcher-space-lg);  /* 20px */
    padding-bottom: var(--schilcher-space-sm);  /* 12px */
    border-bottom: 2px solid var(--schilcher-border-color);
}

/* Message Styles */
.schilcher-login-error {
    background: #ffe6e6;
    border: 1px solid #ff9999;
    border-radius: var(--schilcher-radius-sm);
    padding: var(--schilcher-space-sm) var(--schilcher-space-md);  /* 12px 16px */
    margin-bottom: var(--schilcher-space-lg);  /* 20px */
    color: var(--schilcher-error);
    font-size: var(--schilcher-text-small);  /* SMALL - secondary info */
    line-height: var(--schilcher-line-height-normal);
}

.schilcher-login-success {
    background: #e6ffe6;
    border: 1px solid #99cc99;
    border-radius: var(--schilcher-radius-sm);
    padding: var(--schilcher-space-sm) var(--schilcher-space-md);  /* 12px 16px */
    margin-bottom: var(--schilcher-space-lg);  /* 20px */
    color: var(--schilcher-success);
    font-size: var(--schilcher-text-small);  /* SMALL - secondary info */
    line-height: var(--schilcher-line-height-normal);
}

/* Form Input Styles */
.schilcher-login-page-wrapper input[type="text"],
.schilcher-login-page-wrapper input[type="email"],
.schilcher-login-page-wrapper input[type="password"],
.schilcher-login-page-wrapper input[type="tel"],
.schilcher-login-page-wrapper textarea {
    width: 100%;
    padding: var(--schilcher-space-sm) var(--schilcher-space-md);  /* 12px 16px */
    border: 1px solid var(--schilcher-border-color-strong);
    border-radius: var(--schilcher-radius-sm);
    font-size: var(--schilcher-text-body);  /* BODY - form inputs */
    font-family: var(--schilcher-font-family);
    background-color: var(--schilcher-bg-primary);
    color: var(--schilcher-text-primary);
    transition: var(--schilcher-transition-base);
    margin-bottom: var(--schilcher-space-md);  /* 16px */
    box-sizing: border-box;
}

/* Password Container with Toggle Button */
.schilcher-password-container {
    position: relative;
    width: 100%;
    margin-bottom: var(--schilcher-space-md);  /* 16px */
}

.schilcher-password-container input[type="password"],
.schilcher-password-container input[type="text"] {
    width: 100%;
    padding: var(--schilcher-space-sm) 2.8125rem var(--schilcher-space-sm) var(--schilcher-space-md);  /* 12px 45px 12px 16px */
    border: 1px solid var(--schilcher-border-color-strong);
    border-radius: var(--schilcher-radius-sm);
    font-size: var(--schilcher-text-body);  /* BODY - form inputs */
    font-family: var(--schilcher-font-family);
    background-color: var(--schilcher-bg-primary);
    color: var(--schilcher-text-primary);
    transition: var(--schilcher-transition-base);
    box-sizing: border-box;
    margin-bottom: 0;
}

.schilcher-password-container input:focus {
    outline: none;
    border-color: var(--schilcher-text-primary);
    box-shadow: 0 0 0 0.1875rem rgba(73, 57, 27, 0.1);  /* 3px */
}

.schilcher-password-toggle-btn {
    position: absolute;
    top: 50%;
    right: var(--schilcher-space-sm);  /* 12px */
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--schilcher-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--schilcher-space-xs);  /* 4px */
    transition: var(--schilcher-transition-base);
    user-select: none;
}

.schilcher-password-toggle-btn:hover {
    color: var(--schilcher-text-primary);
}

.schilcher-password-toggle-btn svg {
    display: block;
    width: var(--schilcher-icon-sm);  /* 18px → 1.125rem */
    height: var(--schilcher-icon-sm);
}

.schilcher-login-page-wrapper input[type="text"]:focus,
.schilcher-login-page-wrapper input[type="email"]:focus,
.schilcher-login-page-wrapper input[type="password"]:focus,
.schilcher-login-page-wrapper input[type="tel"]:focus,
.schilcher-login-page-wrapper textarea:focus {
    outline: none;
    border-color: var(--schilcher-text-primary);
    box-shadow: 0 0 0 0.1875rem rgba(73, 57, 27, 0.1);  /* 3px */
}

.schilcher-login-page-wrapper textarea {
    min-height: 5rem;  /* 80px → 5rem */
    resize: vertical;
}

/* Button Styles */
.schilcher-login-page-wrapper input[type="submit"],
.schilcher-login-page-wrapper button[type="submit"],
.schilcher-submit-button {
    display: inline-block;
    padding: var(--schilcher-space-sm) var(--schilcher-space-2xl);  /* 12px 32px */
    background-color: var(--schilcher-text-primary);
    color: var(--schilcher-bg-primary);
    font-weight: var(--schilcher-font-weight-semibold);
    font-size: var(--schilcher-text-body);  /* BODY - button text */
    border: none;
    border-radius: var(--schilcher-radius-sm);
    cursor: pointer;
    transition: var(--schilcher-transition-base);
    text-decoration: none;
    text-align: center;
    width: 100%;
    margin-top: var(--schilcher-space-xs);  /* 8px */
    box-sizing: border-box;
    font-family: var(--schilcher-font-family);
}

.schilcher-login-page-wrapper input[type="submit"]:hover,
.schilcher-login-page-wrapper button[type="submit"]:hover,
.schilcher-submit-button:hover {
    background-color: var(--schilcher-primary-text-brown);
    transform: translateY(-1px);
    box-shadow: var(--schilcher-shadow-md);
}

.schilcher-login-page-wrapper input[type="submit"]:active,
.schilcher-login-page-wrapper button[type="submit"]:active,
.schilcher-submit-button:active {
    transform: translateY(0);
}

.schilcher-login-page-wrapper input[type="submit"]:disabled,
.schilcher-login-page-wrapper button[type="submit"]:disabled,
.schilcher-submit-button:disabled {
    background-color: var(--schilcher-text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.schilcher-login-page-wrapper label {
    display: block;
    margin-bottom: var(--schilcher-space-xs);  /* 8px */
    font-weight: var(--schilcher-font-weight-semibold);
    color: var(--schilcher-text-primary);
    font-size: var(--schilcher-text-small);  /* SMALL - label text */
}

.schilcher-login-page-wrapper input[type="checkbox"],
.schilcher-login-page-wrapper input[type="radio"] {
    width: var(--schilcher-icon-sm);  /* 18px */
    height: var(--schilcher-icon-sm);
    margin-right: var(--schilcher-space-xs);  /* 8px */
    accent-color: var(--schilcher-text-primary);
    vertical-align: middle;
}

.schilcher-checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: var(--schilcher-space-lg);  /* 20px */
}

.schilcher-checkbox-wrapper input[type="checkbox"] {
    margin: 0;
    margin-right: var(--schilcher-space-xs);  /* 8px */
    flex-shrink: 0;
}

.schilcher-checkbox-wrapper label {
    margin: 0;
    font-size: var(--schilcher-text-small);  /* SMALL - label text */
    cursor: pointer;
    line-height: var(--schilcher-line-height-tight);
}

.schilcher-login-page-wrapper a {
    color: var(--schilcher-text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--schilcher-transition-base);
}

.schilcher-login-page-wrapper a:hover {
    color: var(--schilcher-text-secondary);
}

/* Forgot Password Link */
.schilcher-forgot-password-wrapper,
.schilcher-back-to-login-wrapper {
    text-align: center;
    margin-top: var(--schilcher-space-md);  /* 16px */
}

.schilcher-forgot-password-link,
.schilcher-back-to-login-link {
    font-size: var(--schilcher-text-small);  /* SMALL - secondary links */
    color: var(--schilcher-text-secondary) !important;
    text-decoration: none;
    transition: var(--schilcher-transition-base);
}

.schilcher-forgot-password-link:hover,
.schilcher-back-to-login-link:hover {
    color: var(--schilcher-text-primary) !important;
    text-decoration: underline;
}

/* Info Text */
.schilcher-info-text {
    background: var(--schilcher-bg-tertiary);
    border: 1px solid var(--schilcher-border-color-strong);
    border-radius: var(--schilcher-radius-md);
    padding: var(--schilcher-space-md);  /* 16px */
    margin-bottom: var(--schilcher-space-lg);  /* 20px */
    font-size: var(--schilcher-text-small);  /* SMALL - info text */
    color: var(--schilcher-text-secondary);
    line-height: var(--schilcher-line-height-normal);
}

/* Additional Info Box */
.schilcher-info-box {
    background: var(--schilcher-bg-tertiary);
    border: 1px solid var(--schilcher-border-color-strong);
    border-radius: var(--schilcher-radius-md);
    padding: var(--schilcher-space-lg);  /* 20px */
    margin-top: var(--schilcher-space-2xl);  /* 30px */
    text-align: center;
}

.schilcher-info-box h3 {
    font-size: var(--schilcher-text-heading);  /* HEADING - box header */
    color: var(--schilcher-text-primary);
    margin: 0 0 var(--schilcher-space-sm) 0;  /* 12px */
    font-weight: var(--schilcher-font-weight-bold);
}

.schilcher-info-box p {
    font-size: var(--schilcher-text-small);  /* SMALL - info text */
    color: var(--schilcher-text-secondary);
    margin: 0 0 var(--schilcher-space-md) 0;  /* 16px */
    line-height: var(--schilcher-line-height-normal);
}

.schilcher-btn-secondary {
    display: inline-block;
    padding: 0.625rem var(--schilcher-space-xl);  /* 10px 24px */
    background-color: transparent;
    color: var(--schilcher-text-primary);
    font-weight: var(--schilcher-font-weight-semibold);
    font-size: var(--schilcher-text-small);  /* SMALL - button text */
    border: 2px solid var(--schilcher-text-primary);
    border-radius: var(--schilcher-radius-sm);
    cursor: pointer;
    transition: var(--schilcher-transition-base);
    text-decoration: none;
    text-align: center;
}

.schilcher-btn-secondary:hover {
    background-color: var(--schilcher-text-primary);
    color: var(--schilcher-bg-primary);
}

/* Contact Info */
.schilcher-contact-info {
    margin-top: var(--schilcher-space-md);  /* 16px */
}

.schilcher-contact-info p {
    margin: var(--schilcher-space-xs) 0;  /* 8px */
    line-height: var(--schilcher-line-height-relaxed);
}

.schilcher-contact-info a {
    color: var(--schilcher-text-primary);
    text-decoration: underline;
    font-weight: var(--schilcher-font-weight-semibold);
}

.schilcher-contact-info a:hover {
    color: var(--schilcher-primary-text-brown);
}

/* Privacy Notice */
.schilcher-privacy-notice {
    background: var(--schilcher-bg-tertiary);
    border: 1px solid var(--schilcher-border-color-strong);
    border-radius: var(--schilcher-radius-md);
    padding: var(--schilcher-space-lg);  /* 20px */
    margin: var(--schilcher-space-lg) 0;  /* 20px */
    text-align: center;
}

.schilcher-privacy-notice p {
    font-size: var(--schilcher-text-small);  /* SMALL - legal text */
    color: var(--schilcher-text-secondary);
    margin: 0;
    line-height: var(--schilcher-line-height-relaxed);
}

.schilcher-privacy-notice a {
    color: var(--schilcher-text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: var(--schilcher-font-weight-semibold);
    transition: var(--schilcher-transition-base);
}

.schilcher-privacy-notice a:hover {
    color: var(--schilcher-primary-text-brown);
}

/* Trust Badge */
.schilcher-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--schilcher-space-xs);  /* 8px */
    margin-top: 0.625rem;  /* 10px */
    color: var(--schilcher-text-secondary);
    font-size: var(--schilcher-text-tiny);  /* TINY - badge text */
}

.schilcher-trust-badge-icon {
    color: var(--schilcher-text-primary);
    font-size: var(--schilcher-text-body);  /* BODY - icon size */
}

/* Password Requirements */
.schilcher-password-requirements {
    background: var(--schilcher-bg-tertiary);
    border: 1px solid var(--schilcher-border-color-strong);
    border-radius: var(--schilcher-radius-md);
    padding: var(--schilcher-space-md);  /* 16px */
    margin-bottom: var(--schilcher-space-lg);  /* 20px */
    font-size: var(--schilcher-text-small);  /* SMALL - helper text */
    color: var(--schilcher-text-secondary);
    line-height: var(--schilcher-line-height-normal);
}

.schilcher-password-requirements ul {
    margin: var(--schilcher-space-xs) 0 0 0;  /* 8px */
    padding-left: var(--schilcher-space-lg);  /* 20px */
}

.schilcher-password-requirements li {
    margin-bottom: var(--schilcher-space-xs);  /* 4px */
}

/* Password Strength Indicator */
.schilcher-password-strength {
    margin-top: var(--schilcher-space-xs);  /* 8px */
    margin-bottom: var(--schilcher-space-md);  /* 16px */
}

.schilcher-password-strength-indicator {
    height: 0.25rem;  /* 4px */
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--schilcher-space-xs);  /* 8px */
}

.schilcher-password-strength-bar {
    height: 100%;
    transition: var(--schilcher-transition-slow);
    width: 0%;
    background: #ff4444;
}

.schilcher-password-strength-bar.weak {
    width: 25%;
    background: #ff4444;
}

.schilcher-password-strength-bar.fair {
    width: 50%;
    background: #ff8800;
}

.schilcher-password-strength-bar.good {
    width: 75%;
    background: #88cc00;
}

.schilcher-password-strength-bar.strong {
    width: 100%;
    background: #00aa00;
}

.schilcher-password-strength-text {
    font-size: var(--schilcher-text-tiny);  /* TINY - hint text */
    color: var(--schilcher-text-secondary);
}

/* =====================================
   REGISTRATION PAGE STYLES
   ===================================== */

.schilcher-dealer-registration-wrapper {
    font-family: var(--schilcher-font-family);
    max-width: 75rem;  /* 1200px → 75rem */
    margin: 0 auto;
    padding: var(--schilcher-space-lg);  /* 20px */
    color: var(--schilcher-text-primary);
}

.schilcher-registration-header {
    background: var(--schilcher-bg-secondary);
    color: var(--schilcher-text-primary);
    padding: 3.75rem var(--schilcher-space-3xl);  /* 60px 40px */
    border-radius: var(--schilcher-radius-xl) var(--schilcher-radius-xl) 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--schilcher-border-color-strong);
}

.schilcher-registration-header h2 {
    font-size: var(--schilcher-text-display);  /* DISPLAY - page title */
    margin: 0 0 var(--schilcher-space-md) 0;  /* 16px */
    font-weight: var(--schilcher-font-weight-bold);
    position: relative;
    z-index: 1;
    color: var(--schilcher-primary-text-brown);
}

.schilcher-registration-header p {
    font-size: var(--schilcher-text-body);  /* BODY - description text */
    margin: 0;
    position: relative;
    z-index: 1;
    max-width: 37.5rem;  /* 600px → 37.5rem */
    margin: 0 auto;
    color: var(--schilcher-text-secondary);
    line-height: var(--schilcher-line-height-relaxed);
}

.schilcher-benefits-section {
    background: var(--schilcher-bg-tertiary);
    padding: var(--schilcher-space-3xl);  /* 40px */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));  /* 250px → 15.625rem */
    gap: var(--schilcher-space-2xl);  /* 30px */
    border-left: 1px solid var(--schilcher-border-color-strong);
    border-right: 1px solid var(--schilcher-border-color-strong);
}

.schilcher-benefit-card {
    text-align: center;
    padding: var(--schilcher-space-lg);  /* 20px */
}

.schilcher-benefit-icon {
    width: 3.75rem;  /* 60px → 3.75rem */
    height: 3.75rem;
    background: var(--schilcher-accent-yellow);
    border: 2px solid var(--schilcher-border-color-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--schilcher-space-md);  /* 16px */
    font-size: var(--schilcher-text-display);  /* DISPLAY - large icon */
}

.schilcher-benefit-card h3 {
    font-size: var(--schilcher-text-heading);  /* HEADING - card title */
    margin: 0 0 var(--schilcher-space-sm) 0;  /* 12px */
    color: var(--schilcher-text-primary);
    font-weight: var(--schilcher-font-weight-bold);
}

.schilcher-benefit-card p {
    font-size: var(--schilcher-text-body);  /* BODY - card description */
    color: var(--schilcher-text-secondary);
    margin: 0;
    line-height: var(--schilcher-line-height-relaxed);
}

.schilcher-form-container {
    background: var(--schilcher-bg-primary);
    padding: 3.75rem var(--schilcher-space-3xl);  /* 60px 40px */
    border: 1px solid var(--schilcher-border-color-strong);
    border-top: none;
    border-radius: 0 0 var(--schilcher-radius-xl) var(--schilcher-radius-xl);
    box-shadow: var(--schilcher-shadow-lg);
}

.schilcher-form-intro {
    text-align: center;
    margin-bottom: var(--schilcher-space-3xl);  /* 40px */
}

.schilcher-form-intro h2 {
    font-size: var(--schilcher-text-display);  /* DISPLAY - section title */
    color: var(--schilcher-text-primary);
    margin: 0 0 var(--schilcher-space-md) 0;  /* 16px */
    font-weight: var(--schilcher-font-weight-bold);
}

.schilcher-form-intro p {
    font-size: var(--schilcher-text-body);  /* BODY - description text */
    color: var(--schilcher-text-secondary);
    margin: 0;
    line-height: var(--schilcher-line-height-normal);
}

/* Registration Form Styles */
.schilcher-custom-registration-form {
    margin: var(--schilcher-space-3xl) 0;  /* 40px */
}

.schilcher-form-section {
    margin-bottom: var(--schilcher-space-3xl);  /* 40px */
    padding: var(--schilcher-space-2xl);  /* 30px */
    background: #f9f7f3;
    border: 1px solid #e6ddd0;
    border-radius: var(--schilcher-radius-md);
}

.schilcher-form-group {
    margin-bottom: var(--schilcher-space-lg);  /* 20px */
}

.schilcher-form-label {
    display: block;
    margin-bottom: var(--schilcher-space-xs);  /* 8px */
    font-weight: var(--schilcher-font-weight-semibold);
    color: var(--schilcher-text-primary);
    font-size: var(--schilcher-text-small);  /* SMALL - label text */
}

.schilcher-custom-registration-form input[type="text"],
.schilcher-custom-registration-form input[type="email"],
.schilcher-custom-registration-form input[type="tel"],
.schilcher-custom-registration-form input[type="url"],
.schilcher-custom-registration-form textarea {
    width: 100%;
    padding: var(--schilcher-space-sm) var(--schilcher-space-md);  /* 12px 16px */
    border: 1px solid var(--schilcher-border-color-strong);
    border-radius: var(--schilcher-radius-sm);
    font-size: var(--schilcher-text-body);  /* BODY - form inputs */
    font-family: var(--schilcher-font-family);
    background-color: var(--schilcher-bg-primary);
    color: var(--schilcher-text-primary);
    transition: var(--schilcher-transition-base);
    box-sizing: border-box;
}

.schilcher-custom-registration-form input[type="text"]:focus,
.schilcher-custom-registration-form input[type="email"]:focus,
.schilcher-custom-registration-form input[type="tel"]:focus,
.schilcher-custom-registration-form input[type="url"]:focus,
.schilcher-custom-registration-form textarea:focus {
    outline: none;
    border-color: var(--schilcher-text-primary);
    box-shadow: 0 0 0 0.1875rem rgba(73, 57, 27, 0.1);  /* 3px */
}

.schilcher-custom-registration-form textarea {
    min-height: 5rem;  /* 80px → 5rem */
    resize: vertical;
}

/* Address Field Groups - Structured Layout */
.schilcher-address-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.625rem;  /* 10px → 0.625rem */
    margin-top: 0;
}

.schilcher-address-full-width {
    grid-column: 1 / -1;
}

.schilcher-plz-field {
    max-width: 9.375rem;  /* 150px → 9.375rem */
}

/* Address Field Validation Styles */
.schilcher-field-invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.schilcher-field-valid {
    border-color: #28a745 !important;
}

.schilcher-field-error-message {
    color: #dc3545;
    font-size: var(--schilcher-text-tiny);  /* TINY - error message */
    margin-top: 0.25rem;
    display: block;
    line-height: 1.3;
}

/* Address Card Container */
.schilcher-address-card {
    background: #f9f7f3;
    border: 1px solid #e6ddd0;
    border-radius: var(--schilcher-radius-md);
    padding: var(--schilcher-space-lg);  /* 20px */
    margin-bottom: var(--schilcher-space-lg);  /* 20px */
    box-shadow: var(--schilcher-shadow-xs);
}

/* Address Card Header */
.schilcher-address-card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;  /* 10px */
    margin-bottom: var(--schilcher-space-md);  /* 16px */
    padding-bottom: var(--schilcher-space-sm);  /* 12px */
    border-bottom: 1px solid #e6ddd0;
}

.schilcher-address-icon {
    font-size: var(--schilcher-text-heading);  /* HEADING - icon size */
    line-height: 1;
}

.schilcher-address-title {
    margin: 0;
    font-size: var(--schilcher-text-body);  /* BODY - section title */
    font-weight: var(--schilcher-font-weight-semibold);
    color: var(--schilcher-text-primary);
}

/* Conditional Rechnungsadresse Fields */
.schilcher-rechnungsadresse-fields {
    margin-top: 20px;
    padding: 0;           /* Removed - card wrapper has padding */
    background: transparent;  /* Removed - card wrapper has background */
    border: none;         /* Removed - card wrapper has border */
    border-radius: 0;     /* Removed - card wrapper has border-radius */
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.schilcher-rechnungsadresse-fields.hidden {
    display: none;
}

/* Select dropdowns (for country selection) */
.schilcher-custom-registration-form select {
    width: 100%;
    padding: var(--schilcher-space-sm) var(--schilcher-space-md);  /* 12px 16px */
    border: 1px solid var(--schilcher-border-color-strong);
    border-radius: var(--schilcher-radius-sm);
    font-size: var(--schilcher-text-body);  /* BODY - dropdown text */
    font-family: var(--schilcher-font-family);
    line-height: 1.6;
    min-height: 3rem;  /* 48px → 3rem */
    background-color: var(--schilcher-bg-primary);
    color: var(--schilcher-text-primary);
    transition: var(--schilcher-transition-base);
    box-sizing: border-box;
    cursor: pointer;
}

.schilcher-custom-registration-form select:focus {
    outline: none;
    border-color: var(--schilcher-text-primary);
    box-shadow: 0 0 0 0.1875rem rgba(73, 57, 27, 0.1);  /* 3px */
}

/* Green validation border for select dropdowns with selected value */
.schilcher-custom-registration-form select.schilcher-field-valid {
    border-color: #28a745 !important;
}

.schilcher-custom-registration-form label {
    display: block;
    margin-bottom: var(--schilcher-space-xs);
    font-weight: var(--schilcher-font-weight-semibold);
    color: var(--schilcher-primary-text-brown);
    font-size: var(--schilcher-text-small);  /* SMALL - label text */
}

.schilcher-checkbox-group,
.schilcher-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

/* Smaller gap for yes/no questions */
.schilcher-radio-group.schilcher-compact {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.schilcher-checkbox-item,
.schilcher-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.schilcher-custom-registration-form input[type="checkbox"],
.schilcher-custom-registration-form input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--schilcher-primary-text-brown);
    margin: 0;
    flex-shrink: 0;
}

.schilcher-checkbox-item label,
.schilcher-radio-item label {
    margin-bottom: 0;
    font-size: var(--schilcher-text-small);  /* SMALL - option labels */
    cursor: pointer;
    line-height: 1.4;
}

/* Styling for explanatory text */
.schilcher-explanatory-text {
    color: var(--schilcher-warm-brown);
    font-style: italic;
    font-weight: normal;
}

.schilcher-checkbox-item input[type="text"],
.schilcher-radio-item input[type="text"] {
    margin-left: 8px;
    max-width: 200px;
    display: none; /* Initially hidden */
}

.schilcher-checkbox-item input[type="text"].visible,
.schilcher-radio-item input[type="text"].visible {
    display: inline-block;
}

/* Registration Messages */
.schilcher-registration-error {
    background: #ffe6e6;
    border: 1px solid #ff9999;
    border-radius: var(--schilcher-radius-sm);
    padding: var(--schilcher-space-sm) var(--schilcher-space-md);
    margin-bottom: var(--schilcher-space-lg);
    color: #cc0000;
    font-size: var(--schilcher-text-small);  /* SMALL - message text */
    line-height: 1.4;
}

.schilcher-registration-success {
    background: #e6ffe6;
    border: 1px solid #99cc99;
    border-radius: var(--schilcher-radius-sm);
    padding: var(--schilcher-space-sm) var(--schilcher-space-md);
    margin-bottom: var(--schilcher-space-lg);
    color: #006600;
    font-size: var(--schilcher-text-small);  /* SMALL - message text */
    line-height: 1.4;
}

.schilcher-registration-info {
    background: #e6f3ff;
    border: 1px solid #99ccff;
    border-radius: var(--schilcher-radius-sm);
    padding: var(--schilcher-space-sm) var(--schilcher-space-md);
    margin-bottom: var(--schilcher-space-lg);
    color: #0066cc;
    font-size: var(--schilcher-text-small);  /* SMALL - message text */
    line-height: 1.4;
}

/* Success Message Container */
.schilcher-success-message-box {
    background: #f0f8f0;
    border: 2px solid #4CAF50;
    border-radius: var(--schilcher-radius-lg);
    padding: var(--schilcher-space-3xl);
    text-align: center;
    margin: var(--schilcher-space-3xl) 0;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.1);
}

.schilcher-success-icon {
    font-size: 4rem;  /* 64px → 4rem, large icon */
    color: #4CAF50;
    margin-bottom: var(--schilcher-space-lg);
    font-weight: bold;
}

.schilcher-success-message-box h3 {
    font-size: var(--schilcher-text-display);  /* DISPLAY - success title */
    color: #2E7D32;
    margin: 0 0 var(--schilcher-space-md) 0;
    font-weight: 700;
}

.schilcher-success-message-box p {
    font-size: var(--schilcher-text-body);  /* BODY - message text */
    color: #388E3C;
    margin: 0 0 var(--schilcher-space-xl) 0;
    line-height: 1.6;
}

.schilcher-next-steps {
    background: #ffffff;
    border: 1px solid #C8E6C9;
    border-radius: var(--schilcher-radius-md);
    padding: var(--schilcher-space-xl);
    margin: var(--schilcher-space-xl) 0;
    text-align: left;
}

.schilcher-next-steps h4 {
    font-size: var(--schilcher-text-heading);  /* HEADING - subsection title */
    color: #2E7D32;
    margin: 0 0 var(--schilcher-space-md) 0;
    font-weight: 700;
}

.schilcher-next-steps ol {
    margin: 0;
    padding-left: 20px;
    color: #388E3C;
}

.schilcher-next-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.schilcher-contact-info {
    background: #ffffff;
    border: 1px solid #C8E6C9;
    border-radius: var(--schilcher-radius-md);
    padding: var(--schilcher-space-lg);
    margin: var(--schilcher-space-xl) 0 0 0;
}

.schilcher-contact-info p {
    margin: 0 0 8px 0;
    color: #2E7D32;
}

.schilcher-contact-info p:last-child {
    margin-bottom: 0;
}

.schilcher-trust-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--schilcher-space-3xl);
    margin-top: var(--schilcher-space-lg);
    padding-top: var(--schilcher-space-2xl);
    border-top: 1px solid var(--schilcher-light-brown);
    flex-wrap: wrap;
}

.schilcher-trust-item {
    display: flex;
    align-items: center;
    gap: var(--schilcher-space-sm);
    color: var(--schilcher-warm-brown);
    font-size: var(--schilcher-text-small);  /* SMALL - trust text */
}

.schilcher-trust-icon {
    color: var(--schilcher-accent-yellow);
    font-size: var(--schilcher-text-heading);  /* HEADING - icon size */
    background: var(--schilcher-primary-text-brown);
    width: 1.875rem;  /* 30px → 1.875rem */
    height: 1.875rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================
   NAVBAR STYLES
   ===================================== */

.schilcher-account-button {
    position: relative;
    display: inline-block;
    font-family: var(--schilcher-font-family);
    margin: 8px;
}

/* Login Button */
.schilcher-login-button {
    background-color: var(--schilcher-primary-teal);
    color: var(--schilcher-primary-text-brown);
    border: 2px solid var(--schilcher-primary-text-brown);
    padding: 0.625rem var(--schilcher-space-lg);
    border-radius: var(--schilcher-radius-md);
    font-family: var(--schilcher-font-family);
    font-weight: var(--schilcher-font-weight-semibold);
    font-size: var(--schilcher-text-small);  /* SMALL - button text */
    height: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.schilcher-login-button:hover {
    background-color: var(--schilcher-primary-text-brown);
    color: var(--schilcher-primary-teal);
    transform: translateY(-1px);
    box-shadow: var(--schilcher-shadow-small);
    text-decoration: none;
}

/* Account Dropdown */
.schilcher-account-dropdown {
    position: relative;
    display: none; /* Hidden by default */
}

.schilcher-account-trigger {
    background-color: var(--schilcher-primary-teal);
    color: var(--schilcher-primary-text-brown);
    border: 2px solid var(--schilcher-primary-text-brown);
    padding: 0.625rem var(--schilcher-space-md);
    border-radius: var(--schilcher-radius-md);
    font-family: var(--schilcher-font-family);
    font-weight: var(--schilcher-font-weight-semibold);
    font-size: var(--schilcher-text-small);  /* SMALL - button text */
    height: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 11.25rem;  /* 180px → 11.25rem */
    max-width: 15rem;  /* 240px → 15rem */
}

.schilcher-account-trigger:hover,
.schilcher-account-trigger.active {
    background-color: var(--schilcher-primary-text-brown);
    color: var(--schilcher-primary-teal);
    transform: translateY(-1px);
    box-shadow: var(--schilcher-shadow-small);
}

.schilcher-account-trigger.active {
    border-radius: var(--schilcher-radius-md) var(--schilcher-radius-md) 0 0;
    transform: none;
    box-shadow: none;
}

/* Account Icon (SVG) */
.schilcher-account-icon {
    width: var(--schilcher-icon-sm);
    height: var(--schilcher-icon-sm);
    flex-shrink: 0;
    stroke: currentColor;
}

/* Company Name with Truncation */
.schilcher-username {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--schilcher-text-tiny);  /* TINY - compact username */
    text-align: left;
    max-width: 11.25rem;  /* 180px → 11.25rem */
}

.schilcher-dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: var(--schilcher-text-tiny);  /* TINY - arrow icon */
    flex-shrink: 0;
}

.schilcher-account-trigger.active .schilcher-dropdown-arrow {
    transform: rotate(180deg);
}

.schilcher-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 2px solid #49391b;
    border-top: none;
    border-radius: 0 0 var(--schilcher-radius-md) var(--schilcher-radius-md);
    box-shadow: 0 0.5rem 1.5rem rgba(73, 57, 27, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.625rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    min-width: 17.5rem;  /* 280px → 17.5rem */
    overflow: hidden;
}

.schilcher-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Header Section */
.schilcher-dropdown-header {
    padding: var(--schilcher-space-lg);
    background: linear-gradient(135deg, #f5f0e6 0%, #fef8e7 100%);
    border-bottom: 2px solid #e6ddd0;
}

.schilcher-company-name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: var(--schilcher-text-body);  /* BODY - company name */
    color: #49391b;
    margin-bottom: 0.625rem;
    word-wrap: break-word;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.schilcher-user-email {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: var(--schilcher-text-tiny);  /* TINY - email address */
    color: #876c4b;
    margin-bottom: 0.625rem;
    word-wrap: break-word;
    opacity: 0.9;
}

.schilcher-customer-number {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: var(--schilcher-text-tiny);  /* TINY - customer number */
    color: #876c4b;
    display: flex;
    gap: var(--schilcher-space-xs);
    align-items: center;
    padding-top: var(--schilcher-space-xs);
    border-top: 1px solid rgba(189, 167, 127, 0.3);
}

.schilcher-customer-number .schilcher-label {
    font-weight: 600;
    color: #49391b;
}

.schilcher-customer-number .schilcher-value {
    font-family: 'Courier New', monospace;
    font-weight: var(--schilcher-font-weight-semibold);
    color: #49391b;
    background: rgba(253, 253, 252, 0.6);
    padding: 2px var(--schilcher-space-xs);
    border-radius: var(--schilcher-radius-xs);
}

/* Separator Line */
.schilcher-dropdown-separator {
    display: none;
}

.schilcher-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--schilcher-space-sm);
    width: 100%;
    padding: 0.875rem var(--schilcher-space-lg);
    color: #49391b;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: var(--schilcher-text-small);  /* SMALL - menu item */
    border: none;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    white-space: nowrap;
    box-sizing: border-box;
    position: relative;
    text-transform: none;
}

.schilcher-dropdown-item:hover {
    background-color: #fef8e7;
    color: #49391b;
    text-decoration: none;
    padding-left: var(--schilcher-space-xl);
}

.schilcher-dropdown-item:focus {
    outline: 2px solid #49391b;
    outline-offset: -2px;
    background-color: #fef8e7;
}

.schilcher-dropdown-item:last-child {
    border-radius: 0 0 var(--schilcher-radius-sm) var(--schilcher-radius-sm);
}

/* Icon styling */
.schilcher-dropdown-item::before {
    content: '';
    width: var(--schilcher-icon-sm);
    height: var(--schilcher-icon-sm);
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.schilcher-dropdown-item:hover::before {
    opacity: 1;
}

/* Specific icons for each menu item */
.schilcher-dropdown-item[href*="bestellungen"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2349391b' stroke-width='2'%3E%3Cpath d='M9 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V4a2 2 0 00-2-2h-3M9 2a2 2 0 002 2h2a2 2 0 002-2M9 2a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4'/%3E%3C/svg%3E");
}

.schilcher-dropdown-item[onclick*="Password"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2349391b' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E");
}

.schilcher-dropdown-item[onclick*="Logout"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2349391b' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4m7 14l5-5-5-5m5 5H9'/%3E%3C/svg%3E");
}

.schilcher-dropdown-item[href*="kundendaten"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2349391b' stroke-width='2'%3E%3Cpath d='M16 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cpath d='M20 8v6m3-3h-6'/%3E%3C/svg%3E");
}

/* Divider between items */
.schilcher-dropdown-item + .schilcher-dropdown-item {
    border-top: 1px solid #f5f0e6;
}

/* State Management */
.schilcher-logged-in .schilcher-login-button {
    display: none;
}

.schilcher-logged-in .schilcher-account-dropdown {
    display: inline-block;
}

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

@media (max-width: 768px) {
    .schilcher-registration-header {
        padding: var(--schilcher-space-3xl) var(--schilcher-space-lg);
    }

    .schilcher-registration-header h1 {
        font-size: var(--schilcher-text-display);  /* DISPLAY - mobile */
    }

    .schilcher-registration-header p {
        font-size: var(--schilcher-text-body);  /* BODY - mobile */
    }

    .schilcher-benefits-section {
        padding: var(--schilcher-space-2xl) var(--schilcher-space-lg);
        gap: var(--schilcher-space-lg);
    }

    .schilcher-form-container {
        padding: var(--schilcher-space-3xl) var(--schilcher-space-lg);
    }

    .schilcher-form-section {
        padding: var(--schilcher-space-lg);
    }

    .schilcher-checkbox-group,
    .schilcher-radio-group {
        grid-template-columns: 1fr;
        gap: var(--schilcher-space-xs);
    }

    /* Address field groups on mobile */
    .schilcher-address-group {
        grid-template-columns: 1fr;
    }

    .schilcher-plz-field {
        max-width: 100%;
    }

    /* Address cards on mobile */
    .schilcher-address-card {
        padding: var(--schilcher-space-md);
        margin-bottom: var(--schilcher-space-md);
    }

    .schilcher-address-card-header {
        margin-bottom: var(--schilcher-space-sm);
    }

    .schilcher-section-title {
        font-size: var(--schilcher-text-heading);  /* HEADING - mobile */
    }

    .schilcher-success-message-box {
        padding: var(--schilcher-space-2xl) var(--schilcher-space-lg);
    }

    .schilcher-success-icon {
        font-size: 3rem;  /* 48px → 3rem */
    }

    .schilcher-success-message-box h3 {
        font-size: var(--schilcher-text-heading);  /* HEADING - mobile */
    }

    .schilcher-trust-indicators {
        gap: var(--schilcher-space-lg);
    }

    .schilcher-account-trigger,
    .schilcher-login-button {
        font-size: var(--schilcher-text-tiny);  /* TINY - mobile button */
        padding: 0.5rem 0.75rem;
        min-width: 8.75rem;  /* 140px → 8.75rem */
        max-width: 11.25rem;  /* 180px → 11.25rem */
    }

    .schilcher-username {
        max-width: 7.5rem;  /* 120px → 7.5rem */
        font-size: var(--schilcher-text-tiny);  /* TINY - mobile username */
    }

    .schilcher-dropdown-header {
        padding: var(--schilcher-space-md);
    }

    .schilcher-company-name {
        font-size: var(--schilcher-text-small);  /* SMALL - mobile */
    }

    .schilcher-dropdown-item {
        padding: 0.75rem var(--schilcher-space-md);
        font-size: var(--schilcher-text-tiny);  /* TINY - mobile menu */
    }

    .schilcher-dropdown-menu {
        min-width: 15rem;  /* 240px → 15rem */
    }

    .schilcher-account-button {
        margin: 0.25rem;
    }
}

@media (max-width: 540px) {
    .schilcher-login-page-wrapper {
        margin: var(--schilcher-space-lg) auto;
    }

    .schilcher-login-header {
        padding: var(--schilcher-space-2xl) var(--schilcher-space-lg);
    }

    .schilcher-login-header h1 {
        font-size: var(--schilcher-text-heading);  /* HEADING - small mobile */
    }

    .schilcher-login-container {
        padding: var(--schilcher-space-2xl) var(--schilcher-space-lg);
    }

    /* Mobile navbar adjustments */
    .schilcher-account-trigger {
        min-width: 6.875rem;  /* 110px → 6.875rem */
        max-width: 8.75rem;  /* 140px → 8.75rem */
        padding: 0.5rem 0.625rem;
        gap: var(--schilcher-space-xs);
    }

    .schilcher-username {
        max-width: 5rem;  /* 80px → 5rem */
        font-size: var(--schilcher-text-tiny);  /* TINY - very small mobile */
    }

    .schilcher-account-icon {
        width: var(--schilcher-icon-sm);
        height: var(--schilcher-icon-sm);
    }

    .schilcher-dropdown-menu {
        min-width: 13.75rem;  /* 220px → 13.75rem */
    }

    .schilcher-dropdown-header {
        padding: 0.875rem;
    }

    .schilcher-company-name {
        font-size: var(--schilcher-text-small);  /* SMALL - small mobile */
    }

    .schilcher-user-email {
        font-size: var(--schilcher-text-tiny);  /* TINY - small mobile */
    }

    .schilcher-dropdown-item {
        padding: 0.75rem 0.875rem;
        font-size: var(--schilcher-text-tiny);  /* TINY - small mobile */
    }
}

/* Already Logged In Styles */
.schilcher-already-logged-in-box {
    background: white;
    border-radius: var(--schilcher-radius-lg);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1);
    padding: var(--schilcher-space-3xl) var(--schilcher-space-2xl);
    text-align: center;
    margin: var(--schilcher-space-lg) 0;
    border: 2px solid #4CAF50;
}

.schilcher-already-logged-in-box .schilcher-success-icon {
    background: #4CAF50;
    color: white;
    width: 3.75rem;  /* 60px → 3.75rem */
    height: 3.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--schilcher-text-display);  /* DISPLAY - icon */
    font-weight: bold;
    margin: 0 auto var(--schilcher-space-lg);
}

.schilcher-already-logged-in-box h3 {
    color: #333;
    font-size: var(--schilcher-text-display);  /* DISPLAY - title */
    font-weight: 700;
    margin: 0 0 var(--schilcher-space-sm);
    font-family: 'Open Sans', Arial, sans-serif;
}

.schilcher-already-logged-in-box p {
    color: #666;
    font-size: var(--schilcher-text-body);  /* BODY - text */
    line-height: 1.6;
    margin: 0 0 var(--schilcher-space-2xl);
    max-width: 31.25rem;  /* 500px → 31.25rem */
    margin-left: auto;
    margin-right: auto;
}

.schilcher-logged-in-actions {
    display: flex;
    gap: var(--schilcher-space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--schilcher-space-lg);
}

.schilcher-btn-primary,
.schilcher-btn-secondary {
    display: inline-block;
    padding: 0.75rem var(--schilcher-space-xl);
    border-radius: var(--schilcher-radius-md);
    text-decoration: none;
    font-weight: var(--schilcher-font-weight-semibold);
    font-size: var(--schilcher-text-small);  /* SMALL - button text */
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 10rem;  /* 160px → 10rem */
    cursor: pointer;
    font-family: inherit;
}

.schilcher-btn-primary {
    background: #49391b;
    color: white;
    border-color: #49391b;
}

.schilcher-btn-primary:hover {
    background: #3a2e16;
    border-color: #3a2e16;
    color: white;
    text-decoration: none;
}

.schilcher-btn-secondary {
    background: transparent;
    color: #49391b;
    border-color: #49391b;
}

.schilcher-btn-secondary:hover {
    background: #49391b;
    color: white;
    text-decoration: none;
}

.schilcher-logout-info {
    text-align: center;
    margin: 0 auto var(--schilcher-space-lg) auto;
    padding: var(--schilcher-space-sm);
    background: #f8f9fa;
    border-radius: var(--schilcher-radius-sm);
    border-left: 4px solid #6c757d;
    max-width: 31.25rem;  /* 500px → 31.25rem */
}

.schilcher-logout-info p {
    margin: 0 auto;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

.schilcher-logout-info small {
    font-size: var(--schilcher-text-tiny);  /* TINY - small text */
}

.schilcher-already-logged-in-box .schilcher-contact-info {
    border-top: 1px solid #eee;
    padding-top: var(--schilcher-space-lg);
    margin-top: var(--schilcher-space-lg);
    text-align: center;
}

.schilcher-already-logged-in-box .schilcher-contact-info p {
    margin: var(--schilcher-space-xs) auto;
    font-size: var(--schilcher-text-small);  /* SMALL - contact text */
    text-align: center;
}

.schilcher-already-logged-in-box .schilcher-contact-info p:first-child {
    font-weight: 600;
    color: #333;
}

/* Responsive adjustments for already logged in box */
@media (max-width: 768px) {
    .schilcher-already-logged-in-box {
        padding: var(--schilcher-space-2xl) var(--schilcher-space-lg);
    }

    .schilcher-logged-in-actions {
        flex-direction: column;
        align-items: center;
    }

    .schilcher-btn-primary,
    .schilcher-btn-secondary {
        width: 100%;
        max-width: 17.5rem;  /* 280px → 17.5rem */
    }

    .schilcher-already-logged-in-box .schilcher-contact-info p {
        text-align: center;
    }
}

/* =====================================
   FILE UPLOAD CARDS STYLES
   ===================================== */

.schilcher-section-description {
    font-size: var(--schilcher-text-small);  /* SMALL - description */
    color: var(--schilcher-warm-brown);
    margin-bottom: var(--schilcher-space-xl);
    line-height: 1.5;
}

.schilcher-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--schilcher-space-lg);
    margin-top: var(--schilcher-space-lg);
}

.schilcher-upload-card {
    background: #ffffff;
    border: 1px solid #e6ddd0;
    border-radius: var(--schilcher-radius-md);
    box-shadow: var(--schilcher-shadow-small);
    transition: all 0.3s ease;
    overflow: hidden;
}

.schilcher-upload-card:hover {
    box-shadow: var(--schilcher-shadow-medium);
    transform: translateY(-2px);
}

.schilcher-upload-card-header {
    background: linear-gradient(135deg, var(--schilcher-primary-teal) 0%, var(--schilcher-cream) 100%);
    padding: var(--schilcher-space-lg);
    display: flex;
    align-items: center;
    gap: var(--schilcher-space-sm);
    border-bottom: 1px solid #e6ddd0;
}

.schilcher-upload-icon {
    font-size: var(--schilcher-text-heading);  /* HEADING - icon size */
    width: 2.5rem;  /* 40px → 2.5rem */
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--schilcher-accent-yellow);
    border-radius: 50%;
    flex-shrink: 0;
}

.schilcher-upload-card-header h4 {
    margin: 0;
    font-size: var(--schilcher-text-body);  /* BODY - card title */
    font-weight: var(--schilcher-font-weight-semibold);
    color: var(--schilcher-primary-text-brown);
    flex-grow: 1;
}

.schilcher-required-badge {
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--schilcher-radius-lg);
    font-size: var(--schilcher-text-tiny);  /* TINY - badge */
    font-weight: var(--schilcher-font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schilcher-optional-badge {
    background: #6c757d;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--schilcher-radius-lg);
    font-size: var(--schilcher-text-tiny);  /* TINY - badge */
    font-weight: var(--schilcher-font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schilcher-upload-card-body {
    padding: var(--schilcher-space-lg);
}

.schilcher-upload-card-body p {
    margin: 0 0 var(--schilcher-space-sm) 0;
    font-size: var(--schilcher-text-small);  /* SMALL - card text */
    color: var(--schilcher-warm-brown);
    line-height: 1.5;
}

.schilcher-file-upload-wrapper {
    position: relative;
}

.schilcher-file-upload-wrapper input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.schilcher-file-upload-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem var(--schilcher-space-md);
    background: var(--schilcher-primary-teal);
    border: 2px dashed var(--schilcher-warm-brown);
    border-radius: var(--schilcher-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--schilcher-text-small);  /* SMALL - upload label */
    font-weight: 500;
    color: var(--schilcher-primary-text-brown);
}

.schilcher-file-upload-label:hover {
    background: var(--schilcher-cream);
    border-color: var(--schilcher-primary-text-brown);
}

.schilcher-file-upload-label.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.schilcher-file-upload-label.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.schilcher-upload-icon-btn {
    font-size: var(--schilcher-text-heading);  /* HEADING - icon */
    opacity: 0.7;
}

.schilcher-upload-text {
    flex-grow: 1;
}

.schilcher-file-info {
    margin-top: 0.625rem;
    font-size: var(--schilcher-text-tiny);  /* TINY - file info */
    line-height: 1.4;
}

.schilcher-file-success {
    color: #28a745;
    font-weight: 500;
}

.schilcher-file-error {
    color: #dc3545;
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .schilcher-upload-grid {
        grid-template-columns: 1fr;
        gap: var(--schilcher-space-sm);
    }

    .schilcher-upload-card-header {
        padding: var(--schilcher-space-sm);
    }

    .schilcher-upload-card-body {
        padding: var(--schilcher-space-sm);
    }

    .schilcher-upload-icon {
        width: 2.1875rem;  /* 35px → 2.1875rem */
        height: 2.1875rem;
        font-size: var(--schilcher-text-heading);  /* HEADING - mobile */
    }

    .schilcher-upload-card-header h4 {
        font-size: var(--schilcher-text-small);  /* SMALL - mobile */
    }
}

/* =====================================
   REGISTRATION FORM SAFETY RULES
   ===================================== */

/* Force hide when parent is hidden */
.schilcher-custom-registration-form[style*="display: none"] .schilcher-submit-button,
.schilcher-custom-registration-form.hidden .schilcher-submit-button {
    display: none !important;
}

/* =====================================
   ACCOUNT EDIT PAGE STYLES
   ===================================== */

.schilcher-account-edit-wrapper {
    font-family: var(--schilcher-font-family);
    max-width: 75rem;
    margin: 0 auto;
    padding: var(--schilcher-space-lg);
    color: var(--schilcher-text-primary);
}

/* Read-only section styling */
.schilcher-readonly-section {
    background: #f0ebe3;
}

.schilcher-readonly-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--schilcher-space-md);
}

.schilcher-readonly-field {
    padding: var(--schilcher-space-sm);
    background: var(--schilcher-bg-primary);
    border-radius: var(--schilcher-radius-sm);
    border: 1px solid var(--schilcher-border-color);
}

.schilcher-readonly-field label {
    display: block;
    font-size: var(--schilcher-text-tiny);
    font-weight: var(--schilcher-font-weight-semibold);
    color: var(--schilcher-text-secondary);
    margin-bottom: var(--schilcher-space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schilcher-readonly-field span {
    display: block;
    font-size: var(--schilcher-text-small);
    color: var(--schilcher-text-primary);
    line-height: var(--schilcher-line-height-normal);
}

/* Form row layout for side-by-side fields */
.schilcher-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--schilcher-space-md);
    margin-bottom: var(--schilcher-space-md);
}

.schilcher-form-row .schilcher-form-group {
    margin-bottom: 0;
}

/* Form actions container */
.schilcher-form-actions {
    margin-top: var(--schilcher-space-2xl);
    padding-top: var(--schilcher-space-xl);
    border-top: 2px solid var(--schilcher-border-color);
    text-align: center;
}

/* Account edit form inputs */
.schilcher-account-edit-wrapper input[type="text"],
.schilcher-account-edit-wrapper input[type="email"],
.schilcher-account-edit-wrapper input[type="tel"],
.schilcher-account-edit-wrapper input[type="url"],
.schilcher-account-edit-wrapper select {
    width: 100%;
    padding: var(--schilcher-space-sm) var(--schilcher-space-md);
    border: 1px solid var(--schilcher-border-color-strong);
    border-radius: var(--schilcher-radius-sm);
    font-size: var(--schilcher-text-body);
    font-family: var(--schilcher-font-family);
    background-color: var(--schilcher-bg-primary);
    color: var(--schilcher-text-primary);
    transition: var(--schilcher-transition-base);
    box-sizing: border-box;
}

/* Select dropdown specific height fix */
.schilcher-account-edit-wrapper select {
    height: 2.75rem;
    line-height: 1.5;
}

.schilcher-account-edit-wrapper input:focus,
.schilcher-account-edit-wrapper select:focus {
    outline: none;
    border-color: var(--schilcher-text-primary);
    box-shadow: 0 0 0 0.1875rem rgba(73, 57, 27, 0.1);
}

.schilcher-account-edit-wrapper label {
    display: block;
    margin-bottom: var(--schilcher-space-xs);
    font-weight: var(--schilcher-font-weight-semibold);
    color: var(--schilcher-primary-text-brown);
    font-size: var(--schilcher-text-small);
}

/* Hidden class for conditional fields */
.schilcher-sepa-fields.hidden,
.schilcher-rechnungsadresse-fields.hidden {
    display: none;
}

/* Responsive adjustments for account edit */
@media (max-width: 768px) {
    .schilcher-form-row {
        grid-template-columns: 1fr;
        gap: var(--schilcher-space-sm);
    }

    .schilcher-readonly-grid {
        grid-template-columns: 1fr;
    }

    .schilcher-account-edit-wrapper {
        padding: var(--schilcher-space-sm);
    }
}
