/*
Theme Name: Page Pilot ALCLEAR
Theme URI: https://products.alclear.de/
Author: ALCLEAR International GmbH
Description: Schlankes ALCLEAR-Theme für die Produktseiten des Page Pilot.
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.1
Text Domain: page-pilot-alclear
*/

@font-face {
    font-family: "Oswald";
    src: url("assets/fonts/oswald-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
}

@font-face {
    font-family: "Istok Web";
    src: url("assets/fonts/istok-web-regular-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Istok Web";
    src: url("assets/fonts/istok-web-bold-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --alclear-red: #e4240e;
    --alclear-red-dark: #b41d0c;
    --alclear-blue: #002d5f;
    --alclear-blue-light: #003a79;
    --alclear-black: #000000;
    --alclear-white: #ffffff;
    --alclear-gray-50: #f7f7f7;
    --alclear-gray-100: #eeeeee;
    --alclear-gray-700: #36393d;
    --alclear-content-width: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--alclear-white);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--alclear-black);
    background: var(--alclear-white);
    font-family: "Istok Web", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: var(--alclear-red);
    text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
    color: var(--alclear-red-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--alclear-black);
    font-family: "Oswald", Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.brand-rule {
    height: 6px;
    flex: 0 0 6px;
    background: var(--alclear-red);
}

.site-header {
    min-height: 108px;
    display: flex;
    align-items: center;
    background: var(--alclear-white);
    border-bottom: 1px solid var(--alclear-gray-100);
}

.site-header__inner,
.site-main__inner,
.site-footer__inner {
    width: min(calc(100% - 40px), var(--alclear-content-width));
    margin-inline: auto;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.site-logo img {
    display: block;
    width: 164px;
    height: auto;
}

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

.site-main__inner {
    padding-block: clamp(36px, 6vw, 88px);
}

.front-page-empty {
    min-height: calc(100vh - 115px);
    display: grid;
    place-items: center;
    padding: 32px;
    background:
        linear-gradient(135deg, rgba(0, 45, 95, 0.025), transparent 42%),
        var(--alclear-white);
}

.front-page-empty__logo {
    width: min(360px, 65vw);
    height: auto;
    opacity: 0.98;
}

.content-card {
    padding: clamp(24px, 4vw, 56px);
    background: var(--alclear-white);
    border-top: 5px solid var(--alclear-red);
    box-shadow: 0 16px 48px rgba(0, 45, 95, 0.1);
}

.content-card__title {
    margin-bottom: 0.65em;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
}

.entry-content > :first-child {
    margin-top: 0;
}

.entry-content > :last-child {
    margin-bottom: 0;
}

.site-footer {
    flex: 0 0 auto;
    padding-block: 18px;
    color: var(--alclear-white);
    background: var(--alclear-blue);
    font-size: 14px;
}

.site-footer__inner {
    min-height: 22px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .site-header {
        min-height: 88px;
    }

    .site-logo img {
        width: 132px;
    }

    .front-page-empty {
        min-height: calc(100vh - 95px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
