@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700|Oswald:300,400,700|Kaushan+Script');

:root {
  --brand-blue: #0095dd;
  --brand-red: #ea321e;
  --dark-nav: #222;
  --text-muted: #999;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  line-height: 21px;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--brand-red);
  text-decoration: none;
}

.white-text {
  color: #fff !important;
}

.section-title h3 {
  color: #666;
  font-size: 28px;
  font-family: 'Oswald', sans-serif;
  text-transform: none;
}

.section-title p {
  padding-bottom: 40px;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 300;
}

.btn-primary {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  text-transform: uppercase;
  font-weight: 300;
  border-radius: 3px;
  transition: all 0.3s;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

/* Navbar */
.navbar-default {
  border: 0;
  background-color: var(--dark-nav);
  min-height: 87px;
  margin-bottom: 0;
  transition: background-color 0.3s;
}

.navbar-default.navbar-shrink {
  background-color: rgb(76, 76, 78);
}

.navbar-default .navbar-header {
  display: flex;
  align-items: center;
}

.navbar-default .navbar-brand {
  display: flex;
  align-items: center;
  height: 87px;
  padding: 0 15px;
}

.navbar-default .navbar-brand img {
  height: 70px;
  width: auto;
  display: block;
}

.navbar-default .nav > li > a {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  color: #fff !important;
  padding-top: 33px;
  padding-bottom: 33px;
}

.navbar-default .navbar-toggle {
  margin-top: 0;
  border-color: #fff;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: #fff;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand-logo span {
  font-family: 'Kaushan Script', cursive;
  font-size: 26px;
}

/* Hero */
#main-slide .item {
  position: relative;
}

#main-slide .hero-image {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
}

#main-slide .slider-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  color: #fff;
  padding: 36px 40px;
}

#main-slide .slider-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

#main-slide .slider-content .content-inner {
  position: relative;
  z-index: 1;
}

#main-slide h1 {
  font-size: 48px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
}

#main-slide p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

#main-slide .content-inner .btn {
  margin-bottom: 0;
}

/* Gallery */
.gallery-grid {
  padding-bottom: 40px;
}

.gallery-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid var(--brand-blue);
}

/* Description */
.call-to-action {
  background: var(--brand-blue);
  padding: 80px 0;
}

.mehr-erfahren p {
  padding-bottom: 20px;
  color: #fff;
  line-height: 26px;
  font-size: 15px;
}

.signature {
  max-width: 220px;
  margin: 20px 0;
  opacity: 0.9;
}

/* Partners */
.about-us-section-1 {
  padding: 80px 0;
  background: #f8f8f8;
}

.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.partner-tile,
a.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(16.666% - 12px);
  min-width: 120px;
  min-height: 72px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 14px 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.partner-tile:hover,
a.partner-tile:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.partner-tile__content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.partner-tile__logo {
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-width: 36px;
  max-height: 32px;
  object-fit: contain;
}

.partner-tile__label {
  display: block;
  line-height: 1.3;
  text-align: center;
}

.partner-tile--has-logo .partner-tile__label {
  text-align: left;
}

/* News / Reels */
.portfolio-section-1 {
  padding: 80px 0;
  background: #f4f6f8;
}

.story-rings {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.story-ring {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
  width: 92px;
}

.story-ring__avatar {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  transition: transform 0.2s;
}

.story-ring__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f4f6f8;
}

.story-ring__label {
  display: block;
  font-size: 11px;
  color: #666;
  line-height: 1.3;
}

.story-ring.is-active .story-ring__avatar,
.story-ring:hover .story-ring__avatar {
  transform: scale(1.05);
}

.story-ring.is-viewed .story-ring__avatar {
  background: #bbb;
}

.reels-viewer {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.reels-progress {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  gap: 4px;
}

.reels-progress__segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
}

.reels-progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}

.reels-progress__segment.is-done .reels-progress__fill {
  width: 100%;
  transition: none;
}

.reels-progress__segment.is-active .reels-progress__fill {
  width: 100%;
  transition: width linear;
}

.reels-header {
  position: absolute;
  top: 22px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.reels-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.reels-header__meta {
  flex: 1;
  line-height: 1.2;
}

.reels-header__meta strong {
  display: block;
  font-size: 13px;
  text-transform: none;
}

.reels-header__meta span {
  font-size: 11px;
  opacity: 0.85;
}

.reels-header__pause {
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.reels-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.reel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.reel-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.reel-slide img,
.reel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-ring__avatar video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-slide__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 80px 20px 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
}

.reel-slide__overlay h4 {
  margin: 0 0 8px;
  font-size: 20px;
  text-transform: none;
  font-weight: 600;
}

.reel-slide__overlay p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
}

.reels-tap {
  position: absolute;
  top: 60px;
  bottom: 0;
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reels-tap--prev {
  left: 0;
  width: 35%;
}

.reels-tap--next {
  right: 0;
  width: 65%;
}

.reels-viewer.is-paused .reels-progress__segment.is-active .reels-progress__fill {
  transition: none !important;
}

/* Contact */
.contact {
  background: url('../images/wohnstil/BgKontakt2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding: 80px 0 0;
  color: #fff;
}

.contact .section-title h3 {
  color: #fff;
}

.abstand {
  line-height: 26px;
}

.location-map {
  width: 50%;
  max-width: 500px;
  height: 320px;
  margin: 40px auto;
  display: block;
  border: 2px solid var(--brand-blue);
  border-radius: 4px;
}

.footer-contact-info h4 {
  color: #fff;
  margin-bottom: 20px;
  text-transform: none;
}

.footer-contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-info li {
  margin-bottom: 10px;
  color: #ccc;
}

footer.style-1 {
  margin-top: 60px;
  padding: 30px 0;
  border-top: 1px solid #444;
}

footer .copyright,
footer a {
  color: #aaa;
}

.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-social a {
  font-size: 20px;
}

.footer-link ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 40px;
  height: 40px;
  position: relative;
}

.dot1, .dot2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--brand-blue);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2s infinite ease-in-out;
}

.dot2 {
  animation-delay: -1s;
}

@keyframes sk-bounce {
  0%, 100% { transform: scale(0); }
  50% { transform: scale(1); }
}

@media (max-width: 991px) {
  .partner-tile {
    width: calc(25% - 12px);
  }

  #main-slide h1 {
    font-size: 32px;
  }

  .location-map {
    width: 80%;
  }

  .footer-link ul {
    text-align: center;
    margin-top: 15px;
  }
}

@media (max-width: 767px) {
  .partner-tile {
    width: calc(33.333% - 12px);
  }

  .navbar-default .nav > li > a {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
