html, body {
  overflow-x: hidden;
}


/* FONTS */
@font-face {
    font-family: 'Chubbo-Variable';
    src: url('./fonts/Chubbo-Variable.woff2') format('woff2'),
         url('./fonts/Chubbo-Variable.woff') format('woff'),
         url('./fonts/Chubbo-Variable.ttf') format('truetype');
    font-weight: 200 700;
    font-display: swap;
    font-style: normal;
  }

/* VARIABLES */
:root {
    --c-dark: #050b11;
    --c-brand: #36bdbd;
    --c-brand-light: #8188e1;
    --c-brand-rgb: 78, 87, 212;
    --c-body: #727272;
    --font-base: "Chubbo", sans-serif;
    --box-shadow: 0px 15px 25px rgba(0,0,0,0.08);
    --transition: all 0.5s ease;
}

/* RESET & HELPERS */
body {
    font-family: var(--font-base);
    line-height: 1.7;
    color: var(--c-body);
}

h1, h2, h3,h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    color: var(--c-dark);
}

.highlight-text {
    color: var(--c-brand);
}

* {
  box-sizing: border-box;
}



a {
    text-decoration: none;
    color: var(--c-brand);
    transition: var(--transition);
}

a:hover {
    color: var(--c-brand-light);
}

/* Spezifischer Hover-Effekt für Links innerhalb der Lösungsliste */
ul li a:hover {
    color: var(--c-brand);  /* Setzt die Schriftfarbe auf --c-brand */
}


img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding-top: 140px;
    padding-bottom: 140px;
}

.theme-shadow {
    box-shadow: var(--box-shadow);
}

/* IMAGE ZOOM */
.image-zoom {
    position: relative;
    /* overflow: hidden; */
}

.image-zoom-wrapper {
    overflow: hidden;
    position: relative;
}

.image-zoom-wrapper img{
     transition: var(--transition);
}

.image-zoom:hover .image-zoom-wrapper img {
    transform: scale(1.1);
}


/* NAVBAR */
.navbar {
    box-shadow: var(--box-shadow);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--c-dark);
}

.navbar-nav .nav-link.active {
    color: var(--c-brand);
}

.navbar-brand img {
    width: 130px; /* oder jede andere gewünschte Breite */
    height: auto; /* behält das Seitenverhältnis des Bildes bei */
}

nav.navbar {
    position: fixed;
    top: 0;
    width: 100%; /* Damit die Leiste die gesamte Breite einnimmt */
    z-index: 1030; /* Überlagert andere Inhalte */
    background-color: white; /* Hintergrund fixieren, um Transparenz zu vermeiden */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optionaler Schatten für optische Trennung */
}



.navbar .nav-link:hover {
    color: var(--c-brand);
}

.navbar-toggler {
    border: 2px solid #000000;  /* Beispielfarbe für den Button-Rahmen */
}

.navbar-toggler-icon {
    background-color: #ffffff;  /* Beispielfarbe für das Hamburger-Menü-Symbol */
}



/* BTN */
.btn {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 0;
    padding: 10px 24px;
}

.btn-brand {
    background-color: var(--c-brand) !important; /* Erzwingt Markenfarbe als Hintergrund */
    color: white !important; /* Textfarbe auf weiß setzen */
    border: 2px solid var(--c-brand) !important; /* Erzwingt Rand in der Markenfarbe */
    padding: 12px 24px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 4px;
    text-transform: uppercase;
}

.btn-brand:hover {
    background-color: var(--c-brand-light) !important; /* Hover-Hintergrund */
    border-color: var(--c-brand-light) !important; /* Hover-Rand */
    color: white !important;
}

.btn-small-inline {
    padding: 4px 8px;
    font-size: 20px;
    line-height: 1.1;
    border-radius: 4px;
    text-transform: none;
    vertical-align: baseline;
}


/* Startseite */
#start {
    background: linear-gradient(rgba(var(--c-brand-rgb), 0.15), rgba(var(--c-brand-rgb), 0.2)), url(./images/background1.png);
    background-position: center;
    background-size: cover;
}

#start h1 {
    font-size: 6rem; /* Große Schrift für Laptops und größere Bildschirme */
    font-weight: bold;
    line-height: 1.2; /* Optional: Zeilenabstand */
}


/* SECTION TITLE */
.section-title {
    margin-bottom: 60px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background-color: var(--c-brand);
    margin: 16px auto 24px auto;
}

.section-title p {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


/* ICONBOX */
.iconbox {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--c-brand-rgb), 0.1);
    color: var(--c-brand);
    font-size: 34px;
    flex: none;
}

/* Leistungen */
.portfolio-item .iconbox {
    background-color: var(--c-brand);
    color: white;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.portfolio-item:hover .iconbox {
    opacity: 1;
    top: 50%;
}

.row.g-4 {
    display: flex;
    justify-content: center; /* Zentriert die Bilder horizontal */
    gap: 20px; /* Abstand zwischen den Bildern */
}

.portfolio-item {
    max-width: 100%; /* Stellt sicher, dass die Bilder nicht übergroß werden */
    text-align: center; /* Zentriert den Inhalt innerhalb jedes Portfolio-Elements */
    position: relative; /* Erlaubt absolute Positionierung der Textbox */
}

.portfolio-text {
    position: absolute;
    top: 40%; /* Leicht über der Mitte */
    left: 50%;
    transform: translate(-50%, -50%);
    color: white; /* Textfarbe */
    font-size: 18px; /* Standard Schriftgröße */
    font-weight: 600; /* Fettgedruckt für bessere Sichtbarkeit */
    z-index: 10; /* Überlagert das Bild */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Schatten für besseren Kontrast */
    pointer-events: none; /* Der Text soll nicht anklickbar sein */
    transition: font-size 0.3s ease, top 0.3s ease; /* Weicher Übergang für Größe und Position */
}

/* Hover-Effekt: Vergrößere den Text und verschiebe ihn leicht nach oben */
.portfolio-item:hover .portfolio-text {
    font-size: 28px; /* Größere Schriftgröße bei Hover */
    top: 35%; /* Leicht höher positioniert */
}


/* SERVICE */
.service {
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.service::after {
    content: "";
    width: 40px;
    height: 40px;
    background: rgba(var(--c-brand-rgb), 0.2);
    position: absolute;
    bottom: 0;
    right: 0;
    transition: var(--transition);
}


.service:hover::after {
    width: 100%;
    height: 100%;
    background: var(--c-brand);
    z-index: -1;
}

.service:hover h5,
.service:hover p {
    color: white;
}

.service:hover .iconbox {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

/* About */
.team-member-content {
    background-color: var(--c-brand);
    position: absolute;
    bottom: -24px;
    left: 50%;
    width: calc(100% - 50px);
    transform: translateX(-50%);
    padding: 24px;
    transition: var(--transition);
    opacity: 0;
}

.team-member:hover .team-member-content {
    opacity: 1;
    bottom: 24px;
}

.intro-text {
    font-size: 1.2rem; /* Vergrößert den Text */
    margin-bottom: 40px; /* Fügt einen kleinen Abstand nach unten hinzu */
    font-weight: 500; /* Macht den Text etwas fettgedruckter */
}


/* CONTACT */
#contact {
    position: relative;
    z-index: 2;
}

#contact::after {
    content: "";
    width: 100%;
    height: 70%;
    background: linear-gradient(rgba(var(--c-brand-rgb), 0.15), rgba(var(--c-brand-rgb), 0.2)), url(./images/background2.png);
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#contact .form-control {
    border-radius: 0;
}

#contact .form-control:focus {
    box-shadow: none;
    border-color: var(--c-brand);
}

/* FOOTER */
footer {
    padding-top: 120px;
}

.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
    padding-top: 40px;
    padding-bottom: 40px;
}


footer li,
footer p,
footer a {
    color: rgba(255,255,255,0.7);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer .line {
    width: 40px;
    height: 4px;
    background-color: var(--c-brand);
    margin-top: 12px;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 20px; /* Abstand zwischen den Links */
}

.footer-links a {
    color: rgba(255,255,255,0.7); /* Gleiche Farbe wie andere Links im Footer */
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--c-brand); /* Farbe beim Hover-Effekt */
}

.footer-bottom .container .row {
    display: flex;
    justify-content: space-between; /* Verhindert Überschneidungen, verschiebt die Links nach rechts */
    align-items: center;
}


.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 100px;
}

.social-icons a:hover {
    background-color: var(--c-brand);
    color: white;
}

/* Modal Header */
.modal-header {
    background-color: var(--c-brand);
    color: white;
    border-bottom: none;
}

/* Modal Footer */
.modal-footer {
    border-top: none;
}

/* Schließen-Button anpassen */
.btn-close {
    filter: brightness(0) invert(1);
}

/* Modal Body Schriftfarbe */
.modal-body {
    color: var(--c-dark);
}

/* Beispiel für den Scrollbalken im Modal (optional) */
.modal-dialog-scrollable .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translateY(-50px);
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

/* Cookie-Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    color: rgb(0, 0, 0);
    padding: 20px;
    text-align: center;
    z-index: 1000;
  }
  
  .cookie-banner a {
    color: var(--c-brand);
    text-decoration: underline;
  }
  
  .cookie-buttons {
    margin-top: 10px;
  }
  
  .cookie-buttons .btn {
    margin-right: 10px;
  }
  
  /* Links im Pop-Up in der Farbe --c-brand setzen */
.modal a {
    color: var(--c-brand); /* Verwendet die CSS-Variable --c-brand für Links */
}

.modal a:hover {
    color: darken(var(--c-brand), 10%); /* Optional: Link-Farbe bei Hover dunkler machen */
}

/* Weitere Anpassungen, falls erforderlich */
.contact-options {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.contact-link {
    display: flex;
    align-items: center;
    color: var(--c-dark);
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
    text-decoration: none; /* Keine Unterstreichung */
    color: var(--c-dark); /* Standardfarbe */
    transition: color 0.3s ease; /* Weicher Übergang bei Farbwechsel */
}

.contact-link:hover {
    color: var(--c-brand);
    text-decoration: none; /* Verhindert Unterstreichung beim Hover */
    color: var(--c-brand); /* Hebt die Schriftfarbe hervor */
    font-weight: 600; /* Macht die Schrift fett */
    font-size: 1.1rem; /* Vergrößert die Schrift leicht */
}

.contact-link .iconbox {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--c-brand-rgb), 0.1);
    color: var(--c-brand);
    border-radius: 50%;
    margin-right: 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-link:hover .iconbox {
    background-color: var(--c-brand);
    color: white;
}

.contact-text {
    font-size: 18px;
    flex-grow: 1;
}

/* Hintergrund für den Textbereich, um die Lesbarkeit zu verbessern */
.text-background {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
}

/* Anpassung des Kontaktbereich-Hintergrundbildes */
#contact {
    position: relative;
    z-index: 2;
}

#contact::after {
    content: "";
    width: 100%;
    height: 100%; /* Vollständige Höhe des Kontaktbereichs abdecken */
    background: linear-gradient(rgba(var(--c-brand-rgb), 0.15), rgba(var(--c-brand-rgb), 0.2)), url(./images/background2.png);
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#contact h2, #contact p {
    color: var(--c-dark);
    font-weight: bold;
}

.kontakt-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.kontakt-form {
    background: rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
}

.kontakt-form button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.kontakt-form button:hover {
    background: #0056b3;
}

.hidden {
    display: none;
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 100%;
}

@media (max-width: 768px) { /* Tablets und kleinere Geräte */
    #start h1 {
        font-size: 2.5rem; /* Mittelgroße Schrift */
    }
}

@media (max-width: 576px) { /* Kleine Smartphones */
    #start h1 {
        font-size: 1.8rem; /* Kleine Schrift für Mobiltelefone */
    }
}

.display-4 {
    font-size: 2.5rem; /* Standardgröße */
}

@media (max-width: 768px) { /* Tablets */
    .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) { /* Smartphones */
    .display-4 {
        font-size: 1.5rem;
    }
}


/* Standardgröße für große Bildschirme */
h1, h1.display-4 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: bold;
}

/* Für Tablets (max-width: 768px) */
@media (max-width: 768px) {
    h1, h1.display-4 {
        font-size: 2.5rem; /* Kleinere Schriftgröße */
    }
}

/* Für Smartphones (max-width: 576px) */
@media (max-width: 576px) {
    h1, h1.display-4 {
        font-size: 2.0rem; /* Noch kleinere Schriftgröße */
    }
}

/* Standardzustand der Überschrift */
.service h5 {
    color: var(--c-dark); /* Standardfarbe */
    transition: color 0.3s ease, transform 0.3s ease; /* Weiche Übergänge */
}

/* Hover-Zustand: Überschrift wird weiß und skaliert leicht */
.service:hover h5 {
    color: white; /* Schrift verschmilzt mit weißem Hintergrund */
    transform: scale(1.1); /* Leichte Vergrößerung */
}

/* Beschreibung standardmäßig unsichtbar, nach unten versetzt */
.service .service-description {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.service:hover .service-description,
.service.active .service-description {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


/* Liste ohne Einrückungen */
.service-description ul {
    list-style-position: outside; /* Punkte außerhalb der Box */
    list-style-type: disc; /* Aufzählungszeichen */
    padding: 0; /* Keine Einrückungen */
    margin: 0; /* Keine Abstände */
    text-align: left; /* Linksbündig */
}

.service-description li {
    margin: 5px 0; /* Gleicher Abstand zwischen Zeilen */
    font-size: 1rem; /* Einheitliche Schriftgröße */
    color: var(--c-body); /* Passende Textfarbe */
}

/* Wenn die Box aktiv ist (nach Klick), wird die Beschreibung sichtbar */
.service.active .service-description {
    display: block; /* Beschreibung anzeigen */
}

/* Damit sich die Größe der Box nicht verändert */
.service.active h5 {
    color: white; /* Unsichtbar durch weiße Farbe */
    transition: color 0.3s ease-in-out;
}

/* Zeigt den Hand-Cursor an, wenn man über die Service-Box fährt */
.service {
    cursor: pointer;
    margin-bottom: 40px; /* Abstand nach unten */
    min-height: 400px;
}


/* Chatbot Button */
.chatbot-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--c-brand);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.chatbot-btn:hover {
    background-color: var(--c-brand-light);
}

/* Chatbot Fenster */
.chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    background: white;
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    display: none;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

#chatbotContainer {
    background-color: white !important; /* Solider weißer Hintergrund */
    opacity: 1 !important;  /* Keine Transparenz */
    backdrop-filter: none !important;  /* Falls ein Weichzeichner aktiv ist */
    position: fixed !important;  /* Stellt sicher, dass der Chatbot immer oben bleibt */
    z-index: 99999 !important;  /* Sorgt dafür, dass er über allen Elementen liegt */
    width: 90%; /* Oder eine feste Breite, falls nötig */
    max-width: 320px; /* Verhindert, dass er zu groß wird */
    height: 80vh; /* Damit er die richtige Höhe hat */
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3); /* Falls ein Schatten hilft */
    mix-blend-mode: normal !important; /* Falls eine falsche Mischmodus-Einstellung aktiv ist */
}


/* Header */
.chatbot-header {
    background: var(--c-brand);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

/* Nachrichtenbereich */
.chatbot-messages {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    font-size: 14px;
}

/* Eingabebereich */
.chatbot-input {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 10px;
}

.chatbot-input input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}

.chatbot-input button {
    background: var(--c-brand);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.chatbot-input button:hover {
    background: var(--c-brand-light);
}

/* Stil für Nachrichten */
.message {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 5px;
}

.message.user {
    background: #007bff;
    color: white;
    text-align: right;
}

.message.bot {
    background: #f1f1f1;
    color: black;
}

/* Lade-Nachricht */
.loading-message {
    color: gray;
    font-style: italic;
}

.chatbot-footer {
    padding-top: 10px;  /* Weniger Abstand oben */
    font-size: 12px;    /* Kleinere Schriftgröße */
    line-height: 1.0;   /* Engerer Zeilenabstand */
    color: #555;
    padding-left: 10px;   /* Etwas Padding links */
    padding-right: 5px;  /* Etwas Padding rechts */
}

.chatbot-footer a {
    color: #007bff;
    text-decoration: none;
}

.chatbot-footer a:hover {
    text-decoration: underline;
}

#terminbuchung {
    text-align: center;
    padding: 50px;
    background-color: #f9f9f9;
}

#terminbuchung h2 {
    color: #333;
    margin-bottom: 20px;
}

iframe {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Apple-like Scroll-Effekt */
.scroll-section {
    min-height: 200vh;
    background-color: white;
    position: relative;
  }
  
  .scroll-intro {
    position: sticky;
    top: 20vh;
    text-align: center;
    padding-bottom: 100px;
    z-index: 10;
    background: white;
  }
  
  .scroll-intro h1 {
    margin-bottom: 60px;
  }
  
  .scroll-intro h1,
  .scroll-intro p {
    opacity: 0;
    transform: translateY(100px);
  }
  
  /* Damit der animierte Block nicht überlappt */
  .leistungen-content {
    margin-top: 10vh; /* verschiebt die Services nach unten */
  }
  
  /*Banner für Blogbeitrag*/
/* Blog-Card Design für Swiper Slides */
.blog-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease;
  min-height: 300px;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 10px;
}

.blog-card p {
  color: var(--c-body);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Artikel-Overlay (zentral, ohne Abdunklung) */
.custom-article-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.98);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.custom-article-box {
  background: #fff;
  max-width: 900px;
  width: 100%;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-article {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.hidden {
  display: none;
}

.footer .qr-code {
  max-width: 80px;
  height: auto;
  margin-right: 12px;
}
