/*
Theme Name: TrashMailr
Theme URI: https://trashmailr.com/
Description: Schlankes Child-Theme für den TrashMailr-Blog im Stil von Tempr.email.
Author: TrashMailr.com
Template: twentytwentyfour
Version: 1.5.1
Text Domain: trashmailr
*/

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap");

:root {
    --trashmailr-blue: #37628f;
    --trashmailr-blue-dark: #213b54;
    --trashmailr-blue-light: #eaf4ff;
    --trashmailr-orange: #d98f4d;
    --trashmailr-orange-light: #f1d2b6;
    --trashmailr-intro: #fff9f3;
    --trashmailr-text: #333333;
    --trashmailr-border: #d4d4d4;
    --trashmailr-white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--trashmailr-blue-light);
    color: var(--trashmailr-text);
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    font-size: 18px;
}

a {
    text-underline-offset: 0.18em;
}

a:focus,
a:active {
    outline: none !important;
    box-shadow: none !important;
}

a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: underline;
}

.wp-site-blocks {
    min-height: 100vh;
}

/* WordPress-Standardabstand zwischen Header, Inhalt und Footer zurücksetzen. */
.wp-site-blocks > * {
    margin-block-start: 0;
}

.trashmailr-header {
    position: relative;
    z-index: 10;
    height: 142px;
    margin: 0;
    background: var(--trashmailr-blue);
}

.trashmailr-nav {
    display: flex;
    box-sizing: border-box;
    width: min(1180px, calc(100% - 48px));
    height: 94px;
    margin: 0 auto;
    padding: 12px 0;
    align-items: center;
    justify-content: space-between;
}

.trashmailr-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    text-decoration: none;
}

.trashmailr-brand:hover {
    color: #ffffff;
}

.trashmailr-brand > img {
    display: block;
    width: auto;
    height: 43px;
}

.trashmailr-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1;
}

.trashmailr-brand-copy strong {
    color: #ffffff;
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.trashmailr-brand-copy small {
    margin-top: 6px;
    color: rgba(234, 244, 255, 0.72);
    font-size: 12px;
    letter-spacing: 0.025em;
}

.trashmailr-navigation {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 34px;
}

.trashmailr-navigation > a {
    position: relative;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
}

.trashmailr-navigation > a:focus,
.trashmailr-navigation > a:active {
    outline: none;
    box-shadow: none;
}

.trashmailr-navigation > a:focus-visible {
    color: var(--trashmailr-orange-light);
}

.trashmailr-navigation > a:not(.trashmailr-account)::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--trashmailr-orange);
    content: "";
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 150ms ease, transform 150ms ease;
}

.trashmailr-navigation > a:hover,
.trashmailr-navigation > a.is-active {
    color: var(--trashmailr-orange-light);
}

.trashmailr-navigation > a:hover::after,
.trashmailr-navigation > a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.trashmailr-account {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
}

.trashmailr-account svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.trashmailr-waves {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 52px;
}

.trashmailr-waves .wave01 use {
    animation: trashmailr-waves-left 10s linear infinite;
    animation-delay: -2s;
    fill: var(--trashmailr-blue-light);
    opacity: 0.6;
}

.trashmailr-waves .wave02 use {
    animation: trashmailr-waves-right 8s linear infinite;
    animation-delay: -2s;
    fill: var(--trashmailr-blue-light);
    opacity: 0.4;
}

.trashmailr-waves .wave03 use {
    animation: trashmailr-waves-right 6s linear infinite;
    animation-delay: -2s;
    fill: var(--trashmailr-blue-light);
}

/* Nur auf der Blogstartseite geht die Welle in den warmen Introbereich über. */
body.home .trashmailr-waves use {
    fill: var(--trashmailr-intro);
}

@keyframes trashmailr-waves-left {
    from {
        transform: translate(85px, 0);
    }

    to {
        transform: translate(-90px, 0);
    }
}

@keyframes trashmailr-waves-right {
    from {
        transform: translate(-90px, 0);
    }

    to {
        transform: translate(85px, 0);
    }
}

.trashmailr-hero {
    overflow: hidden;
    border-bottom: 3px solid rgba(217, 143, 77, 0.55);
    background: var(--trashmailr-intro);
    text-align: center;
}

.trashmailr-eyebrow {
    color: var(--trashmailr-orange);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.trashmailr-hero > .wp-block-group {
    box-sizing: border-box;
    width: min(1180px, 100%);
    max-width: 1180px !important;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.trashmailr-hero h1 {
    max-width: 900px;
    margin-right: auto !important;
    margin-left: auto !important;
    color: var(--trashmailr-blue-dark);
    font-size: 2.6em;
    line-height: 0.95;
    letter-spacing: -0.025em;
}

.trashmailr-hero-copy {
    max-width: 720px;
    margin-right: auto !important;
    margin-left: auto !important;
    color: #4d6378;
    font-size: 18px;
    line-height: 1.55;
}

.trashmailr-pill {
    border: 1px solid rgba(55, 98, 143, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--trashmailr-blue-dark);
    font-size: 0.86rem;
    font-weight: 650;
}

.trashmailr-main {
    padding-top: clamp(2.5rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 6rem);
}

.trashmailr-main > .wp-block-group.alignwide {
    width: min(1180px, 100%);
    max-width: 1180px !important;
    margin-right: auto;
    margin-left: auto;
}

.trashmailr-section-title {
    color: var(--trashmailr-blue-dark);
    font-size: 1.5em;
    line-height: 1.1;
    text-align: center;
}

.trashmailr-post-grid .wp-block-post {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: var(--trashmailr-white);
    box-shadow: 0 7px 24px rgba(33, 59, 84, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.trashmailr-post-grid .wp-block-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(33, 59, 84, 0.13);
}

.trashmailr-post-grid .wp-block-post-featured-image {
    overflow: hidden;
    margin: 0;
    border-radius: 12px 12px 0 0;
}

.trashmailr-post-grid .wp-block-post-featured-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px 12px 0 0;
    object-fit: cover;
}

.trashmailr-post-card-content {
    padding: 1.45rem;
}

.trashmailr-post-grid .wp-block-post-title a {
    color: var(--trashmailr-blue-dark);
    font-size: 1.5rem;
    line-height: 1.1;
    text-decoration: none;
}

.trashmailr-post-grid .wp-block-post-title a:hover {
    color: var(--trashmailr-blue);
}

.trashmailr-post-grid .wp-block-post-date,
.trashmailr-post-grid .wp-block-post-terms {
    color: #6a7a89;
    font-size: 1rem;
}

.trashmailr-post-grid .wp-block-post-excerpt {
    line-height: 1.65;
}

.trashmailr-post-grid .wp-block-read-more {
    color: var(--trashmailr-orange);
    font-weight: 750;
    text-decoration: none;
}

.trashmailr-article {
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(33, 59, 84, 0.09);
}

.trashmailr-article h1,
.trashmailr-article h2,
.trashmailr-article h3 {
    color: var(--trashmailr-blue-dark);
}

.trashmailr-article h1 {
    font-size: 1.8em;
    line-height: 1.1;
}

.trashmailr-article h2 {
    font-size: 1.5em;
    line-height: 1.1;
}

.trashmailr-article h3 {
    font-size: 1.17em;
    line-height: 1.2;
}

.trashmailr-article-meta {
    color: #6a7a89;
    font-size: 1rem;
}

.trashmailr-article .wp-block-post-content {
    line-height: 1.75;
}

.trashmailr-article .wp-block-post-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border: 0;
    border-left: 5px solid var(--trashmailr-orange);
    border-radius: 0 10px 10px 0;
    background: var(--trashmailr-intro);
    color: var(--trashmailr-blue-dark);
    font-size: 1.05em;
    font-style: italic;
}

.trashmailr-article .wp-block-post-content blockquote > :first-child {
    margin-top: 0;
}

.trashmailr-article .wp-block-post-content blockquote > :last-child {
    margin-bottom: 0;
}

.trashmailr-article .wp-block-post-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    color: #6a7a89;
    font-size: 0.9em;
    font-style: normal;
    font-weight: 600;
}

.trashmailr-article .wp-block-post-content table {
    width: 100%;
    margin: 2rem 0;
    border: 1px solid var(--trashmailr-border);
    border-collapse: collapse;
    background: var(--trashmailr-white);
}

.trashmailr-article .wp-block-post-content thead,
.trashmailr-article .wp-block-post-content tbody,
.trashmailr-article .wp-block-post-content th,
.trashmailr-article .wp-block-post-content td {
    text-align: left;
}

.trashmailr-article .wp-block-post-content th,
.trashmailr-article .wp-block-post-content td {
    padding: 0.8rem 1rem;
    border: 1px solid var(--trashmailr-border);
    vertical-align: top;
}

.trashmailr-article .wp-block-post-content thead th {
    background: var(--trashmailr-blue-light);
    color: var(--trashmailr-blue-dark);
    font-weight: 700;
}

.trashmailr-article .wp-block-post-content tbody tr:nth-child(even) {
    background: #f8fbfe;
}

.wp-block-query-pagination a,
.wp-block-post-navigation-link a {
    color: var(--trashmailr-blue);
    font-weight: 700;
}

.trashmailr-footer {
    margin-top: 60px;
    border: 0;
    background: #333333;
    color: #ffffff;
}

.trashmailr-footer * {
    color: #ffffff !important;
}

.trashmailr-footer-grid {
    display: grid;
    box-sizing: border-box;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 60px 0;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.trashmailr-footer p,
.trashmailr-footer a {
    margin: 0;
    font-size: 18px !important;
    line-height: 1.5;
}

.trashmailr-footer-brand strong {
    display: block;
    font-size: 1.6em !important;
    font-weight: 500;
    line-height: 1;
}

.trashmailr-footer-brand p {
    margin-top: 10px;
}

.trashmailr-footer-project {
    padding: 0 15px;
    border-right: 1px solid #444444;
    border-left: 1px solid #444444;
    text-align: center;
}

.trashmailr-footer-project p + p {
    margin-top: 8px;
}

.trashmailr-footer-navigation {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
}

.trashmailr-footer-navigation a {
    padding: 2px 0;
    text-decoration: none;
}

.trashmailr-footer-navigation a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .trashmailr-header {
        height: 126px;
    }

    .trashmailr-nav {
        width: calc(100% - 48px);
        height: 80px;
        padding: 10px 0;
    }

    .trashmailr-brand {
        gap: 10px;
    }

    .trashmailr-brand > img {
        height: 36px;
    }

    .trashmailr-brand-copy strong {
        font-size: 24px;
    }

    .trashmailr-brand-copy small {
        display: none;
    }

    .trashmailr-navigation {
        gap: 15px;
    }

    .trashmailr-navigation > a {
        font-size: 18px;
    }

    .trashmailr-hero h1 {
        font-size: 2em;
    }

    .trashmailr-navigation > a:nth-child(2) {
        display: none;
    }

    .trashmailr-account {
        width: 34px;
        height: 34px;
    }

    .trashmailr-waves {
        height: 48px;
    }

    .trashmailr-post-grid .wp-block-post-template {
        grid-template-columns: 1fr;
    }

    .trashmailr-footer-grid {
        grid-template-columns: 1fr;
        padding: 45px 0;
        text-align: center;
    }

    .trashmailr-footer-project {
        margin: 20px 0;
        padding: 30px 0;
        border-top: 1px solid #444444;
        border-right: 0;
        border-bottom: 1px solid #444444;
        border-left: 0;
    }

    .trashmailr-footer-navigation {
        align-items: center;
    }

    .trashmailr-footer-navigation a {
        padding: 8px 0;
    }
}
