/*
 * custom.css — overrides for inline styles migrated from Kirby templates.
 * Loaded after bundle-min.css so these rules take precedence.
 */

/* Dark text colour used as inline style="color:#191723" throughout pages */
.text-dark {
  color: #191723;
}

/* White text colour used as inline style="color:#FFFFFF" on some pages */
.text-white {
  color: #FFFFFF;
}

/* Auto-hyphenation for headings in two-column section blocks.
   Works for DE (lang="de") and EN (lang="en") without manual shy-hyphens. */
.sektion h1,
.sektion h2 {
  hyphens: auto;
}

/* Soft edge fade for images on dark-background sections (#262529).
   A ::after overlay blends the image edges into the section background
   by painting a radial gradient from transparent (centre) to #262529 (edges). */
.section--color_dark figure {
  position: relative;
}

.section--color_dark figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 75% at 50% 50%, transparent 35%, #262529 80%);
  pointer-events: none;
}

/* Responsive side padding for shell__seite — prevents content from
   touching browser edges at viewport widths below the container max-width. */
@media (max-width: 1040px) {
  .shell__seite {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 600px) {
  .shell__seite {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Project filter bar */
.project-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 30px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 1.15rem;
  font-family: inherit;
  font-weight: bold;
  font-variant-caps: normal;
  text-transform: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-btn:hover {
  border-color: #fff;
  color: #fff;
}

.filter-btn--active {
  background: #fff;
  border-color: #fff;
  color: #191723 !important;
  -webkit-text-fill-color: #191723;
}

.grid__col--hidden {
  display: none;
}

/* Gradient overlay on dark feature cards to keep text readable over the image */
.feature--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(to bottom, rgba(26, 25, 30, 0.92) 0%, rgba(26, 25, 30, 0.6) 60%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.feature--dark .feature__content {
  z-index: 3;
}

/* Left indent matching .projekt__bild-text__text for meta columns in container__projektdetails.
   Used on scope-group to align the meta info column with the description text below. */
.projekt__spalte-einzug {
  padding-left: 3rem;
  box-sizing: border-box;
}

/* Side-by-side layout: image left, description text right (project detail pages).
   Uses a standalone flex container to avoid conflicts with the Kirby column__one/column__two
   absolute-positioning overlay system used in container__projektdetails. */
.projekt__bild-text {
  display: flex;
  align-items: flex-start;
  max-width: calc(98.4rem + 1.5rem * 2);
  padding: 0 1.5rem 6rem;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.projekt__bild-text__bild {
  flex: 0 0 50%;
  max-width: 50%;
}

.projekt__bild-text__bild figure {
  margin: 0;
  padding: 0;
}

.projekt__bild-text__bild img {
  width: 100%;
  display: block;
}

.projekt__bild-text__text {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 3rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .projekt__bild-text {
    flex-direction: column;
    padding: 0 1.5rem 3rem;
  }

  .projekt__bild-text__bild,
  .projekt__bild-text__text {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .projekt__bild-text__text {
    padding-left: 0;
    padding-top: 2rem;
  }
}

/* Kapitälchen (small caps) für Überschriften — ersetzt automatisches Uppercase aus bundle-min.css */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.buchstaben__uppercase {
  text-transform: none !important;
  font-variant: small-caps;
  font-variant-caps: small-caps;
  font-feature-settings: "smcp" 1;
}
