/* goedeke-it.de — unified stylesheet */

:root {
    --primary: #C4622C;
    --primary-dark: #A34E20;
    --primary-light: #D4743C;
    --dark-bg: #F7F5F2;
    --dark-bg-secondary: #EDE9E3;
    --dark-bg-card: #FFFFFF;
    --text-dark: #1C2B4A;
    --text-gray: #5A5A5A;
    --text-light: #888888;
    --border: #D8D3CB;
    --accent: #C4622C;

    --font-display: 'Fraunces Variable', Georgia, serif;
    --font-body:    'Plus Jakarta Sans Variable', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-gray);
    line-height: 1.7;
    background: var(--dark-bg);
    font-size: 17px;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

p {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-light);
}

/* ── Container ──────────────────────────────────────────── */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Header ─────────────────────────────────────────────── */
header {
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Brand & Wordmark ───────────────────────────────────── */
.brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 144, 'wght' 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1;
}

.wordmark:hover {
    color: var(--text-dark);
}

.wordmark-dot { color: var(--primary); }
.wordmark-icon { flex-shrink: 0; }

.family-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.family-link:hover { color: var(--text-dark); }

/* ── Navigation ─────────────────────────────────────────── */
nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--text-dark);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-light);
    color: var(--text-dark);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    padding: 6rem 0 7rem;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 800px;
}

.hero .subline {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.usp-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.usp-list li {
    padding: 0.625rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-gray);
}

.usp-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

/* ── Sections ───────────────────────────────────────────── */
section {
    padding: 5rem 0;
    scroll-margin-top: 220px;
}

section:nth-child(even) {
    background: var(--dark-bg-secondary);
}

.section-header {
    margin-bottom: 2rem;
}

/* ── Problem ────────────────────────────────────────────── */
.problem-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    max-width: 700px;
}

.problem-text .highlight {
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    margin-top: 1.5rem;
}

/* ── Solution ───────────────────────────────────────────── */
.solution-points {
    margin: 2rem 0;
    padding-left: 0;
}

.solution-points li {
    list-style: none;
    padding: 0.375rem 0;
    color: var(--text-gray);
}

.solution-footer {
    color: var(--text-dark);
    font-weight: 500;
    margin-top: 1.5rem;
}

/* ── Services ───────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.service-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.service-card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border);
}

.service-card li:last-child {
    border-bottom: none;
}

/* ── Senior ─────────────────────────────────────────────── */
.senior-list {
    list-style: none;
    margin: 1.5rem 0;
}

.senior-list li {
    padding: 0.625rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-gray);
}

.senior-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.senior-footer {
    color: var(--text-dark);
    font-weight: 500;
    margin-top: 1.5rem;
    font-style: italic;
}

/* ── Benefits ───────────────────────────────────────────── */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    padding: 1.25rem;
    background: var(--dark-bg);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.benefits-footer {
    color: var(--text-light);
    font-style: italic;
    margin-top: 1.5rem;
}

/* ── About ──────────────────────────────────────────────── */
.about-text {
    max-width: 700px;
}

.about-text p {
    line-height: 1.8;
}

/* ── Cert Cards ─────────────────────────────────────────── */
.cert-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cert-card {
    background: var(--dark-bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
    min-width: 240px;
    max-width: 340px;
    text-decoration: none;
    display: block;
    transition: box-shadow 0.2s ease;
}

.cert-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cert-card img {
    width: 100%;
    height: 140px;
    display: block;
    object-fit: contain;
    background: #FFFFFF;
}

.cert-card-header {
    height: 140px;
}

.cert-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.cert-card-meta {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cert-card-body h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.cert-card-body p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 0;
}

.cert-card-header {
    background: var(--text-dark);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card-provider {
    font-family: var(--font-display);
    font-variation-settings: 'opsz' 144, 'wght' 700;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -0.01em;
}

/* ── CTA ────────────────────────────────────────────────── */
.cta-section {
    text-align: center;
    padding: 5rem 0;
}

.cta-section p {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
    background: #1C2B4A;
    color: var(--text-light);
    padding: 3rem 0;
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    align-items: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-brand {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand strong {
    color: #FFFFFF;
    display: block;
    margin-bottom: 0.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-family-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-family-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-family-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-family-links a:hover {
    color: #FFFFFF;
}

.footer-cert {
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-cert img {
    width: 100%;
    max-width: 252px;
    border-radius: 4px;
    opacity: 0.88;
    display: block;
}

/* ── Mobile Menu Button ─────────────────────────────────── */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
    display: block;
    opacity: 1;
}

/* ── Page-specific (legal pages) ────────────────────────── */
.page-header {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.page-header .container {
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text-dark);
}

.back-link::before {
    content: '←';
}

.page-content {
    padding: 3rem 0 5rem;
}

.page-content .container {
    max-width: 800px;
}

.page-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    margin-top: 2.5rem;
}

.page-content h2:first-of-type {
    margin-top: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .header-content {
        padding: 0 1.5rem;
    }

    nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--dark-bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        z-index: 1001;
        padding: 5rem 0 2rem;
        border-left: 1px solid var(--border);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
    }

    nav.open {
        right: 0;
    }

    nav a {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border);
        display: block;
        text-align: left;
    }

    nav a:hover {
        background: var(--dark-bg);
    }

    nav a.btn {
        margin: 1.5rem;
        text-align: center;
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.open {
        position: fixed;
        top: 1rem;
        right: 1.5rem;
        z-index: 1002;
    }

    .hero {
        padding: 4rem 0 5rem;
    }

    section {
        padding: 3.5rem 0;
        scroll-margin-top: 220px;
    }

    .contact-form-wrapper {
        scroll-margin-top: 240px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 1.5rem;
    }

    .footer-cert img {
        margin: 0 auto;
    }

    .footer-links {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-content {
        padding: 2rem 0 3rem;
    }
}

/* ── Cookie Consent Banner ──────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg-secondary);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-gray);
}

.cookie-banner-text a {
    color: var(--primary);
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.cookie-btn-accept {
    background: var(--primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--primary-dark);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border);
}

.cookie-btn-reject:hover {
    border-color: var(--text-light);
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1.5rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-text {
        min-width: auto;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ── Contact Form ───────────────────────────────────────── */
.contact-form-wrapper {
    max-width: 500px;
    margin: 2rem auto 0;
    display: none;
    scroll-margin-top: 240px;
}

.contact-form-wrapper.show {
    display: block;
}

.contact-form {
    background: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: left;
}

.contact-form .form-row {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9375rem;
    font-weight: 500;
}

.contact-form label .required {
    color: var(--primary);
    margin-left: 0.25rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark-bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.contact-form .checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-form .checkbox-row input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.contact-form .checkbox-row label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--text-light);
}

.contact-form .form-divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.contact-form .form-submit {
    text-align: center;
}

.contact-form .btn-submit {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-form .btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.contact-form .form-note {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    text-align: center;
}

.contact-form .form-note a {
    color: var(--primary);
    text-decoration: none;
}

.contact-form .form-note a:hover {
    text-decoration: underline;
}

/* ── Thank You Overlay ──────────────────────────────────── */
.thank-you-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 43, 74, 0.92);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.thank-you-overlay.show {
    display: flex;
}

.thank-you-content {
    background: var(--dark-bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
}

.thank-you-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.thank-you-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.thank-you-content p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 0;
}

.thank-you-content .btn {
    margin-top: 2rem;
}
