body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(180deg, #e9edf2 0%, #f8f9fb 100%);
    color: #222;
}

/* Header */
.main-header {
    background: #003366;
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 40px;
}
.brand {
    font-weight: 700;
    font-size: 1.4rem;
}
.nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
}
.nav a:hover {
    text-decoration: underline;
}
.lang-switch img {
    width: 26px;
    margin-left: 8px;
    border-radius: 3px;
    border: 1px solid #fff;
}

/* Content */
.main-content {
    padding: 60px 20px;
    min-height: 65vh;
}
h1, h2 {
    color: #003366;
}
button, input[type="submit"] {
    background: #003366;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
}
button:hover, input[type="submit"]:hover {
    background: #004b99;
}

/* Footer */
.main-footer {
    background: #002244;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}
.main-footer .copy {
    color: #ccd3dc;
    margin-top: 5px;
}
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.blog-card {
    background: #fff;
    border: 1px solid #ccd3dc;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.blog-card h2 a {
    color: #003366;
    text-decoration: none;
}

.blog-card .date {
    font-size: 0.9rem;
    color: #666;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #004b99;
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-post {
    max-width: 800px;
    margin: 40px auto;
}

.blog-post .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
/* ======================================
   CONTACT FORM – Single Column Layout
   ====================================== */

.contact-section {
    max-width: 650px;
    margin: 0 auto;
}

.contact-form.single-column {
    background: #fff;
    border: 1px solid #ccd3dc;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.contact-form.single-column .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.contact-form.single-column label {
    font-weight: 600;
    color: #003366;
    margin-bottom: 6px;
}

.contact-form.single-column input,
.contact-form.single-column textarea {
    border: 1px solid #ccd3dc;
    border-radius: 4px;
    padding: 10px;
    font-size: 1rem;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #333;
    width: 100%;
}

.contact-form.single-column input:focus,
.contact-form.single-column textarea:focus {
    outline: none;
    border-color: #004b99;
    box-shadow: 0 0 4px rgba(0,75,153,0.3);
}

.form-actions {
    text-align: right;
    margin-top: 10px;
}

.form-alert {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-alert.success {
    background: #e7f6ec;
    color: #1a7f37;
    border: 1px solid #b7dfc0;
}

.form-alert.error {
    background: #fdeaea;
    color: #a12626;
    border: 1px solid #f3b4b4;
}
/* =====================================================
   DARK MODE – TQP360 Global Corporate Style
   ===================================================== */

/* ---------- Grundlayout ---------- */
body.dark-mode {
    background: #1c1f22;
    color: #e4e8ed;
}

/* Header & Navigation */
body.dark-mode .main-header {
    background: #0b1620;
    border-bottom: 1px solid #1f2a33;
}
body.dark-mode .nav a {
    color: #e4e8ed;
}
body.dark-mode .nav a:hover {
    color: #79a6f6;
}

/* Sprach- & Theme-Schalter */
body.dark-mode .lang-switch img {
    border-color: #444;
}
body.dark-mode #themeButton {
    color: #e4e8ed;
}

/* ---------- Hauptbereiche ---------- */
body.dark-mode .container,
body.dark-mode section,
body.dark-mode .hero {
    background: transparent;
}

/* Buttons & Links */
body.dark-mode .btn-primary,
body.dark-mode input[type="submit"],
body.dark-mode button {
    background: #0057cc;
    color: #fff;
    border: none;
}
body.dark-mode .btn-primary:hover,
body.dark-mode input[type="submit"]:hover,
body.dark-mode button:hover {
    background: #3b7cff;
}
body.dark-mode a {
    color: #79a6f6;
}
body.dark-mode a:hover {
    color: #a5c3ff;
}

/* ---------- Kontaktformular ---------- */
body.dark-mode .contact-form.single-column {
    background: #26292d;
    border-color: #3a3d42;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
body.dark-mode .contact-form.single-column label {
    color: #cfd6de;
}
body.dark-mode .contact-form.single-column input,
body.dark-mode .contact-form.single-column textarea {
    background: #303336;
    border: 1px solid #555;
    color: #f2f4f7;
    transition: all 0.2s ease-in-out;
}
body.dark-mode .contact-form.single-column input:focus,
body.dark-mode .contact-form.single-column textarea:focus {
    border-color: #79a6f6;
    background: #35383b;
    box-shadow: 0 0 6px rgba(121,166,246,0.5);
}
body.dark-mode .form-alert.success {
    background: #173b20;
    color: #80d497;
    border: 1px solid #1f6c36;
}
body.dark-mode .form-alert.error {
    background: #4a1d1d;
    color: #ffb0b0;
    border: 1px solid #a84646;
}

/* ---------- Blog ---------- */
body.dark-mode .blog-card {
    background: #2a2d30;
    border-color: #3a3d42;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
body.dark-mode .blog-card h2 a {
    color: #e4e8ed;
}
body.dark-mode .blog-card p {
    color: #cfd6de;
}
body.dark-mode .read-more {
    color: #79a6f6;
}
body.dark-mode .read-more:hover {
    color: #a5c3ff;
}

/* Einzelbeitrag */
body.dark-mode .blog-post {
    background: #26292d;
    border-radius: 8px;
    padding: 30px;
}

/* ---------- Footer ---------- */
body.dark-mode .main-footer {
    background: #0b1620;
    color: #bbb;
}
body.dark-mode .main-footer .copy {
    color: #888;
}

/* ---------- Inputfelder global ---------- */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #2b2e32;
    border: 1px solid #444;
    color: #eee;
}

/* ---------- Kleine UI-Elemente ---------- */
body.dark-mode .theme-toggle button:hover {
    transform: scale(1.1);
}

/* Übergang für sanften Wechsel */
body,
body.dark-mode {
    transition: background 0.3s ease, color 0.3s ease;
}
/* =====================================================
   RESPONSIVE DESIGN – Mobile & Tablet
   ===================================================== */
@media (max-width: 992px) {
    .container {
        flex-wrap: wrap;
    }
    .nav {
        margin-top: 10px;
        text-align: center;
        width: 100%;
    }
    .nav a {
        display: inline-block;
        margin: 6px 10px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
        padding: 0;
    }

    .main-header {
        padding: 10px 0;
    }

    .container {
        width: 94%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo img {
        height: 32px;
    }

    .brand {
        font-size: 1.2rem;
    }

    .nav a {
        display: block;
        margin: 8px 0;
        font-size: 1rem;
    }

    .lang-switch {
        margin-top: 10px;
    }

    .main-content {
        padding: 40px 15px;
    }

    .blog-list {
        grid-template-columns: 1fr;
    }

    .contact-form.single-column {
        padding: 20px;
    }

    button,
    input[type="submit"] {
        width: 100%;
        font-size: 1rem;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 1rem;
    }

    .nav a {
        font-size: 0.95rem;
    }

    .main-footer {
        font-size: 0.85rem;
        padding: 15px 0;
    }

    .contact-form.single-column {
        padding: 15px;
    }
}
/* =====================================================
   MOBILE NAVIGATION – BURGER-MENÜ
   ===================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 28px;
    height: 24px;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation beim Öffnen */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Mobile Darstellung */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #003366;
        margin-top: 10px;
        padding: 15px 0;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        display: block;
        padding: 10px 0;
        color: #fff;
        text-align: center;
        font-size: 1rem;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav a:hover {
        background: rgba(255,255,255,0.1);
    }

    .lang-switch {
        margin-top: 10px;
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .theme-toggle {
        margin-top: 10px;
        text-align: center;
    }
}
/* =====================================================
   BACK-TO-TOP BUTTON
   ===================================================== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 25px;
    background: #0057cc;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    display: none;
    z-index: 9999;
    transition: background 0.3s ease, transform 0.2s ease;
}

#backToTop:hover {
    background: #3b7cff;
    transform: scale(1.1);
}
/* =====================================================
   ADMIN DASHBOARD SHORTCUT – nur sichtbar bei Login
   ===================================================== */
#adminShortcut {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #0057cc;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}

#adminShortcut:hover {
    background: #3b7cff;
    transform: scale(1.1);
}

/* Dark-Mode Variante */
body.dark-mode #adminShortcut {
    background: #79a6f6;
    color: #003366;
}

body.dark-mode #adminShortcut:hover {
    background: #a5c3ff;
}