/* ======================================= */
/* EDITOR HOST LAYOUT STYLES               */
/* ======================================= */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.header {
    /*background-color: #FFF;*/
    color: white;
    padding: 0px 0px;
    border-bottom:2px;
}

#assetImage
{
   
}

.upload_btn
{
    padding: 10px 20px;
    background-color: #146092;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    display:block;
    border-radius:12px;
    max-width:150px;
    text-align: center;
}

.editor-layout {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    gap: 20px;
}

.header-panel {    
    max-width: 1400px;
    margin: 20px auto;
    gap: 20px;
    flex: 0;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.config-panel {
    flex: 1;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.preview-panel {
    flex: 1;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ======================================= */
/* RESIZE UND IFRAME STYLES (WICHTIG!)     */
/* ======================================= */

#ad-preview-container {
    /* Wichtig: Ermöglicht das Resizing von der rechten und unteren Kante */
    resize: both; 
    /* Wichtig: Zeigt den Resize-Handle */
    overflow: auto; 
    
    /* Standard-Startgröße */
    width: 300px; 
    height: 600px; 
    min-width: 100px;
    min-height: 100px;
    
    /* Visuelle Hilfen */
    border: 0px solid #146092;
    padding: 0;
    margin: 10px 0;
    
    /* Stellt sicher, dass der Iframe die Größe des Containers vollständig nutzt */
    display: flex;
}

#ad-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.resize-hint {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
}


/* ======================================= */
/* FORM UND ASSET STYLES                   */
/* ======================================= */

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.input-group input[type="text"],
.input-group input[type="url"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

#export-button {
    padding: 10px 20px;
    background-color: #0b93bd;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

#export-button:hover {
    background-color: #146092;
}

.asset-field {
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}

.asset-preview {
    display: flex;
    align-items: center;
    margin-top: 5px;
    border: 1px solid #ddd;
    padding: 5px;
    height: 80px; /* Definiert die Höhe des Vorschau-Containers */
    background-color: white;
}

.asset-preview img {
    /* Definiert die Größe des Thumbnails */
    width: 80px; 
    height: 80px;
    /* Stellt sicher, dass das Bild ohne Verzerrung passt */
    object-fit: contain; 
    margin-right: 10px;
    border: 1px solid #eee; /* Optionaler Rahmen */
    
    background-color: #efefef;
}

input[type="file"]::file-selector-button {
  border-radius: 4px;
  padding: 0 16px;
  height: 40px;
  cursor: pointer;
  background-color: aqua;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
  margin-right: 16px;
  transition: background-color 200ms;
    
    background-color: #0b93bd;
    color: white;
}

/* file upload button hover state */
input[type="file"]::file-selector-button:hover {
  background-color: #146092;
}

/* file upload button active state */
input[type="file"]::file-selector-button:active {
  background-color: #1085b1;
}

/* removes "no file selected" next to input button */
input[type='file'] { font-size: 0; }
::file-selector-button { font-size: initial; }


.asset-name {
    font-size: 0.8em;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

/* open-sans-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'OpenSansRegular';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}
/* open-sans-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'OpenSansBold';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/open-sans-v44-latin-800.woff2') format('woff2');
}

/* ✅ SEO/Performance: padding-top im Body für das Fixed Banner hinzugefügt. */
body {
    padding-top: 60px;  
    margin: 0;
    font-family: "OpenSansRegular", sans-serif;
    font-weight: 400;
}

a {
    color:#0b93bd;
}

a:hover {
    color:#146092;
}

.dsc_logo {
    max-width:270px;
    height:auto;
    padding-left:10px;
    padding-top:20px;
}

/* CSS für Buttons */
.button-21 {
  align-items: center;
  appearance: none;
  background-color: #0b93bd;
  border-radius: 6px;
  border-width: 0;
  box-shadow: none;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  font-family: CircularStd,sans-serif;
  font-size: 1rem;
  height: auto;
  justify-content: center;
  line-height: 1.5;
  padding: 6px 20px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s,background-position .2s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: top;
  white-space: nowrap;
}

.button-21:active,
.button-21:focus {
  outline: none;
}

.button-21:hover {
  background-position: -20px -20px;
  background-color: #146092;
}

.button-21:focus:not(:active) {
  box-shadow: rgba(40, 170, 255, 0.25) 0 0 0 .125em;
}

/* Zusätzliche Stile für Image Position Control */
.image-position-control {
    margin-top: 10px;
    padding-top: 10px;
    /*border-top: 1px solid #eee;*/
}

.image-position-control > label {
    font-weight: regular;
    margin-bottom: 8px;
    display: block;
}

.position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    max-width: 150px;
}

.position-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.position-radio-label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2em;
    background-color: #f0f0f0;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    color: #333;
}

.position-radio-label:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

.position-radio-label input[type="radio"]:checked + .position-text-content {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0b93bd;
    color: white;
    border-color: #0b93bd;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.position-radio-label:has(input[type="radio"]:checked) {
    background-color: #0b93bd;
    color: white;
    border-color: #0b93bd;
}

.position-text-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    font-size: 1em;
    background-color: inherit;
    color: inherit;
}

.resize_icon {
    position: relative;
    padding-top:3px;
    padding-right:10px;
    bottom:0;
    float:left;
}

#ad-preview-container {
    /* Keine zusätzlichen Stile nötig */
}

footer {
    margin:0 auto;
    max-width:1370px;
    padding:15px;
}

/* Modal Stile */
.modal-open {
    overflow: hidden
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0
}

.modal.fade .modal-dialog {
    -webkit-transition: -webkit-transform .3s ease-out;
    -o-transition: -o-transform .3s ease-out;
    transition: transform .3s ease-out;
    -webkit-transform: translate(0, -25%);
    -ms-transform: translate(0, -25%);
    -o-transform: translate(0, -25%);
    transform: translate(0, -25%)
}

.modal.in .modal-dialog {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0)
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px
}

.modal-content {
    position: relative;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 6px;
    outline: 0;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, .5)
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000
}

.modal-backdrop.fade {
    filter: alpha(opacity=0);
    opacity: 0
}

.modal-backdrop.in {
    filter: alpha(opacity=50);
    opacity: .5
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5
}

.modal-header .close {
    margin-top: -2px
}

.modal-title {
    margin: 0;
    line-height: 1.42857143
}

.modal-body {
    position: relative;
    padding: 15px
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e5e5e5
}

.modal-footer .btn+.btn {
    margin-bottom: 0;
    margin-left: 5px
}

.modal-footer .btn-group .btn+.btn {
    margin-left: -1px
}

.modal-footer .btn-block+.btn-block {
    margin-left: 0
}

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll
}

/* Stil für das Header-Element (visueller Header, nicht das <head> Element) */
.page-header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 20px;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.header-quote {
    font-size: 1.5em;
    margin: 0 0 20px 0;
    padding: 0;
    line-height: 1.4;
    font-style: italic;
    position: relative;
}

.header-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.7em;
    font-style: normal;
    color: #bdc3c7;
}

.header-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 1. Stil für den fixierten Banner */
.custom-support-banner-pure {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    
    background-color: #196094;
    color: white;
    text-align: center;
    padding: 15px 20px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* 2. Zentrierung und grundlegende Typografie */
.custom-support-banner-pure .banner-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* 3. Hervorhebung des Schlüsseltexts */
.custom-support-banner-pure .highlight {
    font-weight: bold;
    margin-right: 10px;
}

/* 4. Call-to-Action Button */
.custom-support-banner-pure .cta-button {
    background-color: #f69e20;
    color: #212529;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-left: 20px;
    margin-top:5px;
}

.custom-support-banner-pure .cta-button:hover {
    background-color: #FFF;
}

/* Optional: Anpassung für kleinere Bildschirme */
@media (max-width: 768px) {
    .custom-support-banner-pure .banner-content {
        justify-content: flex-start;
        flex-direction: column;
        text-align: center;
        max-width:80%;
    }

    .custom-support-banner-pure .cta-button {
        margin-top: 10px;
        margin-left: 0;
        width: 100%;
        max-width:200px;
        text-align: center;
    }

    /* --- MOBILE ONLY MODAL STYLES --- */
    #static-modal {
        display: none !important;
    }
    
    #mobile-only-modal {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.8);
    }

    #mobile-only-modal .modal-dialog {
        width: 90%;
        max-width: 400px;
    }
    
    .modal-open-mobile body > :not(#mobile-only-modal) {
        /* Dies wird von JS gesteuert, wenn das Modal aktiv ist */
    }
}

/* Standardmäßig Mobile-Only Modal auf Desktop ausblenden */
@media (min-width: 769px) {
    #mobile-only-modal {
        display: none !important;
    }
}