/* Basisstil für Hero-Container */
.hero {
    position: relative;
    overflow: hidden;
}

/* Sichtbarer Inhalt im Vordergrund */
.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 20px;
}

/* Rotierender Gitterhintergrund */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='rays' x='0' y='0' width='50' height='50' patternUnits='userSpaceOnUse'%3E%3Cpath d='M25,0 L25,50 M0,25 L50,25' stroke='rgba(255,255,255,0.08)' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23rays)'/%3E%3C/svg%3E");
    animation: rotate 60s linear infinite;
    transform: translateZ(0);
    will-change: transform;
    z-index: 0;
}

/* Dreh-Animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll-Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Search Styles */
.faq-search-container {
    margin: 2rem 0;
    display: block !important;
    visibility: visible !important;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.search-box {
    display: flex !important;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    visibility: visible !important;
}

#faq-search {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
    background: white;
    display: block !important;
}

.search-btn {
    background: #ff6b35;
    border: none;
    padding: 15px 20px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #e55a2b;
}

.faq-results {
    display: none;
    margin-top: 2rem;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-search-container {
    margin: 2rem 0;
    display: block !important;
    visibility: visible !important;
}

.search-box {
    display: flex !important;
    visibility: visible !important;
}

.faq-results.show {
    display: block;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.search-results-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.clear-search {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.clear-search:hover {
    background: #d32f2f;
}

.search-result {
    margin-bottom: 1rem;
}

.search-result:last-child {
    margin-bottom: 0;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results p {
    margin-bottom: 10px;
}

.no-results a {
    color: #007bff;
    text-decoration: none;
}

.no-results a:hover {
    text-decoration: underline;
}

.search-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Model Information Styles */
.model-info {
    background: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.model-info h3 {
    margin: 0 0 15px 0;
    color: #007bff;
    font-size: 1.4em;
}

.model-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.model-details p {
    margin: 5px 0;
    color: #555;
}

/* Series Overview Styles */
.series-overview {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.series-overview h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.series-table-grid {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9em;
}

.series-table-grid th,
.series-table-grid td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.series-table-grid th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #007bff;
}

.series-table-grid tr:hover {
    background: #f8f9fa;
}

.series-table-grid tr.current-model {
    background: #e3f2fd;
    border-left: 4px solid #007bff;
}

.series-table-grid tr.current-model td {
    font-weight: 500;
}

.series-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.series-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.series-item.current {
    background: #e3f2fd;
    border-color: #007bff;
    font-weight: bold;
}

.model-name {
    color: #333;
    font-weight: 500;
}

.model-power {
    color: #666;
    font-size: 0.9em;
}

/* Safety Distances Styles */
.safety-distances {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.safety-distances h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.safety-table-grid {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9em;
}

.safety-table-grid th,
.safety-table-grid td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.safety-table-grid th {
    background: #fff3e0;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ff6b35;
}

.safety-table-grid tr:hover {
    background: #fff3e0;
}

.safety-table-grid td:first-child {
    color: #ff6b35;
    font-weight: bold;
}

.safety-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.safety-row {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #ff6b35;
}

.angle {
    font-weight: bold;
    color: #ff6b35;
    min-width: 40px;
    margin-right: 15px;
}

.distances {
    color: #555;
    font-size: 0.9em;
}

/* Applications Styles */
.applications {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.applications h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.applications-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.application-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.app-name {
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.app-category {
    color: #666;
    font-size: 0.9em;
    margin-right: 10px;
}

.suitability {
    color: #28a745;
    font-weight: bold;
    font-size: 0.9em;
}

.app-notes {
    margin: 8px 0 0 0;
    color: #555;
    font-size: 0.85em;
    font-style: italic;
}

/* Related FAQs Styles */
.related-faqs {
    margin-top: 20px;
}

.related-faqs h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

/* FAQ Item Styles */
.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    line-height: 1.6;
    color: #555;
}
