/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Neue Farbpalette */
    --primary-color: #2c3e50;        /* Dunkles Blaugrau als Hauptfarbe */
    --primary-dark: #1a252f;         /* Noch dunkler für Hover-Effekte */
    --accent-color: #9ACD32;         /* Grün als Akzentfarbe */
    --accent-dark: #7ba428;          /* Dunkleres Grün für Hover */
    --secondary-color: #64748b;      /* Grau für sekundäre Elemente */
    --text-dark: #1e293b;           /* Dunkler Text */
    --text-light: #64748b;          /* Heller Text */
    --text-muted: #94a3b8;          /* Sehr heller Text */
    --bg-light: #f8fafc;            /* Sehr heller Hintergrund */
    --bg-white: #ffffff;            /* Weiß */
    --bg-dark: #334155;             /* Dunkler Hintergrund */
    --border-color: #e2e8f0;        /* Rahmenfarbe */
    --success-color: #10b981;       /* Erfolg */
    --danger-color: #ef4444;        /* Fehler */
    --warning-color: #f59e0b;       /* Warnung */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Header und Navigation */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.nav-logo a:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
    background-color: var(--bg-light);
}

.nav-link.active {
    color: var(--accent-color);
    background-color: var(--bg-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 1px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(154,205,50,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(154,205,50,0.08)"/><circle cx="40" cy="70" r="1" fill="rgba(154,205,50,0.05)"/></svg>');
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    font-size: 8rem;
    opacity: 0.3;
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    font-weight: 600;
}

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

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f1f5f9 100%);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 80px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="2" fill="rgba(154,205,50,0.1)"/><circle cx="70" cy="70" r="1.5" fill="rgba(154,205,50,0.08)"/></svg>');
    pointer-events: none;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Services Detail */
.services-detail {
    padding: 60px 0;
    background: var(--bg-light);
}

.service-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.service-icon-large {
    font-size: 4rem;
    color: var(--accent-color);
}

.service-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.equipment-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

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

.equipment-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.equipment-item p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.equipment-item ul {
    list-style: none;
}

.equipment-item li {
    color: var(--text-light);
    margin-bottom: 0.25rem;
    position: relative;
    padding-left: 1rem;
}

.equipment-item li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

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

.service-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
}

.service-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service-item p {
    color: var(--text-light);
}

/* Catalog Section */
.catalog-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
    font-weight: 600;
}

/* VERBESSERTE PRODUKTKARTEN - Gleichmäßige Höhen */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Wichtig: Alle Karten auf gleiche Höhe */
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    /* WICHTIG: Flexbox für vertikale Ausrichtung */
    display: flex;
    flex-direction: column;
    height: 100%; /* Alle Karten nehmen die volle verfügbare Höhe ein */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.product-image {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f1f5f9 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    /* Diese Höhe bleibt fest */
    flex-shrink: 0;
}

.product-info {
    padding: 1.5rem;
    /* WICHTIG: Flexbox für die Inhalts-Aufteilung */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Nimmt den verfügbaren Platz ein */
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    /* Feste Höhe für Titel, damit sie alignment haben */
    min-height: 2.6rem; /* Platz für 2 Zeilen */
    display: flex;
    align-items: flex-start;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    /* FESTE Höhe statt flex-grow: */
    min-height: 4.2rem;
    max-height: 4.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-specs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    /* NEUE ZEILEN: */
    align-items: flex-start;
    align-content: flex-start;
    flex-shrink: 0;
    min-height: 2rem;
}

.spec {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.spec:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* WICHTIGER TEIL: Footer-Bereich der Karte */
.product-footer {
    /* Dieser Bereich wird immer unten sein */
    margin-top: auto;
    flex-shrink: 0;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
}

.availability {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

.availability.limited {
    color: var(--warning-color);
    font-weight: 500;
}

.add-to-config {
    width: 100%;
    /* Dieser Button ist immer am unteren Rand */
}

/* Configurator */
.configurator-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.configurator-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.product-selection h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.category-section {
    margin-bottom: 3rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.category-section h3 {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
}

.category-section h3::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.category-section h3 i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.product-list {
    padding: 1.5rem;
}

.config-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.config-product:last-child {
    border-bottom: none;
}

.config-product:hover {
    background: var(--bg-light);
    border-left-color: var(--accent-color);
}

.config-product .product-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.config-product .product-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-dark);
}

.qty-btn:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
}

.quantity {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.cart-section {
    position: relative;
}

.cart-sticky {
    position: sticky;
    top: 100px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.cart-sticky h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.cart-items {
    margin-bottom: 2rem;
    max-height: 300px;
    overflow-y: auto;
}

.empty-cart {
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.cart-item-info p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.cart-item-price {
    font-weight: 600;
    color: var(--accent-color);
}

.cart-summary {
    border-top: 2px solid var(--accent-color);
    padding-top: 1.5rem;
}

.total-price {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.service-options {
    margin-bottom: 2rem;
}

.service-options h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.service-option:hover {
    background: var(--bg-light);
}

.service-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.8);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close:hover {
    color: var(--accent-color);
}

.modal h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(154, 205, 50, 0.1);
}

.quote-summary {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.quote-summary h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-total {
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-white);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
}

/* Contact Section - Neue symmetrische Struktur */
.contact-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-form-section h2::after,
.contact-info-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.contact-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: fit-content;
}

/* Vereinte Kontaktkachel */
.contact-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.contact-item:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.contact-item:first-child {
    background: linear-gradient(90deg, rgba(154,205,50,0.05) 0%, transparent 100%);
}

.contact-item:first-child .contact-icon {
    background: var(--accent-color);
    color: var(--primary-dark);
    animation: pulse 2s infinite;
}

.contact-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    font-weight: 600;
    transition: var(--transition);
}

.contact-icon.phone {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.contact-icon.email {
    background: var(--primary-color);
    color: white;
}

.contact-icon.address {
    background: var(--secondary-color);
    color: white;
}

.contact-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-value a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-details small {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-details small::before {
    content: "🕒";
    font-size: 0.8rem;
}

.contact-item:nth-child(2) .contact-details small::before {
    content: "📧";
}

.contact-item:nth-child(4) .contact-details small::before {
    content: "📍";
}

/* Servicegebiet über komplette Breite */
.service-area-full {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.service-area-full h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.service-area-full h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.service-area-full h3 i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.service-area-full > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Vereinfachte Servicegebiete ohne Unterteilung */
.service-locations-simple {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.service-locations-simple ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    background: var(--bg-light);
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.service-locations-simple li {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.service-locations-simple li i {
    color: var(--accent-color);
    font-size: 1rem;
}

.service-note {
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.service-note i {
    font-size: 1.2rem;
}

.form-message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message i {
    font-size: 1.2rem;
}

/* Gallery */
.gallery-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.gallery-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.placeholder-icon {
    font-size: 6rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    opacity: 0.7;
}

.placeholder-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.placeholder-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Legal Pages */
.legal-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-dark);
}

.legal-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
    color: var(--text-dark);
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

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

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

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 1rem;
    text-align: center;
    color: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 768px) {

    .service-info h2 {
        font-size: 1.5rem; /* Statt 2rem */
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .configurator-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cart-sticky {
        position: relative;
        top: 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-info h3 {
        min-height: auto; /* Auf mobilen Geräten flexibler */
        font-size: 1.2rem;
    }

    .product-image {
        height: 150px;
        font-size: 3rem;
    }

    .service-locations-simple ul {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

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

    .service-area-full {
        padding: 2rem;
    }

    .service-area-full h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {

    .service-info h2 {
        font-size: 1.3rem;
        line-height: 1.1;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-icon {
        font-size: 5rem;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .config-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .quantity-controls {
        align-self: flex-end;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .service-area-full {
        padding: 1.5rem;
    }

    .service-locations-simple ul {
        gap: 0.75rem;
        padding: 1rem;
    }

    .service-locations-simple li {
        font-size: 1rem;
    }

    .legal-content {
        padding: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .hamburger {
        display: none !important;
    }

    .hero {
        margin-top: 0;
        padding: 2rem 0;
        background: white !important;
        color: black !important;
    }

    .page-header {
        margin-top: 0;
        padding: 1rem 0;
        background: white !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

/* Zusätzliche Styles für Konfigurator */
.availability-text {
    color: var(--text-light);
    font-size: 0.8rem;
    display: block;
    margin-top: 0.25rem;
}

.availability-text.limited {
    color: var(--warning-color);
    font-weight: 500;
}

.availability-text.limited::before {
    content: "⚠️ ";
}

.config-product .product-info {
    flex: 1;
}

.config-product {
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.config-product:hover {
    border-left-color: var(--accent-color);
}

.config-product[data-product*="behringer"],
.config-product[data-product*="stairville-clb24"],
.config-product[data-product*="stairville-dj-bundle"] {
    border-left-color: var(--accent-color);
}

.qty-btn:disabled {
    background-color: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
}

.qty-btn:disabled:hover {
    background-color: var(--border-color);
    color: var(--text-light);
    transform: none;
}

.cart-item .availability-info {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Modal Improvements */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.quote-summary .summary-section {
    margin-bottom: 1.5rem;
}

.quote-summary .summary-section h5 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.summary-total {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    border: 2px solid var(--accent-color);
}

.summary-total .summary-item {
    border-bottom: none;
    font-size: 1.1rem;
}

/* Form Improvements */
.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--accent-color);
}

.form-group label a {
    color: var(--accent-color);
    text-decoration: none;
}

.form-group label a:hover {
    text-decoration: underline;
}

/* Bessere Hover-Effekte */
.product-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* Verbesserter Filter-Button Stil */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(154,205,50,0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

/* Subtile Animationen für Buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Scroll-Indikator für den Warenkorb */
.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* Logo-spezifische Styles für die Navigation */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Abstand zwischen Logo und Text */
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo a:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.nav-logo-image {
    height: 60px;
    width: 60px;
    object-fit: cover; /* Ändert von 'contain' zu 'cover' */
    transition: var(--transition);
    border-radius: 50%; /* Macht das Logo rund */
    /* Option 1: Komplett ohne Rand */
    
    /* Option 2: Dünner weißer Rand (auskommentiert) */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    
    /* Option 3: Dünner Rand in Akzentfarbe (auskommentiert) */
    /* border: 1px solid var(--accent-color); */
    
    /* Option 4: Subtiler Schatten statt Rand (auskommentiert) */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    white-space: nowrap; /* Verhindert Umbruch des Firmennamens */
}

/* Responsive Anpassungen für kleinere Bildschirme */
@media (max-width: 768px) {
    .nav-logo-image {
        height: 30px;
        width: 30px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .nav-logo {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-logo-image {
        height: 25px;
        width: 25px;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
}

/* ZUSÄTZLICHE CSS-REGELN FÜR SAFARI LINKS */
/* Diese Regeln am Ende der style.css hinzufügen: */

/* Footer Links - Einheitliches Styling */
.footer-link {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}

/* Kontakt-Seite Links */
.contact-link {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}

/* Überschreibt Safari's automatische Link-Styles */
a[href^="tel:"].footer-link,
a[href^="mailto:"].footer-link,
a[href^="https://maps"].footer-link {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #cbd5e1 !important; /* Safari-spezifisch */
}

a[href^="tel:"].contact-link,
a[href^="mailto:"].contact-link,
a[href^="https://maps"].contact-link {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    -webkit-text-fill-color: var(--primary-color) !important; /* Safari-spezifisch */
}

/* Hover-Effekte */
a[href^="tel:"].footer-link:hover,
a[href^="mailto:"].footer-link:hover,
a[href^="https://maps"].footer-link:hover {
    color: var(--accent-color) !important;
    -webkit-text-fill-color: var(--accent-color) !important;
    text-decoration: underline !important;
}

a[href^="tel:"].contact-link:hover,
a[href^="mailto:"].contact-link:hover,
a[href^="https://maps"].contact-link:hover {
    color: var(--accent-color) !important;
    -webkit-text-fill-color: var(--accent-color) !important;
    text-decoration: underline !important;
}