/**
 * Strukturglas Design Layer
 *
 * Lean editorial overlay. Source files now carry the warm palette directly
 * (variables.css + sed-fixed parent CSS + warm theme_mod defaults), so this
 * file no longer fights colors with !important. It only adds:
 *
 *   1. Typography — Fraunces serif headings, Inter eyebrows (not mono)
 *   2. New markup my templates introduce — .sg-hero-showcase, .sg-card,
 *      .sg-faq-item — none of which exist in the parent theme
 *   3. Editorial layout tweaks — pill buttons, section spacing
 *   4. Hide legacy structure the editorial flow doesn't use — phone in
 *      header, hero spec strip, FAQ category grid (we use flat <details>)
 *
 * @package Begehbaresglas
 */

/* ----- 1. Typography sweep ----- */

h1, h2, h3, h4, h5,
.ts-hero-title, .ts-calc-title, .ts-use-cases-title, .ts-faq-title,
.sg-hero-title, .sg-catalog-title, .sg-section-title {
    font-family: var(--ts-font-display);
    font-weight: 500;
    letter-spacing: -0.018em;
    font-variation-settings: 'opsz' 144;
}

.sg-eyebrow, .ts-section-label,
.ts-hero-eyebrow, .ts-calc-eyebrow, .ts-use-cases-eyebrow {
    font-family: var(--ts-font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ts-silver);
    display: inline-block;
    font-variation-settings: normal;
}

.sg-section-head, .sg-catalog-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.sg-section-head h2, .sg-section-title, .sg-catalog-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    margin: 14px 0;
    color: var(--ts-white);
}
.sg-section-head p, .sg-catalog-subtitle, .sg-section-subtitle {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ts-silver);
    margin: 0;
}

/* ----- 2. Header: drop phone, simplify right side ----- */

.ts-header-phone { display: none; }

/* ----- 3. Hero: hide legacy single-image block, add showcase grid ----- */

.ts-hero .ts-hero-media,
.ts-hero .ts-hero-specs { display: none; }

.ts-hero-grid, .sg-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.sg-hero-eyebrow { margin-bottom: 1.6rem; }
.sg-hero-title {
    font-size: clamp(2.6rem, 5.8vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin: 16px 0 18px;
    color: var(--ts-white);
}
.sg-hero-accent {
    display: block;
    font-style: italic;
    font-weight: 400;
    color: var(--ts-accent-hover);
}
.sg-hero-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ts-silver);
    margin: 0 0 26px;
    max-width: 50ch;
}
.sg-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Single aspirational hero image */
.sg-hero-figure {
    margin: 0;
    border-radius: var(--ts-radius-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: var(--ts-dark-secondary);
}
.sg-hero-figure-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----- 4. Pattern catalog: 2-col horizontal cards (Option C — Detailed Catalogue Row) ----- */

.sg-catalog { padding: clamp(3.5rem, 6vw, 5.5rem) 0; background: var(--ts-dark); }
.sg-catalog-container {
    max-width: var(--ts-max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.sg-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.sg-card {
    border-radius: 14px;
    transition: transform 0.25s, border-color 0.2s;
}
.sg-card-link-wrap {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 16px;
    background: var(--ts-black);
    border: 1px solid var(--ts-dark-secondary);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.25s;
    height: 100%;
}
.sg-card-link-wrap:hover {
    border-color: var(--ts-dark-tertiary);
    transform: translateY(-2px);
}
.sg-card-media {
    aspect-ratio: 1;
    background-color: var(--ts-dark-secondary);
    border-radius: 10px;
    overflow: hidden;
}
.sg-card-media img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

.sg-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0; /* let long content shrink instead of overflowing the grid cell */
}
.sg-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.sg-card-title {
    font-family: var(--ts-font-display);
    font-weight: 500;
    font-size: 19px;
    margin: 0;
    color: var(--ts-white);
    font-variation-settings: 'opsz' 60;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.sg-card-stock {
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(122, 138, 92, 0.15);
    color: #5a6a3c;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
}
.sg-card-tagline {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ts-silver);
    margin: 0 0 12px;
}
.sg-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--ts-dark-secondary);
    margin-top: auto;
}
.sg-card-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}
.sg-card-meta-label {
    font-size: 11px;
    color: var(--ts-silver-light);
    font-family: var(--ts-font-body);
}
.sg-card-meta-value {
    color: var(--ts-white);
    font-family: var(--ts-font-display);
    font-weight: 500;
    font-size: 12.5px;
    letter-spacing: -0.005em;
    text-align: right;
}

/* ----- 5. FAQ: hide legacy category grid, style flat <details> accordion ----- */

.ts-faq-categories { display: none; }

.sg-faq { max-width: 760px; margin: 0 auto; }
.sg-faq-item {
    background: var(--ts-black);
    border: 1px solid var(--ts-dark-secondary);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.sg-faq-item:hover { border-color: var(--ts-dark-tertiary); }
.sg-faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--ts-white);
    list-style: none;
    gap: 16px;
}
.sg-faq-item summary::-webkit-details-marker { display: none; }
.sg-faq-toggle {
    color: var(--ts-accent);
    font-size: 18px;
    transition: transform 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.sg-faq-item[open] .sg-faq-toggle { transform: rotate(45deg); }
.sg-faq-body {
    padding: 0 22px 20px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ts-silver);
}
.sg-faq-body p { margin: 0; }

/* ----- 6. Pill button shape (parent uses rounded squares) ----- */

.ts-btn, .ts-btn-lg { border-radius: 9999px; }

/* ----- 7. Responsive ----- */

@media (max-width: 1000px) {
    .ts-hero-grid, .sg-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .sg-hero-figure { aspect-ratio: 16/9; }
    .sg-catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 720px) {
    .sg-catalog-grid { grid-template-columns: 1fr; gap: 12px; }
    .sg-card-link-wrap { grid-template-columns: 150px 1fr; padding: 16px; gap: 18px; }
    .sg-card-title { font-size: 22px; }
}
@media (max-width: 580px) {
    .sg-hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
    .sg-hero-figure { aspect-ratio: 4/3; }
    .sg-card-link-wrap { grid-template-columns: 110px 1fr; padding: 14px; gap: 14px; }
    .sg-card-title { font-size: 18px; }
    .sg-card-meta-value { font-size: 12px; }
}