/* Gear-Dock Frontend. Farben und Variablen: tokens.css */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--top);
    color: var(--white);
    font-family: var(--font-sans);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 5px;
}

.header {
    height: 94px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px 0 24px;
    z-index: 2;
}

.logo img {
    width: 60px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.navigation {
    position: absolute;
    left: 23.2%;
    right: 20%;
    top: 0;
    height: 78px;
    border-bottom: 1px solid #a1a0a3;
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
    padding-top: 16px;
}

.navigation a,
.navigation button {
    font-size: 16px;
    color: var(--white);
    background: none;
    border: 0;
    padding: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.button {
    border: 0;
    border-radius: 99px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    color: #0d0b12;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    transition: filter .15s,transform .15s;
}

.button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.contact {
    background: var(--blue);
    padding: 0 16px;
}

.lime {
    background: var(--lime);
    min-width: 162px;
}

.outline {
    background: transparent;
    border: 1px solid #ddd;
    color: var(--white);
    min-width: 124px;
    font-weight: 400;
}

.purple {
    background: var(--purple);
}

.menu-toggle {
    display: none;
}

.hero {
    height: 602px;
    position: relative;
}

.hero-content {
    position: relative;
    width: 1392px;
    max-width: calc(100% - 120px);
    margin: 0 auto;
    padding-top: 112px;
    display: grid;
    grid-template-columns: 420px 340px;
    grid-template-rows: auto auto auto;
    column-gap: 34px;
    align-content: start;
}

h1,
h2 {
    margin: 0;
    font-size: 64px;
    line-height: 1.04;
    letter-spacing: -2.8px;
    font-weight: 700;
}

h1 {
    grid-column: 1;
    grid-row: 1;
}

.hero-description,
.custom-content p {
    font-size: 16px;
    line-height: 1.75;
    margin: 10px 0 20px;
    max-width: 375px;
}

.hero-description {
    grid-column: 1;
    grid-row: 2;
}

.hero-buttons {
    grid-column: 1;
    grid-row: 3;
    display: flex;
    gap: 30px;
}

.product-image {
    grid-column: 2;
    grid-row: 1/4;
    position: relative;
    width: 310px;
    height: 315px;
    margin-top: -20px;
}

.product-image>img {
    position: absolute;
    width: 640px;
    max-width: none;
    left: -209px;
    top: -38px;
}

.magnet-label {
    position: absolute;
    bottom: -9px;
    left: 147px;
    font-size: 16px;
    white-space: nowrap;
}

.magnet-label svg {
    position: absolute;
    left: 8px;
    top: -29px;
    width: 27px;
    height: 27px;
    fill: none;
    stroke: var(--white);
    stroke-width: 1.7;
}

.sparkles {
    position: absolute;
    pointer-events: none;
}

.sparkles i {
    display: block;
    position: absolute;
    background: #d9d9db;
    clip-path: polygon(50% 0%,63% 30%,98% 26%,75% 55%,86% 89%,53% 73%,25% 100%,26% 63%,0% 43%,36% 34%);
    border-radius: 5px;
}

.hero-sparkles {
    left: -56px;
    top: 44px;
    width: 80px;
    height: 90px;
}

.hero-sparkles i:first-child {
    width: 50px;
    height: 50px;
    left: 29px;
    top: 4px;
    --star-angle: -14deg;
}

.hero-sparkles i:last-child {
    width: 23px;
    height: 23px;
    left: 5px;
    top: 50px;
}

.customs {
    position: relative;
    min-height: 384px;
    background: var(--bottom);
}

.customs:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 76px;
    top: -36px;
    background: var(--bottom);
    clip-path: ellipse(61% 100% at 50% 100%);
}

.custom-content {
    position: relative;
    width: 600px;
    margin-left: auto;
    margin-right: 9.4%;
    display: grid;
    grid-template-columns: 200px 380px;
    column-gap: 20px;
    padding-top: 0;
}

h2 {
    grid-column: 2;
    grid-row: 1;
}

.custom-content p {
    grid-column: 2;
    grid-row: 2;
    margin-top: 4px;
    margin-bottom: 18px;
}

.custom-image {
    grid-column: 1;
    grid-row: 1/4;
    width: 200px;
    height: 230px;
    position: relative;
    align-self: center;
}

.custom-image img {
    position: absolute;
    width: 560px;
    max-width: none;
    left: -170px;
    top: -97px;
}

.upload-button {
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
}

.custom-sparkles {
    right: -14px;
    top: -105px;
    width: 110px;
    height: 90px;
}

.custom-sparkles i:nth-child(1) {
    width: 50px;
    height: 50px;
    left: 10px;
    top: 22px;
    --star-angle: 12deg;
}

.custom-sparkles i:nth-child(2) {
    width: 23px;
    height: 23px;
    left: 61px;
    top: 0;
    --star-angle: -10deg;
}

.custom-sparkles i:nth-child(3) {
    width: 25px;
    height: 25px;
    left: 67px;
    top: 45px;
}

@media(min-width:1921px) {
    .hero-content {
        width: 1392px;
    }
    .custom-content {
        margin-right: calc((100% - 1920px)/2 + 180px);
    }
}

@media(min-width:901px) and (max-width:1200px) {
    .hero-content {
        max-width: calc(100% - 110px);
        grid-template-columns: 380px 300px;
    }
    h1,
    h2 {
        font-size: 54px;
    }
    .custom-content {
        margin-right: 6%;
        width: 560px;
        grid-template-columns: 180px 360px;
    }
    .hero {
        height: 560px;
    }
    .navigation {
        gap: 22px;
    }
}

@media(max-width:900px) {
    .header {
        height: 136px;
        padding: 40px 24px 0;
        align-items: center;
    }
    .logo img {
        width: 46px;
        height: 49px;
    }
    .button {
        height: 36px;
        font-size: 16px;
    }
    .contact {
        padding: 0 17px;
    }
    .menu-toggle {
        display: flex;
        width: 27px;
        height: 30px;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        background: none;
        border: 0;
        padding: 0;
    }
    .menu-toggle span {
        height: 2px;
        width: 25px;
        background: #d5d4d8;
        border-radius: 3px;
    }
    .navigation {
        display: none;
        left: 24px;
        right: 24px;
        top: 118px;
        height: auto;
        padding: 22px;
        background: #24212a;
        border: 1px solid #49434f;
        border-radius: 12px;
        box-shadow: 0 12px 30px #0005;
        gap: 24px;
        align-items: flex-start;
        flex-direction: column;
    }
    .navigation.is-open {
        display: flex;
    }
    .hero {
        height: 600px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        width: auto;
        max-width: none;
        margin: 0 24px;
        padding-top: 34px;
    }
    .desktop-break {
        display: none;
    }
    h1,
    h2 {
        font-size: 36px;
        line-height: 1.08;
        letter-spacing: -1.35px;
    }
    h1 {
        max-width: 350px;
    }
    .hero-sparkles {
        display: none;
    }
    .product-image {
        flex: none;
        align-self: center;
        width: 210px;
        height: 205px;
        margin: 38px 0 20px;
    }
    .product-image>img {
        width: 360px;
        left: -93px;
        top: -21px;
    }
    .magnet-label {
        display: none;
    }
    .hero-description,
    .custom-content p {
        font-size: 16px;
        line-height: 1.75;
        max-width: none;
        margin: 0 0 20px;
    }
    .hero-buttons {
        gap: 14px;
        justify-content: center;
    }
    .lime {
        min-width: 140px;
        padding: 0 23px;
    }
    .outline {
        min-width: 140px;
        padding: 0 20px;
    }
    .customs {
        min-height: 742px;
        padding: 118px 24px 96px;
    }
    .customs:before {
        top: -18px;
        height: 30px;
        clip-path: ellipse(75% 100% at 50% 100%);
    }
    .custom-content {
        display: flex;
        flex-direction: column;
        width: auto;
        margin: 0;
        padding: 0;
    }
    .custom-content h2 {
        max-width: 330px;
    }
    .custom-image {
        flex: none;
        width: 200px;
        height: 235px;
        margin: 44px auto 28px;
    }
    .custom-image img {
        width: 520px;
        left: -160px;
        top: -100px;
    }
    .custom-content p {
        margin: 0 0 20px;
    }
    .upload-button {
        align-self: center;
        padding: 0 26px;
    }
    .custom-sparkles {
        right: 18px;
        top: -57px;
        transform: scale(.48);
        transform-origin: top right;
    }
    .custom-content h2:after {
        content: none;
    }
}

@media(max-width:370px) {
    h1,
    h2 {
        font-size: 32px;
    }
    .hero {
        height: 620px;
    }
    .hero-buttons {
        gap: 12px;
    }
    .hero-buttons .button {
        min-width: 0;
        padding: 0 22px;
    }
    .customs {
        padding-top: 100px;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    .button {
        transition: none;
    }
}

.logo--default img {
    filter: invert(1);
}

.custom-image {
    overflow: hidden;
}

@media(min-width:901px) {
    .product-image {
        transform: translate(16px,22px);
    }
}

@media(max-width:900px) {
    .product-image {
        margin-bottom: 0;
    }
    .hero-description {
        font-size: 17px;
        line-height: 1.65;
    }
    .custom-image {
        margin-top: 57px;
        margin-bottom: 15px;
    }
}

@media(min-width:901px) {
    .custom-content h2 {
        white-space: nowrap;
    }
    .custom-content {
        margin-right: 10.4%;
    }
    .custom-content p {
        max-width: 350px;
    }
}

body {
    background: var(--bottom);
    min-height: 100svh;
}

.header,
.hero {
    background: var(--top);
}

.header-actions {
    margin-left: auto;
}

.logo {
    position: fixed;
    left: 24px;
    top: 15px;
    z-index: 10;
    transition: transform .25s ease;
}

.logo:hover {
    transform: rotate(-4deg) scale(1.04);
}

.contact {
    position: fixed;
    right: 40px;
    top: 29px;
    z-index: 10;
}

.navigation {
    border-bottom: 0;
}

.navigation::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,transparent,#a1a0a3 4%,#a1a0a3 96%,transparent);
    transform-origin: center;
    animation: divider-grow 1.25s cubic-bezier(.22,1,.36,1) both;
    pointer-events: none;
}

.navigation a,
.navigation button {
    position: relative;
    color: var(--white);
    padding-block: 8px;
}

.navigation a:hover,
.navigation button:hover {
    color: var(--white);
}

.navigation a::after,
.navigation button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 1px;
    border-radius: 2px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s cubic-bezier(.22,1,.36,1);
}

.navigation a:hover::after,
.navigation button:hover::after,
.navigation a:focus-visible::after,
.navigation button:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.button {
    transition: filter .2s ease,transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px #0002;
}

.button:active {
    transform: translateY(1px) scale(.97);
    box-shadow: none;
}

.magnet-label svg {
    transform-origin: 50% 50%;
    animation: magnet-bounce 3.2s ease-in-out infinite;
    will-change: transform;
}

.sparkles i {
    transform: rotate(var(--star-angle,0deg));
}

.customs {
    min-height: max(520px,calc(100svh - 696px));
    padding-bottom: 96px;
}

.hero-content {
    animation: content-enter .85s cubic-bezier(.22,1,.36,1) both;
}

.product-image>img {
    transition: filter .4s ease;
}

.product-image:hover>img {
    filter: brightness(1.08);
}

.custom-image img {
    transition: filter .4s ease;
}

.custom-image:hover img {
    filter: brightness(1.08);
}

section {
    scroll-margin-top: 100px;
}

@keyframes divider-grow {
    0% {
        transform: scaleX(.002);
        opacity: 0;
    }
    12% {
        transform: scaleX(.002);
        opacity: .8;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes magnet-bounce {
    0%,
    48%,
    100% {
        transform: translate3d(0,0,0) rotate(-45deg) scale(1,1) rotate(45deg);
    }
    56% {
        transform: translate3d(1px,1px,0) rotate(-45deg) scale(1.2,.78) rotate(45deg);
    }
    64% {
        transform: translate3d(-6px,-6px,0) rotate(-45deg) scale(.84,1.24) rotate(45deg);
    }
    71% {
        transform: translate3d(-7px,-7px,0) rotate(-45deg) scale(1.16,.82) rotate(45deg);
    }
    80% {
        transform: translate3d(1px,1px,0) rotate(-45deg) scale(.94,1.08) rotate(45deg);
    }
    88% {
        transform: translate3d(0,0,0) rotate(-45deg) scale(1.03,.97) rotate(45deg);
    }
}

@keyframes content-enter {
    from {
        opacity: 0;
        translate: 0 10px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

@media(min-width:1921px) {
    .custom-content {
        margin-right: calc((100% - 1920px)/2 + 200px);
    }
}

@media(max-width:900px) {
    .logo {
        position: absolute;
        top: 64px;
    }
    .contact {
        position: absolute;
        top: 70px;
        right: 62px;
    }
    .navigation {
        position: fixed;
        z-index: 11;
    }
    .navigation::after {
        display: none;
    }
    .hero {
        height: auto;
        min-height: 600px;
    }
    .hero-content {
        width: min(560px,calc(100% - 48px));
        margin-inline: auto;
        padding-bottom: 64px;
    }
    .customs {
        min-height: 742px;
        padding-bottom: max(96px,12svh);
    }
    .custom-content {
        max-width: 560px;
        margin-inline: auto;
    }
    .menu-toggle {
        position: fixed;
        top: 73px;
        right: 24px;
        z-index: 12;
        transition: opacity .2s ease;
    }
    .menu-toggle span {
        transition: transform .25s ease,opacity .2s ease;
    }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .navigation.is-open {
        animation: content-enter .2s ease both;
    }
}

@media(min-width:501px) and (max-width:900px) {
    h1,
    h2 {
        font-size: clamp(36px,5.4vw,48px);
        letter-spacing: -1.8px;
    }
    h1,
    .custom-content h2 {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: flex-start;
    }
    .product-image {
        margin-block: 46px 16px;
    }
    .custom-sparkles {
        right: 0;
    }
}

@media(max-width:370px) {
    .hero {
        height: auto;
        min-height: 620px;
    }
    .hero-content {
        width: calc(100% - 40px);
    }
    .header {
        padding-inline: 20px;
    }
    .logo {
        left: 20px;
    }
    .contact {
        right: 58px;
    }
    .hero-buttons {
        flex-wrap: wrap;
    }
    .customs {
        padding-inline: 20px;
    }
}

@media(prefers-reduced-motion:reduce) {
    *,
    *::before,
    *::after {
        animation: none!important;
        transition: none!important;
        scroll-behavior: auto!important;
    }
    .sparkles i,
    .magnet-label svg {
        will-change: auto;
    }
}

@media(max-width:900px) {
    .product-image {
        overflow: hidden;
    }
}

/* WordPress-Menü: <li> sollen die Flex-Anordnung der Links nicht stören */
.navigation li {
    display: contents;
}

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

/* Standard-Inhaltsseiten (index.php) */
.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 96px;
}

/* Footer (Maße aus dem Customs-Mockup, Frame 1920 px) */
.site-footer {
    background: #0a090c;
    color: #9899a6;
    font-size: 14px;
    padding: 0 24px 50px;
}
.site-footer__inner {
    max-width: 1106px;
    margin: 0 auto;
    padding-top: 38px;
    border-top: 1px solid #24222a;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 36px;
}
.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-footer__logo img {
    display: block;
    width: 58px;
    height: 60px;
    object-fit: contain;
    filter: invert(1);
}
.site-footer p {
    margin: 0;
}
.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
.site-footer__nav a {
    color: #9899a6;
    transition: color 0.2s ease;
}
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
    color: var(--white);
}
.site-footer__bottom {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}
/* Hinweis über dem Footer (Germanized: Kleinunternehmer-Regelung, durchgestrichene Preise) */
.site-notices {
    padding: 0 24px 32px;
    text-align: center;
}
.site-notices p,
body .site-notices .footer-info {
    max-width: 1106px;
    margin: 0 auto;
    padding: 0;
    background: none;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}
.site-notices p + p {
    margin-top: 6px;
}

/* Widerrufs-Button in der Fußzeile: ruhig, aber als Button erkennbar */
.site-footer__withdraw p {
    margin: 0;
}
body .site-footer .site-footer__withdraw a.button {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 18px;
    border: 1.5px solid var(--card-line);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    transition: border-color 0.2s ease, color 0.2s ease;
}
body .site-footer .site-footer__withdraw a.button:hover,
body .site-footer .site-footer__withdraw a.button:focus-visible {
    border-color: var(--lime);
    background: transparent;
    color: var(--lime);
}

@media (max-width: 700px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        row-gap: 24px;
        padding-top: 32px;
    }
    .site-footer__nav {
        gap: 12px 20px;
    }
}

/* Footer klebt am unteren Rand, auch wenn der Inhalt kürzer als der Bildschirm ist */
body {
    display: flex;
    flex-direction: column;
}
main {
    flex: 1 0 auto;
}
