/* Custom CSS für Ninja Food Night */

:root {
    --primary-color: #ff6b35;
    --secondary-color: #2c3e50;
    --dark-bg: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--dark-bg);
    color: #ffffff;
    line-height: 1.6;
    font-weight: 400;
}

a {
    color: #fff;
    text-decoration: underline
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    padding: 5px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-outline-secondary {
    color: #000;
    border:none;
    background: #fff;
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.hero-banner {
    position: relative;
    height: 40vh;
    min-height: 400px;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}
.hero-content {
    position: absolute;
    bottom: 15%;
    left: 0;
}
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.hero-sub {
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    
}

/* Grid */
.grid-item {
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease;
}
.grid-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}
.grid-item:hover .grid-img {
    transform: scale(1.05);
}
.grid-caption {
    margin-top: 10px;
    font-size: 1.25rem;
    font-weight: 500;
    text-align: left;
    color: #fff;
}

.floating-bar {
      position: fixed;
      bottom: 20px;
          border: 5px solid #00000000;
      left: 50%;
      transform: translateX(-50%);
      width: 90%;
      max-width: 1200px;
      background: rgba(0, 0, 0, 0.85);
      color: #fff;
      padding: 12px 24px;
      border-radius: 12px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
      overflow: hidden;
      z-index: 9999;
      font-family: sans-serif;
      font-size: 16px;
      -webkit-backdrop-filter: blur(5px);
      border: 15px solid transparent;
    }

    .scrolling-text {
      white-space: nowrap;
      display: inline-block;
      padding-left: 100%;
      animation: scroll-left 20s linear infinite;
    }

    @keyframes scroll-left {
      0% {
        transform: translateX(0);
      }
      100% {
        transform: translateX(-100%);
      }
    }

    .floating-bar.hidden {
  opacity: 0;
  pointer-events: none;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Glass Effects */
.floating-navbar {
    background: transparent;
    border: none;
    padding: 0;
    top: 20px;
    transition: all 0.3s ease;
}

.floating-nav-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: all 0.3s ease;
}

.navbar-expand-lg .navbar-collapse {
    justify-content: flex-end !important;
}

.floating-navbar.scrolled .floating-nav-container {}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* Navigation */
.navbar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 1px;
    color: #ffffff !important;
}

.navbar-nav {
    gap: 20px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 8px 16px !important;
    border-radius: 20px;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(255, 107, 53, 0.1);
}

.navbar-actions {
    gap: 8px;
}

.navbar-actions .btn-outline-primary {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 20px;
    white-space: nowrap;
}

.navbar-actions .btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.navbar-actions .btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

.navbar-toggler {
    padding: 8px;
    font-size: 1rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    height: 800px;
    display: flex;
    align-items: center;
}

.hero-content-wrapper {
    height: 800px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero-content-t {
    z-index: 3;
        margin-top: -160px;
    position: relative;
}

.hero-content h5 {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-content .lead {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.5;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Features Section */
.features-section {
    background: var(--dark-bg);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.02"><circle cx="30" cy="30" r="2"/></g></g></svg>');
    opacity: 0.5;
}

.function-cards {
    position: relative;
    z-index: 2;
}

.function-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.function-card h4 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.function-card p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Why Section */
.why-section {
    background-image: url("/images/pizza.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.benefit-item {
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(10px);
}

.benefit-item i {
    font-size: 1.2em;
}

.benefit-item h5 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.benefit-item p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

.cta-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-card h4 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.cta-card p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
    height: 100%;
    padding: 0 5px;
    flex-shrink: 0;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.gallery-slide img:hover {
    transform: scale(1.02);
}

/* Desktop: Zeige 3 Bilder nebeneinander */
.gallery-slide {
    flex: 0 0 33.333%;
}

/* Mobile: Zeige 1 Bild */
@media (max-width: 768px) {
    .gallery-slide {
        flex: 0 0 100%;
        padding: 0;
    }
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.nav-button.prev {
    left: 15px;
}

.nav-button.next {
    right: 15px;
}

.nav-button svg {
    width: 20px;
    height: 20px;
    fill: #ff6b35;
}

.gallery-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    display: none;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #ff6b35;
    transform: scale(1.2);
}

.no-images {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #666;
    font-size: 18px;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .nav-button {
        width: 40px;
        height: 40px;
    }

    .nav-button.prev {
        left: 10px;
    }

    .nav-button.next {
        right: 10px;
    }

    .nav-button svg {
        width: 16px;
        height: 16px;
    }
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    position: relative;
}

.newsletter-section h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.newsletter-section .lead {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 8px 0 0 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.newsletter-form .btn {
    border-radius: 0 8px 8px 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #111111;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h6 {
    color: #ffffff;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.footer .text-muted {
    color: #888888 !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.footer p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .floating-nav-container {
        flex-direction: column;
        border-radius: 24px;
        padding: 16px 20px;
    }

    .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    
}

    .hero-sub {
    font-size: 1.5rem;
  
    
}


.hero-content-t {
   
    margin-top: -130px;
   
}

    .navbar-brand {
        margin-bottom: 0;
    }

    .navbar-toggler {
        position: absolute;
        right: 20px;
        top: 16px;
    }

    .navbar-collapse {
        margin-top: 16px;
        padding-top: 16px;
        justify-content: flex-end !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);

    }

    .navbar-nav {
        gap: 8px;


    }

    .navbar-nav .nav-link {
        text-align: center;
        padding: 12px 16px !important;
    }

    .navbar-actions {
        justify-content: center;
        gap: 12px;
        flex-direction: column;
    }

    .navbar-actions .btn-outline-primary {
        flex: 1;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .floating-navbar {
        top: 10px;
        padding: 0 10px;
    }

    .gallery-carousel {
        gap: 0;
        padding: 0;
    }

    .floating-nav-container {
        padding: 12px 16px;
    }

    .hero-section {
        height: 600px;
    }

    .hero-content-wrapper {
        height: 600px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
      
    }

    .function-card {
        min-height: 150px;
        margin-bottom: 1rem;
    }

    .cta-card {
        min-height: 180px;
        margin-bottom: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 100% !important;
    }

    .newsletter-form .form-control {
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .newsletter-form .btn {
        border-radius: 8px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .carousel-inner img {
        height: 200px;
    }

    .display-4 {
        font-size: 2rem;
    }

    .carousel-inner img {
        height: 200px;
    }

    .glass-card {
        padding: 1.5rem !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.function-card,
.cta-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll Effects */
.navbar.scrolled {}

/* Utility Classes */
.object-fit-cover {
    object-fit: cover;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2d2d2d 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.nav-link:focus {
    color: var(--primary-color) !important;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.cr-mail-responsive,
.cr-mail-responsive * {
    box-sizing: unset;
}

.cr_site {
    margin: 0;
    padding: 75px 0 0 0;
    text-align: center;
    background-color: #eeeeee;
}

.cr_font {
    font-size: 14px;
    font-family: Arial;
}

.cr_page {
    width: 100% !important;
    max-width: 640px
}

.cr_body {
    box-shadow: 0px 0px 14px 0px rgba(51, 51, 51, 0.4);
    border-radius: 8px;
    line-height: 150%;
    font-family: Helvetica;
    font-size: 12px;
    color: #333333;
}

.cr_body h2,
.cr_header h2 {
    font-size: 22px;
    line-height: 28px;
    margin: 0 0 10px 0;
}

.cr_body h1,
.cr_header h2 {
    font-size: 28px;
    margin-bottom: 15px;
    padding: 0;
    margin-top: 0;
}

.wrapper,
.cr_page {
    margin: 0 auto 10px auto;
    text-align: left;
}

.cr_header {
    text-align: center;
    background: transparent !Important;
}

.cr_header img {
    max-width: 100%;
}

.cr_body label,
.cr_body .label {
    float: none;
    clear: both;
    display: inline-block;
    width: auto;
    margin-top: 8px;
    text-align: left;
    font-weight: bold;
    position: relative;
}

.cr_body .no-label {
    font-weight: normal;
}

.cr_body #editable_content {
    padding: 20px;
}

.editable-content {
    padding: 30px;

}

.cr_button {
    display: inline-block;
    font-family: 'Helvetica', Arial, sans-serif;
    width: auto;
    white-space: nowrap;
    height: 32px;
    margin: 5px 0;
    padding: 0 22px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-style: normal;
    font-size: 15px;
    line-height: 32px;
    cursor: pointer;
    border: 0;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    vertical-align: top;
}

.cr_button {
    background-color: #333;
    color: #ffffff;
}

.cr_button:hover,
.cr_button-small:hover {
    opacity: 0.7;
    filter: alpha(opacity=70);
}

.powered {
    padding: 20px 0;
    width: 560px;
    margin: 0 auto;
}

.cr_ipe_item label {
    line-height: 150%;
    font-size: 14px;
}

.cr_ipe_item textarea {
    background: none repeat scroll 0 0 #ffffff;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-family: Helvetica;
    font-size: 16px;
}

.cr_ipe_item input {
    background: none repeat scroll 0 0 #ffffff;
    border-radius: 3px;
    border: 1px solid #ccc;
    padding: 12px;
    font-family: Helvetica;
    font-size: 16px;
}

.cr_ipe_item select {
    background: none repeat scroll 0 0 #ffffff;
    border-radius: 3px;
    border: 1px solid #ccc;
    padding: 12px !Important;
    display: block;
    margin: 0;
    padding: 5px;
    width: 100%;
    font-family: Helvetica;
    font-size: 16px;
}

.cr_ipe_item input.cr_ipe_radio,
input.cr_ipe_checkbox {
    -moz-binding: none;
    -moz-box-sizing: border-box;
    background-color: -moz-field !important;
    border: 2px inset ThreeDFace !important;
    color: -moz-fieldtext !important;
    cursor: default;
    height: 13px;
    padding: 0 !important;
    width: 13px;
}

.cr_ipe_item input.cr_ipe_radio {
    -moz-appearance: radio;
    border-radius: 100% 100% 100% 100% !important;
    margin: 3px 3px 0 5px;
}

.cr_ipe_item {
    margin: 0px 10px;
    padding: 0px 10px;
}

.submit_container {
    text-align: center
}

.cr_ipe_item.inactive {
    display: none;
}

.imprint {
    font-size: 0.8em;
}

.cr_captcha {
    padding-left: 130px;
}

.cr_error {
    font-size: 1.1em;
    padding: 10px;
}

.clever_form_error {
    background-color: #f99;
    color: #000;
    border: 1px solid #f22 !important
}

.clever_form_note {
    margin: 26px 0 0 3px;
    position: absolute;
    display: inline;
    padding: 2px 4px;
    font-weight: bold;
    background-color: #f2ecb5;
    color: #000;
    font-size: 12px !important;
}

.cr_form-flex {
    display: flex;
}

.cr_form-flex>.cr_form-inputgroup {
    flex-grow: 1;
    margin-right: 5px;
}

.cr_form-flex>.cr_form-inputgroup:last-child {
    margin-right: 0px;
}

.cr_form-flex input {
    width: 100%;
}

.cr_site {
    background-color: #eee;
}

.cr_header {
    color: #000000;
}

.cr_body {
    background-color: #ffffff;
    font-size: 12px;
    color: #000000;
}

.cr_hr {
    background-color: #ccc;
}

.cr_site a {
    color: #0084ff;
}

.imprint {
    color: #000;
}

.cr_site {
    background-color: #000;
}

.cr_header {
    color: #fff;
}

.cr_body {
    background-color: #000000;
    font-size: 12px;
    color: #000000;
}

.cr_hr {
    background-color: #fff;
    color: #fff;
}

.cr_site a {
    color: #0084ff;
}

.imprint {
    color: #fff;
}

.cr_page {
    width: auto;
    max-width: 640px;
}

/* Mobile Navbar Animation */
@media (max-width: 991px) {
  .navbar-collapse:not(.show) {
        max-height: 0 !important;
        overflow: hidden;
        opacity: 0;
        transition: max-height 1.2s ease-out, opacity 1.2s ease-out;
    }
    
    .navbar-collapse.show {
        max-height: 300px !important;
        opacity: 1;
        transition: max-height 1.2s ease-out, opacity 1.2s ease-out;
    }
    
    .navbar-collapse.collapsing {
        max-height: 0 !important;
        overflow: hidden;
        opacity: 0;
        transition: max-height 1.2s ease-out, opacity 1.2s ease-out;
    }
    
    .navbar-collapse {
        transition: none !important;
    }}

/* Overlay */
.login-modal{
  position:fixed;
  inset:0;
  display:flex;       
  align-items:center;
  justify-content:center;
  background:var(--login-overlay);
  background-color:#0000008e;
  z-index:9999;
  padding:18px;


  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease;
}

.login-modal.login-visible{
  opacity:1;
  pointer-events:auto;
}

/* Card */
.login-card{
  background:var(--login-card-bg);
  background-color:#ffffff;
  width:min(700px, 100%);
  border-radius:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.3);
  padding: clamp(24px, 3vw, 40px);
  position:relative;

  /* Animation: Startzustand */
  transform:scale(0.95);
  transition:transform .35s ease;
}

.login-modal.login-visible .login-card{
  transform:scale(1);
}

/* Close Button */
.login-close{
  position:absolute;
  top:16px;
  right:16px;
  width:20px;
  height:20px;
  cursor:pointer;
}
.login-close:before, .login-close:after{
  content:'';
  position:absolute;
  left:9px;
  top:0;
  width:2px;
  height:20px;
  background:#000;
}
.login-close:before{ transform:rotate(45deg); }
.login-close:after{ transform:rotate(-45deg); }

/* Headline */
.login-title{
  font-size: clamp(1.3rem,2vw,1.6rem);
  font-weight:700;
  color:#000;
  margin:0 0 10px;
}
.login-subtitle{
  font-size:1.2rem;
  color:#000;
  font-weight:400;
  margin:0 0 35px;
}

/* Form Layout */
.login-form{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.login-input{
  flex:1;
  min-width:130px;
  padding:12px 16px;
  background:var(--login-pill);
  border:2px solid #000;
  border-radius:50px;
  font-size:0.85rem;
  outline:none;
}

.login-button{
  padding:12px 24px;
  border:none;
  border-radius:50px;
  cursor:pointer;
  font-size:0.85rem;
  background:#000;
  color:#fff;
  transition:.2s;
}
.login-button:hover{
  opacity:0.8;
}

@media(max-width:500px){
  .login-form{
    flex-direction:column;
    align-items:stretch;
  }
  .login-button{
    width:100%;
    text-align:center;
  }
}

/* Grid-Kacheln */
.gallery-tile {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    outline: none;
    transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-tile img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 16px; /* Abrundung im Grid */
    transition: transform .25s ease;
}
.gallery-tile:hover img,
.gallery-tile:focus img {
    transform: scale(1.04); /* leichter Hover-Zoom wie bei Kacheln */
}
.gallery-tile:hover,
.gallery-tile:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1050;
}
.lightbox.is-open { display: block; }
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7); /* Hintergrund abdunkeln */
    backdrop-filter: blur(2px);
}
.lightbox-content {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}
.lightbox-content img {
    max-width: min(92vw, 1400px);
    max-height: 82vh;
    width: auto;
    height: auto;
    border-radius: 18px; /* Abrundung im Popup */
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

/* Navigation / Close */
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: opacity .2s ease;
}
.lightbox-close:hover { opacity: .9; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: opacity .2s ease;
}
.lightbox-nav:hover { opacity: .9; }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }

/* Touch-Zonen (größere Klickflächen auf Mobile) */
@media (max-width: 576px) {
    .gallery-tile img { height: 200px; }
    .lightbox-nav { width: 56px; height: 56px; font-size: 28px; }
}
