/* =========================================
   BASIS STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Verhindert das seitliche Springen des Layouts bei Seitenwechseln */
html {
    overflow-y: scroll;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 5px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   NAVIGATION (Konsistent auf allen Seiten)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 0;
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 15px 25px;
    border-bottom: none !important;
}

.logo-image {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links .nav-link,
.nav-links .nav-link:link,
.nav-links .nav-link:visited,
.nav-links .nav-link:hover,
.nav-links .nav-link:active {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
}

.nav-links .nav-link:hover {
    color: #ff6b6b;
}

.nav-links .nav-link.active,
.nav-links .nav-link.active:link,
.nav-links .nav-link.active:visited {
    color: #ff6b6b;
    font-weight: 600;
}

.nav-links .inactive-link,
.nav-links .inactive-link:hover {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

.lang-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-btn:hover {
    background-color: #e55a5a;
}

/* =========================================
   TRENNLINIE
   ========================================= */
.separator {
    height: 2px;
    background: linear-gradient(to right, transparent, #ff6b6b, transparent);
    margin: 20px 0;
}

/* =========================================
   HAUPTINHALT & TEXT-BLÖCKE
   ========================================= */
main {
    flex: 1;
}

.main-heading {
    font-size: 2.5rem;
    text-align: center;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
}

.sub-heading {
    font-size: 1.8rem;
    text-align: center;
    color: #34495e;
    margin-bottom: 25px;
}

.description {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 35px;
    line-height: 1.8;
}

.companion-note {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 0 auto 35px auto;
    line-height: 1.8;
}

.download-note {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 0 auto 35px auto;
    line-height: 1.8;
}

.hint-text {
    text-align: center;
    color: #2c3e50;
    font-size: clamp(0.85rem, 1vw, 1rem);
    margin-top: -10px;
    margin-bottom: 30px;
    font-style: italic;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* =========================================
   TOOLS GRID
   ========================================= */
.tools-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; 
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin: 0 auto 30px auto;
    width: 100%;
    max-width: 820px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    width: 100px; 
    min-width: 100px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tool-icon-wrapper {
    width: 85px; 
    height: 85px;      
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.tool-button {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.editor-icon {
    width: 100%;       
    height: auto;      
    opacity: 0.9;      
}

.settings-wrapper {
    background-color: #e0e0e0;
    border-radius: 8px;
}

.tool-name {
    margin-top: 5px;
    font-size: 0.95rem; 
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap; 
}

.tool-item.active .tool-button {
    transform: scale(1.05);
}

.tool-item.active .tool-name {
    color: #ff6b6b;
    font-weight: 600;
}

/* =========================================
   PROGRAMMVORSCHAU
   ========================================= */
.preview-section {
    margin: 20px auto 30px auto;
    text-align: center;
    width: 100%;
    max-width: 820px; 
}

.preview-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.preview-container {
    width: 100%; 
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.1);
    background-color: #f0f0f0; 
    display: block; 
}

.preview-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.preview-container .preview-image:not(.start-image) {
    width: 100%;
    max-width: 820px;
}

.preview-container .preview-image.start-image {
    width: auto;
    max-width: 460px;
}

/* =========================================
   FEATURES
   ========================================= */
.features {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 25px;
    margin: 0 auto 40px auto;
    width: 100%;
    max-width: 820px; 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: opacity 0.25s ease;
}

.features.is-hidden {
    display: none;
}

.feature {
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    border-left: 3px solid #ff6b6b;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

/* =========================================
   FOOTER & ICONS
   ========================================= */
.footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 10px 0 5px 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-icon {
    width: 30px;
    height: auto;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.footer-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

.site-footer {
    margin-top: 0;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px);
    border-radius: 10px;
    margin-bottom: 10px;
    border-top: none !important;
}

.footer-copyright {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-link {
    text-decoration: none;
    color: #666;
    cursor: default;
    display: inline-block;
}

/* =========================================
   TOOLTIPS FÜR INAKTIVE LINKS
   ========================================= */
.inactive-link {
    position: relative;
    cursor: default;
    display: inline-block;
}

.inactive-link .tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    text-align: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: normal;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: 1px solid #ff6b6b;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.inactive-link .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.inactive-link:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.footer-link.inactive-link {
    color: #999;
}

/* =========================================
   MOBILE & TABLET ANPASSUNGEN
   ========================================= */
@media (max-width: 850px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .tools-grid {
        flex-wrap: wrap; 
        max-width: 100%;
        gap: 15px;
    }

    .tool-item {
        width: 80px;
        min-width: 80px;
    }

    .tool-icon-wrapper {
        width: 65px;
        height: 65px;
    }

    .preview-section, .features {
        max-width: 100%;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}