/***

Theme Name:    Fast & Precious
Author:        Webdachs
Author URI:    https://webdachs.dev
Description:   Fast & Precious is a Webdesign Agency Theme which focuses on fast content
               delivery and provides a well arranged website structure, so visitors find fast what they search for: information and help.
Keywords:      1-column, responsive, mobile-friendly, Bootstrap, Hero Image, Footer
Version:       0.1

***/


/*** TABLE OF CONTENT

    1    General formatting
    1.1  Colors
    1.2  Animations
    2    Font Awesome
    3    Above the fold
    3.1  Navbar
    3.2  Hero Section
    4    Section styling
    4.1  General section styling
    4.2  Vorteile
    4.3  Leistungen
    4.4  Team
    4.5  Testimonials
    4.6  Call to action
    4.7  Blog
    4.8  Kontakt
    4.9  Footer
    5    Breadcrumbs

    END TABLE OF CONTENT ***/

/*** 1 General formatting */

html, body {
  height: 100%;
}

body {
  position: relative;
}

p {
  line-height: 1.6;
}

/*** 1.1 Colors ***/

:root {
  --wd-primary-color: #284b63;
  --wd-secondary-color: #cb2725;
  --wd-accent-color: #BD2626; /* TODO: Farbe finden, die sich besser von secondary-color unterscheidet */
}

h1, h2, h3, h4, h5, h6,
.wd-icons::before {
  color: var(--wd-primary-color);
}

#hero h1 {
  color: #ffffff;
}

section#c2a h2,
section#wordstress h2,
section#contact h2,
section#testimonials h2,
footer h2 {
  color: #ffffff;
}

.card-title a {
  color: var(--wd-primary-color);
}

section p a,
section p a:visited {
  color: var(--wd-secondary-color);
}

section p a:hover {
  color: var(--wd-primary-color);
  animation-name: textLinkHover;
  animation-duration: .2s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

@keyframes textLinkHover {
  0% { color: var(--wd-secondary-color); }
  100% { color: var(--wd-primary-color); }
}

.card-title a:hover {
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--wd-primary-color);
  border-color: var(--wd-primary-color);
}

.btn-outline-secondary {
  border-color: var(--wd-primary-color);
  color: var(--wd-primary-color);
}

/* Bootstrap Tooltips Colors */


.tooltip-inner {
  background-color: var(--wd-primary-color);
}

/* Changing arrow color. Recommended for BS 4.3.1 but works for BS 4.4.1 too */

.bs-tooltip-auto[x-placement^=top] .arrow::before, .bs-tooltip-top .arrow::before {
    border-top-color: var(--wd-primary-color);
}
.bs-tooltip-auto[x-placement^=right] .arrow::before, .bs-tooltip-right .arrow::before {
    border-right-color: var(--wd-primary-color);
}
.bs-tooltip-auto[x-placement^=bottom] .arrow::before, .bs-tooltip-bottom .arrow::before {
    border-bottom-color: var(--wd-primary-color);
}
.bs-tooltip-auto[x-placement^=left] .arrow::before, .bs-tooltip-left .arrow::before {
    border-left-color: var(--wd-primary-color);
}

/*** 1.2 Animations ***/
/***  General animations across multiple website sections ***/




/*** 2 Font Awesome */

#benefits .wd-brand-icons::before,
#services .wd-brand-icons::before {
  font-family: "Font Awesome 5 Brands";
  font-size: 36px;
  margin-left: -75px;
  margin-top: -5px;
  position: absolute;
}

#benefits .wd-solid-icons::before,
#services .wd-solid-icons::before {
  font-family: "Font Awesome 5 Pro"; /* Workaround: Free solid icons werden sonst nicht angezeigt */
  font-weight: 900; /* Notwendig bei FA5 Pro */
  font-size: 36px;
  margin-left: -75px;
  margin-top: -5px;
  position: absolute;
}

#benefits p.wd-icons,
#services p.wd-icons {
  margin-left: 75px;
}

#contact .wd-solid-icons::before {
  font-family: "Font Awesome 5 Pro";
  font-weight: 900;
  margin-left: -30px;
  position: absolute;
}

#contact .wd-icons {
  margin-left: 30px;
}

.wd-html5::before {
  content: "\f13b";
}

.wd-shield::before {
  content: "\f3ed";
}

.wd-tasks::before {
  content: "\f0ae";
}

.wd-helping-hands::before {
  content: "\f4c4";
}

.wd-wordpress::before {
  content: "\f19a";
}

.wd-brush::before {
  content: "\f1fc";
}

.wd-hashtag::before {
  content: "\f292";
}

.wd-chalkboard-teacher::before {
  content: "\f51c";
}

.wd-book::before {
  content: "\f518";
}

.wd-phone::before {
  content: "\f879";
}

.wd-mail::before {
  content: "\f0e0";
}

.wd-external-link::before { /* TODO: Abstand des Icons ggf. anpassen */
  content:"\f35d";
  font-family: "Font Awesome 5 Pro";
  font-weight: 900;
  padding-right: 5px;
  margin-left: 5px;
}

.wd-alert-msg::before {
  position: absolute;
  font-family: "Font Awesome 5 Pro";
  font-weight: 900;
  font-size: 1.75rem;
  margin-left: -5px;
  margin-top: -3px;
}

.wd-alert-msg > p {
  margin-bottom: 0;
  margin-left: 40px;
  line-height: 1.5;

}

.wd-alert-error::before {
  content: "\f06a";
}

.wd-alert-success::before {
  content: "\f058";
}

/*** 3 Above the fold */

/*** 3.1 Navbar */

@media (min-width: 992px) {
  ul.navbar-nav > li {
    margin-right: 20px;
  }

  .navbar-dark .nav-item .nav-link {
    opacity: 1.0;
    color: #ffffff;
  }

  .nav-item .active {
    border-bottom: 5px solid #ffffff;
    background-color: var(--wd-primary-color);
    margin-top: -9px;
    margin-bottom: -22px;
    padding-top: 17px;
    padding-bottom: 12px;
  }

  .nav-item:hover {
    animation-name: navItemHover;
    animation-duration: .2s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
  }

  @keyframes navItemHover {
    0% {
      border-bottom: none;
    }

    100% {
      border-bottom: 5px solid #ffffff;
      margin-bottom: -9px;
    }
  }
}

nav.navbar {
  animation-name: navSlideDown;
  animation-duration: 0.75s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes navSlideDown {
  0% { transform: translate(0, -60px); }
  100% { transform: translate(0, 0); }
}

.card-title a:hover,
.card-title a:focus {
  animation-name: linkHover;
  animation-duration: .2s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

@keyframes linkHover {
  0% { color: var(--wd-primary-color); }
  100% { color: var(--wd-secondary-color); }
}

@media (max-width: 991px) {

  ul.navbar-nav {
    margin: 20px 0;
  }

  ul.navbar-nav > li {
    text-align: center;
    padding: 5px 0;
    font-size: 1.2rem;
  }

  .nav-item .active {
    background-color: var(--wd-primary-color);
    /* border-bottom: 1px solid #ffffff; */
  }
}



/*** 3.2 Hero Section */

/* Slidein skip to content button */

.skip-to-content {
  position: absolute !important;
  transform: translate(10px, -100%);
  transition: transform .2s;
}

.skip-to-content:focus {
  transform: translate(10px, 75px);
}

section#hero { /* Bug WW-178: WebP erst mal nicht via modernizr laden, da bei Reload FOUC. */
  min-height: 100vh;
  background-size: cover;
  background-position: bottom left;
  border-bottom: 10px solid var(--wd-primary-color); /* TODO: Ggf. auf 5px reduzieren */
  margin-bottom: 3rem;
  background-image:
  -webkit-linear-gradient(rgba(9, 21, 65, 0.5), rgba(9, 21, 64, 0.5)),
  url('../../images/placeholder/code-heroimage-sm.jpg');
}

@media (min-width: 768px) {
  section#hero {
    background-image:
      -webkit-linear-gradient(rgba(9, 21, 65, 0.5), rgba(9, 21, 64, 0.5)),
      url('../../images/placeholder/code-heroimage-md.jpg');
  }
}

@media (min-width: 992px) {
  section#hero {
    background-image:
    -webkit-linear-gradient(rgba(9, 21, 65, 0.5), rgba(9, 21, 64, 0.5)),
    url('../../images/placeholder/code-heroimage-lg.jpg');
  }
}

section#hero h1,
section#hero p.lead {
  /* opacity: 0.9; */
}

/*** 4 Section styling ***/

/*** 4.1 General section styling ***/

section#benefits,
section#services,
section#team,
section#blog {
  padding-top: 5rem;
  padding-bottom: 2rem;
}

section#testimonials {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

section#c2a, section#contact, section#wordstress {
  padding: 3rem 0;
}

section#c2a, section#wordstress, #contact .section-heading {
  background-color: var(--wd-primary-color);
  color: #ffffff;
}

section:not(#hero):not(#c2a):not(#wordstress) .lead {

  margin-top: 0.75rem;
  margin-bottom: 3rem;
}

section#benefits,
section#services,
section#team span,
section#team p,
section#team h2,
section#testimonials p,
section#testimonials h3,
section#blog p,
section#blog h2,
section#blog h3,
section#contact p:not(.lead) {
  opacity: 0.85; /*Ersetzt graue Schrift */
}

.kicker {
  text-transform: uppercase;
  font-weight: bold;
}

.wd-icons {
  margin-bottom: 2.5rem;
}

/*** 4.4 Team section ***/

.team-text { /* Reihenfolge ist hier aus irgendeinem Grund relevant */
  margin-top: 0.5rem;
}

.team-name {
  color: var(--wd-primary-color);
}

img.wd-profile {
  margin-bottom: 25px;
  cursor: pointer;
}

img.wd-profile:hover {
  opacity: 0.8;
}

#team h3 {
  font-size: 1.4rem;
  margin-top: 20px;
}

.progress {
  margin-bottom: 10px;
}

#team ul {
  list-style-type: square;
  padding-left: 20px;
  opacity: 0.85;
}

#team li {
  padding-left: 10px;
}

#team li::marker {
  color: var(--wd-primary-color);
  font-size: 1.2rem;
}

.wd-animate {
  opacity: 0;
}

.progress-bar {
  background-color: inherit;
}

.progress-bar.wd-animated {
  animation-name: animateProgressbar;
  animation-duration: 1.75s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in-out;
}

/* Animate progressbars */

@keyframes animateProgressbar {
  0% {
    width: 0%;
    background-color: var(--wd-primary-color);
  }
  100% { opacity: 1; background-color: var(--wd-primary-color); }
  /* No end specified, so the animation can take the inline values for width */
}

.wd-icons.wd-animated, section.wd-animated {
  animation-name: wdFadeInUp;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes wdFadeInUp {
  0% { opacity: 0; transform: translatey(150px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Animate C2A buttons */

section#wordstress .btn.wd-animated,
section#c2a .btn.wd-animated {
  animation-name: animateButtons;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes animateButtons {
  0% { opacity: 1; transform: scale(0); }
  20% { transform: scale(1.3); }
  50% { transform: scale(0.7); }
  70% { transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* @keyframes animateButtons { 3 bounces at 1.75s
  0% { opacity: 1; transform: scale(0); }
  20% { transform: scale(1.3); }
  30% { transform: scale(0.7); }
  50% { transform: scale(1.2); }
  70% { transform: scale(0.9); }
  90% { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
} */

/*** 4.5 Testimonial section ***/

#testimonials {
  background-image:
    -webkit-linear-gradient(rgba(9, 21, 65, 0.3), rgba(9, 21, 64, 0.3)),
    url('../../images/placeholder/wd-thank-you-sm.png'); /* TODO: Ggf. durch animierte/bewegliche Ballons ersetzen */
  background-position: center;
  background-position: left top;
}

.webp #testimonials {
  background-image:
    -webkit-linear-gradient(rgba(9, 21, 65, 0.3), rgba(9, 21, 64, 0.3)),
    url('../../images/placeholder/wd-thank-you-sm.webp'); /* TODO: Ggf. durch animierte/bewegliche Ballons ersetzen */
}



#testimonials img {
  width: 150px;
  height: 150px;
  margin-top: -100px;
}

.testimonial-text { /* Bild überdeckt sonst den Lead-Text */
  margin-top: 100px;
}

/* Carousel */

.carousel-indicators li {
  background-color: var(--dark);
}

.carousel-indicators .active {
  background-color: var(--wd-primary-color);
}

section#testimonials blockquote p {
  margin: 1.5rem 1rem 3rem !important
}

#carouselTestimonials a, /* In case, I set a link on the headline */
#carouselTestimonials a:visited,
#carouselTestimonials a:hover {
  color: var(--wd-primary-color);
}

/*** 4.7 Blog section ***/

h3.card-title {
  font-size: 1.4rem;
}

.blog-category {
  font-size: 0.875rem;
}

.card-body {
  padding-bottom: 0.5rem;
}

.card-img-top {
  border-bottom: 5px solid var(--wd-primary-color);
}

.card-img-top:hover,
a:focus .card-img-top {
  animation-name: animatedCardBorder;
  animation-duration: .2s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

@keyframes animatedCardBorder {
  0% { border-bottom: 5px solid var(--wd-primary-color); }
  100% { border-bottom: 5px solid var(--wd-secondary-color); }
}

.card-footer {
  margin-top: 0;
}

/*** 4.8 Contact section ***/

.triangle-down::after {
  content: "";
  position: relative;
  top: 15px;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -20px; /* Pfeil sonst nicht genau mittig */
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid var(--wd-primary-color);
}

#other-request {
  display: none;
}

/*** 4.9 Footer ***/

footer {
  background-color: #212529;
  border-top: 10px solid var(--wd-primary-color); /* TODO: Ggf. auf 5px reduzieren */
  /* TODO: Evtl. andere Textfarbe */
  font-size: 0.85rem;
}

footer a, footer a:visited, footer a:hover {
  color: #ffffff;
}

footer h2 {
  text-transform: uppercase;
  font-size: 1.4rem;
  margin: 3rem 0 0.75rem;
}

footer h3 {
  font-size: 1.25rem;
}

footer ul li {
  padding: 0.25rem 0;
}

ul.legal-foo li.list-inline-item:not(:last-child) {
  margin-right: 1.5rem;
}

@media (max-width: 575px) {
  .service-links-footer {
    margin-top: 1.5rem;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  ul.blog-list p {
    max-width: 80%;
  } /* Verkleinert Blog-Teaser auf sm und md screens */
}

@media (max-width: 767px) {
  .copyright {
    margin-bottom: 1rem;
  }
}

/*** 5 Breadcrumbs ***/

#breadcrumb li + li:before {
  content: '›';
  margin: 0 10px;
}
