/*
|--------------------------------------------------------------------------
| Farben & Radien
|--------------------------------------------------------------------------
*/

@font-face {
    font-family: 'Recoleta';
    src: url('../fonts/Recoleta-SemiBold.woff2') format('woff2'),
         url('../fonts/Recoleta-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --tbs-gruen: #004236;
    --tbs-gruen-dunkel: #00332a;
    --tbs-text: #173329;
    --tbs-gedaempft: #5b6f66;
    --tbs-linie: #cad8cd;
    --tbs-creme: #f4efe7;
    --tbs-salbei: #e6eee7;
    --tbs-hintergrund: #ffffff;
    --tbs-fehler: #9b2c2c;
    --tbs-schrift-titel: 'Recoleta', Georgia, serif;
    --tbs-radius: 22px;
    --tbs-radius-klein: 12px;
    --tbs-radius-pille: 999px;
}

body {
    background: var(--tbs-hintergrund);
    color: var(--tbs-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
}


/*
|--------------------------------------------------------------------------
| Statusleiste & Logo
|--------------------------------------------------------------------------
*/

.retoure-statusleiste {
    background: var(--tbs-gruen);
    color: #ffffff;
    font-size: 14px;
}

.retoure-logo-bild {
    height: 34px;
    width: auto;
}

.retoure-eyebrow {
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/*
|--------------------------------------------------------------------------
| Karte & Header
|--------------------------------------------------------------------------
*/

.retoure-karte {
    background: #ffffff;
    border: 1px solid var(--tbs-linie);
    border-radius: var(--tbs-radius);
}

.retoure-header {
    background: var(--tbs-creme);
    color: var(--tbs-gruen);
    border-radius: var(--tbs-radius-klein);
}

.retoure-header-titel {
    font-family: var(--tbs-schrift-titel);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 600;
    line-height: 1.15;
}

.retoure-titel {
    color: var(--tbs-gruen);
    font-family: var(--tbs-schrift-titel);
    font-size: 26px;
    font-weight: 600;
}

label {
    color: var(--tbs-gruen);
    font-weight: 600;
}

.retoure-gedaempft {
    color: var(--tbs-gedaempft);
}


/*
|--------------------------------------------------------------------------
| Formularfelder
|--------------------------------------------------------------------------
*/

.retoure-input {
    height: 52px;
    padding: 0 22px;
    border-radius: var(--tbs-radius-pille);
    border-color: var(--tbs-linie);
    font-size: 17px;
}

.retoure-textarea {
    border-radius: var(--tbs-radius-klein);
    border-color: var(--tbs-linie);
    padding: 14px 18px;
    font-size: 17px;
}

.retoure-input:focus,
.retoure-textarea:focus {
    border-color: var(--tbs-gruen);
    box-shadow: 0 0 0 3px rgba(0, 66, 54, 0.15);
}

.retoure-trenner {
    border-top-color: var(--tbs-linie);
}


/*
|--------------------------------------------------------------------------
| Radio-Buttons
|--------------------------------------------------------------------------
*/

.retoure-radio {
    cursor: pointer;
    color: var(--tbs-text);
    font-weight: 400;
}

.retoure-radio input {
    position: absolute;
    opacity: 0;
}

.retoure-radio-punkt {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 1.5px solid var(--tbs-linie);
    border-radius: 50%;
    background: #ffffff;
}

.retoure-radio input:checked + .retoure-radio-punkt {
    border: 7px solid var(--tbs-text);
}

.retoure-radio input:focus-visible + .retoure-radio-punkt {
    box-shadow: 0 0 0 3px rgba(0, 66, 54, 0.25);
}


/*
|--------------------------------------------------------------------------
| Artikel
|--------------------------------------------------------------------------
*/

.retoure-artikel-liste {
    border: 1px solid var(--tbs-linie);
    border-radius: var(--tbs-radius-klein);
}

.retoure-artikel {
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}

.retoure-artikel + .retoure-artikel {
    border-top: 1px solid var(--tbs-linie);
}

.retoure-artikel input {
    position: absolute;
    opacity: 0;
}

.retoure-artikel-bild {
    width: 64px;
    height: 64px;
    min-width: 64px;
    object-fit: contain;
    border: 1px solid var(--tbs-linie);
    border-radius: var(--tbs-radius-klein);
    background: #f4f2f0;
}

.retoure-artikel-name {
    color: var(--tbs-text);
    font-weight: 600;
}

.retoure-haken {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 1.5px solid var(--tbs-linie);
    border-radius: 50%;
}

.retoure-artikel input:checked ~ .retoure-haken {
    border: 0;
    background: var(--tbs-text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}


/*
|--------------------------------------------------------------------------
| Upload
|--------------------------------------------------------------------------
*/

.retoure-upload {
    border: 1.5px dashed var(--tbs-linie);
    border-radius: var(--tbs-radius-klein);
    color: var(--tbs-gedaempft);
    cursor: pointer;
    font-weight: 400;
}

.retoure-upload:hover {
    border-color: var(--tbs-gruen);
}

.retoure-upload-titel {
    color: var(--tbs-text);
    font-size: 19px;
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| Buttons & Hinweise
|--------------------------------------------------------------------------
*/

.retoure-button {
    background: var(--tbs-gruen);
    color: #ffffff;
    border-radius: var(--tbs-radius-klein);
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 500;
}

.retoure-button:hover,
.retoure-button:focus {
    background: var(--tbs-gruen-dunkel);
    color: #ffffff;
}

.retoure-button:disabled {
    opacity: 0.6;
}

.retoure-link {
    color: var(--tbs-gruen);
    font-size: 16px;
}

.retoure-hinweis {
    border-radius: var(--tbs-radius-klein);
    font-size: 16px;
}

.retoure-hinweis-fehler {
    background: #fdecea;
    color: var(--tbs-fehler);
}

.retoure-artikel:has(input:checked) {
    background: var(--tbs-salbei);
}

.retoure-upload {
    background: var(--tbs-creme);
}

.retoure-button {
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 16px;
}

.retoure-sprachen a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.06em;
}

.retoure-sprachen a:hover,
.retoure-sprachen a.aktiv {
    color: #ffffff;
    text-decoration: none;
}

.retoure-sprachen a.aktiv {
    border-bottom: 1px solid #ffffff;
}

.retoure-hinweis-info {
    background: var(--tbs-creme);
    color: var(--tbs-gruen);
}

.retoure-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--tbs-radius-pille);
    background: var(--tbs-gruen);
    color: #ffffff;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.retoure-artikel-nur-lesen {
    cursor: default;
}

/* d-none muss auch Elemente mit d-block/d-flex ausblenden */
.retoure-karte .d-none {
    display: none !important;
}

.retoure-artikel-liste-offen {
    background: #fafaf7;
}

.retoure-artikel-liste-offen .retoure-artikel-bild {
    opacity: 0.6;
}


/*
|--------------------------------------------------------------------------
| Start & Ticketansicht
|--------------------------------------------------------------------------
*/

.retoure-option {
    border: 1px solid var(--tbs-linie);
    border-radius: var(--tbs-radius-klein);
    background: #ffffff;
    white-space: normal;
}

.retoure-option:hover,
.retoure-option:focus {
    border-color: var(--tbs-gruen);
    background: var(--tbs-salbei);
}

.retoure-option-titel {
    color: var(--tbs-gruen);
    font-family: var(--tbs-schrift-titel);
    font-size: 21px;
    font-weight: 600;
}

.retoure-chat-datum,
.retoure-chat-hinweis {
    margin: 16px 0 12px;
    text-align: center;
}

.retoure-chat-datum span,
.retoure-chat-hinweis span {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: #6b6b6b;
}

.retoure-chat-datum span {
    background: #f1f1f1;
    font-weight: 600;
}

.retoure-chat-hinweis span {
    border: 1px dashed var(--tbs-linie);
}

.retoure-chat-zeile {
    display: flex;
    align-items: flex-end;
    margin-bottom: 12px;
}

.retoure-chat-kunde {
    justify-content: flex-end;
}

.retoure-chat-avatar {
    flex: 0 0 34px;
    height: 34px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--tbs-gruen);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 34px;
    text-align: center;
    letter-spacing: .5px;
}

.retoure-chat-blase {
    max-width: 78%;
    padding: 10px 14px 8px;
    border-radius: 16px;
    font-size: 16px;
}

.retoure-chat-team .retoure-chat-blase {
    background: var(--tbs-salbei);
    border-bottom-left-radius: 4px;
}

.retoure-chat-kunde .retoure-chat-blase {
    background: var(--tbs-gruen);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.retoure-chat-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.retoure-chat-info {
    margin-top: 4px;
    font-size: 12px;
    opacity: .7;
    text-align: right;
}

.retoure-chat-fotos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.retoure-chat-fotos img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, .6);
    background: #fff;
}

/* Menge je Artikel (z. B. 3 von 5) */
.retoure-menge {
    display: flex;
    align-items: center;
    margin-top: 8px;
    font-size: 14px;
    color: var(--tbs-text);
    cursor: default;
}

.retoure-artikel input.retoure-menge-input {
    position: static;
    opacity: 1;
    width: 72px;
    height: 36px;
    padding: 4px 8px;
    text-align: center;
}

.retoure-artikel .retoure-menge.d-none {
    display: none !important;
}
