/* Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #000;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* ============================================================
   LANGUAGE SELECTION SCREEN  (alle Farben hardcoded — kein var())
   ============================================================ */
.language-selection-screen {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap: 32px;
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 9999;
}
.lang-screen-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.company-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}
.language-selection-screen h1 {
    font-size: 2.6em !important;
    font-weight: bold !important;
    color: #34d399 !important;
    margin: 0;
}
.lang-subtitle {
    font-size: 1.1em;
    color: #e2e8f0 !important;
    font-weight: 500;
    margin: 0;
}
.lang-desc {
    font-size: 0.9em;
    color: #94a3b8 !important;
    margin: 0;
}
.language-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 700px;
    width: 100%;
}
@media (min-width: 600px) {
    .language-buttons { grid-template-columns: repeat(4, 1fr); }
}
.language-choice-btn {
    position: relative;
    height: 56px;
    width: 100%;
    cursor: pointer;
    border-radius: 9999px;
    border: 1px solid #4b5563 !important;
    padding: 4px;
    background-color: #1e293b !important;
    outline: none;
    overflow: hidden;
}
.language-choice-btn:hover .motion-circle { width: calc(100% - 8px); }
.language-choice-btn:hover .motion-text { color: #0f172a !important; }
.language-choice-btn:hover .motion-icon { transform: translateY(-50%) translateX(4px); }
.motion-circle {
    display: block;
    height: 48px;
    width: 48px;
    border-radius: 9999px;
    background-color: #34d399 !important;
    transition: width 0.5s ease;
}
.motion-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
}
.motion-icon .flag { width: 32px; height: auto; border-radius: 3px; }
.flag { width: 40px; height: auto; border-radius: 3px; }
.motion-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: 16px;
    white-space: nowrap;
    font-size: 1em;
    font-weight: 500;
    color: #e2e8f0 !important;
    transition: color 0.5s ease;
    pointer-events: none;
}
/* Change language button */
.lang-change-bar {
    text-align: right;
    padding: 8px 16px;
    background-color: #1e293b;
}
.change-language-btn {
    background: none;
    border: 1px solid #4b5563;
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.change-language-btn:hover {
    background-color: #34d399;
    color: #000;
    border-color: #34d399;
}
.current-flag { width: 20px; height: auto; border-radius: 2px; }

.print-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.action-btn {
    background-color: #00a650;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 166, 80, 0.4);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    background-color: #008f45;
}

/* Disclaimer */
.top-disclaimer {
    text-align: center;
    color: #e01e26;
    font-size: 0.95em;
    opacity: 0.9;
    line-height: 1.4;
    margin-bottom: 10px;
    padding: 6px 20px;
}

/* Containers */
.container-wrapper {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.safety-board {
    margin-bottom: 30px;
    background: white;
}

.green-board {
    border: 4px solid #149441; /* Green exact */
}

.red-board {
    border: 4px solid #e01e26; /* Red exact */
}

/* Typography & Colors */
.red-text {
    color: #e01e26 !important;
}

.green-text {
    color: #149441 !important;
}

.light-text {
    font-weight: normal;
    color: #000;
}

.main-title {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    color: #149441;
    line-height: 1.1;
    text-transform: none;
}

.subtitle {
    text-align: center;
    font-size: 15px;
    font-weight: normal;
    color: #000;
}

h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #000;
}

.large-phone {
    font-size: 26px;
    font-weight: bold;
}

/* Top Header specific to Green Board */
.layout-table {
    width: 100%;
    border-collapse: collapse;
    border-bottom: 4px solid #149441;
}

.layout-table td {
    vertical-align: middle;
    padding: 10px;
}

.header-row td {
    border-right: 2px solid #149441;
}
.header-row td:last-child {
    border-right: none;
}

.col-info {
    width: 25%;
}
.info-text {
    font-size: 14px;
    margin-bottom: 20px;
}
.info-text-small {
    font-size: 11px;
}

.col-title {
    width: 50%;
}

.col-logo {
    width: 25%;
    text-align: center;
}
.logo-img {
    width: 60px;
    margin-bottom: 5px;
}
.logo-text {
    font-weight: bold;
    font-size: 16px;
    color: #000;
    font-family: Arial, sans-serif;
}

/* Body layout */
.content-table {
    width: 100%;
    border-collapse: collapse;
}

.content-table td {
    vertical-align: top;
}

.icon-col {
    width: 110px;
    border-right: 2px solid #149441;
    padding: 10px;
    text-align: center;
}

.red-board .icon-col {
    border-right: 2px solid #e01e26;
}

.safety-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.text-col {
    padding: 15px 20px;
}

/* Text elements */
.section-row {
    margin-bottom: 12px;
}

.text-block {
    padding-right: 230px; /* Leaves space for .transport-box */
}

.w-list {
    list-style-type: none;
    padding-left: 0;
    font-size: 15px;
    line-height: 1.4;
}

.w-list li {
    margin-bottom: 3px;
}

.action-list {
    list-style-type: none;
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.4;
}

.action-list li::before {
    content: "➢ ";
    position: absolute;
    margin-left: -20px;
}

.center-list {
    padding-left: 50px;
}
.center-list li::before {
    margin-left: -20px;
    content: "➢ ";
    position: absolute;
}

/* Transport Box */
.transport-box {
    position: absolute;
    right: 0px;
    top: 5px;
    width: 210px;
    border: 1px solid #e01e26;
    padding: 5px;
    font-size: 10px;
    background: white;
}

.transport-box h4 {
    color: #e01e26;
    font-size: 11px;
    margin-bottom: 5px;
    font-weight: normal;
}

.transport-box p {
    margin-bottom: 5px;
    line-height: 1.2;
}

.transport-box ul {
    padding-left: 0;
    list-style-type: none;
    line-height: 1.2;
}

.transport-box li {
    color: #e01e26;
}

/* Red Board Specifics */
.board-header {
    padding: 15px;
    border-bottom: 4px solid #e01e26;
    text-align: center;
    background-color: white;
}

.bottom-contact {
    border-top: 4px solid #e01e26;
    padding: 10px 15px;
}

.contact-name {
    font-size: 20px;
    font-weight: bold;
}

.contact-phone {
    font-size: 20px;
    font-weight: bold;
}

/* Contact input fields */
.contact-input {
    background: transparent;
    border: none;
    border-bottom: 1px dashed #cc0000;
    color: #cc0000;
    font-size: inherit;
    font-family: inherit;
    font-weight: bold;
    text-align: center;
    width: 220px;
    outline: none;
    padding: 2px 4px;
}
.contact-input::placeholder {
    color: #cc000088;
    font-weight: normal;
    font-style: italic;
}

/* ============================================================
   MOBILE RESPONSIVE (max-width: 640px)
   ============================================================ */
@media (max-width: 640px) {

    /* Container */
    .container-wrapper {
        margin: 0;
        padding: 8px;
        box-shadow: none;
    }

    /* Print/action button */
    .print-actions {
        bottom: 12px;
        right: 12px;
    }
    .action-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Nav bar */
    .lang-change-bar {
        flex-wrap: wrap;
        gap: 6px;
    }

    /* ---- Header table (3 cols → stacked blocks) ---- */
    .layout-table,
    .layout-table tbody,
    .layout-table tr {
        display: block;
    }
    .layout-table td {
        display: block;
        width: 100% !important;
        border-right: none !important;
        padding: 6px 10px;
    }
    /* Hide version info and logo on mobile — title is what matters */
    .col-info,
    .col-logo {
        display: none;
    }
    .col-title {
        width: 100% !important;
        padding: 10px !important;
    }
    .main-title {
        font-size: 20px;
    }

    /* ---- Content table (icon | text → stacked blocks) ---- */
    .content-table,
    .content-table tbody,
    .content-table tr {
        display: block;
    }
    .content-table td {
        display: block;
        width: 100% !important;
    }
    .icon-col {
        border-right: none !important;
        border-bottom: 2px solid #149441;
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }
    .red-board .icon-col {
        border-bottom: 2px solid #e01e26;
    }
    .safety-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
    }
    .text-col {
        padding: 10px;
    }

    /* ---- Transport box: flow inline instead of absolute ---- */
    .text-block {
        padding-right: 0 !important;
    }
    .transport-box {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        margin-top: 12px;
        box-sizing: border-box;
    }

    /* ---- Red board contact section ---- */
    .bottom-contact {
        padding: 8px 10px;
    }
    .contact-name,
    .contact-phone {
        font-size: 16px;
    }
    .contact-input {
        width: 100%;
        max-width: 240px;
    }

    /* Typography */
    h2 {
        font-size: 16px;
    }
    .large-phone {
        font-size: 20px;
    }
    .action-list,
    .w-list {
        font-size: 14px;
    }
}

/* Print specific styles */
@media print {
    body {
        background: white !important;
    }
    
    .print-hidden {
        display: none !important;
    }

    .contact-input {
        border: none !important;
        border-bottom: 1px solid #cc0000 !important;
        width: 200px !important;
    }
    
    @page {
        size: A4 portrait;
        margin: 5mm;
    }

    .container-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-shadow: none !important;
    }

    .safety-board {
        page-break-inside: avoid;
        margin-bottom: 5mm !important;
    }

    .text-col { padding: 5px 10px; }
    .icon-col { padding: 5px; width: 80px; }
    .safety-icon { width: 60px; height: 60px; margin-bottom: 15px; }
    .layout-table td { padding: 5px; }
    .main-title { font-size: 22px; }
    h2 { font-size: 16px; margin-bottom: 2px; }
    .large-phone { font-size: 22px; }
    .section-row { margin-bottom: 6px; }
    .text-block { padding-right: 185px; }
    .w-list, .action-list { font-size: 12px; line-height: 1.2; }
    .info-text { margin-bottom: 5px; font-size: 12px; }
    .info-text-small { font-size: 10px; }
    .logo-img { width: 45px; margin-bottom: 2px;}
    
    .transport-box {
        width: 175px;
        font-size: 9px;
        padding: 4px;
    }
    .transport-box h4 { font-size: 10px; margin-bottom: 2px; }
    .transport-box p { margin-bottom: 2px; }
    
    .board-header { padding: 8px; }
    .bottom-contact { padding: 8px 15px; }
    .contact-name, .contact-phone { font-size: 16px; }
}
