.dvwe-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #f0f0f0;
    padding: 20px;
}

.dvwe-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dvwe-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111;
}

.dvwe-search-info {
    margin: 8px 0 18px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
}

.dvwe-search-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.dvwe-search-top-row,
.dvwe-search-filters-row,
.dvwe-search-actions-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.dvwe-search-top-row {
    align-items: stretch;
    flex-wrap: wrap;
}

.dvwe-search-filters-row {
    align-items: center;
}

.dvwe-search-actions-row {
    justify-content: flex-end;
}

.dvwe-search-input-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.dvwe-search-input,
.dvwe-sort-select,
.dvwe-search-mode-select,
.dvwe-area-select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.dvwe-search-input {
    flex: 1;
    min-width: 0;
}

.dvwe-search-help {
    position: absolute;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.dvwe-search-help-toggle {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.dvwe-search-help-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, 80vw);
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.45;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    transform: translateY(-4px);
    z-index: 40;
}

.dvwe-search-help:hover .dvwe-search-help-tooltip,
.dvwe-search-help:focus-within .dvwe-search-help-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dvwe-search-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.dvwe-search-reset:hover {
    background: #f8f7f7;
}

.dvwe-search-button {
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #1d4ed8;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.dvwe-search-button:hover {
    filter: brightness(1.04);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
    transform: translateY(-1px);
}

.dvwe-search-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
}

.dvwe-search-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.dvwe-sort-select,
.dvwe-search-mode-select,
.dvwe-area-select {
    min-width: 0;
    width: calc(33.333% - 7px);
    background: #fff;
}

.dvwe-search-button {
    flex: 0 0 auto;
}

.dvwe-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.dvwe-page-link .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-decoration: none;
    color: #111;
    background: #fff;
}

.dvwe-page-link .page-numbers.current {
    border-color: #111;
    font-weight: 700;
}

.dvwe-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    table-layout: fixed;
}

.dvwe-table th,
.dvwe-table td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
}

.dvwe-table th {
    background: #f8f8f8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #666;
}

.dvwe-logo-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.dvwe-logo-wrap {
    width: auto;
    max-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.dvwe-logo-name img {
    display: block;
    width: auto;
    max-width: 140px;
    max-height: 84px;
    height: auto;
    object-fit: contain;
}

.dvwe-company-name {
    display: block;
    line-height: 1.35;
    word-break: break-word;
}

.dvwe-table td {
    word-break: normal;
    overflow-wrap: anywhere;
}

.dvwe-table th:nth-child(1),
.dvwe-table td:nth-child(1) {
    width: 28%;
}

.dvwe-table th:nth-child(2),
.dvwe-table td:nth-child(2) {
    width: 72%;
}

.dvwe-table tbody tr + tr td {
    border-top: 1px solid #edf2f7;
}

.dvwe-cell-primary,
.dvwe-cell-content {
    vertical-align: top;
}

.dvwe-entry-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dvwe-entry-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dvwe-entry-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.dvwe-entry-value {
    color: #111;
    line-height: 1.55;
}

.dvwe-entry-actions {
    display: grid;
    grid-template-columns: minmax(72px, 20%) minmax(0, 80%);
    gap: 12px;
    margin-top: 18px;
    align-items: stretch;
}

.dvwe-details-button,
.dvwe-back-button {
    padding: 10px 16px;
    border-radius: 10px;
    background: #ffffff;
    color: #111111;
    border: 1px solid #dddddd;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.dvwe-details-button {
    width: 100%;
}

.dvwe-fav-star {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.dvwe-fav-star:hover {
    color: #f59e0b;
    border-color: #f59e0b;
}

.dvwe-fav-star.is-active {
    color: #f59e0b;
    border-color: #f59e0b;
    background: #fffbeb;
}

.dvwe-fav-star.dvwe-fav-remove {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff5f5;
}

.dvwe-fav-star.dvwe-fav-remove:hover {
    color: #b91c1c;
    border-color: #fca5a5;
}

@media (max-width: 1024px) {
    .dvwe-table th,
    .dvwe-table td {
        padding: 14px 16px;
    }
}

@media (max-width: 820px) {
    .dvwe-search-top-row,
    .dvwe-search-filters-row {
        flex-direction: column;
    }

    .dvwe-search-input,
    .dvwe-search-input-wrap,
    .dvwe-sort-select,
    .dvwe-search-mode-select,
    .dvwe-area-select,
    .dvwe-search-button,
    .dvwe-search-reset {
        width: 100%;
    }

    .dvwe-entry-actions {
        grid-template-columns: 1fr;
    }

    .dvwe-table {
        display: block;
        overflow-x: auto;
        white-space: normal;
    }

    .dvwe-logo-wrap,
    .dvwe-logo-name img {
        max-width: 120px;
    }
}

.dvwe-detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.profile-card {
    max-width: 700px;
    margin: 20px auto;
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 24px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 220px;
}

.logo {
    width: auto;
    max-width: 220px;
    max-height: 140px;
    height: auto;
    object-fit: contain;
    object-position: center right;
    display: block;
}

.company-name h1 {
    font-size: 36px;
    color: #111;
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 24px;
    color: #111;
    margin-bottom: 15px;
    font-weight: 600;
}

section {
    margin-bottom: 35px;
}

.profile-section p {
    margin-bottom: 12px;
    color: #111;
    font-size: 16px;
    line-height: 1.6;
}

.profile-text-block {
    margin-top: 12px;
}

.profile-text-block p {
    margin-top: 6px;
}

.profile-section strong {
    font-weight: 500;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.tag {
    padding: 6px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
}

.services-section ul {
    list-style: none;
    margin: 15px 0;
}

.services-section li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #333;
}

.services-section li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c4a5e;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.references-list {
    display: grid;
    gap: 20px;
}

.reference-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    background: #fff;
}

.reference-card h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: #1a1a1a;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    table-layout: fixed;
}

.reference-table th,
.reference-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    vertical-align: top;
    font-size: 16px;
}

.reference-table th {
    width: 32%;
    font-weight: 600;
    color: #1a1a1a;
}

.reference-table td {
    color: #333;
}

.reference-table tr:last-child th,
.reference-table tr:last-child td {
    border-bottom: none;
}

.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.media-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.media-content img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.media-text h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.media-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.download-link {
    color: #1a5490;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.download-link:hover {
    text-decoration: underline;
}

.contact-card {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: right;
}

.contact-section h2{
    text-align: right;
}

.contact-photo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 6px;
}

.profile-website-logo-link {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.profile-website-logo-link a {
    display: inline-flex;
}

.website-logo {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
}

.services-section p{
    font-size: 16px;
}

.gallery-section {
    margin-bottom: 35px;
}

.dvwe-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dvwe-gallery-grid a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.dvwe-gallery-grid img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.contact-info h3 {
    font-size: 18px;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.contact-info > p {
    font-size: 14px;
    color: #666;
    margin: 0 0 4px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.icon {
    width: 16px;
    height: 16px;
    color: #666;
}

.social-icons {
    display: flex;
    gap: 8px;
    margin: 5px 0;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .dvwe-container {
        padding: 14px;
        margin: 18px auto;
    }

    .dvwe-title {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .dvwe-table {
        display: block;
        box-shadow: none;
        background: transparent;
    }

    .dvwe-search-bar {
        flex-direction: column;
    }

    .dvwe-search-top-row,
    .dvwe-search-filters-row,
    .dvwe-search-actions-row {
        flex-direction: column;
    }

    .dvwe-search-input,
    .dvwe-sort-select,
    .dvwe-search-mode-select,
    .dvwe-area-select,
    .dvwe-search-button,
    .dvwe-search-reset {
        width: 100%;
    }

    .dvwe-gallery-grid {
        grid-template-columns: 1fr;
    }

    .dvwe-table thead {
        display: none;
    }

    .dvwe-table tbody {
        display: block;
    }

    .dvwe-table tr {
        display: block;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 16px;
        padding: 12px 14px;
        margin-bottom: 12px;
        box-shadow: 0 4px 18px rgba(0,0,0,0.04);
    }

    .dvwe-table td {
        display: block;
        padding: 10px 0;
        border: none;
    }

    .dvwe-table td:nth-child(1)::before { content: "Dienstleister"; }
    .dvwe-table td:nth-child(2)::before { content: "Informationen"; }

    .dvwe-table td::before {
        display: block;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #64748b;
        margin-bottom: 4px;
    }

    .dvwe-fav-star,
    .dvwe-details-button,
    .dvwe-back-button {
        width: 100%;
    }

    .dvwe-entry-actions {
        grid-template-columns: 1fr;
    }

    .dvwe-detail-actions {
        gap: 10px;
        flex-direction: column;
    }

    .bottom-section {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 20px;
    }

    .logo-section {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .logo {
        max-width: 220px;
        object-position: left center;
    }

    .profile-website-logo-link {
        justify-content: flex-start;
    }

    .reference-table,
    .reference-table tbody,
    .reference-table tr,
    .reference-table th,
    .reference-table td {
        display: block;
        width: 100%;
    }

    .reference-table th {
        padding-bottom: 4px;
        border-bottom: none;
    }

    .reference-table td {
        padding-top: 0;
    }
}