
.od-mobile-search-container {
    display: none;
    position: relative;
    max-width: 100%;
    margin: 0 auto 1.5rem auto; /* Kein Top-Margin, damit es direkt unter Header kommt */
    padding: 1rem;
    background: transparent; /* KEIN grauer Hintergrund */
    z-index: 1; /* Niedrigere z-index als Header */
}

.od-mobile-search-text-wrapper {
    height: 45px;
    overflow: hidden;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* KEIN grauer Hintergrund */
}

.od-mobile-search-animated-text {
    color: #2c5530;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.4;
    position: relative;
    width: 100%;
    background: transparent; /* KEIN grauer Hintergrund */
}

.od-mobile-search-text-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    background: transparent; /* KEIN grauer Hintergrund */
}

.od-mobile-search-text-item.od-active {
    opacity: 1;
    transform: translateY(0);
}

.od-mobile-search-text-item.od-exit {
    opacity: 0;
    transform: translateY(-20px);
}

.od-mobile-search-input-wrapper {
    position: relative;
    background: #ffffff; /* Nur das Eingabefeld weiß */
    border-radius: 22px;
    box-shadow: 
        0 2px 20px rgba(0,0,0,0.08),
        0 1px 3px rgba(0,0,0,0.1);
    padding: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 1rem;
}

.od-mobile-search-input-wrapper:focus-within {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 25px rgba(76, 175, 80, 0.15),
        0 2px 8px rgba(0,0,0,0.1);
    border-color: rgba(76, 175, 80, 0.3);
    background: #ffffff;
}

.od-mobile-search-input-field {
    width: 100%;
    padding: 16px 60px 16px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background: #ffffff;
    border-radius: 22px;
    color: #333;
    font-weight: 400;
    letter-spacing: 0.2px;
    
    /* Sanfte Browser-Resets ohne Funktionalitätsverlust */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* PLACEHOLDER STYLES */
.od-mobile-search-input-field::placeholder {
    color: #999;
    transition: all 0.3s ease;
    font-weight: 300;
}

.od-mobile-search-input-field:focus::placeholder {
    opacity: 0.6;
    transform: translateX(4px);
}

.od-mobile-search-input-field:-webkit-autofill,
.od-mobile-search-input-field:-webkit-autofill:hover,
.od-mobile-search-input-field:-webkit-autofill:focus,
.od-mobile-search-input-field:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset;
    -webkit-text-fill-color: #333;
    background: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
}

.od-mobile-search-input-field:-moz-autofill {
    background: #ffffff;
    color: #333;
}

.od-mobile-search-input-field[type="search"] {
    background: #ffffff;
}

.od-mobile-search-input-field::-webkit-search-decoration,
.od-mobile-search-input-field::-webkit-search-cancel-button,
.od-mobile-search-input-field::-webkit-search-results-button,
.od-mobile-search-input-field::-webkit-search-results-decoration {
    display: none;
}

.od-mobile-search-input-field:focus {
    background: #ffffff;
    outline: none;
    border: none;
}

.od-mobile-search-submit-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
}

.od-mobile-search-submit-btn:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.3);
}

.od-mobile-search-submit-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.od-mobile-search-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.2);
    animation: od-mobile-search-pulse 4s infinite;
    z-index: -1;
}

@keyframes od-mobile-search-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
}

.od-mobile-search-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
    padding: 0 0.5rem;
    background: transparent; /* KEIN grauer Hintergrund */
}

.od-mobile-search-quick-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 18px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
    white-space: nowrap;
}

.od-mobile-search-quick-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.od-mobile-search-quick-btn:active {
    transform: translateY(0);
}

@keyframes od-mobile-search-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.od-mobile-search-shake {
    animation: od-mobile-search-shake 0.4s ease-in-out;
}

.od-mobile-search-loading .od-mobile-search-input-wrapper {
    background: #ffffff;
    pointer-events: none;
}

.od-mobile-search-loading .od-mobile-search-input-field {
    background: #ffffff;
}

.od-mobile-search-loading .od-mobile-search-submit-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.od-mobile-search-submit-btn.od-ready {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.od-mobile-search-submit-btn.od-typing {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.od-mobile-search-submit-btn.od-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.od-mobile-search-submit-btn.od-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.od-mobile-search-container {
    /* Positionierung relativ zum normalen Dokumentenfluss */
    position: relative;
    order: -1; /* Erscheint vor anderen Elementen im gleichen Container */
}

.section.container .od-mobile-search-container {
    margin-bottom: 2rem; /* Abstand zu den Features */
    margin-top: 0; /* Kein Abstand nach oben */
}

@media (max-width: 768px) {
    .od-mobile-search-container {
        display: block;
    }
    
    /* Sicherstellen, dass Features NACH der Suchfunktion kommen */
    .section.container .row {
        order: 1;
    }
}

@media (max-width: 480px) {
    .od-mobile-search-animated-text {
        font-size: 1rem;
    }
    
    .od-mobile-search-input-field {
        padding: 14px 55px 14px 18px;
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
    
    .od-mobile-search-submit-btn {
        width: 40px;
        height: 40px;
        right: 4px;
        font-size: 16px;
    }
    
    .od-mobile-search-container {
        margin: 0 auto 1.5rem auto;
        padding: 0.5rem;
    }
    
    .od-mobile-search-quick-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .od-mobile-search-submit-btn:hover {
        transform: translateY(-50%) scale(1);
    }
    
    .od-mobile-search-submit-btn:active {
        transform: translateY(-50%) scale(0.95);
        background: linear-gradient(135deg, #45a049, #3d8b40);
    }
    
    .od-mobile-search-quick-btn:hover {
        transform: translateY(0);
    }
    
    .od-mobile-search-quick-btn:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, #45a049, #3d8b40);
    }
}

@media (prefers-contrast: high) {
    .od-mobile-search-container {
        background: transparent;
    }
    
    .od-mobile-search-input-wrapper {
        border: 2px solid #333;
        background: #ffffff;
    }
    
    .od-mobile-search-input-wrapper:focus-within {
        border-color: #000;
        background: #ffffff;
    }
    
    .od-mobile-search-input-field {
        background: #ffffff;
        color: #000;
    }
    
    .od-mobile-search-submit-btn {
        background: #000;
        border: 2px solid #fff;
    }
    
    .od-mobile-search-quick-btn {
        background: #000;
        border: 1px solid #fff;
    }
}

@media (prefers-color-scheme: dark) {
    .od-mobile-search-container {
        background: transparent; /* KEIN grauer Hintergrund */
    }
    
    .od-mobile-search-input-wrapper {
        background: #ffffff; /* Container bleibt weiß */
        border-color: rgba(0,0,0,0.1);
        box-shadow: 
            0 2px 20px rgba(0,0,0,0.3),
            0 1px 3px rgba(0,0,0,0.2);
    }
    
    .od-mobile-search-input-field {
        color: #333; /* Dunkler Text auf weißem Hintergrund */
        background: #ffffff; /* Eingabefeld bleibt weiß */
    }
    
    .od-mobile-search-input-field::placeholder {
        color: #999; /* Placeholder bleibt lesbar */
    }
    
    .od-mobile-search-animated-text {
        color: #4CAF50;
    }
}

@media (prefers-reduced-motion: reduce) {
    .od-mobile-search-text-item {
        transition: opacity 0.3s ease;
        transform: none;
    }
    
    .od-mobile-search-text-item.od-active {
        transform: none;
    }
    
    .od-mobile-search-text-item.od-exit {
        transform: none;
    }
    
    .od-mobile-search-submit-btn::after {
        animation: none;
        opacity: 0;
    }
    
    .od-mobile-search-input-wrapper,
    .od-mobile-search-submit-btn,
    .od-mobile-search-quick-btn {
        transition: box-shadow 0.2s ease, background 0.2s ease;
    }
}

.od-mobile-search-submit-btn:focus {
    outline: none;
    box-shadow: 
        0 2px 8px rgba(76, 175, 80, 0.25),
        0 0 0 3px rgba(76, 175, 80, 0.2);
}

.od-mobile-search-quick-btn:focus {
    outline: none;
    box-shadow: 
        0 2px 6px rgba(76, 175, 80, 0.2),
        0 0 0 2px rgba(76, 175, 80, 0.3);
}

* {
    -webkit-tap-highlight-color: transparent;
}

.od-mobile-search-input-wrapper,
.od-mobile-search-submit-btn,
.od-mobile-search-quick-btn,
.od-mobile-search-text-item {
    will-change: transform, opacity;
}

.od-mobile-search-container * {
    box-sizing: border-box;
}

.od-mobile-search-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: normal;
    text-align: left;
    direction: ltr;
}


header + .od-mobile-search-container,
.header + .od-mobile-search-container,
#header + .od-mobile-search-container {
    margin-top: 1rem;
}

.od-mobile-search-container + .section.container {
    margin-top: 0;
}

.od-mobile-search-container {
    flex-order: 0;
}

.section.container {
    flex-order: 1;
}

