@font-face {
    font-display: swap;
    font-family: 'Syne';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/syne/syne-v24-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Syne';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/syne/syne-v24-latin-500.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Syne';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/syne/syne-v24-latin-600.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Syne';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/syne/syne-v24-latin-800.woff2') format('woff2');
}

:root {
    /* Farben */
    --green: #5F6860;
    --purple: #B09EA4;
    --yellow: #E4FC52;
    --white: #FAFAFA;
    --black: #000000;

    /* Typografie */
    --font-syne: 'Syne', sans-serif;

    /*mediaqueries*/
    --phoneLandescapeViewport: 480px;
    --tabletViewport: 768px;
    --tabletLandscapeViewport: 1024px;
    --dektopViewport: 1260px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background-color: rgba(0, 0, 0, 0.1);
    color: yellow;
    text-decoration: line-through;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    font-family: var(--font-syne);
    line-height: 1.4;
    color: var(--green);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--purple);
}

body::before {
    content: '';
    background-image: url('../img/background-beim-franz.png');
    background-size: 100%;
    background-repeat: repeat;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.36;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 1;
}

img, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

strong {
    font-weight: 800;
}

.boxed {
    position: relative;
    max-width: 1508px;
    padding: 0 50px;
    margin: 0 auto;
}

header .boxed {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 50px;
    padding-bottom: 100px;
    @media screen and (min-width: 1260px) {
        padding-top: 80px;
        padding-bottom: 130px;
    }
}

header .boxed .logo a img {
    position: relative;
    z-index: 10;
    width: 170px;
    @media screen and (min-width: 1260px) {
        width: 230px;
    }
}
header .boxed .side-text img {
    position: relative;
    z-index: 10;
    height: 51px;
    @media screen and (min-width: 1260px) {
        height: 70px;
    }
}

/*main*/
/*header block*/
.header-block {
    position: relative;
}
.header-block .headline-one {
    font-size: clamp(24px, calc((100vw - 100px) * 0.158), 100px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: .84;
    max-width: 300px;
    @media screen and (min-width: 768px) {
        font-size: 100px;
        max-width: none;
    }
    @media screen and (min-width: 1260px) {
        font-size: 190px;
        margin-left: -12px;
    }
}
.header-block .smiley-img {
    display: flex;
    position: absolute;
    bottom: -50px;
    right: 65px;
    z-index: 10;
    @media screen and (min-width: 768px) {
        right: 50px;
        bottom: -175px;
    }
    @media screen and (min-width: 1260px) {
        right: 240px;
        bottom: -100px;
    }
}
.header-block .smiley-img img{
    max-width: 100px;
    @media screen and (min-width: 768px) {
        max-width: 280px;
    }
}

/*text-block*/
.text-block {
    margin: 130px 0 200px 0;
}
.headline-two {
    font-size: 28px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0 0 30px 0;
    @media screen and (min-width: 1260px) {
        font-size: 72px;
    }
}
.text-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    @media screen and (min-width: 1260px) {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: unset;
    }
}
.text-container .text {
    max-width: 700px;
    font-size: 20px;
    color: var(--black);
    font-weight: 600;
    @media screen and (min-width: 1260px) {
        font-size: 28px;
    }
}
.social-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    @media screen and (min-width: 1260px) {
        align-items: center;
        flex-direction: row;
    }
}
.social-container p {
    color: var(--black);
    font-size: 20px;
    @media screen and (min-width: 1260px) {
        font-size: 22px;
    }
}
.social-container .social-icons {
    position: relative;
}
.social-container .social-icons ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 15px;
}
.social-container .social-icons a svg  {
    transition: all .3s ease-in-out;
}
.social-container .social-icons a:hover svg {
    fill: var(--yellow);
}

/*spinning-link*/
/* total: 11s — 0.5s drehen, 5s halten, 0.5s zurück, 5s halten */
@keyframes autospin-a {
    0%    { transform: rotate(0deg);   animation-timing-function: ease-in-out; }
    5%    { transform: rotate(180deg); }
    50%   { transform: rotate(180deg); animation-timing-function: ease-in-out; }
    55%   { transform: rotate(0deg); }
    100%  { transform: rotate(0deg); }
}

@keyframes autospin-first {
    0%    { opacity: 1; animation-timing-function: ease-in-out; }
    5%    { opacity: 0; }
    50%   { opacity: 0; animation-timing-function: ease-in-out; }
    55%   { opacity: 1; }
    100%  { opacity: 1; }
}

@keyframes autospin-last {
    0%    { opacity: 0; animation-timing-function: ease-in-out; }
    5%    { opacity: 1; }
    50%   { opacity: 1; animation-timing-function: ease-in-out; }
    55%   { opacity: 0; }
    100%  { opacity: 0; }
}

@keyframes autoscale-last {
    0%    { transform: scale(1);    animation-timing-function: ease-in-out; }
    5%    { transform: scale(1.05); }
    50%   { transform: scale(1.05); animation-timing-function: ease-in-out; }
    55%   { transform: scale(1); }
    100%  { transform: scale(1); }
}

.spinning-link {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinning-link a {
    position: absolute;
    left: 35%;
    bottom: -40px;
    width: 220px;
    height: 220px;
    will-change: transform;
    transition: transform 0.25s ease-out;
    @media screen and (min-width: 1260px) {
        bottom: unset;
    }
}

.spinning-link a:hover {
    transform: rotate(180deg);
}

.spinning-link .first-circle,
.spinning-link .last-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 24px;
    transition: opacity 0.1s ease-out 0.1s;
    font-weight: 400;
    color: var(--black);
    font-size: 22px;
    max-width: 220px;
    @media screen and (min-width: 1260px) {
        font-size: 24px;
    }
}
.spinning-link .first-circle strong,
.spinning-link .last-circle strong {
    font-size: 20px;
    @media screen and (min-width: 1260px) {
        font-size: 22px;
    }
}

.spinning-link .first-circle::after,
.spinning-link .last-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.25s ease-in-out;
}

.spinning-link .first-circle {
    opacity: 1;
}

.spinning-link .first-circle::after {
    background: var(--white);
}

.spinning-link .last-circle {
    opacity: 0;
    transform: rotate(180deg);
}

.spinning-link .last-circle::after {
    background: var(--yellow);
}

.spinning-link a:hover .first-circle {
    opacity: 0;
}

.spinning-link a:hover .first-circle::after {
    transform: scale(1); /* 220px */
}

.spinning-link a:hover .last-circle {
    opacity: 1;
}

.spinning-link a:hover .last-circle::after {
    transform: scale(1.05); /* 230px */
}

/* Mobile: kein Hover → simulierter Hover-Loop */
@media (hover: none) {
    .spinning-link a {
        animation: autospin-a 11s linear infinite;
    }
    .spinning-link .first-circle {
        animation: autospin-first 11s linear infinite;
        transition: none;
    }
    .spinning-link .last-circle {
        animation: autospin-last 11s linear infinite;
        transition: none;
    }
    .spinning-link .last-circle::after {
        animation: autoscale-last 11s linear infinite;
    }
}

/*footer*/
footer {
    background: var(--green);
    padding: 65px 0;
    color: var(--purple);
    @media screen and (min-width: 1260px) {
        padding: 65px 0 100px 0;
    }
}
footer .text {
    font-weight: 800;
    text-transform: uppercase;
}
footer .legal-links {
    position: relative;
    display: flex;
    gap: 25px;
    margin: 20px 0 0 0;
    @media screen and (min-width: 768px) {
        gap: 30px;
    }
}
footer .legal-links a {
    position: relative;
    font-weight: 500;
    transition: all .1s ease-in-out;
}
footer .legal-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    opacity: 0;
    background: currentColor;
}
footer .legal-links a:hover {
    color: var(--yellow);
}
footer .legal-links a:hover::after {
    opacity: 1;
}
.back-to-top {
    position: fixed;
    z-index: 9999;
    bottom: 30px;
    right: 30px;
    color: var(--purple);
    line-height: 0;
    transition: transform .2s ease-in-out, color .2s ease-in-out;
}
.back-to-top:hover {
    transform: scale(1.2);
    color: var(--yellow);
}

/*legal pages*/
.legal-content {
    padding: 60px 0 120px;
    color: var(--black);
    position: relative;
}
.legal-content .headline-one {
    color: var(--green);
    hyphens: auto;
    margin: 0 0 150px 0;
}
.legal-content h2 {
    font-size: 24px;
    max-width: 1000px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 60px 0 16px;
    hyphens: auto;
    @media screen and (min-width: 1260px) {
        font-size: 48px;
        hyphens: none;
    }
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content h3,
.legal-content .headline-three {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 20px;
    margin: 30px 0 8px;
    hyphens: auto;
}
.legal-content p,
.legal-content li {
    font-size: 20px;
    line-height: 1.7;
    max-width: 760px;
    font-weight: 400;
}
.legal-content p {
    margin: 0 0 12px;
}
.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 12px;
}
.legal-content a {
    color: var(--yellow);
    position: relative;
}
.legal-content a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    opacity: 0;
    background: currentColor;
    transition: all .3s ease-in-out;
}
.legal-content a:hover::after {
    opacity: 1;
}