/* Trustnora Widgets: modernes, ruhiges Design (v2) */
/* Schrift: Inter, selbst gehostet (keine Verbindung zu Google Fonts) */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --tw-text: #1f2937;
    --tw-muted: #6b7280;
    --tw-soft: #f4f5f7;
    --tw-on-primary: #fff;
    --tw-accent: rgb(var(--primary_color));
}

html,
body {
    margin: 0;
    padding: 0;
    background: transparent !important;
}

body {
    color: var(--tw-text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "cv11", "ss03";
    letter-spacing: -0.006em;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.tw,
.tw * {
    box-sizing: border-box;
}

a.tw,
.tw a {
    color: inherit;
    text-decoration: none;
}

a.tw:hover,
.tw a:hover {
    color: inherit;
}

.tw img {
    display: block;
    max-width: none;
}

.tw p {
    margin: 0;
}

/* Bausteine */
.tw-muted {
    color: var(--tw-muted) !important;
    font-size: 13px;
    font-weight: 400;
}

.tw-block {
    display: block;
}

.tw-trunc {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tw-minw {
    min-width: 0;
}

.tw-center {
    text-align: center;
}

.tw-mx {
    margin-right: auto;
    margin-left: auto;
}

.tw-mt {
    margin-top: 16px;
}

.tw-mt-sm {
    margin-top: 8px;
}

.tw-mb {
    margin-bottom: 16px;
}

.tw-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tw-between {
    justify-content: space-between;
}

.tw-stars {
    width: auto;
    height: 18px;
}

.tw-stars-sm {
    height: 14px;
}

.tw-stars-lg {
    height: 24px;
}

.tw-logo {
    width: auto;
    height: 22px;
}

.tw-logo-sm {
    width: auto;
    height: 18px;
}

.tw-name {
    color: var(--tw-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.tw-name-sm {
    color: var(--tw-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.tw-score {
    color: var(--tw-text);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.tw-meta {
    color: var(--tw-muted);
    font-size: 14px;
}

.tw-meta strong {
    color: var(--tw-text);
}

.tw-rate {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.tw-avatar {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Buttons und Links */
.tw .tw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    background: var(--tw-accent);
    color: var(--tw-on-primary) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: filter 0.15s ease;
}

.tw .tw-btn:hover {
    filter: brightness(0.93);
}

.tw .tw-btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.tw .tw-btn-block {
    display: flex;
    width: 100%;
}

.tw .tw-link {
    color: var(--tw-accent) !important;
    font-size: 13.5px;
    font-weight: 600;
}

.tw .tw-link:hover {
    text-decoration: underline;
}

/* Kompakte Varianten */
.tw-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.tw-inline strong {
    color: var(--tw-text);
}

.tw-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
    font-size: 14px;
}

.tw-badge strong {
    color: var(--tw-text);
}

.tw-badge-ic {
    width: 18px;
    height: 18px;
}

.tw-compact {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.tw-compact .tw-rate {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* Karten */
.tw-card {
    width: 100%;
    max-width: 340px;
    padding: 20px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tw-card-sm {
    max-width: 320px;
}

/* Verteilung der Sterne */
.tw-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tw-bar {
    display: grid;
    grid-template-columns: 14px 1fr 38px;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
}

.tw-bar-label {
    color: var(--tw-muted);
    text-align: left;
}

.tw-bar-val {
    color: var(--tw-muted);
    text-align: right;
}

.tw-bar-track {
    display: block;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: #e8eaee;
}

.tw-bar-track i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--tw-accent);
}

/* Listen und Bewertungs-Karten */
.tw-list {
    width: 100%;
    max-width: 380px;
}

.tw-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tw-rcard {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--tw-soft);
    transition: background-color 0.15s ease;
}

.tw-rcard:hover {
    background: #eceef1;
}

.tw-rcard-top,
.tw-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tw-rcard-top {
    margin-bottom: 10px;
}

.tw-rcard-who {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.tw-rcard-title {
    margin-bottom: 4px;
    color: var(--tw-text);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
}

.tw-rcard-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #4b5563;
    font-size: 13.5px;
    line-height: 1.55;
}

.tw-card .tw-rcard-text {
    display: block;
}

/* Abschnitts-Widgets (v9, v10) */
.tw-section {
    width: 100%;
    padding: 4px;
}

.tw-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 20px;
}

.tw-head-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.tw-head-rating .tw-score {
    font-size: 34px;
}

.tw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.tw-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
    .tw-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Karussell */
.tw-viewport {
    overflow: hidden;
}

.tw-track {
    display: flex;
    transition: transform 0.45s ease;
}

.tw-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.tw-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
}

.tw-arrow {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    border: 0;
    border-radius: 50%;
    background: var(--tw-soft);
    color: var(--tw-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.tw-arrow:hover {
    background: #e8eaee;
}

.tw-dots {
    display: flex;
    gap: 6px;
}

.tw-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cfd3da;
    cursor: pointer;
}

.tw-dot.is-active {
    background: var(--tw-accent);
}

.tw-rcard,
.tw-rcard * {
    text-align: left;
}

/* v10: hoehere, ruhige Zitat-Karten mit gleicher Hoehe */
.tw-grid-3 {
    align-items: stretch;
}

.tw-rcard-quote {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: 14px;
}

.tw-rcard-quote .tw-stars {
    height: 20px;
}

.tw-quote-body {
    flex: 1 1 auto;
}

.tw-rcard-quote .tw-rcard-title {
    margin-bottom: 6px;
    font-size: 15.5px;
}

.tw-rcard-quote .tw-rcard-text {
    -webkit-line-clamp: 5;
    font-size: 14px;
    line-height: 1.6;
}

.tw-quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tw-avatar-lg {
    width: 42px;
    height: 42px;
}

/* v10: weisse Karten mit weichem Schatten */
.tw-rcard-quote {
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tw-rcard-quote:hover {
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1), 0 12px 28px rgba(15, 23, 42, 0.09);
}

.tw-rcard-quote .tw-stars {
    align-self: flex-start;
}

.tw-section .tw-carousel {
    padding: 6px 4px 10px;
}

/* v10: moderner Rand und Schatten, Platz fuer den Schatten im Karussell */
.tw-rcard-quote,
.tw-rcard-quote:hover {
    background: #fff;
}

.tw-rcard-quote {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.06), 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tw-rcard-quote:hover {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.08), 0 16px 32px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.tw-section {
    padding: 4px 12px;
}

.tw-section .tw-viewport {
    margin: -8px -12px -18px;
    padding: 8px 12px 28px;
}

.tw-carousel.has-js .tw-slide,
.has-js .tw-slide {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.has-js .tw-slide.is-active {
    opacity: 1;
}

.tw-section .tw-carousel {
    padding: 0;
}

/* v7: kompakter Kopfbereich (Logo, Zahl, Sterne kleiner) */
.tw-v7 .tw-logo {
    height: 18px;
}

.tw-v7 .tw-score {
    margin-top: 6px;
    font-size: 30px;
    font-weight: 700;
}

.tw-v7 .tw-stars-lg {
    height: 18px;
    margin-top: 6px;
}

.tw-v7 .tw-muted.tw-block {
    margin-top: 6px;
    font-size: 12.5px;
}

.tw-v7 .tw-carousel {
    margin-top: 12px;
}

/* v5: ruhige Testimonial-Karte (Kopf, Text, Fuss) */
.tw-card.tw-v5 {
    max-width: 400px;
    padding: 22px 22px 18px;
    border-radius: 12px;
}

.tw-v5-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.tw-v5-body .tw-rcard-title {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.35;
}

.tw-card.tw-v5 .tw-rcard-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    font-size: 14px;
    line-height: 1.6;
}

.tw-v5-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
}

.tw-v5-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eceef2;
}

.tw-v5-foot .tw-author {
    min-width: 0;
    flex: 1 1 auto;
}

.tw-v5-write {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid rgba(var(--primary_color), 0.35);
    border-radius: 6px;
    color: rgb(var(--primary_color)) !important;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.tw-v5-write:hover {
    background: rgba(var(--primary_color), 0.08);
}

/* Alle Bewertungskarten und Pfeile: weisser Hintergrund mit feinem Rand und weichem Schatten */
.tw-rcard,
.tw-rcard:hover {
    background: #fff;
}

.tw-rcard {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.05), 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tw-rcard:hover {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.07), 0 14px 28px rgba(15, 23, 42, 0.1);
}

.tw-arrow,
.tw-arrow:hover {
    background: #fff;
}

.tw-arrow {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.08);
}

.tw-arrow:hover {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14), 0 3px 8px rgba(15, 23, 42, 0.12);
}

/* Kein Scrollbalken im Widget (Inhalt bleibt per Mausrad/Touch scrollbar) */
html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* v9: immer drei Karten pro Reihe, gleich hohe Zitat-Karten */
.tw-v9 {
    padding: 4px 12px 12px;
}

.tw-v9 .tw-grid-3 {
    gap: 16px;
}

.tw-v9 .tw-rcard-quote {
    min-height: 220px;
    padding: 22px;
}

.tw-v9 .tw-rcard-quote .tw-rcard-text {
    -webkit-line-clamp: 4;
}

@media (max-width: 720px) {
    .tw-v9 .tw-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Karussell-Steuerung: schlanke Leiste mit runden Pfeilen und Punkten */
.tw-nav {
    width: fit-content;
    gap: 6px;
    margin: 16px auto 0;
    padding: 5px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.07), 0 4px 14px rgba(15, 23, 42, 0.08);
}

.tw-arrow,
.tw-arrow:hover {
    background: transparent;
    box-shadow: none;
}

.tw-arrow {
    width: 32px;
    height: 32px;
    padding: 0;
    color: #4b5563;
    font-size: 0;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tw-arrow svg {
    display: block;
}

.tw-arrow:hover {
    background: var(--tw-accent);
    color: var(--tw-on-primary, #fff);
}

.tw-arrow:active {
    transform: scale(0.92);
}

.tw-arrow:focus-visible,
.tw-dot:focus-visible {
    outline: 2px solid var(--tw-accent);
    outline-offset: 2px;
}

.tw-dots {
    align-items: center;
    gap: 7px;
    padding: 0 4px;
}

.tw-dot {
    width: 7px;
    height: 7px;
    background: #d3d7de;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.tw-dot:hover {
    background: #aeb4bf;
}

.tw-dot.is-active {
    width: 20px;
    border-radius: 99px;
    background: var(--tw-accent);
}
