/* ============================================= */
/* ============ SCREEN-PC.CSS v3.2 ============= */
/* ===== Optimized for 1920px & 4K/8K ========= */
/* ========== Cross-Browser Compatible ======== */
/* ============================================= */

/* ============ CORE STYLES ============ */
/* Global Reset & Base Variables */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:root {
    --base-font-size: 12px;
    --scale-factor: 1;
    --container-width: 956px;
    --primary-color: #201388;
    --secondary-color: #666666;
    --bg-color: #FFFFFF;
    --border-color: #A7A8AA;
}

html {
    font-size: var(--base-font-size);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    text-align: center;
    background-color: #FFFFFF; /* Fallback */
    background-color: var(--bg-color);
    color: #666666; /* Fallback */
    color: var(--secondary-color);
    line-height: 1.5;
    font-size: 12px; /* Fallback */
    font-size: var(--base-font-size);
}

/* ============ TEXT STYLES ============ */
/* Text Utility Classes */
.no-wrap { 
    white-space: nowrap; 
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
}

.text_Titel {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.text_klein {
    font-size: 11px;
    line-height: 15px;
    padding-top: 10px;
}

.text_blau_klein {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: bold;
}

.text_uhrdatum {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.datetime {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    padding-top: 8px;
    white-space: nowrap;
}

/* ============ NAVIGATION SYSTEM ============ */
/* Main Navigation Structure - Version 3.2 */
/* Enhanced with cross-browser flexbox */
#menu {
    height: 25px;
    margin: 15px 0 0 14px;
    width: 670px;
    position: relative;
    background-image: none !important;
    background-repeat: no-repeat;
    background-position: left bottom;
    clear: both;
    overflow: hidden;
}

#menu::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

#menu ul li {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    position: relative;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

#menu ul li:last-child {
    border-right: none;
}

/* Navigation Dividers */
#menu ul li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background-color: var(--border-color);
    -webkit-transform: translateX(0.5px);
    -ms-transform: translateX(0.5px);
    transform: translateX(0.5px);
}

#menu ul li a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 7px 0;
    font-size: 11px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--secondary-color);
    position: relative;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Navigation States */
#menu ul li a:hover,
#menu ul li a.active {
    color: #FFFFFF;
    background-color: var(--primary-color);
}

#menu ul li a.active::before,
#menu ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--primary-color);
    z-index: 2;
}

/* IE 10/11 specific fixes */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #menu ul {
        display: table;
        table-layout: fixed;
    }
    #menu ul li {
        display: table-cell;
    }
}

/* ============ LAYOUT STRUCTURE ============ */
/* Main Container System */
#container {
    width: var(--container-width);
    margin: 0 auto;
    text-align: left;
    position: relative;
}

/* Header Complex */
#header {
    padding-top: 12px;
    height: 125px;
    position: relative;
}

#header_container {
    height: 115px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

/* Two-Column Layout */
#texts {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

#col_left {
    width: 56%;
    padding: 0 20px 10px 0;
}

#col_right {
    width: 24%;
    min-width: 0;
    overflow: hidden;
}

/* ============ HEADER COMPONENTS ============ */
/* Logo Container */
#logo_container {
    position: absolute;
    left: 0;
    top: 12px;
    width: 475px;
    height: 99px;
    z-index: 2;
}

#logo_container img {
    display: block;
    width: 475px;
    height: 99px;
    border: none;
}

/* Header Info Block */
#header_info {
    position: absolute;
    right: 15px;
    top: 32px;
    text-align: right;
    font-size: 11px;
    color: var(--secondary-color);
    width: 250px;
    z-index: 2;
}

#header_info .info-line {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

#liveClock {
    display: inline-block;
    min-width: 8em;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: var(--secondary-color);
}

/* ============ CONTENT STYLES ============ */
/* Typography in Content Areas */
h2 {
    font-size: 19px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: normal;
    letter-spacing: 1px;
}

#col_left p {
    font-size: 12px;
    line-height: 20px;
    margin-bottom: 15px;
}

#col_left a {
    color: var(--primary-color);
    text-decoration: none;
}

#col_left a:hover {
    text-decoration: underline;
}

/* Profile List System */
.profile-list {
    margin: 0 0 0 30px;
    padding: 0;
    text-align: left;
    list-style-position: outside;
    font-size: 13px;
}

.profile-list-item {
    font-size: 13px;
    line-height: 1.4;
    color: var(--secondary-color);
    margin-bottom: 10px;
    padding: 0;
}

.profile-list .profile-list {
    margin-left: 30px;
    font-size: 13px;
    list-style-type: disc;
}

.uebelmann {
    margin-left: 40px;
    list-style-type: disc;
}

/* ============ IFRAME SYSTEMS ============ */
/* Iframe Containers */
#iF_container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    min-height: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.iFrame_bg {
    background-color: #FFFFFF;
    padding: 10px;
    border: 1px solid #CCCCCC;
    overflow: hidden !important;
}

.iFrame_bg_3logos {
    margin: 0;
    padding: 30px 25px 60px 25px;
    background-color: #E8E9EA;
    min-height: 100vh;
    width: 100%;
    overflow: hidden !important;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#content_frame {
    width: 100%;
    border: none;
    display: block;
    overflow: hidden !important;
}

.responsive-iframe-container {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    min-height: 100vh;
    background-color: #E8E9EA;
    background-image: url(../images/drei_logos.gif);
    background-repeat: no-repeat;
    background-position: 15px calc(100% - 15px);
    background-size: auto;
    padding: 20px 15px 60px 15px;
}

/* ============ FOOTER SYSTEM ============ */
#footer {
    border-top: 1px solid var(--border-color);
    clear: both;
    padding-top: 10px;
    margin-top: 30px;
}

#adresse {
    float: left;
    width: 70%;
}

#adresse p {
    font-size: 11px;
    line-height: 12px;
    padding-top: 6px;
}

#disclaimer {
    float: right;
    width: 30%;
    text-align: right;
}

#disclaimer p {
    font-size: 10px;
    line-height: 12px;
    padding-top: 6px;
}

/* ============ SPECIAL COMPONENTS ============ */
/* Back Link Component */
.back-link {
    margin: 60px 0 0 0;
    text-align: right;
    padding: 15px 0;
}

.back-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    padding: 10px 20px;
    background-color: #E8E9EA;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-link a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Special Page Versions */
body.bewerten-version .iFrame_bg_3logos {
    padding: 30px 25px 180px 25px;
    background-image: url(../images/drei_logos.gif);
    background-position: left bottom 30px;
    background-repeat: no-repeat;
    background-size: auto 100px;
}

body.bewerten-version #col_right,
body.kontakt-version #col_right {
    background-color: #E8E9EA !important;
    padding: 20px !important;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body.bewerten-version #col_right_texts,
body.kontakt-version #col_right_texts {
    background-color: #E8E9EA !important;
    padding: 0 !important;
    width: 100%;
}

/* ============ IMAGE HANDLING ============ */
/* Responsive Image Rules */
#col_right img,
#content_frame img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

body.bewerten-version #col_right img {
    width: 100%;
    height: auto;
    max-width: 265px;
}

body.kontakt-version #col_right img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.iFrame_bg_3logos img.profile-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 20px;
}

iframe {
    max-width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* ============ WATERMARK SYSTEM ============ */
#header_container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 100px;
    width: 305px;
    height: 100%;
    background: url('/ui/images/wasserzeichen.gif') no-repeat center/contain;
    opacity: 1 !important;
    z-index: 0; 
    pointer-events: none;
}


/* ============ RESPONSIVE ADAPTATIONS ============ */
/* HD (1921px-2560px) */
@media screen and (min-width: 1921px) and (max-width: 2560px) {
    :root {
        --base-font-size: 13px;
        --scale-factor: 1.1;
        --container-width: 1200px;
    }
    
    #header_info {
        right: 30px;
        top: 35px;
    }
    
    #header_container::after {
        right: 5%;
        width: 380px;
    }
}

/* QHD (2561px-3440px) */
@media screen and (min-width: 2561px) and (max-width: 3440px) {
    :root {
        --base-font-size: 14px;
        --scale-factor: 1.2;
        --container-width: 1400px;
    }
    
    #header_info {
        right: 40px;
        top: 40px;
        font-size: 12px;
    }
    
    #header_container::after {
        right: 7%;
        width: 420px;
        opacity: 0.25;
    }
}

/* UHD (3441px-5120px) */
@media screen and (min-width: 3441px) and (max-width: 5120px) {
    :root {
        --base-font-size: 15px;
        --scale-factor: 1.3;
        --container-width: 1800px;
    }
    
    #container {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: justify;
        -moz-box-pack: justify;
        -ms-flex-pack: justify;
        -webkit-justify-content: space-between;
        justify-content: space-between;
    }
    
    #col_left, #col_right {
        width: auto !important;
        float: none !important;
    }
    
    #menu {
        width: 900px;
    }
    
    #header_container::after {
        right: 10%;
        width: 460px;
        opacity: 0.2;
    }
}

/* 5K+ Displays (5121px+) */
@media screen and (min-width: 5121px) {
    :root {
        --base-font-size: 16px;
        --scale-factor: 1.4;
        --container-width: 80vw;
    }
    
    #container {
        max-width: 4000px;
    }
    
    #header_container::after {
        right: 12%;
        width: 500px;
        opacity: 0.15;
    }
}

/* 8K Displays (7680px+) */
@media screen and (min-width: 7680px) {
    :root {
        --base-font-size: 18px;
        --scale-factor: 1.6;
    }
    
    #container {
        max-width: 5000px;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -moz-box-orient: horizontal;
        -moz-box-direction: normal;
        -ms-flex-direction: row;
        -webkit-flex-direction: row;
        flex-direction: row;
    }
    
    #logo_container img {
        width: 700px;
        height: auto;
    }
    
    #header_container::after {
        right: 15%;
        width: 600px;
        opacity: 0.1;
    }
}

/* Tall Portrait Displays */
@media screen and (max-height: 800px) {
    #header_container::after {
        width: 250px;
    }
}

/* ============ PRINT OPTIMIZATIONS ============ */
@media print {
    :root {
        --scale-factor: 1;
    }
    
    #container {
        width: 100% !important;
    }
    
    #col_left {
        width: 65% !important;
        float: left !important;
    }
    
    #col_right {
        width: 30% !important;
        float: right !important;
    }
    
    .profile-list-item {
        font-size: 12pt !important;
        line-height: 1.5 !important;
    }
    
    #header_container::after {
        display: none;
    }
    
    /* Large Print Formats */
    @page large {
        size: A3 landscape;
        margin: 3cm;
    }
    
    .large-print {
        page: large;
    }
    
    /* Dynamic Scaling */
    body {
        -webkit-transform: scale(calc(1000px / 100vw));
        -ms-transform: scale(calc(1000px / 100vw));
        transform: scale(calc(1000px / 100vw));
        -webkit-transform-origin: 0 0;
        -ms-transform-origin: 0 0;
        transform-origin: 0 0;
    }
    
    @media print and (min-width: 3441px) {
        body {
            -webkit-transform: scale(0.4);
            -ms-transform: scale(0.4);
            transform: scale(0.4);
        }
        
        @page {
            size: A2 landscape;
            margin: 4cm;
        }
    }
    
    @media print and (min-width: 5121px) {
        body {
            -webkit-transform: scale(0.3);
            -ms-transform: scale(0.3);
            transform: scale(0.3);
        }
        
        @page {
            size: A1 landscape;
            margin: 5cm;
        }
        
        #col_left, #col_right {
            page-break-inside: avoid;
        }
    }
}

/* ============ SPECIAL IFRAME ADJUSTMENTS ============ */
/* Für iF_claim-PC.php */
.iFrame_bg_3logos table:first-child img {
    width: 100%;
    max-width: 200px;
}

/* Für iF_C_venghaus-PC.php */
.iFrame_bg_3logos .profile-image {
    width: 100%;
    margin: 0 -25px;
    max-width: none;
}

/* Für das Bewerten-Bild im rechten Frame */
.bewerten-version #col_right img {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
    margin: 0;
    padding: 0;
}

/* Anpassung des rechten Frames */
.bewerten-version #col_right {
    padding: 0 !important;
    margin: 0 !important;
    width: 24% !important;
}
.bewerten-version #col_right img {
    width: 120%;
    height: auto;
    max-width: none;
    margin-left: -10%;
}