/**
 * Inner Pages — Tanzspiegel
 * Styling for AGB, Datenschutz, Impressum, Zahlungsarten, Versand, etc.
 *
 * Pairs with page.php which renders:
 *   .ts-page-header > .ts-container > h1.ts-page-title
 *   section.ts-section.ts-content-section > .ts-container > .ts-content-grid
 *     > main.ts-page-content > article > .ts-entry-content
 */

/* -----------------------------------------------------------------------------
   Page header (the strip on top with the page title)
   margin-top clears the fixed .ts-header (90px) which sits above the page
----------------------------------------------------------------------------- */
.ts-page-header {
    margin-top: var(--ts-header-height);
    padding: 2.5rem 1.5rem 2rem;
    background: linear-gradient(180deg, var(--ts-dark-secondary) 0%, var(--ts-black) 100%);
    border-bottom: 1px solid var(--ts-glass-border);
    text-align: center;
}

/* WP admin bar pushes everything down further on logged-in pages */
.admin-bar .ts-page-header {
    margin-top: calc(var(--ts-header-height) + var(--ts-admin-bar-height, 32px));
}

.ts-page-header .ts-container {
    max-width: 900px;
    padding: 0;
}

.ts-page-title {
    font-family: var(--ts-font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ts-white);
    margin: 0;
}

/* -----------------------------------------------------------------------------
   Content section — narrower container, tighter top/bottom padding
   (the global .ts-section uses --ts-space-4xl which is too generous for
    legal text that sits right under a slim header strip)
----------------------------------------------------------------------------- */
.ts-content-section {
    padding: 3rem 1.5rem 4rem;
}

.ts-content-section .ts-container {
    max-width: 820px;
}

/* -----------------------------------------------------------------------------
   Body content
----------------------------------------------------------------------------- */
.ts-entry-content {
    color: var(--ts-silver);
    font-size: 1rem;
    line-height: 1.7;
}

.ts-entry-content h1 {
    font-size: 1.875rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--ts-white);
    margin: 0 0 1rem;
}

.ts-entry-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ts-white);
    margin: 2rem 0 0.85rem;
}

.ts-entry-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ts-white);
    margin: 1.6rem 0 0.6rem;
}

.ts-entry-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ts-white);
    margin: 1.3rem 0 0.5rem;
}

.ts-entry-content p {
    margin: 0 0 1rem;
    max-width: none;
    color: var(--ts-silver);
}

.ts-entry-content strong,
.ts-entry-content b {
    color: var(--ts-white);
    font-weight: 600;
}

.ts-entry-content em {
    color: var(--ts-silver-light);
}

.ts-entry-content a {
    color: var(--ts-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.ts-entry-content a:hover {
    color: var(--ts-accent-hover);
}

/* Lists */
.ts-entry-content ul,
.ts-entry-content ol {
    margin: 0 0 1.2rem;
    padding-left: 1.5rem;
}

.ts-entry-content li {
    margin: 0.4rem 0;
    line-height: 1.7;
}

/* Payment-method icons (Zahlungsarten page) — cap so Klarna logo doesn't
   blow up to full width like in Toni's screenshot */
.ts-entry-content li img {
    max-width: 80px;
    max-height: 32px;
    width: auto;
    height: auto;
    vertical-align: middle;
    margin: 0 6px;
    display: inline-block;
}

/* Generic image fallback — anything else stays inside container */
.ts-entry-content > img,
.ts-entry-content p img,
.ts-entry-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Blockquote */
.ts-entry-content blockquote {
    border-left: 3px solid var(--ts-accent);
    padding: 0.5rem 0 0.5rem 1.2rem;
    margin: 1.5rem 0;
    color: var(--ts-silver-light);
    font-style: italic;
}

/* Tables (cookie/privacy disclosures) */
.ts-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}

.ts-entry-content th,
.ts-entry-content td {
    padding: 10px 12px;
    border: 1px solid var(--ts-glass-border);
    text-align: left;
    vertical-align: top;
}

.ts-entry-content th {
    background: var(--ts-dark-secondary);
    color: var(--ts-white);
    font-weight: 600;
}

.ts-entry-content hr {
    border: 0;
    border-top: 1px solid var(--ts-glass-border);
    margin: 2.5rem 0;
}

/* Featured image (rarely used on legal pages but template supports it) */
.ts-featured-image {
    margin: 0 0 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.ts-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* -----------------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .ts-page-header {
        padding: 2rem 1rem 1.5rem;
    }

    .ts-content-section {
        padding: 2rem 1rem 3rem;
    }

    .ts-page-title {
        font-size: 1.6rem;
    }

    .ts-entry-content {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .ts-entry-content h1 { font-size: 1.5rem; }
    .ts-entry-content h2 { font-size: 1.25rem; }
    .ts-entry-content h3 { font-size: 1.1rem; }
}