/* HeizOel24.de Theme CSS */

/* Import Roboto font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* HeizOel24 Colors */
:root {
    --heizoel-green: #3b961a;
    --heizoel-orange: #ff8c00;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #333;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--heizoel-green);
    font-weight: bold;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.navbar-brand {
    color: var(--heizoel-green) !important;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--heizoel-green) !important;
}

.bg-heizoel-green {
    background-color: var(--heizoel-green);
}

.text-heizoel-green {
    color: var(--heizoel-green);
}

/* Buttons */
.btn-heizoel {
    background-color: var(--heizoel-green);
    border-color: var(--heizoel-green);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-heizoel:hover {
    background-color: #2d7014;
    border-color: #2d7014;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-block;
}

/* Cards */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: var(--gray-light);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
    font-weight: bold;
    color: var(--heizoel-green);
}

.card-body {
    padding: 1.25rem;
}

/* Pricing */
.price-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--heizoel-green);
}

.price-small {
    font-size: 1.25rem;
    color: var(--gray-medium);
}

/* Tables */
.table {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table th {
    background-color: var(--heizoel-green);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 500;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.table tbody tr:hover {
    background-color: var(--gray-light);
}

/* Forms */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--heizoel-green);
    box-shadow: 0 0 0 0.2rem rgba(59, 150, 26, 0.25);
}

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

/* Alerts */
.alert {
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Badges */
.badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
}

.badge-success {
    background-color: var(--heizoel-green);
}

.badge-warning {
    background-color: var(--heizoel-orange);
}

/* Navigation */
.nav-tabs .nav-link {
    color: var(--gray-medium);
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
    color: var(--heizoel-green);
    border-bottom-color: var(--heizoel-green);
    background: none;
}

/* Enhanced Responsive Design */
@media (max-width: 991px) {
    .container, .container-fluid {
        padding: 0 15px;
    }
    
    .row {
        margin: 0 -10px;
    }
    
    .col, .col-lg-8, .col-lg-4, .col-md-6, .col-md-8, .col-md-4 {
        padding: 0 10px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .container, .container-fluid {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 15px;
        min-height: 44px; /* Touch target compliance */
    }
    
    .table-responsive {
        border: none;
        font-size: 14px;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .container, .container-fluid {
        padding: 0 8px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        font-size: 13px;
        padding: 8px 12px;
        min-width: 80px;
    }
    
    .form-control {
        padding: 10px 12px;
    }
}

/* Header specific */
header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus states for accessibility */
button:focus,
.btn:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #3b961a;
    outline-offset: 2px;
}

/* Skip to content for screen readers */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3b961a;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
}

.skip-to-content:focus {
    top: 6px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Improve button touch targets */
.btn, button, .clickable-detail {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Text selection colors */
::selection {
    background: #3b961a;
    color: white;
}

::-moz-selection {
    background: #3b961a;
    color: white;
}

.navbar {
    padding: 0.5rem 0;
}

.phone-link {
    color: var(--heizoel-green);
    text-decoration: none;
    font-weight: 500;
}

.phone-link:hover {
    color: var(--heizoel-green);
}

/* Page content */
.page-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    padding: 2rem;
}

/* Footer */
footer {
    background-color: var(--gray-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: #ccc;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

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

.w-100 {
    width: 100%;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}