/*=== SITE_HEADER ===*/

.site-header {
  grid-area: header;
  height: 8vh;
  width: 100%;
  border-bottom: var(--border-width-hairline) solid var(--border-color);
  position: fixed;
  background: var(--color-primary);
  z-index: 1000;
  padding-bottom: var(--space-xxxs);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 1rem;
}

/* Social Nav */

.social-list {
  height: 100%;
  list-style: none;
  display: flex;
  align-items: end;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.social-list img {
  height: 26px;
  width: auto;
}

.social-list a:hover {
  filter: brightness(1.2);
}

.social-list a:active {
  transform: translateY(1px);
}

.social-list a:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Responsive spacing */

@media (min-width: 992px) {
  .header-brand {
    display: block;
  }

  .h1-heading {
    display: none;
  }
}

.hero-section {
  min-width: 100%;
  height: 92vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  background-image: url("/assets/backgrounds/fb-bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-top: 8vh;
}

.hero-container {
  width: 100%;
}

.hero-container,
.hero-text-wrapper {
  width: 99%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-text-wrapper {
  background-color: black;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  opacity: 83%;
}

.hero-team-logo {
  width: 70%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.hero-h1 {
  color: var(--color-text-primary);
  text-align: center;
  font-size: 1.6rem;
}

.hero-lead {
  color: var(--color-accent);
  font-size: 1.3rem;
  text-align: center;
  margin-top: var(--space-xs);
}

.hero-button {
  width: 70%;
  height: 60px;
  background: var(--color-primary);
  color: var(--color-text-accent);
  font-size: 1.2rem;
  border: var(--border-width-hairline) solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-top: var(--space-lg);
}

.hero-button:hover {
  filter: brightness(1.3);
}

@media (min-width: 556px) {
  .hero-team-logo {
    width: 56%;
  }
}

@media (min-width: 768px) {
  .hero-team-logo {
    width: 46%;
  }
  .hero-text-wrapper {
    width: 82%;
  }
  .hero-h1 {
    font-size: 2.1rem;
  }
}

@media (min-width: 992px) {
  .hero-team-logo {
    width: 40%;
  }
  .hero-text-wrapper {
    width: 64%;
  }
  .hero-h1 {
    font-size: 2.5rem;
  }
  .hero-lead {
    font-size: 1.6rem;
  }
}

@media (min-width: 1200px) {
  .hero-team-logo {
    width: 30%;
  }
  .hero-h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1400px) {
  .hero-team-logo {
    width: 25%;
  }
  .hero-text-wrapper {
    width: 73%;
  }
  .hero-h1 {
    font-size: 3.7rem;
  }
}

@media (min-width: 1600px) {
  .hero-team-logo {
    width: 20%;
    margin-bottom: 4rem;
  }
  .hero-text-wrapper {
    width: 64%;
  }
  .hero-h1 {
    font-size: 3.4rem;
  }
}

/* === BLOG SECTION === */

.blog {
  margin: 0 auto;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.blog-header h2 {
  margin-bottom: 1rem;
  font-size: 1.9rem;
}

/* Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Cards */
.blog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.blog-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.08);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card-body {
  padding: 1rem;
}

.meta {
  font-size: 0.9rem;
  color: #6c757d;
}

.excerpt {
  margin: 0.5rem 0 0.75rem;
}

.read-more {
  background: none;
  border: 1px solid #0d6efd;
  color: #0d6efd;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* Artikel */
.blog-article {
  display: none;
  height: 100%;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 1.25rem;
  animation: slideFade 0.35s ease;
}

.blog-article img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.article-content {
  display: none;
}

.article-content.active {
  display: block;
}

.article-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}

.article-close {
  background: none;
  border: 0;
  font-weight: 600;
  margin-bottom: 1rem;
  cursor: pointer;
}

/* SINGLE BLOG PAGE */

.single-blog-container {
  min-height: 92vh;
  background-color: gainsboro;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.single-blog-h1 {
  color: black;
  text-align: center;
  margin-top: 8vh;
}

.single-blog-container,
.single-blog-content {
  display: flex;
  align-items: center;
  min-height: 92vh;
  justify-content: space-around;
  padding: var(--space-lg);
}

.single-blog-content {
  width: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.single-blog-content p {
  width: 100%;
  text-align: start;
}

.single-blog-last-line {
  margin-bottom: 7rem;
  border-bottom: var(--border-width-hairline) solid var(--border-color);
}

.single-blog-img {
  width: 30%;
  height: auto;
  border: var(--border-width-hairline) solid var(--border-color);
  margin-top: 8vh;
}

/* Desktop ≥ 768px */
@media (min-width: 768px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop ≥ 992px */
@media (min-width: 992px) {
  .blog-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .single-blog-container {
    flex-direction: row;
    align-items: start;
  }

  .single-blog-img {
    width: 20%;
    height: auto;
    border: var(--border-width-hairline) solid var(--border-color);
    margin-top: 16vh;
  }

  .single-blog-content p {
    width: 70%;
  }
}

/* Mobile */
@media (max-width: 1191px) {
  .blog-layout.article-open .blog-list {
    display: none;
  }

  .blog-layout.article-open .blog-article {
    display: block;
  }
}

/* Desktop ≥ 1200px */
@media (min-width: 1200px) {
  /* Default: 4 cards across full width */
  .blog-list {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Article open: 50 / 50 split */
  .blog-layout.article-open {
    grid-template-columns: 1fr 1fr;
  }

  .blog-layout.article-open .blog-list {
    grid-template-columns: 1fr;
  }

  .blog-layout.article-open .blog-article {
    display: block;
  }
}

/* Animation */
@keyframes slideFade {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================================================
  GALLERY SECTION
   ========================================================= */

.gallery-section {
  background-color: black;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.gallery-section-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.gallery-section-item {
  border: var(--border-width-hairline) solid var(--border-color);
  width: 100%;
}

/* Tablet */
@media (min-width: 600px) {
  .gallery-section-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Desktop */
@media (min-width: 900px) {
  .gallery-section-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop – 5 Bilder nebeneinander */
@media (min-width: 1200px) {
  .gallery-section-content {
    grid-template-columns: repeat(5, 1fr);
  }
}

.gallery-page-link {
  width: 100%;
  color: var(--color-text-secondary);
  text-align: center;
  font-size: var(--font-size-xl);
}

.gallery-section-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* =========================================================
   CONTACT SECTION – BASE
   ========================================================= */

.section-contact {
  border-bottom: none;
  background-image: url(/assets/backgrounds/section-bg.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.section-contact h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.section-contact .section-intro {
  max-width: 640px;
  opacity: 0.85;
}

/* =========================================================
   CONTACT CARDS – MOBILE FIRST
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 5rem;
  margin-top: 5rem;
}

/* =========================================================
   CARD BASE
   
   ========================================================= */
.contact-card {
  background-color: whitesmoke;
  width: 100%;
  border: var(--border-width-hairline) solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 6px 18px rgba(0, 0, 0, 0.06);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.contact-card:hover,
.contact-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.contact-card h3,
.contact-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  color: black;
}

/* Adresse */
.contact-card address {
  font-style: normal;
  line-height: 1.6;
}

/* Links */
.contact-card a {
  color: #0d6efd;
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  text-decoration: underline;
}

@media (min-width: 997px) {
  .section-contact {
    padding: 7rem;
  }

  .section-contact h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
  }
}

@media (min-width: 900px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-card {
    width: 30%; /* wie in deinem Original */
  }

  .contact-card:nth-child(2) {
    margin-left: 7rem; /* dein ursprünglicher Versatz */
  }
}

/* =========================================================
   HIGHLIGHT CARD
   ========================================================= */

.contact-card.highlight {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: #ffffff;
}

.contact-card.highlight a {
  color: #ffffff;
}

.contact-cta {
  margin-top: 1.25rem;
}

.cta-link {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  font-weight: 600;
}

.cta-link:hover,
.cta-link:focus-visible {
  background: rgba(255, 255, 255, 0.25);
}

/* =========================================================
   FOOTER – MOBILE FIRST (FIXED WIDTH ISSUE)
   ========================================================= */

.site-footer {
  width: 100%;
  background: var(--color-primary);
  color: #e9ecef;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  border-top: var(--border-width-hairline) solid var(--border-color);
}

/* =========================================================
   TOP AREA – FULL WIDTH
   ========================================================= */

.footer-top {
  width: 100%;
  padding: 2rem 1rem;

  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

/* Inner content width (zentriert, aber Footer bleibt full width) */
.footer-top > * {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* =========================================================
   FOOTER NAV
   ========================================================= */

.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.footer-links {
  list-style: disc;
  list-style-position: inside;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* =========================================================
   BRAND
   ========================================================= */

.footer-brand {
  display: flex;
  justify-content: center;
}

.footer-brand img {
  max-width: 160px;
  height: auto;
}

/* =========================================================
   PARTNERS – FULL WIDTH SECTION
   ========================================================= */

.footer-partners {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1rem;
}

.partner-list {
  max-width: 1400px;
  margin: 0 auto;
  list-style: none;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;

  padding: 0;
}

.partner-list img {
  max-height: 40px;
  opacity: 0.8;
  filter: grayscale(100%);
}

/* =========================================================
   BOTTOM – FULL WIDTH
   ========================================================= */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
  color: #adb5bd;
}

/* =========================================================
   ≥ 768px
   ========================================================= */

@media (min-width: 768px) {
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links {
    list-style-position: outside;
    padding-left: 1.25rem;
  }
}

/* =========================================================
   ≥ 992px – DESKTOP LAYOUT
   ========================================================= */

@media (min-width: 992px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 2fr;
    text-align: left;
    align-items: start;
  }

  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .social-list {
    justify-content: end;
  }
}

/* =========================================================
BANNER
   ========================================================= */

/* Cookie-/Datenschutzhinweis (ohne Speicherung) */
.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
}

.cookie-banner__inner {
  width: min(900px, 100%);
  border: var(--border-width-hairline, 1px) solid var(--color-border-accent, #b08d57);
  background: var(--color-black, #0b0b0b);
  color: var(--color-text, #e6e6e6);
  border-radius: var(--radius-lg, 14px);
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.cookie-banner__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  line-height: 1.2;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--color-link, #d6b56c);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cookie-banner__button {
  appearance: none;
  border: var(--border-width-hairline, 1px) solid var(--color-border-accent, #b08d57);
  background: var(--color-highlight, rgba(255, 255, 255, 0.06));
  color: inherit;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md, 10px);
  cursor: pointer;
}

.cookie-banner__button:focus-visible {
  outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, #d6b56c);
  outline-offset: var(--focus-ring-offset, 3px);
}

@media (min-width: 992px) {
  .cookie-banner {
    place-items: end end;
    padding: 1.25rem;
  }
}

/* Optional: Banner per JS ausblenden */
.cookie-banner.is-hidden {
  display: none !important;
}
