@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@700;800&display=swap');

/* Use border-box everywhere to avoid width calculations causing overflow */
*, *::before, *::after { box-sizing: border-box; }

/* Base layout */
body, html {
    min-height: 100vh;
    margin: 0;
    background-color: #000;
    color: #fff;
    font-family: 'League Spartan', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Content area: centered by default */
.content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
}

/* Left-aligned pages (Impressum, Services) */
.content.left {
    text-align: left;
    max-width: 900px;
    box-sizing: border-box;
    margin: 0 auto;
    width: 100%;
    padding-left: 0;
    align-items: flex-start;
}

.logo {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-bottom: 80px;
}

h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 0.85;
    margin: 0 0 60px 0;
    letter-spacing: -3px;
    text-transform: uppercase;
}

/* Smaller h1 for left-aligned pages */
.content.left h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

/* Text elements */
p, a, li { color: #ddd; font-size: 1rem; line-height: 1.6; }
ul { padding-left: 1.1rem; }
li { margin-bottom: 0.6rem; }
.small { color: #777; font-size: 0.9rem; }

/* Generic link behavior (matches CTA hover) */
a {
    color: #888;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}
a:hover {
    color: #fff;
    transform: scale(1.05);
    cursor: pointer;
    text-decoration: none;
}

/* Prevent mailto: addresses from breaking onto multiple lines (Impressum) */
a[href^="mailto:"] {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

/* CTA button */
.cta-button {
    display: inline-block;
    padding: 10px 0;
    background-color: transparent;
    color: #888;
    text-decoration: none;
    border: none;
    font-size: 1.2rem;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.cta-button:hover {
    color: #fff;
    transform: scale(1.05);
    cursor: pointer;
}

/* Footer */
.footer {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    padding: 18px 20px;
    color: #666;
    font-size: 0.95rem;
}
.footer a { color: #888; text-decoration: none; display: inline-block; transition: all 0.3s ease; }
.footer a:hover { color: #fff; transform: scale(1.05); cursor: pointer; text-decoration: none; }

/* Footer logo sizing on pages where logo appears in footer */
.footer .logo {
    width: auto;
    max-width: 220px;
    margin: 8px auto 0;
    display: block;
}

/* FAQ accordion */
.faq { margin-bottom: 1rem; width: 100%; }
.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #ddd;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 40px 12px 0;
    cursor: pointer;
    display: block;
    position: relative;
    line-height: 1.2;
    box-sizing: border-box;
}
.faq-question::after {
    content: '+';
    color: #888;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease, color 0.3s ease;
    width: 24px;
    text-align: center;
}
.faq-question.open::after {
    content: '-';
    color: #fff;
    transform: translateY(-50%);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #ddd;
    width: 100%;
    box-sizing: border-box;
}
.faq-answer p { margin: 0 0 1rem 0; }

/* Utility: center text for single-line elements like CTA and link row */
.center { text-align: center; display: block; width: 100%; box-sizing: border-box; }
.content.left .center { align-self: center; }

@media (max-width: 600px) {
    .logo { max-width: 90%; margin-bottom: 50px; }
    h1 { margin-bottom: 40px; letter-spacing: -1px; }
    .cta-button { font-size: 1rem; }
    .content { padding: 40px 16px; }
    .content.left { padding: 40px 16px; }
}
