/**
 * ZUTATA - Custom Styles
 * Main stylesheet for recipe database application
 */

/* Global Styles */
:root {
    --font-primary: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #e6f2ff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --accent-color: #ff6b6b;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-800: #343a40;
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
    color: #333;
    font-family: var(--font-family);
}

footer {
    margin-top: auto;
}

/* Header & Navigation */
.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.8px;
    font-size: 1.5rem;
    margin-right: 1.5rem;
}

.navbar-transparent {
    background-color: transparent !important;
    transition: background-color 0.3s ease;
}

.navbar-scrolled {
    background-color: var(--primary-color) !important;
    box-shadow: var(--box-shadow-sm);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: var(--standard-transition);
    border-bottom: 2px solid transparent;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    border-bottom: 2px solid #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 550px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 2.4rem 1.6rem; /* 20% Reduktion: 3rem -> 2.4rem, 2rem -> 1.6rem */
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.4rem; /* 20% Reduktion: 1.8rem -> 1.4rem */
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.6rem;
    margin: 0;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
    max-width: 700px;
    margin: 0 auto;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px; /* 20% Reduktion: 20px -> 16px */
    margin-top: 0.8rem; /* 20% Reduktion: 1rem -> 0.8rem */
}

.hero-buttons .btn {
    padding: 0.85rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    min-width: 180px;
    margin: 0;
    border-radius: 50px;
}

.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.hero-buttons .btn-outline-light {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-buttons .btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: -2px; /* Leicht überlappen lassen um Lücken zu vermeiden */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(0deg);
    z-index: 10;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
}

.wave-divider .shape-fill {
    fill: #FFFFFF;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Recipe Cards */
.card {
    transition: var(--standard-transition);
    margin-bottom: 1rem;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: var(--box-shadow-lg) !important;
}

/* Gemeinsame Basis-Styles für alle Placeholder */
.recipe-placeholder,
.zutata-recipe-placeholder {
    height: 180px !important;
    background-color: var(--gray-200) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--secondary-color) !important;
    overflow: hidden !important;
}

/* Spezifische Styles für recipe-placeholder */
.recipe-placeholder {
    position: relative !important;
}

/* Spezifische Styles für zutata-recipe-placeholder */
.zutata-recipe-placeholder {
    border-radius: 0.25rem 0.25rem 0 0 !important;
    border: none !important;
    position: relative !important;
    min-height: 200px !important;
    background-color: var(--gray-200) !important;
    width: 100% !important;
    display: block !important;
    overflow: hidden !important;
}

/* Gemeinsame Icon-Styles */
.recipe-placeholder::after,
.zutata-recipe-placeholder::before {
    content: '\F133' !important;
    font-family: 'Bootstrap-icons' !important;
    font-size: 3rem !important;
}

/* Spezifische Positionierungen */
.recipe-placeholder::after {
    position: absolute !important;
    z-index: 5 !important;
}

.zutata-recipe-placeholder::before {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: var(--secondary-color) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Star Rating */
.bi-star-fill.text-warning,
.bi-star.text-muted {
    cursor: pointer;
}

.text-light-gray {
    color: #DDDDDD;
}

.recipe-rating-display {
    display: inline-flex;
    align-items: center;
}

.recipe-rating-display .bi {
    font-size: 1.2rem;
    margin-right: 2px;
}

/* Enhanced Rating System */
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
}

.rating input {
    position: absolute;
    left: -9999px;
}

.rating label {
    display: inline-block;
    cursor: pointer;
    padding: 5px;
    font-size: 0; /* Hide any potential spacing */
    color: #DDDDDD;
    transition: all 0.2s ease;
}

.rating label i {
    font-size: 2.5rem;
}

/* Show stars as initially gray */
.rating label i {
    color: #DDDDDD;
}

/* When we hover a star or select it */
.rating input:checked ~ label i,
.rating label:hover ~ label i,
.rating label:hover i {
    color: var(--warning-color);
    transform: scale(1.1);
}

/* Accessibility focus styles */
.rating input:focus + label i {
    outline: 2px solid rgba(255, 193, 7, 0.3);
    outline-offset: 2px;
}

/* Mobile Breakpoint für alle Geräte unter 768px */
@media (max-width: 767.98px) {
    /* Rating-System */
    .rating label i {
        font-size: 2.2rem;
    }
    
    /* Hero-Section */
    .hero-content {
        padding: 0.8rem 0.64rem; /* 20% Reduktion: 1rem -> 0.8rem, 0.8rem -> 0.64rem */
        gap: 0.48rem; /* 20% Reduktion: 0.6rem -> 0.48rem */
        margin-bottom: 32px; /* 20% Reduktion: 40px -> 32px */
        margin-top: 1.6rem; /* 20% Reduktion: 2rem -> 1.6rem */
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        margin-top: 0.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.7rem 1.8rem;
        min-width: 140px;
    }
    
    .wave-divider svg {
        height: 50px; /* Kleinere Welle auf mobilen Geräten */
        bottom: 0;
    }
    
    /* Suchformulare */
    .search-form .input-group,
    .input-group-lg {
        max-width: 100%;
    }
    
    .search-input {
        padding: 0.8rem 1rem;
    }
    
    .search-button {
        padding: 0.4rem 1rem;
    }
}

/* Featured Section */
.featured-section {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-title-centered {
    text-align: center;
}

.section-title-centered::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Search Form - Unified styling */
.search-form .input-group,
.input-group-lg {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: visible;
    border-radius: 50px;
    margin: 0.8rem auto 0; /* 20% Reduktion: 1rem -> 0.8rem */
    max-width: 650px;
}

.mobile-search-group {
    display: flex;
    flex-wrap: nowrap;
}

.search-input {
    flex: 1;
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
}

.search-button {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
    white-space: nowrap;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Card Headers - Make all white background */
.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Custom styling for search button to match existing color scheme */
.input-group-lg .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Focus effect for the entire input group */
.input-group-lg:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Remove individual component focus shadows */
.input-group-lg .form-control:focus,
.input-group-lg .btn-primary:focus {
    box-shadow: none;
}

/* Consistent border color when focused */
.input-group-lg:focus-within .form-control,
.input-group-lg:focus-within .btn-primary {
    border-color: var(--primary-color);
}

/* File Upload */
.image-upload-container {
    position: relative;
    width: 100%;
    height: 300px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
    background-color: #f8f9fa;
    overflow: hidden;
}

.image-upload-container:hover {
    border-color: var(--primary-color);
}

.image-upload-container.has-image {
    border: none;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-text {
    color: #6c757d;
    font-size: 1.1rem;
    text-align: center;
    padding: 0 1rem;
}

.upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
}

.upload-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.upload-remove:hover {
    background-color: rgba(220, 53, 69, 0.8);
    color: #fff;
}

/* User Profile */
.avatar-placeholder {
    width: 100px;
    height: 100px;
    background-color: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--secondary-color);
}

/* Shopping List */
.form-check-input:checked + .form-check-label {
    text-decoration: line-through;
    color: #6c757d;
}

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem; /* Erhöhter Abstand zwischen Filtern und Inhalten */
}

.category-pill {
    padding: 8px 18px;
    border-radius: 50px;
    background-color: var(--gray-100);
    color: var(--gray-800);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.category-pill:hover, .category-pill.active {
    background-color: var(--primary-color);
    color: white;
}

/* Mobile Adjustments - ergänzend zum oberen Medien-Query */
@media (max-width: 767.98px) {
    /* Bilder und Placeholder */
    .card-img-top,
    .recipe-placeholder {
        height: 160px;
    }
    
    .image-upload-container {
        height: 200px;
    }
    
    /* Hero-Section - überschreibt spezifische Angaben */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .wave-divider svg {
        height: 60px;
    }
    
    /* Suchformular Mobile-Anpassungen */
    .mobile-search-group {
        flex-direction: row;
        gap: 0;
        position: relative;
        padding: 5px;
        background: #fff;
        border-radius: 50px;
        margin: 0 15px;
    }
    
    .search-input {
        flex: 1;
        border: none !important;
        background: transparent !important;
        padding-left: 20px;
        height: 46px;
    }
    
    .search-button {
        border-radius: 50px !important;
        padding: 8px 20px;
        margin: 0 !important;
        height: 46px;
        transition: all 0.3s ease;
    }
    
    .search-form .form-control:focus {
        background: transparent;
        box-shadow: none;
    }
    
    /* Navigation Mobilgeräte */
    .navbar-toggler {
        background-color: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.8);
        padding: 0.5rem 0.75rem;
        margin-right: 0.5rem;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover, .navbar-toggler:focus {
        background-color: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 1);
        outline: none;
        box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.3);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 1.5em;
        height: 1.5em;
    }
    
    /* Make sure the menu is readable when opened */
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
}

/* Spinner for AJAX Loading */
.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Tabs */
.nav-tabs .nav-link {
    color: var(--secondary-color);
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
}

/* Icon Standardgröße für bessere Sichtbarkeit und Touch-Bedienung */
.zutata-icon {
    font-size: 1.6rem; /* ~26px bei 16px Basis-Schriftgröße */
    vertical-align: middle;
    color: var(--primary-color); /* Hervorhebung durch Primärfarbe */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Größere Icons auf Mobilgeräten, wo sie besonders wichtig sind */
@media (max-width: 767.98px) {
    .zutata-icon {
        font-size: 1.8rem; /* ~29px bei 16px Basis-Schriftgröße */
    }
}

/* Recipe Edit Page Styles */

/* Allgemeine Formular-Elemente */
.remove-btn {
    cursor: pointer;
}
.ingredient-row, .step-row {
    margin-bottom: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.section-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 1.5rem 0;
}

/* Rezept-Editor Formularelemente */
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: #6c757d;
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
}
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Select2 für Kategorien-Auswahl */
.select2-container {
    width: 100% !important;
}
.select2-container .select2-selection--multiple {
    min-height: 45px;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 5px;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #6c757d;
    box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 3px 8px;
    margin: 3px 5px 3px 0;
}

/* Kategorie-Checkboxen Stil */
.category-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
    max-height: 300px;
    overflow-y: auto;
}

.category-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-item input[type="checkbox"] {
    margin-right: 8px;
}

.category-item label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.selected-categories {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.category-badge {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    margin-bottom: 5px;
    color: #495057;
}

.category-badge .close {
    margin-left: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.category-badge .close:hover {
    color: #dc3545;
}

/* Portionssteuerung im Rezept-Editor */
.portion-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 180px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.portion-control button {
    width: 48px;
    height: 48px;
    border: none;
    background-color: #f8f9fa;
    color: #495057;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.portion-control button:hover {
    background-color: #e9ecef;
}
.portion-control button:active {
    background-color: #dee2e6;
}
.portion-control input {
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    height: 48px;
    font-size: 18px;
    font-weight: 500;
    color: #212529;
    width: 100%;
    flex-grow: 1;
    min-width: 40px;
    padding: 0;
    border-radius: 0;
    background: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.portion-control input:focus {
    outline: none;
    box-shadow: none;
}

/* Hide the number input spinner buttons */
.portion-control input::-webkit-outer-spin-button,
.portion-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none; /* Standard-Property für Kompatibilität */
    margin: 0;
}
.portion-control input[type=number] {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield; /* Standard-Property für Kompatibilität */
}

/* Mobile-Anpassungen für Formular-Elemente - Unified Mobile Breakpoint */
@media (max-width: 767.98px) {
    /* Kategorie-Container */
    .category-container {
        max-height: 200px;
    }
    
    /* Cards */
    .card {
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Formulare und Buttons */
    .form-control, .form-select {
        padding: 0.6rem 0.75rem;
        height: auto;
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 1rem;
        border-radius: 6px;
        margin-bottom: 0.5rem;
    }
    
    /* Zutaten und Schritte */
    .ingredient-row, .step-row {
        padding: 8px 0;
        margin-bottom: 12px;
    }
    
    .ingredient-row .col-md-2,
    .ingredient-row .col-md-2 input,
    .ingredient-row .col-md-7,
    .ingredient-row .col-md-7 input {
        margin-bottom: 8px;
        width: 100%;
    }
    
    /* Hilfsklassen für Mobile */
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-mt-3 {
        margin-top: 1rem;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
    input[type="file"] {
        font-size: 14px;
    }
    
    /* Select2 Mobil-Anpassungen */
    .select2-container .select2-selection--multiple {
        min-height: 38px;
    }
    
    /* Portionssteuerung Mobile */
    .portion-control {
        max-width: none;
        height: 44px;
    }
    
    .portion-control button {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .portion-control input {
        height: 44px;
        font-size: 16px;
    }
    
    /* Zusätzliche Abstände zwischen Sektionen */
    .mb-4 {
        margin-bottom: 1.75rem !important;
    }
    
    /* Bessere Trennung von Sektionen */
    .section-title {
        font-size: 1.25rem;
        font-weight: 700;
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
        border-bottom: none;
        color: #333;
        position: relative;
    }
    
    .section-title::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100px;
        border-bottom: 2px solid #007bff;
    }
}

/* Spinner for AJAX Loading */
.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Tabs */
.nav-tabs .nav-link {
    color: var(--secondary-color);
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
}

/* Icon Standardgröße für bessere Sichtbarkeit und Touch-Bedienung */
.zutata-icon {
    font-size: 1.6rem; /* ~26px bei 16px Basis-Schriftgröße */
    vertical-align: middle;
    color: var(--primary-color); /* Hervorhebung durch Primärfarbe */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Größere Icons auf Mobilgeräten, wo sie besonders wichtig sind */
@media (max-width: 767.98px) {
    .zutata-icon {
        font-size: 1.8rem; /* ~29px bei 16px Basis-Schriftgröße */
    }
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 500;
    border-bottom: 2px solid var(--primary-color);
    background-color: transparent;
}

.nav-tabs .nav-link:hover {
    border-color: transparent transparent var(--primary-color);
}

/* Account deletion tab styles */
#delete-confirmation-container .form-check-input:checked + .form-check-label {
    text-decoration: none;
    font-weight: 500;
}

/* Verhindern des Durchstreichens bei Formular-Checkboxen */
.form-check-input:checked + .form-check-label {
    text-decoration: none;
}

/* Zusätzlich für Links innerhalb von Checkbox-Labels */
.form-check-input:checked + .form-check-label a {
    text-decoration: none;
    color: var(--primary-color);
}

.delete-list {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.delete-list li {
    margin-bottom: 0.5rem;
    isolation: isolate;
}

.card-header-tabs {
    margin-right: 0;
    margin-bottom: -1px;
    margin-left: 0;
    border-bottom: 0;
}

/* Standardisierte Transitions und Schatten */
:root {
    /* Transitions und Schatten */
    --standard-transition: all 0.3s ease;
    --box-shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --box-shadow-lg: 0 15px 30px rgba(0,0,0,0.1);
    
    /* Standardisierte Abstände */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-xxl: 2.5rem;   /* 40px */
    --spacing-xxxl: 3rem;    /* 48px */
}

/* Feature Cards */
.feature-card {
    padding: 2.5rem;
    text-align: center;
    transition: var(--standard-transition);
    box-shadow: var(--box-shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg) !important;
}

.feature-card .feature-icon {
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 2rem;
    transition: var(--standard-transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-card h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

footer a {
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

/* Print Styles */
@media print {
    header, footer, nav, form, .btn, .no-print {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .card {
        border: none;
        box-shadow: none !important;
    }
    
    body {
        background-color: #fff;
        font-size: 12pt;
    }
}
