/* FONTS */
@font-face {
    font-family: "Nunito";
    src: url("fonts/Nunito-Regular.ttf");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Nunito";
    src: url("fonts/Nunito-Bold.ttf");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Nunito";
    src: url("fonts/Nunito-ExtraBold.ttf");
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Nunito";
    src: url("fonts/Nunito-Black.ttf");
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: "Nunito";
    src: url("fonts/Nunito-Italic.ttf");
    font-style: italic;
    font-display: swap;
}

/* RESET & BASIC */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Nunito", sans-serif;
    background: linear-gradient(to bottom, #1e7ab8 0%, #2a9ad6 35%, #c0e0f5 70%, #a8d0f0 100%);
    min-height: 100vh;
    color: #222;
    line-height: 1.6;
}

/* CUSTOM SCROLLBAR - Entfernt für Firefox-Kompatibilität */
/* Firefox unterstützt keine Custom Scrollbars, daher entfernen wir diese Stile */

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 122, 184, 0.93);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: auto;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 7em;
    height: 4.5em;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

/* ==================== NAVBAR SCROLL EFFECT ==================== */

.navbar {
    transition:
        background 0.35s ease,
        padding 0.35s ease,
        box-shadow 0.35s ease;
}

.nav-container {
    transition: padding 0.35s ease;
}

.logo img {
    transition:
        width 0.35s ease,
        height 0.35s ease,
        transform 0.35s ease;
}

/* Zustand beim Scrollen */
.navbar.scrolled {

    box-shadow:
        0 8px 25px rgba(0,0,0,0.75);
}

.navbar.scrolled .nav-container {
    padding: 10px 25px;
}

.navbar.scrolled .logo img {
    width: 5.5em !important;
    height: 3.6em !important;

    transform: scale(0.96);
}

/* Mobile */
@media (max-width: 768px) {

    .navbar.scrolled .nav-container {
        padding: 10px 15px;
    }

    .navbar.scrolled .logo img {
        width: 4.8em !important;
        height: 3.1em !important;
    }
}

.hero {
    margin-top: 85px;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("Bilder/Banner.webp");
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.62);
}

.hero-content {
    position: relative;
    max-width: 950px;
    padding: 20px;
}

.hero h1 {
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 900;
}

.services p {
    font-size: clamp(18px, 3.5vw, 23px);
    font-weight: 700;
}

@media (max-width: 768px) {

    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .services p {
        font-size: 18px;
    }
}

/* CATEGORY & CARD (wie zuvor) */
.category {
    margin: 70px auto;
    padding: 60px 25px;
    max-width: 1300px;

    border-radius: 22px;
    border: 3px solid #000000;

    background: rgba(255,255,255,0.24);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow: 0 10px 40px rgba(0,0,0,0.18);

    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;

    will-change: opacity, transform;
}

.category.visible {
    opacity: 1;
    transform: translateY(0);
}

.category h2 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 40px;
    color: #d00000;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        width: 100%;
    }

    .category {
        opacity: 1;
        transform: none;
        padding: 40px 15px;
        margin: 50px auto;
    }
}

.card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    border: 1px solid rgba(0, 0, 0, 0.823);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.762);
    border: 3px solid rgba(255, 0, 0, 0.858)
}

.card-image {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.left { left: 10px; }
.right { right: 10px; }

.view-btn {
    align-self: flex-start;
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    background: #1e7ab8;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.view-btn:hover {
    background: #15608f;
}

/* CONTACT SECTION */
.contact-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 50px 30px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(15px);
    border-radius: 22px;
    border: 2px solid #cf001c;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 35px;
    color: #0b3c5d;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border: 2px solid rgba(52,161,224,0.4);
    border-radius: 12px;
    background: rgba(255,255,255,0.85);
}

.submit-btn {
    padding: 16px;
    background: #cf001c;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

/* ==================== PRODUKT POPUP ==================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-radius: 24px;

    width: 100%;
    max-width: 1100px;

    height: 650px;
    max-height: 90vh;

    display: flex;
    overflow: hidden;

    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
}

/* Linke Seite Bild */
.modal-left {
    flex: 1;
    height: 100%;
}

/* Bild selbst */
#modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* Wichtig */
}

/* Rechte Seite Inhalt */
.modal-right {
    flex: 1;
    padding: 40px 35px;

    display: flex;
    flex-direction: column;

    height: 100%;
    overflow-y: auto;           /* Scroll falls Text zu lang */
}

@media (max-width: 900px) {
    .modal-content {
        flex-direction: column;
        height: auto;
        max-height: 95vh;
    }

    .modal-left {
        height: 300px;
    }

    .modal-right {
        height: auto;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    background: none;
    border: none;
    color: #222;
    cursor: pointer;
    z-index: 10;
}

.modal-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}



.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.65);
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
}

.modal-arrow.left { left: 15px; }
.modal-arrow.right { right: 15px; }

.modal-right h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: #0b3c5d;
}

.modal-price {
    font-size: 22px;
    font-weight: 700;
    color: #1e7ab8;
    margin-bottom: 20px;
}

.modal-right p {
    font-size: 16.5px;
    line-height: 1.75;
    flex: 1;
    white-space: pre-line;
}

.inquiry-btn {
    align-self: flex-start;
    padding: 14px 28px;
    background: #cf001c;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
}

.inquiry-btn:hover {
    background: #a00018;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .modal {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .modal-content {
        flex-direction: column;
        width: 100%;
        height: auto;
        max-height: none;
        overflow: visible;
        border-radius: 20px;
    }

    /* Bildbereich */
    .modal-left {
        width: 100%;
        height: 260px;
        flex: none;
        overflow: hidden;
    }

    .modal-image-container {
        width: 100%;
        height: 100%;
    }

    #modal-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Textbereich */
    .modal-right {
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 28px 22px 30px;
    }

    .modal-right h2 {
        font-size: 26px;
    }

    .modal-price {
        font-size: 20px;
    }

    .modal-right p {
        font-size: 15px;
        line-height: 1.6;
    }

    .inquiry-btn {
        width: 100%;
        text-align: center;
    }

    /* Pfeile kleiner auf Mobile */
    .modal-arrow {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 32px;
    }
}


/* ==================== FOOTER ==================== */
.main-footer {
  background-color: #0F0F0F;
  color: #ddd;
  padding: 60px 20px 30px;
  font-family: system-ui, -apple-system, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 60px;
}

.footer-column h3 {
  color: #14A5DC;
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.footer-column a {
  color: #ddd;
  text-decoration: none;
}

.footer-column a:hover {
  color: #14A5DC;
}

.phone-link {
  color: #14A5DC;
  font-weight: 600;
}

.phone-link:hover {
  color: #E12323;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 18px;
  margin-top: 15px;
}

.social-icons a {
  font-size: 2.1rem;
  color: #ddd;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #14A5DC;
  transform: translateY(-4px);
}

/* Google Maps */
.map-container {
  margin-top: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.map-container iframe {
  width: 100%;
  height: 180px;
}

/* ==================== BOTTOM BAR ==================== */
.footer-bottom {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid #222;
  font-size: 0.93rem;
}

.footer-bottom .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Links: Copyright */
.footer-copyright {
  color: #888;
  order: 1;
}

/* Rechts: Impressum & Datenschutz */
.footer-legal {
  display: flex;
  gap: 20px;
  order: 3;
}

.footer-legal a {
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #14A5DC;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }

  .footer-bottom .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .map-container iframe {
    height: 160px;
  }
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* ==================== CONTACT FORM EXTRA ==================== */

.contact-form input,
.contact-form textarea {
    font-family: "Nunito", sans-serif;
    font-size: 16px;

    transition:
        border 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {

    outline: none;

    border: 2px solid #1e7ab8;

    box-shadow:
        0 0 0 4px rgba(30,122,184,0.15);

    transform: translateY(-1px);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    font-size: 14px;
    line-height: 1.5;
}

.checkbox-group input {
    margin-top: 4px;
}

.checkbox-group a {
    color: #cf001c;
    font-weight: 700;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.submit-btn {

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.submit-btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(207,0,28,0.35);
}

.submit-btn:active {
    transform: scale(0.98);
}

#form-status {

    margin-top: 12px;

    font-weight: 700;

    text-align: center;

    min-height: 24px;
}