/* 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 */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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);
}

ul li a:hover {
    color: var(--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;
}

.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;
    height: auto;
}

nav.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.navbar-toggler {
    border: 2px solid #000000;
}

.navbar-toggler-icon {
    background-color: #ffffff;
}


/* 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;
    color: white !important;
    border: 2px solid var(--c-brand) !important;
    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;
    border-color: var(--c-brand-light) !important;
    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;
    font-weight: bold;
    line-height: 1.2;
}


/* 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;
    gap: 20px;
}

.portfolio-item {
    max-width: 100%;
    text-align: center;
    position: relative;
}

.portfolio-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    z-index: 10;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: font-size 0.3s ease, top 0.3s ease;
}

.portfolio-item:hover .portfolio-text {
    font-size: 28px;
    top: 35%;
}


/* SERVICE */
.service {
    position: relative;
    overflow: hidden;
    z-index: 2;
    cursor: pointer;
    margin-bottom: 40px;
    min-height: 400px;
}

.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;
}

.service h5 {
    color: var(--c-dark);
    transition: color 0.3s ease, transform 0.3s ease;
}

.service:hover h5 {
    color: white;
    transform: scale(1.1);
}

.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);
}

.service.active h5 {
    color: white;
    transition: color 0.3s ease-in-out;
}

.service-description ul {
    list-style-position: outside;
    list-style-type: disc;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-description li {
    margin: 5px 0;
    font-size: 1rem;
    color: var(--c-body);
}


/* 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;
    margin-bottom: 40px;
    font-weight: 500;
}


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

#contact::after {
    content: "";
    width: 100%;
    height: 100%;
    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);
}

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

.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;
}

.contact-link:hover {
    color: var(--c-brand);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.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;
}

.text-background {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
}


/* 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;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--c-brand);
}

.footer-bottom .container .row {
    display: flex;
    justify-content: space-between;
    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;
}

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


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

.modal-footer {
    border-top: none;
}

.btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    color: var(--c-dark);
}

.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);
}

.modal a {
    color: var(--c-brand);
}

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


/* COOKIE-BANNER */
.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;
}


/* KONTAKTFORMULAR */
.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: var(--c-brand);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.kontakt-form button:hover {
    background: var(--c-brand-light);
}

.hidden {
    display: none;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    #start h1 {
        font-size: 2.5rem;
    }
    .display-4 {
        font-size: 2rem;
    }
    h1, h1.display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    #start h1 {
        font-size: 1.8rem;
    }
    .display-4 {
        font-size: 1.5rem;
    }
    h1, h1.display-4 {
        font-size: 2.0rem;
    }
}

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

h1, h1.display-4 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: bold;
}


/* CHATBOT */
.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-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;
    opacity: 1 !important;
    backdrop-filter: none !important;
    position: fixed !important;
    z-index: 99999 !important;
    width: 90%;
    max-width: 320px;
    height: 80vh;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    mix-blend-mode: normal !important;
}

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

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

.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);
}

.message {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 5px;
}

.message.user {
    background: var(--c-brand);
    color: white;
    text-align: right;
}

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

.loading-message {
    color: gray;
    font-style: italic;
}

.chatbot-footer {
    padding: 10px 5px 10px 10px;
    font-size: 12px;
    line-height: 1.0;
    color: #555;
}

.chatbot-footer a {
    color: var(--c-brand);
    text-decoration: none;
}

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


/* TERMINBUCHUNG */
#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);
}


/* SCROLL-EFFEKT LEISTUNGEN */
.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);
}

.leistungen-content {
    margin-top: 10vh;
}


/* BLOG */
.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;
}

.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 !important;
}

.grecaptcha-badge {
  visibility: hidden;
}
