/********** Template CSS **********/
:root {
    --primary: #32C36C;
    --light: #F6F7F8;
    --dark: #1A2A36;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, .9);
    border-radius: 45px;
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    border-radius: 45px;
    transition: .5s;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/header.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-icon {
    position: relative;
    margin: -50px 0 25px 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 100px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover .service-icon {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-img::before,
.portfolio-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    background: var(--dark);
    transition: .5s;
}

.portfolio-img::before {
    left: 50%;
}

.portfolio-img::after {
    right: 50%;
}

.portfolio-item:hover .portfolio-img::before {
    width: 51%;
    left: 0;
}

.portfolio-item:hover .portfolio-img::after {
    width: 51%;
    right: 0;
}

.portfolio-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    transition-delay: .3s;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    border-radius: 8px 60px 0 0;
}

.team-item .team-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #FFFFFF;
    transition: .5s;
}


/*** Testimonial ***/

.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px; 
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px; 
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px; 
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 360px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 25px; 
    margin-top: 20px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .7);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    color: #9B9B9B;
    border: 1px solid #9B9B9B;
    border-radius: 38px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #9B9B9B;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

p {
    color: #333333;
}

ul.default
		{
			margin: 1em;
			padding: 0em 0em 1.5em 0em;
			list-style: none;
			color: #333333;
		}
		
			ul.default li
			{
				padding: 0.60em 0em;
				font-size: 0.95em;
				border-top: 1px solid;
				border-color: rgba(0,0,0,.1);
			}		
		
			ul.default li:first-child
			{
				padding-top: 0;
				border-top: none;
			}
	
			ul.default {
			}
		
		ul.style li {
			margin: 0;
			padding: 2em 0em 1.5em 0em;
			border-top: 1px solid;
			border-color: rgba(0,0,0,.1);
		}
		
		ul.style li:first-child
		{
			padding-top: 0;
			border-top: none;
		}


/* =========================
   Accordion (custom theme)
   ========================= */

.accordion.accordion-custom {
  --acc-radius: 12px;
  --acc-border: 1px solid rgba(0,0,0,0.08);
  --acc-bg: #fff;
  --acc-bg-active: #ebf9f0;       /* sanftes Grün passend zu #32C36C */
  --acc-text: #1A2A36;            /* Dark */
  --acc-text-muted: #9B9B9B;      /* Body */
  --acc-primary: #32C36C;
  --acc-hover: #F6F7F8;           /* Light */
}

.accordion-custom .accordion-item {
  border: var(--acc-border);
  border-radius: var(--acc-radius);
  background: var(--acc-bg);
  overflow: hidden;
  transition: box-shadow .15s ease;
}

.accordion-custom .accordion-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,.05); }

/* Abstand zwischen Items (ohne globales Margin auf .accordion-item zu setzen) */
.accordion-custom .accordion-item + .accordion-item {
  margin-top: .75rem;
}

.accordion-custom .accordion-header {
  margin: 0;
}

.accordion-custom .accordion-button {
  padding: 1rem 1.25rem;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  color: #2c3e50;
  background: var(--acc-hover);
  border: 0;
  box-shadow: none;
  transition: background-color .15s ease, color .15s ease;
}

.accordion-custom .accordion-button:hover {
  background: var(--acc-bg-active);
}

.accordion-custom .accordion-button:focus {
  outline: 0;
   box-shadow:
    0 0 0 2px #fff, /* weißer Puffer, hebt sich vom Hintergrund ab */
    0 0 0 .35rem rgba(50,195,108,.4); /* kräftigerer grüner Fokus */
}

/* aktiver / geöffneter Zustand */
.accordion-custom .accordion-button:not(.collapsed) {
  font-weight: 600;
  color: #2db061; /* leicht heller als primary, harmoniert mit active-bg */
  background: var(--acc-bg-active);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.06);
}

/* Caret/Icon passend einfärben */
.accordion-custom .accordion-button::after {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231A2A36'>\
<path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/>\
</svg>");
  transition: transform .2s ease;
}

.accordion-custom .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232db061'>\
<path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/>\
</svg>");
}

/* Body-Text */
.accordion-custom .accordion-body {
  padding: 1rem 1.25rem;
  color: var(--acc-text-muted);
  line-height: 1.7;
}

/* Responsive Tweaks */
@media (min-width: 768px) {
  .accordion-custom .accordion-button { padding: 1.125rem 1.5rem; }
  .accordion-custom .accordion-body   { padding: 1.25rem 1.5rem; }
  .accordion-custom .accordion-item + .accordion-item { margin-top: 1rem; }
}

/* Optional: kompakter auf sehr kleinen Screens */
@media (max-width: 375px) {
  .accordion-custom .accordion-button { padding: .875rem 1rem; }
  .accordion-custom .accordion-body   { padding: .875rem 1rem; }
}

.accordion-custom .accordion-subtitle {
  font-weight: 400;      /* normal, nicht fett */
  font-size: 0.9em;      /* etwas kleiner */
  color: #6c757d;        /* ein dezenter Grauton */
  margin-left: .5rem;    /* Abstand zum Titel */
}


/* Variablen für Master-Accordions (Fallbacks, falls nicht gesetzt) */

.accordion-master {
  --acc-hover: #F6F7F8;
  --acc-bg-active: #ebf9f0;
}

/* Master-Header: zugeklappt = grau, offen = weiß (wie von dir gewünscht)*/ 
.accordion-master .accordion-button.collapsed {
  background: var(--acc-hover);
  color: var(--primary);
  box-shadow: none;
}

.accordion-master .accordion-button:not(.collapsed) {
  background: #fff; /* oder var(--acc-bg-active) falls du offen hellgrün willst */
  color: var(--primary);
  box-shadow: none;
}

/* Master-Chevron: dunkel zu, grün offen */
.accordion-master .accordion-button::after {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231A2A36'>\
<path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/>\
</svg>");
  transition: transform .2s ease;
}
.accordion-master .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232db061'>\
<path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/>\
</svg>");
}


/* Accordion Icons */
.accordion-button .accordion-icon {
  width: 38px;     /* skaliert deine 200x100px-Bilder passend */
  height: 35px;
  margin-right: 12px;  /* Abstand zum Text */
}


/* Titel ist EIN flex item, darf normal umbrechen */
.accordion-button .acc-title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* MathJax als echtes Inline-Element, nicht inline-block */
.accordion-button mjx-container {
  display: inline !important;
}


/* =========================
   Kachel (custom theme)
   ========================= */

@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 20%;    /* NEU */
    max-width: 20%;   /* NEU */
    padding-left: 5px;
    padding-right: 5px;
  }
}



.row.d-flex {
  display: flex;
  flex-wrap: wrap; /* Zeilenumbruch aktivieren, wenn der Platz nicht ausreicht */
}

.tile {
  perspective: 1000px;
  min-height: 175px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;        /* Abgerundete Ecken */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: Schatten für etwas Tiefe */
}

/* Die Kachel selbst - ein Container für Vorder- und Rückseite */
.tile-inner {
  width: 100%;
  min-height: 175px;   			/* Mindesthöhe für die innere Struktur */
  transform-style: preserve-3d;
  transition: transform 0.5s; 		/* Glatte Übergangsanimation */
  position: relative;}

/* Drehung der Kachel bei Hover 
.tile:hover .tile-inner {
  transform: rotateY(180deg);
}
*/

/* Vorderseite der Kachel */
.tile-front, .tile-back {
  position: absolute;
  width: 100%;
  min-height: 175px;   			/* Mindesthöhe für Vorder- und Rückseite */
  backface-visibility: hidden; 		/* Verhindert, dass die Rückseite sichtbar wird, wenn sie umgedreht wird */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 1.5px solid #dcdcdc; /* Hellgrauer Rahmen (Hex-Code für einen hellgrauen Farbton) */
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 5px;  			/* Optional: Fügt etwas Innenabstand hinzu */
}

/* Vorderseite Style */
.tile-front {
  background-color: #ffffff;
  color: var(--primary);
}

/* Rückseite Style - die Seite, die nach der Drehung sichtbar wird */
.tile-back {
  background-color: var(--light); /* Helles Hintergrund für die Rückseite */
  color: var(--primary);
  transform: rotateY(180deg); /* Anfangs um 180 Grad gedreht, um sie zu verbergen */
}

/* Optional: Style für den Text in den Kacheln */
.tile-back p {
  font-size: 1rem;
  font-weight: normal;
  color: var(--dark);
}

/* --- Flip-Verhalten verfeinert: Desktop vs. Mobile --- */

/* Nur Desktop/Laptop mit Maus → Drehung bei Hover */
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-inner {
    transform: rotateY(180deg);
  }
}

/* Mobile/Touch → Drehung per Klasse .is-flipped */
.tile.is-flipped .tile-inner {
  transform: rotateY(180deg);
}

/* Sicherheitsmaßnahmen für iOS Safari */
.tile-front, .tile-back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

