/* Basis-Styles für Bestatter-Portal */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --accent-light: #533483;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e0e0e0;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --premium-color: #d4af37;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-white);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 1.25rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo mit CSS-Icon */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border: 3px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
}

.logo-cross::before,
.logo-cross::after {
    content: '';
    position: absolute;
    background-color: #fff;
    border-radius: 2px;
}

.logo-cross::before {
    width: 3px;
    height: 20px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.logo-cross::after {
    width: 20px;
    height: 3px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Burger Menu Toggle Button */
.burger-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.burger-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.nav-cta {
    background-color: rgba(255,255,255,0.15);
    padding: 0.6rem 1.5rem !important;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Main */
.main {
    min-height: calc(100vh - 200px);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: #fff;
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: var(--primary-color);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.why-compare {
    background-color: var(--bg-light);
}

.how-it-works {
    background: linear-gradient(to bottom, #fff 0%, var(--bg-light) 100%);
}

.trust {
    background-color: #fff;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 2.5rem;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.feature p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    top: -3px;
    left: -3px;
}

.step h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Trust Items */
.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trust-item {
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    border-radius: 12px;
    border-left: 4px solid var(--success-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.trust-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.trust-item h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.trust-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* FAQ */
.faq {
    background: linear-gradient(to bottom, var(--bg-light) 0%, #fff 100%);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Forms */
.search-form, .request-form {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: start;
}

/* Vergleichsformular: Alle Felder in einer Zeile mit Flexbox */
.comparison-form-row {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: flex-end;
    width: 100%;
    flex-wrap: nowrap;
}

.comparison-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-end;
}

.comparison-field:first-child {
    flex: 0 0 120px; /* PLZ: festere Breite */
}

.comparison-field:nth-child(2) {
    flex: 1 1 150px; /* Ort: flexibel */
}

.comparison-field:last-child {
    flex: 0 0 100px; /* Button: festere Breite */
}

.comparison-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    height: 1.2rem;
    line-height: 1.2rem;
    font-size: 0.85rem;
    flex-shrink: 0;
    min-height: 1.2rem;
}

.comparison-field input,
.comparison-field select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 0;
}

.comparison-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-sizing: border-box;
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0;
}

/* Alle form-groups im grid haben gleiche Höhe */
.form-grid .form-group {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    height: 1.5rem; /* Feste Höhe für Labels */
    line-height: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    height: calc(0.75rem * 2 + 1rem + 2px); /* Feste Höhe für Inputs */
    box-sizing: border-box;
}

/* Button in form-group vertikal ausrichten */
.form-group button.btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    height: calc(0.75rem * 2 + 1rem + 2px); /* Gleiche Höhe wie Input-Felder */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: 0; /* Kein margin-top mehr */
    box-sizing: border-box;
}

/* Button im Vergleichsformular: Gleiche Höhe wie Inputs */
.search-form .form-group button.btn {
    height: calc(0.75rem * 2 + 1rem + 2px) !important;
    margin-top: 0 !important;
}

.form-group textarea {
    resize: vertical;
}

.required {
    color: var(--error-color);
}

.error {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Partners List */
.partners-list {
    margin-top: 2rem;
}

.partner-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.partner-card.premium {
    border-color: var(--premium-color);
    border-width: 2px;
}

.partner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.partner-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.premium-badge {
    background-color: var(--premium-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.partner-info {
    margin-bottom: 1rem;
}

.partner-info p {
    margin-bottom: 0.5rem;
}

.partner-specializations {
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    background-color: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

.partner-prices ul {
    list-style: none;
    margin-top: 0.5rem;
}

.partner-prices li {
    margin-bottom: 0.5rem;
}

.price-note {
    margin-top: 0.5rem;
    color: var(--text-light);
}

.partner-description {
    margin-bottom: 1rem;
}

.partner-actions {
    margin-top: 1rem;
}

/* Alerts */
.alert-centered {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Checklist */
.checklist {
    margin-top: 1rem;
}

.checklist-item {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .logo {
        flex: 1;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-circle {
        width: 40px;
        height: 40px;
    }
    
    .logo-main {
        font-size: 1.25rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    /* Burger Menu Button anzeigen */
    .burger-menu-toggle {
        display: flex;
    }
    
    /* Navigation ausblenden und als Overlay anzeigen */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 5rem 2rem 2rem;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav a {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
    }
    
    .nav a::after {
        display: none;
    }
    
    .nav a:hover {
        background-color: rgba(255,255,255,0.1);
        padding-left: 1rem;
    }
    
    .nav-cta {
        margin-top: 1rem;
        text-align: center;
        border: 2px solid rgba(255,255,255,0.5);
        padding: 0.75rem 1.5rem !important;
    }
    
    /* Overlay für geschlossenes Menü */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 999;
        transition: opacity 0.3s ease;
    }
    
    .nav-overlay.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Desktop: Burger-Menü ausblenden */
@media (min-width: 769px) {
    .burger-menu-toggle {
        display: none !important;
    }
    
    .nav-overlay {
        display: none !important;
    }
}
    
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .steps,
    .trust-items {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    /* Vergleichsformular: Auf mobilen Geräten untereinander */
    .comparison-form-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .comparison-field {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    
    .comparison-field:first-child,
    .comparison-field:nth-child(2),
    .comparison-field:last-child {
        flex: 1 1 100% !important;
    }

/* Bewertungen */
.partner-rating {
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-stars .star {
    color: #ddd;
    font-size: 1.2rem;
    line-height: 1;
}

.rating-stars .star.filled {
    color: #f39c12;
}

.rating-value {
    font-weight: 600;
    color: var(--text-color);
}

.rating-count {
    color: var(--text-light);
    font-size: 0.9em;
}

.partner-rating-large {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.partner-rating-large .rating-stars .star {
    font-size: 1.5rem;
}

.partner-reviews {
    margin-top: 2rem;
}

.review-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--bg-white);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.review-rating {
    display: inline-flex;
    gap: 2px;
}

.review-rating .star {
    color: #ddd;
    font-size: 1rem;
}

.review-rating .star.filled {
    color: #f39c12;
}

.review-text {
    margin-top: 0.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Angebotsformular */
.offer-form {
    max-width: 800px;
    margin-top: 2rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.info-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-table td:first-child {
    width: 30%;
    font-weight: 500;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.item-row input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.btn-remove-item {
    background: var(--error-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.btn-remove-item:hover {
    background: #c0392b;
}

/* Angebotsansicht */
.offers-comparison {
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 600;
}

.comparison-table tr:hover {
    background: var(--bg-light);
}

.offers-details {
    margin: 2rem 0;
}

.offer-card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.offer-summary {
    margin: 1rem 0;
}

.offer-summary p {
    margin: 0.5rem 0;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.items-table th,
.items-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.items-table th {
    background: var(--bg-light);
    font-weight: 600;
}

.offer-notes {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 4px;
}

.messages-section {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.messages-list {
    margin: 1rem 0;
}

.message {
    padding: 1rem;
    border-left: 3px solid var(--border-color);
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: 4px;
}

.message.customer {
    border-left-color: var(--primary-color);
}

.message.partner {
    border-left-color: var(--accent-color);
}

.message.system {
    border-left-color: var(--text-light);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.message-body {
    color: var(--text-color);
    line-height: 1.6;
}

.message-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

/* Partner-Detailseite */
.partner-detail {
    max-width: 900px;
}

.partner-main-info {
    margin-bottom: 2rem;
}

.partner-contact {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.partner-contact p {
    margin: 0.75rem 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .item-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .comparison-table {
        font-size: 0.9em;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}

/* Ladeanimationen */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loading-spinner {
    margin: 0 auto;
}

.loading-content p {
    margin-top: 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.loading-content .loading-hint {
    margin-top: 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: center;
}

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Ladebalken */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 10000;
    transition: width 0.3s ease;
}

.loading-bar.active {
    width: 100%;
    animation: loading-bar 1.5s ease-in-out infinite;
}

@keyframes loading-bar {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Angebotsformular */
.offer-section {
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 3rem 0;
}

.offer-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.offer-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.offer-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.request-info-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.request-info-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item-full {
    grid-column: 1 / -1;
}

.info-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.offer-form {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.offer-form .form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--bg-light);
}

.offer-form .form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.offer-form .form-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.offer-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-suffix input {
    padding-right: 3rem;
}

.input-suffix {
    position: absolute;
    right: 1rem;
    color: var(--text-light);
    font-weight: 500;
    pointer-events: none;
}

.items-container {
    margin-bottom: 1rem;
}

.item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr auto;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.item-row input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
}

.item-title {
    grid-column: 1;
}

.item-qty {
    grid-column: 2;
}

.item-price {
    grid-column: 3;
}

.item-total {
    grid-column: 4;
}

.btn-remove-item {
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 4px;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    grid-column: 5;
}

.btn-remove-item:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Add Item Button - Modern Design */
.btn-add-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(15, 52, 96, 0.1);
    margin-top: 1rem;
}

.btn-add-item:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.2);
    border-color: var(--accent-light);
}

.btn-add-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(15, 52, 96, 0.15);
}

.btn-add-item .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    background: rgba(15, 52, 96, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-add-item:hover .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.btn-add-item .btn-text {
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .item-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .item-title,
    .item-qty,
    .item-price,
    .item-total {
        grid-column: 1;
    }
    
    .btn-remove-item {
        grid-column: 1;
        width: 100%;
    }
    
    .offer-form {
        padding: 1.5rem;
    }
    
    .btn-add-item {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.25rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

