/* YourHostList.de - Public Styles */

img,
svg {
    margin: 10px 0 0 0;
    vertical-align: middle;
}

:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation */
.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.nav-link.active {
    font-weight: 600;
}

/* Content */
.page-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

/* Content links */
.page-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.page-content a:hover {
    border-bottom-color: var(--primary);
}

/* Content lists */
.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.35rem;
}

/* Content tables */
.page-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.page-content table th,
.page-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.page-content table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.page-content table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Responsive tables */
@media (max-width: 768px) {
    .page-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .page-content table th,
    .page-content table td {
        padding: 0.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.875rem;
}

/* Cards */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 0.5rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Search */
.list-group-item h2 {
    color: var(--primary);
}

.list-group-item:hover h2 {
    text-decoration: underline;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a:hover {
    color: #fff !important;
}

/* FAQ Section */
.faq-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.faq-section h2 {
    margin-bottom: 1.25rem;
}

.faq-item {
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-item h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-item h3:hover {
    background-color: #e9ecef;
}

.faq-item h3::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: #6c757d;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.2s;
}

.faq-item.open h3::after {
    content: "\2212";
}

.faq-answer {
    display: none;
    padding: 1rem 1.25rem;
    border-top: 1px solid #dee2e6;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    .page-content {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
