/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##          ##  ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##

/**** SITE SETTINGS ****/
html {
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    shape-rendering: optimizeSpeed;
    image-rendering: auto;
}

body * {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

svg {
    shape-rendering: auto;
}

/* ACCESSIBILITY SETTINGS */
.skip-link {
    position: absolute;
    top: -5rem;
    left: 1rem;
    z-index: 9999;
}

.skip-link:focus {
    top: 1rem;
}

/* DEFAULT VALUES */
.content {
    padding: clamp(3rem, 7vw, 7rem) clamp(1.5rem, 5vw, 6rem);
    margin: auto;
}

.inner {
    max-width: 1920px;
    margin: auto;
}

.flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
}

.grid {
    display: grid;
    justify-content: space-between;
}

img {
    width: 100%;
}

a {
    text-decoration: none;
}

/* BUTTON & SELECTION */
.button,
input[type=submit],
button {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 1rem;
    height: fit-content;
    width: fit-content;
    cursor: pointer;
    border: none;
    transition: filter .2s ease-in-out;
}

.button:hover,
input[type=submit]:hover,
button:hover {
    filter: brightness(1.25);
}

/* LIST & LIST ITEMS */
li,
ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0rem;
}

ul {
    flex-direction: column;
    align-items: baseline;
    padding: 0;
}

/**** SECTION 1: HEADER ****/
header {
    box-sizing: border-box;
    z-index: 2;
    position: fixed;
    top: 0;
    width: 100%;
}

#hero img {

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;

}


.bottommenu,
.topmenu {
    box-sizing: border-box;
    padding: 0 calc(1rem + 2vw);
    width: 100%;
}

.bottommenu .inner,
.topmenu .inner {
    max-width: 1100px;
    margin: 23px auto;
    padding: 7px 12px;
    border-radius: 50px;
    background-color: rgba(247, 247, 247, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    gap: 24px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* LOGO */
.logo {
    width: 11.5rem;
    flex: 0 0 11.5rem;
    height: auto;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* NAVIGATION */
nav {
    display: flex;
    gap: 1rem;
}

nav ul {
    display: flex;
    flex-direction: row;
    margin: 0;
    gap: 20px;
}

nav li {
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.topmenu nav li {
    height: 35px;
}

.dropdown li {
    height: fit-content;
}

nav li a {
    padding: 5px;
}

.bottommenu nav.visible {
    visibility: visible;
}

/* DROPDOWN MENU */
.dropdown {
    visibility: hidden;
    position: absolute;
    top: 100%;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

/* Invisible bridge to prevent hover loss between nav item and dropdown */
.dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown.vertical {
    display: flex;
    flex-direction: column;
}

.dropdown.horizontal {
    display: flex;
    flex-direction: row;
}

.menuitem.horizontal:hover>.dropdown.horizontal,
.menuitem.vertical:hover>.dropdown.vertical {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease, visibility 0s linear;
}

/* BURGERMENU */
#burgermenu {
    display: none;
    cursor: pointer;
    width: 2rem;
    padding: 0;
    border-radius: 0;
}

#burgermenu .burger {
    position: relative;
    height: 1.5rem;
}

#burgermenu .burger .line {
    width: 2rem;
    height: 2px;
    position: absolute;
    transition: all 200ms;
}

#burgermenu .burger .line:nth-child(1) {
    top: 0;
}

#burgermenu .burger .line:nth-child(2) {
    top: calc(50% - 1px);
}

#burgermenu .burger .line:nth-child(3) {
    top: calc(100% - 2px);
}

#burgermenu[data-open="true"] .burger .line:nth-child(1) {
    top: calc(50% - 1px);
    transform: rotate(45deg);
}

#burgermenu[data-open="true"] .burger .line:nth-child(2) {
    opacity: 0;
}

#burgermenu[data-open="true"] .burger .line:nth-child(3) {
    top: calc(50% - 1px);
    transform: rotate(-45deg);
}

#burgermenu .burger .line {
    transition: top 0.2s 0.2s, transform 0.2s, opacity 0.2s;
}

#burgermenu[data-open="true"] .burger .line {
    transition: top 0.2s, transform 0.2s 0.2s, opacity 0.2s 0.15s;
}

#burgermenu[data-open="true"] .burger .line:nth-child(2) {
    opacity: 0;
}

/**** SECTION 2: MAIN ****/

/* HERO */
#hero .inner {
    min-height: max(500px, calc(100vh - 142px));

    overflow: hidden;
    position: relative;
    display: flex;
    background-color: #161514;
    flex-direction: column;
    justify-content: center;
}

#hero .content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    padding: 150px clamp(24px, 4vw, 64px) 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#hero h1 {
    margin: 0rem 0;
    width: 100%;
}

.right h2 {
    font-size: calc(1rem + 1vw);
    margin-bottom: 1rem;
}

.teaser,
#about .inner {
    align-items: center;

    margin: 0 auto;
}

#about .button {
    white-space: nowrap;
    margin-top: 1rem;
}

/* SLIDER */
.slider-container {
    width: 100%;
    margin: auto;
    overflow: hidden;
    position: relative;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    height: 90vh;
    display: flex;
    justify-content: center;
}

.slide img {
    object-fit: cover;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    z-index: 1;
    top: 40%;
    width: 5rem;
    height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    user-select: none;
    transition: 0.6s ease;
}

.next {
    right: 0;
}

.left,
.right {
    width: 100%;
    min-width: 0;
}

/* TEASERBOX */
#teaserbox .grid {
    gap: 1.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1200px;
    /* Hier kannst du die Breite anpassen! (z.B. 1000px oder 1400px) */
    margin: 0 auto;
}

.teaser-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
}

.teaser-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.teaser-card:hover img {
    transform: scale(1.05);
}

.teaser-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.001) 25%, #111317 100%);
    height: 100%;
    /* Changed to 100% to let the gradient 25% stop work properly over the full image */
    pointer-events: none;
}

.teaser-card-title {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    overflow-wrap: anywhere;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    z-index: 2;
    margin: 0;
}

.box {
    grid-row: 1;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    gap: 1rem;
}













.all a:hover i {
    transform: rotate(-35deg);
}

/* CALL TO ACTION */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0 0 0;
}

.form h3 {
    font-size: calc(1rem + 1vw);
    margin: 0;
}

.form h4 {
    font-size: calc(1rem + .5rem);
    margin: 0;
}

.info {
    justify-content: space-between;
    gap: .5rem;
}

.info input {
    width: 100%;
    padding: .5rem 1rem;
    border: none;
    font-size: 1rem;
}

textarea {
    padding: .5rem 1rem;
    font-size: 1rem;
    border: none;
    resize: none;
}

#recaptcha {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.alert {
    display: none;
    padding: 10px 0;
}

.alert i {
    padding-right: 5px;
}

.option {
    gap: 1rem;
    padding: 1rem 0;
    align-items: center;
}

.option .number,
.option .address {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 18px;
    gap: 1rem;
}

.buttons {
    gap: 1rem;
}

/* TEASER */
.teaser {
    gap: 2rem;
    padding: 2rem;
    margin: 5rem 0;
}

.teaser div:nth-of-type(1) {
    grid-column: 1;
}

.teaser div:nth-of-type(2) {
    grid-column: 2;
}

.teaser div:nth-of-type(3) {
    grid-column: 3;
}

.teaser i {
    font-size: 2rem;
    height: 5rem;
    width: 5rem;
    border-radius: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.teaser h3 {
    font-size: calc(1rem + .5vw);
    margin: .5rem 0;
}

.teaser p {
    margin: 0;
}

li i {
    font-size: 5px;
}

a i {
    font-size: 2rem;
}

#linkblock {
    min-width: 30%;
    flex-direction: column;
    gap: 0;
}

#linkblock li::before {
    content: "•";
}

#selection {
    display: flex;
    align-items: center;
    width: fit-content;
    cursor: pointer;
    gap: 1rem;
    padding: 0;
    border-radius: 0;
}

#selection span {
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 2rem;
}

#selection label {
    cursor: pointer;
}

#linkblock #more-links[hidden] {
    display: none;
}

#selection {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#linkblock .selection-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
    transform-origin: center center;
}

#selection .fa-chevron-right {
    display: block;
    line-height: 1;
}

/**** SECTION 3: FOOTER ****/

/* TOPFOOTER */
#topfooter {
    /* Override .content default padding so it sits at the absolute bottom */
    padding-bottom: 4rem !important;
    padding-top: 2rem !important;

    /* Ensure EVERY text in the footer inherits Manrope */
    font-family: 'Manrope', sans-serif;
}

#topfooter .inner {
    max-width: 1200px;
    /* Reduced from 1400px to fix "zu stretched" */
    margin: 0 auto;
    padding-top: 0rem;
    padding-bottom: 0rem;
}


#topfooter .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0rem;

}

#topfooter .box:nth-child(1) {
    padding-right: 0;
    margin-left: -65px;
}

#topfooter nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    list-style-type: none;
    padding-left: 0;
}

#topfooter nav li {
    height: fit-content;
    margin-bottom: 6px;
    /* slightly tighter */
}

#topfooter nav a {
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
}



#topfooter p {
    margin: 0;
    line-height: 1.5;
}

/* BOTTOMFOOTER */
#bottomfooter {
    text-align: center;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

/* COOKIE POPUP */
#popup {
    position: fixed;
    top: 50%;
    right: 50%;
    z-index: 4;
    transform: translate(50%, -50%);
    padding: 2rem;
    max-width: 50rem;
    width: 100%;
}

#popup h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 .5rem;
    font-size: 1.5rem;
}

#popup .select {
    justify-content: flex-end;
}

.select {
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

/* BUTTON YELLOW STRUKTUR */
.btn-yellow {
    border-radius: 50px;
    padding: 6px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

/* HERO BUTTONS STRUKTUR */
.buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-white {
    border-radius: 50px;
    padding: 6px 15px;
    font-size: 0.9rem;
    font-weight: 0;
    text-decoration: none;
}

.button i {
    font-size: 1em;
    margin-right: 5px;
}


/* HERO BUTTONS STRUKTUR */
.buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-white {
    border-radius: 50px;
    padding: 6px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

/* STATS SECTION STRUKTUR */
#stats {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#stats .inner {
    display: flex;
    justify-content: center;
    gap: 12rem;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

#stats .stat {
    min-width: 150px;
    margin: 1rem 0;

}

#stats h3 {
    font-size: 1.5rem;
    margin-bottom: -0.3rem;
}

#stats p {
    font-size: 0.9rem;
    margin: 0;

}

#footer_fantasylogo {
    max-width: 210px;
    width: 100%;
    height: auto;

}

#contact-img {
    border-radius: 12px;
    width: 100%;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-top: 120px;
}

/* FOOTER EXACT FONTS FROM SCREENSHOTS */
#topfooter h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
}

#topfooter p,
#topfooter a,
#topfooter li {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
}

#topfooter .box:nth-child(1) p:first-of-type {
    font-size: 19.2px;
    max-width: 400px;
    margin-top: 25px;
}

/* COPYRIGHT TEXT FORMATTING */
#topfooter .box:nth-child(1) p:last-child {
    white-space: nowrap;
}

#topfooter .box:nth-child(1) p:last-child a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* DROPDOWN CHEVRON ICON */
.menuitem .fa-chevron-down {
    font-size: 0.7em;
    margin-left: 4px;
}

#about .inner.flex {
    gap: clamp(2rem, 4vw, 4rem);
}

#about .left,
#about .right {
    flex: 1;
}

#about .left img,
#teaserbox img {
    border-radius: 12px;
    width: 100%;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#about .section-subtitle {
    font-family: 'Michroma', sans-serif;
    font-size: 20.8px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

#about .right h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

#about .right p {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0 0 24px 0;
}

#about .right p.mb-2 {
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin: 0;
}

#teaserbox .grid {
    gap: 1.5rem;
}



#topfooter .box:nth-child(1) p:first-of-type {
    margin-bottom: 2rem;
}

#topfooter .box:nth-child(1) p:last-child {
    margin-top: 3rem;
}

#bottomfooter {
    display: none;
}

#linkblock ul li {
    gap: 5px;

}

/* HERO BUTTONS SIZE EXCEPTION */
#hero .btn-yellow,
#hero .btn-white {
    padding: 8px 28px;
    font-size: 16px;

}

.menuitem {
    position: relative;
}

/**** FONTS ****/
@font-face {
    font-family: 'Michroma';
    src: url('../font/dm-sans/Michroma-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Manrope';
    src: url('../font/dm-sans/Manrope-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'Manrope', sans-serif;
    line-height: 1.5;
}

h1,
h2 {
    font-family: 'Michroma', sans-serif;
}

ul li {
    line-height: 1.5;
    margin-bottom: 5px;
}

/* STRUCTURAL PROPERTIES MOVED FROM VISUAL.CSS */
#decline,
input:focus,
textarea:focus {
    outline: 1px solid;
}

.button:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
a:focus-visible {
    outline: .2rem solid;
}

#popup {
    -webkit-backdrop-filter: blur(3rem);
    backdrop-filter: blur(3rem);
}

.menuitem a:hover {
    text-decoration: none;
}

#popup a,
#bottomfooter a {
    text-decoration: underline;
}

nav,
#more,
.all i,
.menuitem a,
.bottommenu nav,
#selection span {
    transition: all linear 100ms;
}

#burgermenu {
    transition: all linear 200ms;
}



.subtitle {
    font-weight: 200;
    font-size: 20.8px;
}

#hero p {
    margin-bottom: 0.5rem;

}

.nav-list .menuitem a,
.nav-list .menuitem i {
    font-size: 15px;
}

#teaserbox,
#topfooter {
    opacity: 1;
}

.section-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 20.8px;
    margin-bottom: 10px;
}

.about-feature i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.teaser {
    border: 1px solid;
    border-radius: 16px;
}

.dropdown {
    border-radius: 0;
    align-items: start;
    padding: 15px 25px;
    min-width: 220px;
    left: -20px;
    gap: 0;
}

.dropdown .menuitem {
    width: 100%;
}

.dropdown .menuitem a {
    padding: 4px 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    display: block;
    width: 100%;
    text-align: left;
    transition: color 150ms ease;
}



.button,
button {
    white-space: nowrap;
}

/* TEASERBOX FONT OVERRIDE */
#teaserbox .section-subtitle {
    font-family: 'Michroma', sans-serif !important;
    color: #FFFF00 !important;
}

#teaserbox h2 {
    font-family: 'Manrope', sans-serif !important;
}
/* Header: keep logo, menu labels and action in separate flex items. */
.bottommenu nav,
.bottommenu .button {
    flex-shrink: 0;
}

.nav-list > .menuitem > a {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.menuitem:focus-within > .dropdown {
    visibility: visible;
    opacity: 1;
}