﻿/* Mobile-first base */
:root {
  --primary-color: #bbce2f;
  --secondary-color: rgb(19, 64, 118);
  --surface-color: #ffffff;
  --text-color: #111827;
  --nav-height: 72px;
  --page-gutter: 0.95rem;
  --main-footer-gap: 0.9rem;
  --home-hero-extra-height: 25px;
  --home-features-top: 14rem;
  --home-hero-bg-pos: 90%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

.main-content {
  flex: 1 0 auto;
  margin: 0;
  display: block;
  overflow: visible;
  min-height: 0;
  padding-bottom: 0;
}

body > main.main-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  display: flow-root;
}

body > main.main-content::after {
  content: "";
  display: block;
  width: 100%;
  height: var(--main-footer-gap);
}

body > main.main-content.no-footer-gap::after {
  display: none;
}

body > main.main-content > :last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body > main.main-content > :last-child > .container:last-child,
body > main.main-content > :last-child > .container-fluid:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.default-content {
  padding-top: calc(var(--nav-height) + 1.25rem) !important;
  
}

.hero-page {
  margin-top: calc(var(--nav-height) * -0.32);
}

/* Navbar */
.navbar {
  min-height: var(--nav-height);
  background: transparent;
  transition: background-color 0.2s ease;
}

.navbar.navbar-solid {
  background: transparent;
}

.navbar-brand .site-logo {
  width: auto;
  height: 96px;
  display: block;
}

.navbar .navbar-toggler {
  border-color: var(--secondary-color);
  padding: 0.35rem 0.55rem;
}

.navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem var(--secondary-color);
}

.navbar .navbar-collapse {
  margin-top: 0.7rem;
  padding: 0.35rem 0.45rem 0.65rem;
  background: rgba(19, 64, 118, 0.4);
  border-radius: 0.65rem;
}

.navbar .nav-link {
  color: #ffffff;
  font-weight: 600;
  padding: 0.7rem 0.8rem;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  margin: 0.1rem 0;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.navbar .nav-link.active {
  color: #ffffff;
  background: transparent;
}

.navbar .nav-link.active {
  border-bottom-color: var(--secondary-color);
}

.header-divider {
  width: 100%;
  height: 2px;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .hero {
  margin-bottom: 0;
  min-height: calc(100svh + var(--home-hero-extra-height));
}

.home .features {
  margin-top: 0;
  padding-top: var(--home-features-top);
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}


.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 1.8rem) var(--page-gutter) 2.25rem;
  color: #ffffff;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 7vw, 3.2rem);
  line-height: 1.15;
}

.hero-content p {
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  margin-bottom: 1.25rem;
}

.hero-content .hero-cta {
  width: 100%;
  max-width: 22rem;
}

.bg-home {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 100svh;
  background-color: #000;
}

.home .bg-home {
  background-position: center var(--home-hero-bg-pos);
}

.bg-fallback {
  background-image: url("../images/home_background.png");
}

/* Feature cards */
.feature-card {
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(19, 64, 118, 0.25);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(19, 64, 118, 0.35);
}

.feature-card i {
  color: var(--primary-color);
}

.feature-icon-svg {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  display: inline-block;
}

/* Kundenbewertungen */
.kundenbewertungen {
  background: #ffffff;
  color: #000000;
}

.bewertung {
  background-color: transparent;
  font-style: italic;
  margin-bottom: 0;
  padding-top: 0.15rem;
}

.blockquote {
  font-style: italic;
  margin-bottom: 0;
}

.reviews-header {
  margin-bottom: 0.5rem;
}

.reviews-meta {
  color: #1f2937;
  font-size: 0.95rem;
}

.review-card {
  height: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(19, 64, 118, 0.15);
  padding: 1rem 1.05rem;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(19, 64, 118, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.review-card p {
  margin: 0;
  font-style: italic;
}

.review-stars {
  color: var(--primary-color);
  letter-spacing: 0.08rem;
  font-size: 1.05rem;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
}

.review-source {
  font-weight: 600;
  color: var(--secondary-color);
}

.review-form-wrap {
  border-top: 1px solid rgba(19, 64, 118, 0.15);
  padding-top: 1.5rem;
}

.review-form {
  max-width: 680px;
  margin: 0 auto;
}

.review-hint {
  color: #374151;
  margin-bottom: 0.75rem;
}


/* Contact */
.contact-hero {
  min-height: 46svh;
  background-size: cover;
  background-position: center;
}

.contact-content {
  background: #ffffff;
  border-top: 2px solid var(--secondary-color);
}

.contact-details p {
  font-size: 1rem;
  color: #1f2937;
  margin-bottom: 0.85rem;
}

.contact-details i {
  width: 1.25rem;
  text-align: center;
}

.contact-content .form-control,
.contact-content .form-floating > label {
  font-size: 0.96rem;
}

.ratio-16x9 {
  margin-top: 1.15rem;
}

.ratio-16x9 iframe {
  width: 100% !important;
  height: 100% !important;
}

/* About */
.hero-about {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: #ffffff;
}

.hero-text {
  padding: calc(var(--nav-height) + 1.4rem) 1rem 1rem;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 8vw, 3rem);
  margin-bottom: 0.65rem;
}

.hero-text .lead {
  font-size: 1rem;
}

.hero-divider {
  width: calc(100% - 2rem);
  height: 2px;
  margin: 0 auto;
  background: var(--secondary-color);
}

.hero-image {
  min-height: 42svh;
  position: relative;
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-content {
  background: #fff;
  padding: 2rem 0;
}

.about-content .kirby-text p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #374151;
}

.about-intro {
  background: #ffffff;
  border-top: 2px solid var(--secondary-color);
}

.about-text {
  max-width: 920px;
  margin: 0 auto;
}

.about-text .lead {
  font-size: 1rem;
  line-height: 1.75;
  color: #1f2937;
}

/* Gallery */
.gallery-section {
  min-height: 100svh;
  padding: calc(var(--nav-height) + 1.1rem) 0 2.5rem;
  background:
    radial-gradient(circle at top right, rgba(23, 36, 216, 0.12), transparent 35%),
    linear-gradient(180deg, #070707 0%, #101010 100%);
}

.gallery-container {
  color: #f6f6f6;
}

.gallery-header {
  max-width: 740px;
  margin-bottom: 1.2rem;
}

.gallery-header h1 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.6rem, 7vw, 2.5rem);
}

.gallery-header p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.gallery-filter {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.gallery-filter:hover,
.gallery-filter.is-active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #111;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 0.7rem;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.65rem;
  background: #111;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.92), rgba(22, 22, 22, 0.95));
  color: #fff;
  min-height: 96px;
}

.gallery-card-body strong {
  font-size: 0.9rem;
  line-height: 1.35;
}

.gallery-caption-text {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.8rem;
  line-height: 1.4;
}

.gallery-caption-tags {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-empty-message {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.gallery-empty-state {
  max-width: 620px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  color: #f2f2f2;
}

.gallery-empty-state h2 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.gallery-empty-state p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

/* Footer */
.footer {
  background: #ffffff;
  color: #111827;
  padding: 0;
  width: 100%;
  flex-shrink: 0;
  margin: 0;
  border-top: 2px solid var(--secondary-color);
  box-shadow: none;
  font-size: 0.9rem;
}

body > footer.footer {
  margin-top: 0 !important;
}

.footer .footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0 0.65rem;
}

.footer p {
  margin: 0;
}

.footer-subtitle {
  font-size: 0.85rem;
}

.features .container,
.kundenbewertungen .container,
.contact-content .container,
.impressum-container,
.datenschutz-container {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.features h2,
.kundenbewertungen h2 {
  font-size: clamp(1.45rem, 6vw, 2rem);
}

.feature-card .card-body {
  padding: 1rem 0.95rem;
}

.feature-card h5 {
  font-size: 1.05rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-content .form-control,
.contact-content .form-select {
  min-height: 46px;
  font-size: 16px;
}

.contact-content .btn {
  min-height: 46px;
}

.contact-details strong {
  font-size: 0.96rem;
  font-weight: 600;
}

.gallery-filters {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.gallery-filter {
  flex: 0 0 auto;
  min-height: 40px;
}

.footer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

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

/* Impressum & Datenschutz */
.impressum-page,
.datenschutz-page {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(23, 36, 216, 0.12), transparent 35%),
    linear-gradient(180deg, #070707 0%, #101010 100%);
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.impressum-section,
.datenschutz-section {
  padding-top: calc(var(--nav-height) + 1.5rem) !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}

.impressum-container,
.datenschutz-container {
  max-width: 960px;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.impressum-header h1,
.datenschutz-header h1 {
  margin-bottom: 0.65rem;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(255, 255, 255, 0.5);
}

.impressum-intro,
.datenschutz-intro {
  margin: 0;
  color: #d1d5db;
  line-height: 1.6;
}

.impressum-card,
.datenschutz-card {
  background: #ffffff;
  border: 1px solid rgba(19, 64, 118, 0.14);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.24);
  padding: 1.1rem;
  color: #1f2937;
  margin-bottom: 0;
}

.impressum-page > .impressum-section:last-child,
.datenschutz-page > .datenschutz-section:last-child,
.impressum-page > .impressum-section:last-child > .impressum-container:last-child,
.datenschutz-page > .datenschutz-section:last-child > .datenschutz-container:last-child,
.impressum-page > .impressum-section:last-child .impressum-card:last-child,
.datenschutz-page > .datenschutz-section:last-child .datenschutz-card:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.impressum-card p:last-child,
.datenschutz-card p:last-child {
  margin-bottom: 0;
}

.impressum-card > :last-child,
.datenschutz-card > :last-child {
  margin-bottom: 0 !important;
}

.features,
.kundenbewertungen,
.contact-content,
.about-intro,
.gallery-section {
  margin-bottom: 0;
}

/* >= sm */
@media (min-width: 576px) {
  :root {
    --nav-height: 76px;
    --page-gutter: 1.15rem;
    --main-footer-gap: 1.1rem;
  }

  .hero-content .hero-cta {
    width: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 0.8rem;
  }

  .impressum-card,
  .datenschutz-card {
    padding: 1.3rem;
  }
}

/* >= md */
@media (min-width: 768px) {
  .navbar-brand .site-logo {
    height: 96px;
  }

  .navbar .navbar-collapse {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .navbar .nav-link {
    padding: 0.45rem 0.75rem;
    margin: 0 0.12rem;
  }

  .hero-content {
    padding-top: calc(var(--nav-height) + 2.8rem);
    padding-bottom: 3rem;
  }

  .hero-about {
    flex-direction: row;
  }

  .hero-text {
    flex: 0 0 42%;
    padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-divider {
    width: 2px;
    height: auto;
    margin: 0;
  }

  .hero-image {
    flex: 0 0 58%;
    min-height: auto;
  }

  .contact-hero {
    min-height: 52svh;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.9rem;
  }

  .footer .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .features .container,
  .kundenbewertungen .container,
  .contact-content .container,
  .impressum-container,
  .datenschutz-container {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
  }
}

/* <= md */
@media (max-width: 767.98px) {
  .navbar-brand .site-logo {
    height: 36px;
  }

  .navbar .navbar-nav {
    gap: 0.1rem;
  }

  .navbar .nav-link {
    padding: 0.72rem 0.82rem;
  }

  .hero .overlay {
    background: rgba(0, 0, 0, 0.42);
  }

  .hero-about {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-image {
    order: 1;
    height: 44svh;
    min-height: 44svh;
  }

  .hero-divider {
    order: 2;
    width: 100%;
    margin: 0;
  }

  .hero-text {
    order: 3;
    padding: 1.35rem var(--page-gutter) 1.8rem;
  }

  .hero-text h1 {
    margin-top: 0;
    margin-bottom: 0.6rem;
  }

  .hero-image .img-cover {
    height: 100%;
    min-height: 0;
    object-position: 35% 60%;
  }

  .about-text h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
}

/* >= lg */
@media (min-width: 992px) {
  .bg-home {
    background-attachment: fixed;
  }

  .hero-content {
    padding-top: calc(var(--nav-height) + 3.2rem);
  }
}
