/**
 * DeutschShirt - Base Layer
 * Reset, typography, layout primitives and utilities.
 * Depends on: tokens.css
 */

/* =====================================================================
 * 1. Reset
 * ===================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--ds-header-height) + var(--ds-space-md));
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--ds-background);
    color: var(--ds-on-surface);
    font-family: var(--ds-font-body);
    font-size: var(--ds-body-md-size);
    line-height: var(--ds-body-md-line);
    font-weight: var(--ds-body-md-weight);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: none;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

hr {
    border: 0;
    border-top: var(--ds-border-width) solid var(--ds-neutral-200);
    margin: var(--ds-space-xl) 0;
}

/* Hide scrollbar chrome to match the reference design */
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* =====================================================================
 * 2. Typography
 * ===================================================================== */

h1,
h2,
h3,
h4,
h5,
h6,
.ds-headline {
    font-family: var(--ds-font-headline);
    color: var(--ds-on-surface);
    margin: 0;
}

.ds-headline-xl {
    font-size: var(--ds-headline-xl-mobile-size);
    line-height: var(--ds-headline-xl-mobile-line);
    font-weight: var(--ds-headline-xl-mobile-weight);
    letter-spacing: var(--ds-headline-xl-mobile-tracking);
}

.ds-headline-lg {
    font-size: var(--ds-headline-lg-mobile-size);
    line-height: var(--ds-headline-lg-mobile-line);
    font-weight: var(--ds-headline-lg-mobile-weight);
    letter-spacing: var(--ds-headline-lg-mobile-tracking);
}

.ds-headline-md {
    font-size: var(--ds-headline-md-size);
    line-height: var(--ds-headline-md-line);
    font-weight: var(--ds-headline-md-weight);
    letter-spacing: var(--ds-headline-md-tracking);
}

.ds-headline-sm {
    font-size: var(--ds-headline-sm-size);
    line-height: var(--ds-headline-sm-line);
    font-weight: var(--ds-headline-sm-weight);
    letter-spacing: var(--ds-headline-sm-tracking);
}

.ds-body-lg {
    font-size: var(--ds-body-lg-size);
    line-height: var(--ds-body-lg-line);
    font-weight: var(--ds-body-lg-weight);
}

.ds-body-md {
    font-size: var(--ds-body-md-size);
    line-height: var(--ds-body-md-line);
    font-weight: var(--ds-body-md-weight);
}

.ds-body-sm {
    font-size: var(--ds-body-sm-size);
    line-height: var(--ds-body-sm-line);
    font-weight: var(--ds-body-sm-weight);
}

.ds-label-lg {
    font-size: var(--ds-label-lg-size);
    line-height: var(--ds-label-lg-line);
    font-weight: var(--ds-label-lg-weight);
    letter-spacing: var(--ds-label-lg-tracking);
}

.ds-label-md {
    font-size: var(--ds-label-md-size);
    line-height: var(--ds-label-md-line);
    font-weight: var(--ds-label-md-weight);
    letter-spacing: var(--ds-label-md-tracking);
}

.ds-label-sm {
    font-size: var(--ds-label-sm-size);
    line-height: var(--ds-label-sm-line);
    font-weight: var(--ds-label-sm-weight);
    letter-spacing: var(--ds-label-sm-tracking);
}

/* Tabular numerals for all pricing and spec tables */
.ds-tnum,
.ds-price,
.ds-spec-table td,
.ds-stat-value {
    font-feature-settings: "tnum" 1;
    font-variant-numeric: tabular-nums;
}

.ds-uppercase {
    text-transform: uppercase;
}

.ds-tracking-wide {
    letter-spacing: 0.06em;
}

.ds-tracking-tight {
    letter-spacing: -0.02em;
}

.ds-text-center {
    text-align: center;
}

.ds-text-right {
    text-align: right;
}

.ds-text-primary {
    color: var(--ds-primary);
}

.ds-text-secondary {
    color: var(--ds-secondary);
}

.ds-text-tertiary {
    color: var(--ds-tertiary);
}

.ds-text-muted {
    color: var(--ds-on-surface-variant);
}

.ds-text-inverse {
    color: var(--ds-inverse-on-surface);
}

.ds-font-bold {
    font-weight: 700;
}

.ds-font-extrabold {
    font-weight: 800;
}

/* =====================================================================
 * 3. Layout primitives
 * ===================================================================== */

.ds-container {
    width: 100%;
    max-width: var(--ds-container-landing);
    margin-inline: auto;
    padding-inline: var(--ds-margin-mobile);
}

.ds-container--catalog {
    max-width: var(--ds-container-catalog);
}

.ds-container--narrow {
    max-width: var(--ds-container-narrow);
}

.ds-container--wide {
    max-width: 100%;
}

@media (min-width: 768px) {
    .ds-container {
        padding-inline: var(--ds-margin);
    }
}

.ds-section {
    padding-block: var(--ds-space-xl);
}

.ds-section--tight {
    padding-block: var(--ds-space-lg);
}

.ds-section--flush-top {
    padding-top: 0;
}

.ds-section--flush-bottom {
    padding-bottom: 0;
}

.ds-section--dark {
    background-color: var(--ds-inverse-surface);
    color: var(--ds-inverse-on-surface);
}

.ds-section--dark h1,
.ds-section--dark h2,
.ds-section--dark h3,
.ds-section--dark h4 {
    color: var(--ds-inverse-on-surface);
}

.ds-section--tinted {
    background-color: var(--ds-surface-container-low);
}

.ds-section--slate {
    background-color: var(--ds-neutral-900);
    color: #ffffff;
}

.ds-section--slate h1,
.ds-section--slate h2,
.ds-section--slate h3,
.ds-section--slate h4 {
    color: #ffffff;
}

/* 12-column grid */
.ds-grid {
    display: grid;
    gap: var(--ds-gutter);
}

.ds-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ds-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ds-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ds-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ds-grid--12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

@media (max-width: 1023px) {
    .ds-grid--5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    .ds-grid--3,
    .ds-grid--4,
    .ds-grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ds-grid--12 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 479px) {

    .ds-grid--3,
    .ds-grid--4,
    .ds-grid--5 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Flex helpers */
.ds-flex {
    display: flex;
}

.ds-flex-col {
    flex-direction: column;
}

.ds-flex-wrap {
    flex-wrap: wrap;
}

.ds-items-center {
    align-items: center;
}

.ds-items-start {
    align-items: flex-start;
}

.ds-items-end {
    align-items: flex-end;
}

.ds-items-baseline {
    align-items: baseline;
}

.ds-justify-between {
    justify-content: space-between;
}

.ds-justify-center {
    justify-content: center;
}

.ds-justify-end {
    justify-content: flex-end;
}

.ds-flex-1 {
    flex: 1 1 0%;
}

.ds-mt-auto {
    margin-top: auto;
}

.ds-gap-xs {
    gap: var(--ds-space-xs);
}

.ds-gap-sm {
    gap: var(--ds-space-sm);
}

.ds-gap-md {
    gap: var(--ds-space-md);
}

.ds-gap-lg {
    gap: var(--ds-space-lg);
}

.ds-gap-xl {
    gap: var(--ds-space-xl);
}

/* Section header pattern */
.ds-section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ds-space-xs);
    margin-bottom: var(--ds-space-xl);
}

.ds-section-head--left {
    align-items: flex-start;
    text-align: left;
}

.ds-section-head--center {
    align-items: center;
    text-align: center;
    margin-inline: auto;
}

.ds-section-head .ds-eyebrow,
.ds-section-head__eyebrow {
    margin-bottom: var(--ds-space-2xs);
}

.ds-section-head__title,
.ds-section-head .ds-headline-lg {
    margin: 0;
    color: var(--ds-on-surface);
    font-size: var(--ds-headline-lg-mobile-size);
    line-height: var(--ds-headline-lg-mobile-line);
    font-weight: var(--ds-headline-lg-mobile-weight);
    letter-spacing: var(--ds-headline-lg-mobile-tracking);
}

@media (min-width: 768px) {
    .ds-section-head__title,
    .ds-section-head .ds-headline-lg {
        font-size: var(--ds-headline-lg-size);
        line-height: var(--ds-headline-lg-line);
        font-weight: var(--ds-headline-lg-weight);
        letter-spacing: var(--ds-headline-lg-tracking);
    }
}

.ds-section-head__sub {
    color: var(--ds-on-surface-variant);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 60ch;
    margin: 0;
}

.ds-section-head--center .ds-section-head__sub {
    margin-inline: auto;
}

/* =====================================================================
 * 4. Accessibility
 * ===================================================================== */

.ds-visually-hidden,
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed !important;
    top: var(--ds-space-md);
    left: var(--ds-space-md);
    width: auto;
    height: auto;
    clip: auto;
    z-index: var(--ds-z-modal);
    background: var(--ds-surface-container-lowest);
    color: var(--ds-on-surface);
    padding: var(--ds-space-sm) var(--ds-space-md);
    border-radius: var(--ds-radius);
    box-shadow: var(--ds-shadow-lg);
    font-weight: 600;
}

.ds-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: var(--ds-z-modal);
}

.ds-skip-link:focus {
    left: var(--ds-space-md);
    top: var(--ds-space-md);
    background: var(--ds-primary);
    color: var(--ds-on-primary);
    padding: var(--ds-space-sm) var(--ds-space-md);
    border-radius: var(--ds-radius);
    font-weight: 600;
}

:focus-visible {
    outline: var(--ds-border-width-focus) solid var(--ds-primary);
    outline-offset: 2px;
}

/* Remove the default focus ring only where we supply our own */
.ds-no-outline:focus {
    outline: none;
}

/* =====================================================================
 * 5. Material Symbols icon helper
 * ===================================================================== */

.ds-icon {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    user-select: none;
}

.ds-icon--sm {
    font-size: 16px;
}

.ds-icon--md {
    font-size: 20px;
}

.ds-icon--lg {
    font-size: 28px;
}

.ds-icon--xl {
    font-size: 32px;
}

.ds-icon--filled {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* =====================================================================
 * 6. WordPress core alignment + caption classes
 * ===================================================================== */

.alignleft {
    float: left;
    margin: 0 var(--ds-space-lg) var(--ds-space-md) 0;
}

.alignright {
    float: right;
    margin: 0 0 var(--ds-space-md) var(--ds-space-lg);
}

.aligncenter {
    display: block;
    margin-inline: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text,
.wp-block-image figcaption {
    font-size: var(--ds-body-sm-size);
    line-height: var(--ds-body-sm-line);
    color: var(--ds-on-surface-variant);
    margin-top: var(--ds-space-sm);
    text-align: center;
}

.sticky {
    position: relative;
}

.bypostauthor {
    display: block;
}

/* =====================================================================
 * 7. Entry content (blog / pages)
 * ===================================================================== */

.ds-entry-content {
    font-size: var(--ds-body-lg-size);
    line-height: var(--ds-body-lg-line);
    color: var(--ds-on-surface);
}

.ds-entry-content>*+* {
    margin-top: var(--ds-space-md);
}

.ds-entry-content h2 {
    font-size: var(--ds-headline-md-size);
    line-height: var(--ds-headline-md-line);
    font-weight: var(--ds-headline-md-weight);
    letter-spacing: var(--ds-headline-md-tracking);
    margin-top: var(--ds-space-xl);
}

.ds-entry-content h3 {
    font-size: var(--ds-headline-sm-size);
    line-height: var(--ds-headline-sm-line);
    font-weight: var(--ds-headline-sm-weight);
    margin-top: var(--ds-space-lg);
}

.ds-entry-content ul,
.ds-entry-content ol {
    padding-left: var(--ds-space-lg);
}

.ds-entry-content ul {
    list-style: disc;
}

.ds-entry-content ol {
    list-style: decimal;
}

.ds-entry-content li+li {
    margin-top: var(--ds-space-xs);
}

.ds-entry-content a {
    color: var(--ds-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ds-entry-content a:hover {
    color: var(--ds-primary-container);
}

.ds-entry-content blockquote {
    border-left: 3px solid var(--ds-primary);
    padding-left: var(--ds-space-md);
    color: var(--ds-on-surface-variant);
    font-style: italic;
}

.ds-entry-content img {
    border-radius: var(--ds-radius-lg);
}

.ds-entry-content code {
    background: var(--ds-surface-container);
    padding: 0.1em 0.35em;
    border-radius: var(--ds-radius-sm);
    font-size: 0.9em;
}

.ds-entry-content pre {
    background: var(--ds-neutral-900);
    color: #ffffff;
    padding: var(--ds-space-md);
    border-radius: var(--ds-radius-lg);
    overflow-x: auto;
}

/* =====================================================================
 * 8. Print
 * ===================================================================== */

@media print {

    .ds-header,
    .ds-footer,
    .ds-sticky-bar,
    .ds-mobile-drawer {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
    }
}