/* ==========================================================================
   PROGRESSCO – Global Stylesheet
   Pure Vanilla CSS3 · Strato Apache Compatible · No Build Tools
   ========================================================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2ecc40;
}

a:focus-visible {
    outline: 2px solid #2ecc40;
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- LANDING PAGE LAYOUT --- */
.page-landing {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    border: 1px solid #e0e0e0;
    margin: 8px;
    padding: 40px 48px;
    position: relative;
}

.header-logo {
    display: block;
}

.header-logo img {
    width: 160px;
    height: auto;
}

.main-spacer {
    flex: 1;
}

.bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}

/* --- ADDRESS BLOCK --- */
.address-block {
    text-align: right;
    font-size: 14px;
    line-height: 1.8;
    color: #444444;
}

.address-block p {
    margin: 0;
}

.address-company {
    color: #000000;
    font-weight: 600;
}

.address-email {
    color: #444444;
    text-decoration: none;
    transition: color 0.2s ease;
}

.address-email:hover {
    color: #2ecc40;
}

.address-email:focus-visible {
    outline: 2px solid #2ecc40;
    outline-offset: 2px;
}

.copy-address-btn {
    display: inline-block;
    margin-top: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999999;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.copy-address-btn:hover {
    color: #2ecc40;
}

.copy-address-btn:focus-visible {
    outline: 2px solid #2ecc40;
    outline-offset: 2px;
}

.copy-address-btn .arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.copy-address-btn:hover .arrow {
    transform: translate(2px, -2px);
}

.copy-feedback {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    color: #2ecc40;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.visible {
    opacity: 1;
}

/* --- FOOTER --- */
.footer-landing {
    font-size: 12px;
    color: #999999;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-landing span {
    color: #999999;
}

.footer-landing a {
    color: #999999;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-landing a:hover {
    color: #2ecc40;
}

/* ==========================================================================
   LEGAL PAGES (Impressum, Datenschutz)
   ========================================================================== */
.page-legal {
    min-height: 100vh;
    border: 1px solid #e0e0e0;
    margin: 8px;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
}

.legal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 16px;
}




.back-link {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #2ecc40;
}

.legal-content {
    flex: 1;
    max-width: 800px;
}

.legal-content h1 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 24px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.legal-content h2 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content h3 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 700;
    color: #444444;
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-content p {
    font-size: 13px;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 12px;
}

.legal-content ul {
    margin: 8px 0 12px 20px;
    font-size: 13px;
    line-height: 1.8;
    color: #555555;
}

.legal-content li {
    margin-bottom: 4px;
}

.legal-content a {
    color: #2ecc40;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: #27ae60;
}

.legal-content strong {
    color: #333333;
}

.legal-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #999999;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-footer a {
    color: #999999;
    font-size: 12px;
    text-decoration: none;
}

.legal-footer a:hover {
    color: #2ecc40;
}

/* ==========================================================================
   RESPONSIVE DESIGN – Mobile First Breakpoints
   ========================================================================== */

/* --- TABLET (max 1024px) --- */
@media screen and (max-width: 1024px) {
    .page-landing {
        padding: 32px 32px;
    }

    .page-legal {
        padding: 32px 32px;
    }

    .legal-header {
        margin-bottom: 36px;
    }
}

/* --- MOBILE (max 640px) --- */
@media screen and (max-width: 640px) {
    .page-landing {
        padding: 24px 20px;
        margin: 4px;
    }

    .page-legal {
        padding: 24px 20px;
        margin: 4px;
    }

    .header-logo img {
        width: 120px;
    }

    .bottom-section {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .address-block {
        text-align: left;
        align-self: flex-start;
    }

    /* Touch-optimierte Buttons (min 44px Höhe) */
    .copy-address-btn {
        padding: 12px 0;
        min-height: 44px;
        font-size: 12px;
    }

    /* E-Mail-Link Touch-Target auf Mobile */
    .address-email {
        display: inline-block;
        padding: 4px 0;
        min-height: 32px;
    }

    /* Legal-Header: Logo und Zurück-Link stacken */
    .legal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 28px;
    }

    .back-link {
        font-size: 13px;
        padding: 8px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .legal-content h1 {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .legal-content h2 {
        font-size: 15px;
        margin-top: 24px;
    }

    .legal-content h3 {
        font-size: 13px;
    }

    .legal-content p {
        font-size: 13px;
    }

    /* Footer: Touch-optimierte Links – horizontal nebeneinander */
    .footer-landing,
    .legal-footer {
        gap: 12px;
        font-size: 12px;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
    }

    .footer-landing a,
    .legal-footer a {
        padding: 8px 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }
}

/* --- EXTRA-SMALL (max 360px) --- */
@media screen and (max-width: 360px) {
    .page-landing,
    .page-legal {
        padding: 16px 12px;
        margin: 2px;
    }

    .header-logo img {
        width: 100px;
    }

    .address-block {
        font-size: 13px;
    }

    .copy-address-btn {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .legal-content h1 {
        font-size: 18px;
    }

    .legal-content h2 {
        font-size: 14px;
    }

    .legal-content p,
    .legal-content ul {
        font-size: 12px;
    }

    .footer-landing,
    .legal-footer {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        font-size: 11px;
        flex-wrap: nowrap;
    }
}

/* --- LANDSCAPE MOBILE --- */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .page-landing {
        min-height: auto;
        padding: 16px 32px;
    }

    .main-spacer {
        flex: 0 0 24px;
    }
}

/* --- PRINT STYLES --- */
@media print {
    .page-landing,
    .page-legal {
        border: none;
        margin: 0;
        padding: 20px;
    }

    .copy-address-btn {
        display: none;
    }

    a {
        color: #333333;
    }
}
