/* Grundlayout & Sticky Footer */

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f7;
    color: #1f1f23;
}

.tm-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tm-main {
    flex: 1 0 auto;
}

/* Header */

.tm-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffffee;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tm-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.tm-logo {
    height: 40px;
    width: auto;
    display: block;
}

.tm-logo-link {
    display: inline-flex;
    align-items: center;
}

.tm-nav {
    display: flex;
    gap: 18px;
}

.tm-nav-link {
    font-size: 0.95rem;
    text-decoration: none;
    color: #3a3a3f;
    padding: 6px 0;
    position: relative;
}

.tm-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #007c89;
    transition: width 0.2s ease;
}

.tm-nav-link:hover {
    color: #007c89;
}

.tm-nav-link:hover::after {
    width: 100%;
}

/* Hero */

.tm-hero {
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #ffffff, #f1f4f8);
}

.tm-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 40px;
    align-items: center;
}

.tm-hero-text h1 {
    font-size: 2.6rem;
    letter-spacing: 0.03em;
    margin: 0 0 10px;
}

.tm-hero-text h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #555a60;
    margin: 0 0 18px;
}

.tm-hero-copy {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 32rem;
    color: #3f4248;
}

.tm-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: #8a9099;
    margin: 0 0 10px;
}

/* Hero Visual Placeholder */

.tm-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.tm-hero-placeholder {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: radial-gradient(circle at 20% 20%, #ffe8c8, #f1f2f7);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3d3b36;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

/* Sektionen allgemein */

.tm-section {
    padding: 40px 20px 60px;
}

.tm-section-header {
    max-width: 1200px;
    margin: 0 auto 24px;
    text-align: center;
}

.tm-section-header h2 {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.tm-section-header p {
    margin: 0;
    color: #666a72;
}

/* Kategorien */

.tm-section-categories {
    background: #ffffff;
}

.tm-cat-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tm-cat-item {
    display: flex;
    flex-direction: column;
    background: #fafbff;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.tm-cat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    background: #f4f7ff;
}

.tm-cat-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.tm-cat-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #ffffff;
}

.tm-cat-content {
    padding: 16px 18px 18px;
}

.tm-cat-content h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.tm-cat-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b6f77;
}

/* Footer */

.tm-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 32px 20px 40px;
    background: #111217;
    color: #d3d5db;
    font-size: 0.9rem;
}

.tm-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 900px) {
    .tm-hero-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .tm-hero-visual {
        justify-content: flex-start;
    }

    .tm-header-inner {
        padding: 10px 16px;
    }

    .tm-nav {
        gap: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .tm-hero {
        padding: 40px 16px 24px;
    }

    .tm-hero-text h1 {
        font-size: 2rem;
    }

    .tm-hero-text h2 {
        font-size: 1.1rem;
    }

    .tm-cat-grid {
        gap: 18px;
    }

    .tm-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
.tm-hero-visual {
    display: flex;
    justify-content: flex-end;
}

/* Grundlayout & Sticky Footer */

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f7;
    color: #1f1f23;
}

.tm-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tm-main {
    flex: 1 0 auto;
}

/* Header */

.tm-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffffee;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tm-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.tm-logo {
    height: 40px;
    width: auto;
    display: block;
}

.tm-logo-link {
    display: inline-flex;
    align-items: center;
}

.tm-nav {
    display: flex;
    gap: 18px;
}

.tm-nav-link {
    font-size: 0.95rem;
    text-decoration: none;
    color: #3a3a3f;
    padding: 6px 0;
    position: relative;
}

.tm-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #007c89;
    transition: width 0.2s ease;
}

.tm-nav-link:hover {
    color: #007c89;
}

.tm-nav-link:hover::after {
    width: 100%;
}

/* Hero */

.tm-hero {
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #ffffff, #f1f4f8);
}

.tm-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 40px;
    align-items: center;
}

.tm-hero-text h1 {
    font-size: 2.6rem;
    letter-spacing: 0.03em;
    margin: 0 0 10px;
}

.tm-hero-text h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #555a60;
    margin: 0 0 18px;
}

.tm-hero-copy {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 32rem;
    color: #3f4248;
}

.tm-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: #8a9099;
    margin: 0 0 10px;
}

/* Hero Visual Placeholder */

.tm-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.tm-hero-placeholder {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: radial-gradient(circle at 20% 20%, #ffe8c8, #f1f2f7);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3d3b36;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

/* Sektionen allgemein */

.tm-section {
    padding: 40px 20px 60px;
}

.tm-section-header {
    max-width: 1200px;
    margin: 0 auto 24px;
    text-align: center;
}

.tm-section-header h2 {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.tm-section-header p {
    margin: 0;
    color: #666a72;
}

/* Kategorien */

.tm-section-categories {
    background: #ffffff;
}

.tm-cat-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.tm-cat-item {
    display: flex;
    flex-direction: column;
    background: #fafbff;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.tm-cat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    background: #f4f7ff;
}

.tm-cat-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.tm-cat-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #ffffff;
}

.tm-cat-content {
    padding: 16px 18px 18px;
}

.tm-cat-content h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.tm-cat-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b6f77;
}

/* Footer */

.tm-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 32px 20px 40px;
    background: #111217;
    color: #d3d5db;
    font-size: 0.9rem;
}

.tm-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 900px) {
    .tm-hero-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .tm-hero-visual {
        justify-content: flex-start;
    }

    .tm-header-inner {
        padding: 10px 16px;
    }

    .tm-nav {
        gap: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .tm-hero {
        padding: 40px 16px 24px;
    }

    .tm-hero-text h1 {
        font-size: 2rem;
    }

    .tm-hero-text h2 {
        font-size: 1.1rem;
    }

    .tm-cat-grid {
        gap: 18px;
    }

    .tm-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


.tm-intro {
    padding: 40px 20px;
    background: #ffffff;
}

.tm-intro-inner {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #3f434a;
    text-align: center;
}


.tm-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.tm-hero-slider {
    position: relative;
    width: 60%;
    height: 320px; /* oder 500px, wie du willst */
    overflow: hidden;
}

.tm-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff; /* oder #fafafa, je nach Theme */
}

.tm-hero-slide.is-active {
    opacity: 1;
}

.tm-hero-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;   /* WICHTIG: NICHT cover */
    object-position: center;
}

.tm-category-head {
    background: #ffffff;
}

.tm-category-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
    align-items: center;
}

.tm-category-text h1 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.tm-category-intro {
    margin: 0;
    color: #555a60;
    line-height: 1.7;
}

.tm-category-media {
    display: flex;
    justify-content: flex-end;
}

.tm-category-image-wrap img {
    max-width: 260px;    /* hier wird das Titelbild klein gehalten */
    height: auto;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

/* Produktgrid der Kategorie */

.tm-section-products {
    background: #ffffff;
}

.tm-prod-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.tm-prod-card {
    display: flex;
    flex-direction: column;
    background: #fafbff;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tm-prod-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    background: #f4f7ff;
}

.tm-prod-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;      /* quadratisch */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;          /* falls mal was rausguckt */
}

.tm-prod-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;   /* nicht beschneiden, sondern einpassen */
    display: block;
}

.tm-prod-placeholder {
    font-size: 0.85rem;
    color: #999;
}

.tm-prod-content {
    padding: 14px 16px 16px;
}

.tm-prod-content h3 {
    margin: 0;
    font-size: 1rem;
}

