@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    width: 100%; height: 100%;
    overflow: hidden;
    background: #0a1628;
    font-family: 'Montserrat', sans-serif;
}

/* ===== HINTERGRUND als Body-Background ===== */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('background.png') center center / cover no-repeat;
    z-index: 0;
}

/* ===== OVERLAY ===== */
.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(10,22,40,0.05) 0%, rgba(10,22,40,0.6) 100%);
    pointer-events: none;
}

/* ===== LASER ===== */
#laserCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* ===== HAUPT-CONTAINER (Logo + Text + Button zentriert) ===== */
.main-content {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    gap: clamp(6px, 1.5vh, 14px);
    padding: 5vh 0;
}

/* Landscape: Button immer sichtbar (5% Abstand oben/unten) */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content {
        justify-content: flex-end;
        padding-bottom: 5vh;
        padding-top: 0;
        gap: 4px;
    }
}

/* ===== LOGO ===== */
.logo-wrapper img {
    width: 77vw;
    max-width: 77vw;
    object-fit: contain;
    opacity: 0;
    transform: translateY(-60px) scale(0.9);
    animation: logoDropIn 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.4s;
    filter: drop-shadow(0 6px 40px rgba(0, 0, 0, 0.8));
    pointer-events: none;
}
@keyframes logoDropIn {
    0%   { opacity: 0; transform: translateY(-60px) scale(0.9); }
    60%  { opacity: 1; transform: translateY(5px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== TEXT ===== */
.welcome-text {
    text-align: center;
    width: 90%;
    max-width: 700px;
    pointer-events: none;
}
.welcome-text .line {
    color: #ffffff;
    font-weight: 300;
    line-height: 1.5;
    text-shadow: 0 3px 30px rgba(0,0,0,0.85), 0 0 60px rgba(0,0,0,0.4);
}
.welcome-text .line-1 {
    font-size: clamp(0.8rem, 2.8vw, 1.6rem);
    opacity: 0;
    transform: translateX(-60px);
    animation: slideInLeft 1s ease-out forwards;
    animation-delay: 1.2s;
}
.welcome-text .line-2 {
    font-size: clamp(0.8rem, 2.8vw, 1.6rem);
    opacity: 0;
    transform: translateX(60px);
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 1.2s;
}
.welcome-text .line-2 strong {
    color: #ff6d00;
    font-weight: 800;
}
@keyframes slideInLeft {
    0%   { opacity: 0; transform: translateX(-60px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    0%   { opacity: 0; transform: translateX(60px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ===== BUTTON ===== */
.button-area {
    text-align: center;
    z-index: 20;
    position: relative;
    pointer-events: none;
}

.cutout-piece {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
    background: rgba(10,22,40,0.85);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,60,60,0.6);
    box-shadow: 0 0 25px rgba(255,60,60,0.3);
    opacity: 0;
    pointer-events: none;
}
.cutout-piece.shooting {
    animation: pieceShoot 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes pieceShoot {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(120vh) rotate(25deg) scale(0.2); }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 44px;
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #ff6d00, #ff9100, #ff6d00);
    background-size: 200% 200%;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px) scale(0.6);
    box-shadow: 0 10px 40px rgba(255,109,0,0.5), 0 0 80px rgba(255,109,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.5px;
    pointer-events: auto;
}
.cta-button.shoot-in {
    animation: buttonShootIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               pulseGlow 2.5s ease-in-out 0.9s infinite,
               gradientShift 3s ease infinite;
}
.cta-button .arrow { font-size: 1.3em; transition: transform 0.3s ease; }
.cta-button:hover .arrow { transform: translateX(5px); }
.cta-button:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 50px rgba(255,109,0,0.7), 0 0 100px rgba(255,109,0,0.3);
}
.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.7s ease;
}
.cta-button:hover::before { left: 100%; }

@keyframes buttonShootIn {
    0%   { opacity: 0; transform: translateY(60px) scale(0.6); }
    50%  { opacity: 1; transform: translateY(-8px) scale(1.06); }
    75%  { transform: translateY(3px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 10px 40px rgba(255,109,0,0.5), 0 0 80px rgba(255,109,0,0.2), 0 0 0 0 rgba(255,109,0,0.4); }
    50%      { box-shadow: 0 10px 40px rgba(255,109,0,0.7), 0 0 100px rgba(255,109,0,0.35), 0 0 0 18px rgba(255,109,0,0); }
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ===== LOADING ===== */
.loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0a1628;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOutLoading 0.5s ease-out forwards;
    animation-delay: 0.1s;
}
@keyframes fadeOutLoading { to { opacity: 0; pointer-events: none; } }
.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,60,60,0.15);
    border-top-color: #ff3c3c;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== KONTAKT OVERLAY ===== */
.kontakt-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.kontakt-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.kontakt-overlay-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.kontakt-panel {
    position: relative;
    z-index: 5001;
    width: 94%;
    max-width: 960px;
    height: auto;
    max-height: 88vh;
    background: linear-gradient(160deg, #0d1f3c 0%, #0a1628 60%, #0d2a4a 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 188, 212, 0.18);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 188, 212, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.88) translateY(30px);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    pointer-events: none;
}
.kontakt-overlay.active .kontakt-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Schließen */
.panel-close {
    position: absolute;
    top: 12px; right: 16px;
    z-index: 5010;
    width: 34px; height: 34px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    background: rgba(10,22,40,0.9);
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}
.panel-close:hover {
    border-color: #ff6d00;
    color: #ff6d00;
    background: rgba(255,109,0,0.1);
}

/* Tabs */
.panel-tabs {
    display: flex;
    padding: 16px 16px 0;
    gap: 4px;
    flex-shrink: 0;
}
.panel-tab {
    padding: 10px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.panel-tab.active {
    color: #fff;
    background: rgba(0, 188, 212, 0.1);
    border-color: rgba(0, 188, 212, 0.25);
}
.panel-tab:hover:not(.active) {
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.05);
}

/* Tab Content */
.panel-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin: 0 12px 12px;
    border-radius: 0 12px 12px 12px;
    border: 1px solid rgba(0,188,212,0.12);
    background: rgba(13,31,60,0.4);
}
.tab-page {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.tab-page.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

/* ===== KONTAKTFORMULAR ===== */
.form-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
}
.form-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.form-group {
    margin-bottom: 10px;
}
.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group label .req { color: #ff6d00; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 13px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00bcd4;
    background: rgba(0,188,212,0.05);
    box-shadow: 0 0 0 3px rgba(0,188,212,0.08);
}
.form-group textarea { min-height: 70px; max-height: 100px; resize: vertical; }
.form-group select option { background: #0d1f3c; color: #fff; }

.form-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff6d00, #ff9100);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255,109,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}
.form-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(255,109,0,0.35);
}
.form-note {
    text-align: center;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    margin-top: 8px;
}

/* ===== ANFAHRT ===== */
.anfahrt-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}
.anfahrt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    height: calc(100% - 40px);
}
.anfahrt-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,188,212,0.12);
    min-height: 200px;
}
.anfahrt-map iframe {
    width: 100%; height: 100%;
    border: 0;
    display: block;
}
.anfahrt-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px;
}
.info-card h4 {
    font-size: 0.72rem;
    font-weight: 700;
    color: #00bcd4;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
}
.info-item:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.info-icon {
    width: 32px; height: 32px; min-width: 32px;
    background: rgba(0,188,212,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.info-item a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.3s;
}
.info-item a:hover { color: #ff9100; }

.opening-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    list-style: none;
}
.opening-list li:last-child { border: none; }
.opening-list li.closed span:last-child { color: #ff6d00; font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .logo-wrapper img { width: 96vw; }
    .welcome-text { width: 92%; }
    .welcome-text .line-1,
    .welcome-text .line-2 { font-size: clamp(0.75rem, 3.5vw, 1rem); }
    .panel-tabs { padding: 12px 8px 0; }
    .panel-tab { padding: 8px 14px; font-size: 0.75rem; }
    .tab-page { padding: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .anfahrt-grid { grid-template-columns: 1fr; height: auto; }
    .anfahrt-map { height: 220px; }
    .panel-close { top: 10px; right: 12px; width: 30px; height: 30px; font-size: 0.9rem; }
    .kontakt-panel { width: 96%; max-height: 92vh; }
}
@media (max-width: 480px) {
    .cta-button { padding: 12px 30px; font-size: 0.8rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
    .logo-wrapper img { width: 70vw; max-height: 10vh; }
    .welcome-text .line-1,
    .welcome-text .line-2 { font-size: clamp(0.6rem, 1.8vw, 0.8rem); }
    .cta-button { padding: 8px 22px; font-size: 0.7rem; }
    .panel-tabs { padding: 8px 8px 0; }
    .tab-page { padding: 12px; }
    .anfahrt-map { height: 180px; }
    .kontakt-panel { max-height: 94vh; }
}
