
@import url("variables.css");

html, body {
  margin: 0;
  padding: 0;
  height: auto;
  overflow-x: hidden;
}

html {
  background-image: var(--bg-overlay), var(--bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body {
  min-height: 100vh;
  background-color: transparent;
  position: relative;
}

/* ======= Layout ======= */
.main {
    position: relative;
    overflow: visible;
    z-index: 1;
    background-color: transparent;
    margin-bottom: 0;
    
}

.container {
    max-width: 968px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid{
    display: grid;
}

/* ======= TYPOGRAPHY ======= */

/* Allgemeine Titel-Einstellungen. */
h1, h2, h3, h4 {
    font-family: var(--luxury-font);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: var(--mb-1-5);
}

h1 {
    font-size: var(--biggest-font-size);
    padding-top: 2rem;
}

/* Mobile-Fix für h1: Padding und Umbruch langer Wörter. */
@media screen and (max-width: 768px) {
    h1 {
        padding-top: 8rem;
        word-break: break-word;
        hyphens: auto;
    }
}

h2 {
    font-size: var(--bigger-font-size);
    text-align: center;
    position: relative;
}

/* Unterstrich für h2 Sektionstitel. */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--text-gradient);
    margin: 0.5rem auto 0;
}

h3 {
    font-size: var(--h2-font-size);
    letter-spacing: 1px;
}

/* Standard Fließtext. */
p {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    line-height: var(--text-line-height);
    color: var(--text-color);
    margin-bottom: var(--mb-1);
}

/* Kursiver Akzent-Text. */
.text-accent {
    font-family: var(--luxury-font);
    font-style: italic;
    color: var(--first-color);
}

/* Hilfsklasse für zentrierten Text. */
.text-center {
    text-align: center;
}

.welcome-section {
    padding: 8rem 2rem;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: translateZ(0); 
}

.welcome-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media screen and (max-width: 968px) {
    .welcome-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .welcome-container.row-reverse .welcome-text {
        order: -1;
    }
}

/* 3D-Video-Box. */
.welcome-video-wrapper {
    perspective: 1000px;
    position: relative;
    width: 100%;
}

/* Galerie-Slideshow. */
.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--black-pure);
}
.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

.video-3d-card {
    width: 100%;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(var(--shadow-rgb),0.5);
    border: 1px solid rgba(var(--white-rgb),0.1);

    /* 3D-Transformation. */
    -webkit-transform: rotateY(-12deg) rotateX(4deg);
    transform: rotateY(-12deg) rotateX(4deg);
    transition: transform 0.6s ease;
}

.video-3d-card:hover {
    -webkit-transform: rotateY(0deg) rotateX(0deg) scale(1.05);
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

.video-3d-card video {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Text-Styling. */
.welcome-text {
    color: var(--white-color);
}

.section-title {
    font-family: var(--luxury-font);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--first-color);
}

.description {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Animationen. */
@keyframes floatAnimation {
    0%, 100% { transform: rotateY(-12deg) rotateX(4deg) translateY(0); }
    50% { transform: rotateY(-8deg) rotateX(2deg) translateY(-14px); }
}

/* ======== NEW 3-COLUMN SPLIT SECTION ======== */
.welcome-split-section {
    padding: 6rem 2rem;
    background-color: transparent;
    position: relative;
    z-index: 10;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden; /* Fallback für Safari <16. */
    overflow-x: clip;
}

.split-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.split-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    padding: 0;
}

.split-text {
    text-align: center;
    max-width: 300px;
}

.split-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--first-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--luxury-font);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.4);
}

.split-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.6);
    background: var(--first-color-alt);
}

/* Mobile-Anpassung: 3-Split zu 1-Split. */
@media screen and (max-width: 968px) {
    .split-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .split-column {
        align-items: center;
    }

    .split-text {
        order: -1;
        margin-bottom: 2rem;
    }

    .video-3d-card {
        transform: rotateY(0) rotateX(0);
        animation: none;
    }

    .split-video,
    .split-gallery {
        padding: 0 1.5rem;
    }
}



/* ======= KONTAKTFORMULAR ======= */
.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 540px;
    text-align: left;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 12px;
    background: rgba(var(--white-rgb), 0.85);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--neutral-dark);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.contact-form .form-status {
    font-size: 0.9rem;
    min-height: 1.2rem;
}

.contact-form .form-status.success { color: #1f7a3a; }
.contact-form .form-status.error   { color: #b3261e; }

@media screen and (max-width: 600px) {
    .contact-form .form-row { grid-template-columns: 1fr; }
}

/* ======= INFO & BANK LAYOUT ======= */

.section-title-center {
    text-align: center;
    width: 100%;
    margin-bottom: 3rem;
}

/* Ermäßigungen-Grid. */
.info-items-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.info-item i {
    font-size: 2rem;
    color: var(--first-color);
    margin-bottom: 1rem;
}


/* ======= TRENNLINIE ======= */
.section-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(var(--shadow-rgb), 0.1), transparent);
    margin: 2rem auto;
    position: relative;
}

.section-divider::after {
    content: "◆";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--first-color);
    font-size: 0.8rem;
    text-shadow: 0 0 10px rgba(var(--white-rgb),0.8), 0 0 10px rgba(var(--white-rgb),0.8);
}

@media screen and (max-width: 900px) {
    .section-divider {
        width: 80%;
    }
}