/* ============================================================
   PDF & Logistik Tools – Style 2015 Desktop
   pdf.postundlogistik.de
   ============================================================ */



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-width: 1024px;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    color: #333333;
    background-color: #e8e8e8;
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23cccccc' fill-opacity='0.4'/%3E%3C/svg%3E");
    min-height: 100vh;
}

/* ===================== COOKIE BANNER ===================== */
#cookie-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
}

#cookie-overlay.active {
    display: block;
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border-top: 4px solid #e8000d;
    color: #ffffff;
    padding: 22px 40px;
    z-index: 100000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

#cookie-banner h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

#cookie-banner p {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.6;
    max-width: 900px;
    margin-bottom: 14px;
}

#cookie-banner p a {
    color: #4da6ff;
    text-decoration: underline;
}

#cookie-accept-btn {
    background: #e8000d;
    color: #ffffff;
    border: none;
    padding: 10px 36px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Open Sans', Arial, sans-serif;
    cursor: pointer;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

#cookie-accept-btn:hover {
    background: #cc0000;
}

/* ===================== LAYOUT WRAPPER ===================== */
#page-wrapper {
    display: none;
    width: 100%;
    min-height: 100vh;
}

#page-wrapper.visible {
    display: block;
}

/* ADS SEITLICH */
#layout-container {
    display: table;
    width: 100%;
    min-height: 600px;
}

#ad-left,
#ad-right {
    display: table-cell;
    width: 160px;
    vertical-align: top;
    padding-top: 20px;
}

#ad-left {
    padding-left: 10px;
    padding-right: 10px;
}

#ad-right {
    padding-left: 10px;
    padding-right: 10px;
}

.ad-sticky {
    position: sticky;
    top: 20px;
}

.ad-label {
    font-size: 10px;
    color: #999;
    text-align: center;
    margin-bottom: 4px;
    font-family: Arial, sans-serif;
}

#main-column {
    display: table-cell;
    vertical-align: top;
}

/* ===================== HEADER ===================== */
#site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-bottom: 3px solid #e8000d;
    padding: 0;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 20px;
    display: table;
    width: 100%;
}

.header-logo {
    display: table-cell;
    vertical-align: middle;
}

.header-logo a {
    text-decoration: none;
    display: block;
}

.logo-text-main {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo-text-main span {
    color: #e8000d;
}

.logo-sub {
    font-size: 11px;
    color: #aaaacc;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.header-tagline {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    color: #8888aa;
    font-size: 12px;
    padding-top: 4px;
}

.header-tagline strong {
    display: block;
    color: #ccccee;
    font-size: 13px;
}

/* ===================== NAVIGATION ===================== */
#site-nav {
    background: #2c3e50;
    border-bottom: 2px solid #1a252f;
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

#site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
}

#site-nav ul li a {
    display: block;
    padding: 11px 15px;
    color: #ccccdd;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-right: 1px solid #3d5166;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

#site-nav ul li:first-child a {
    border-left: 1px solid #3d5166;
}

#site-nav ul li a:hover,
#site-nav ul li a.active {
    background: #e8000d;
    color: #ffffff;
}

#site-nav ul li a .nav-icon {
    margin-right: 5px;
    font-size: 14px;
}

/* ===================== BREADCRUMB ===================== */
#breadcrumb {
    background: #f5f5f5;
    border-bottom: 1px solid #dddddd;
    padding: 6px 0;
}

.breadcrumb-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 12px;
    color: #666666;
}

.breadcrumb-inner a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb-inner a:hover {
    text-decoration: underline;
}

.breadcrumb-inner span {
    margin: 0 5px;
    color: #999999;
}

/* ===================== MAIN CONTENT ===================== */
#content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px;
    min-height: 500px;
}

/* ===================== PAGE TITLE BOX ===================== */
.page-title-box {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-top: 4px solid #e8000d;
    border-radius: 0 0 3px 3px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.page-title-box h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    font-family: 'Roboto', Arial, sans-serif;
}

.page-title-box .subtitle {
    color: #666666;
    font-size: 13px;
    line-height: 1.5;
}

/* ===================== TOOL CARD ===================== */
.tool-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 3px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    overflow: hidden;
}

.tool-card-header {
    background: #f0f4f8;
    border-bottom: 1px solid #dde4ec;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-card-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    font-family: 'Roboto', Arial, sans-serif;
}

.tool-card-header .step-badge {
    background: #e8000d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.tool-card-body {
    padding: 22px;
}

/* ===================== FORM ELEMENTS ===================== */
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444444;
    margin-bottom: 5px;
}

label .hint {
    font-weight: 400;
    color: #888888;
    font-size: 12px;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    color: #333333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
    background: #ffffff;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

select {
    cursor: pointer;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.form-row .form-col {
    flex: 1;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
    background: linear-gradient(to bottom, #e8000d, #cc0000);
    color: #ffffff;
    border: 1px solid #aa0000;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Open Sans', Arial, sans-serif;
    cursor: pointer;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #ff1a1a, #e8000d);
    box-shadow: 0 2px 8px rgba(232,0,13,0.35);
}

.btn-primary:active {
    background: #aa0000;
    transform: translateY(1px);
}

.btn-secondary {
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    color: #333333;
    border: 1px solid #bbbbbb;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Open Sans', Arial, sans-serif;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
    display: inline-block;
}

.btn-secondary:hover {
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    border-color: #999999;
}

.btn-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* ===================== FILE UPLOAD ===================== */
.file-upload-area {
    border: 2px dashed #aabbcc;
    border-radius: 4px;
    background: #f7f9fc;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    position: relative;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #0066cc;
    background: #eef4ff;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.upload-icon {
    font-size: 20px;
    color: #7a9cbd;
    margin-bottom: 10px;
}

.upload-text {
    color: #666666;
    font-size: 13px;
    line-height: 1.5;
}

.upload-text strong {
    color: #0066cc;
}

.file-info {
    background: #e8f0fe;
    border: 1px solid #b8d0f8;
    border-radius: 3px;
    padding: 8px 12px;
    font-size: 13px;
    color: #1a4a8a;
    margin-top: 8px;
    display: none;
}

.file-info.visible {
    display: block;
}

/* ===================== TOOLBAR (Text to PDF) ===================== */
.toolbar {
    background: #f0f4f8;
    border: 1px solid #dde4ec;
    border-radius: 3px 3px 0 0;
    padding: 6px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
}

.toolbar-btn {
    background: #ffffff;
    border: 1px solid #cccccc;
    padding: 4px 10px;
    font-size: 12px;
    font-family: 'Open Sans', Arial, sans-serif;
    cursor: pointer;
    border-radius: 2px;
    color: #444444;
    font-weight: 600;
    transition: all 0.1s;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background: #e8f0fe;
    border-color: #0066cc;
    color: #0066cc;
}

.toolbar-btn code {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: #f0f0f0;
    padding: 1px 4px;
    border-radius: 2px;
}

.toolbar-sep {
    width: 1px;
    height: 20px;
    background: #cccccc;
    margin: 0 4px;
}

#text-editor {
    border-radius: 0 0 3px 3px;
    border-top: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}

/* ===================== LOADING / STATUS ===================== */
#loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.85);
    z-index: 9999;
    text-align: center;
    padding-top: 200px;
}

#loading-overlay.active {
    display: block;
}

.loading-box {
    display: inline-block;
    background: #1a1a2e;
    color: #ffffff;
    padding: 30px 50px;
    border-radius: 4px;
    border-top: 4px solid #e8000d;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333355;
    border-top-color: #e8000d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    color: #ccccdd;
}

.status-box {
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 13px;
    margin-top: 16px;
    display: none;
}

.status-box.success {
    display: block;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.status-box.error {
    display: block;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.status-box.info {
    display: block;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* ===================== HOMEPAGE GRID ===================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.tool-grid-item {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 3px;
    padding: 18px 16px;
    text-decoration: none;
    color: #333333;
    transition: all 0.15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: block;
    border-top: 3px solid #dddddd;
}

.tool-grid-item:hover {
    border-top-color: #e8000d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

.tool-grid-item .tool-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.tool-grid-item h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    font-family: 'Roboto', Arial, sans-serif;
}

.tool-grid-item p {
    font-size: 12px;
    color: #777777;
    line-height: 1.5;
    margin: 0;
}

/* ===================== SEO TEXT AREA ===================== */
.seo-text-block {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 3px;
    padding: 22px 25px;
    margin-top: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.seo-text-block h2 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-family: 'Roboto', Arial, sans-serif;
    border-bottom: 2px solid #e8000d;
    padding-bottom: 8px;
}

.seo-text-block h3 {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin: 14px 0 6px;
}

.seo-text-block p {
    font-size: 13px;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 10px;
}

.seo-text-block ul {
    padding-left: 18px;
    margin-bottom: 10px;
}

.seo-text-block ul li {
    font-size: 13px;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 4px;
}

/* ===================== INFO BOX ===================== */
.info-box {
    background: #e8f0fe;
    border: 1px solid #b8d0f8;
    border-left: 4px solid #0066cc;
    border-radius: 0 3px 3px 0;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 13px;
    color: #1a4a8a;
}

.info-box strong {
    display: block;
    margin-bottom: 3px;
}

/* ===================== BARCODE PREVIEW ===================== */
#barcode-preview-wrap,
#qr-preview-wrap {
    background: #f9f9f9;
    border: 1px solid #dddddd;
    border-radius: 3px;
    padding: 20px;
    text-align: center;
    margin-top: 12px;
    min-height: 100px;
}

#barcode-preview-wrap svg,
#barcode-preview-wrap canvas,
#qr-preview-wrap canvas {
    max-width: 100%;
}

/* ===================== BRIEF TOOL ===================== */
.brief-preview-box {
    background: #f8f8f0;
    border: 1px solid #d4c87a;
    font-family: 'Times New Roman', Times, serif;
    font-size: 13px;
    color: #222222;
    padding: 30px 35px;
    line-height: 1.6;
    margin-top: 12px;
    border-radius: 2px;
    min-height: 300px;
}

.brief-preview-box .absender {
    font-size: 10px;
    color: #888888;
    border-bottom: 1px solid #bbbbbb;
    padding-bottom: 6px;
    margin-bottom: 18px;
}

.brief-preview-box .empfaenger {
    margin-bottom: 28px;
    line-height: 1.5;
}

.brief-preview-box .betreff {
    font-weight: bold;
    margin-bottom: 14px;
}

.brief-preview-box .fliesstext {
    white-space: pre-wrap;
}

/* ===================== FOOTER ===================== */
#site-footer {
    background: #1a1a2e;
    border-top: 3px solid #e8000d;
    color: #aaaacc;
    padding: 24px 0 16px;
    margin-top: 30px;
    font-size: 12px;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #333355;
    padding-bottom: 6px;
}

.footer-col p {
    color: #888899;
    font-size: 12px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 5px;
}

.footer-col ul li a {
    color: #8888aa;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #2a2a4e;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom .copy {
    color: #666677;
    font-size: 11px;
}

.footer-bottom .hosted-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666677;
    font-size: 11px;
}

.hosted-info .de-badge {
    background: #000000;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
    border: 1px solid #ffcc00;
}

.footer-links {
    display: flex;
    gap: 16px;
    font-size: 11px;
}

.footer-links a {
    color: #6666aa;
    text-decoration: none;
}

.footer-links a:hover {
    color: #aaaacc;
    text-decoration: underline;
}

#cookie-revoke-btn {
    background: none;
    border: none;
    color: #6666aa;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Open Sans', Arial, sans-serif;
    padding: 0;
    text-decoration: underline;
}

#cookie-revoke-btn:hover {
    color: #aaaacc;
}

/* ===================== HILFREICHE HINWEISE ===================== */
.tag-hint-bar {
    background: #f0f4f8;
    border: 1px solid #dde4ec;
    border-radius: 3px;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #555566;
    line-height: 1.8;
}

.tag-hint-bar strong {
    color: #1a1a2e;
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.tag-hint-bar code {
    background: #e0e8f4;
    border: 1px solid #ccd8ee;
    padding: 1px 5px;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #003388;
}

/* ===================== RESPONSIVE TWEAK (Desktop only) ===================== */
@media (max-width: 9999px) {
    /* Bewusst keine Responsive Styles – Desktop-only */
}

/* ===================== TOOL-ICON TEXT-BADGES ===================== */
.tool-icon {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
    color: #ffffff;
    background: #2c3e50;
}
.tool-icon-png   { background: #27ae60; }
.tool-icon-jpg   { background: #e67e22; }
.tool-icon-html  { background: #2980b9; font-size: 15px; }
.tool-icon-txt   { background: #8e44ad; }
.tool-icon-bc    { background: #1a1a2e; letter-spacing: 3px; font-size: 16px; }
.tool-icon-qr    { background: #1a1a2e; border: 2px solid #555; }
.tool-icon-brief { background: #e8000d; }

/* Upload-Icon als Text */
