/*
Theme Name: Büro Friedland – Enfold Child
Description: Technisches Enfold-Child-Theme für lokale Pluto-Sans-Webfonts. Gestaltung und Seitenaufbau werden über Enfold und den Avia Layout Builder administriert.
Version: 1.1.2
Author: Büro Friedland
Template: enfold
Text Domain: buero-friedland
*/

/*
 * Büro Friedland – Enfold Child CSS
 * Bereinigt und konsolidiert: 14.09.2026
 */

/* =========================================================
   Variablen
   ========================================================= */

:root {
  --bf-muted: #707070;
  --bf-paper: #ffffff;
  --bf-mist: #f3f6f6;
  --bf-line: #333333;
  --bf-blue: #90c5d9;
  --bf-ink: #333333;
  --bf-grey: #ededed;

  --bf-link-icon-size: 1.5em;
  --bf-link-icon-gap: 0.5em;

  --bf-corner-left: 49.6%;
  --bf-corner-text-gap: 10px;

  --bf-round-link-size: 58px;
  --bf-arrow-circle-color: var(--bf-paper, #ffffff);
  --bf-arrow-hover-color: var(--bf-mist, #f3f6f6);
  --bf-arrow-symbol-color: var(--bf-blue, #90c5d9);

  /* Ausgangsrichtung der zentralen Pfeilform: nach unten. */
  --bf-arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 540 540'%3E%3Cpath d='M242.13 132.5h55.29v177.8l58.96-61.27 38.22 36.4-125.74 122.07-123.45-120.7 38.69-37.77 58.04 62.19V132.5Z'/%3E%3C/svg%3E");
}

/* =========================================================
   Grundtypografie
   ========================================================= */

/* Pluto Sans Light – Standardschrift */
@font-face {
  font-family: "Pluto Sans";
  src:
    url("assets/fonts/PlutoSansLight.woff") format("woff");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

/* Pluto Sans Bold */
@font-face {
  font-family: "Pluto Sans";
  src:
    url("assets/fonts/PlutoSansBold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

html body,
html body p,
html body li,
html body input,
html body textarea,
html body select,
html body button,
html body .avia_textblock,
html body .main_menu a {
  color: var(--bf-ink);
  font-family: "Pluto Sans", sans-serif !important;
  font-weight: 300;
}

html body {
  font-size: 17px;
  line-height: 1.65;
}

/* Grundtypografie und Headlines: Pluto Sans Light */
#top h1,
#top h2,
#top h3,
#top h4,
#top h5,
#top h6,
#top .bf-kicker,
#top .bf-eyebrow,
#top .bf-section-heading > p {
  color: var(--bf-ink);
  font-family: "Pluto Sans", sans-serif !important;
  font-weight: 300 !important;
  text-transform: none !important;
  letter-spacing: normal;
}

/* Fett markierte Wörter: Pluto Sans Bold */
#top strong,
#top b,
#top .avia_textblock strong,
#top .avia_textblock b {
  font-family: "Pluto Sans", sans-serif !important;
  font-weight: 700 !important;
}

/* Kursiv markierte Wörter in Headlines erscheinen blau. */
#top h1 em,
#top h1 i,
#top h2 em,
#top h2 i,
#top h3 em,
#top h3 i,
#top h4 em,
#top h4 i,
#top h5 em,
#top h5 i,
#top h6 em,
#top h6 i {
  color: var(--bf-blue) !important;
  font-style: normal !important;
  font-weight: inherit;
}

.no-break-slashes {
  white-space: nowrap;
}

/* =========================================================
   Kontaktlinks mit vorangestellten Icons
   ========================================================= */

a[href^="tel:"]::before,
a[href^="mailto:"]::before,
a[href*="openstreetmap.org"]::before,
a.bf-map-link::before {
  content: "";
  display: inline-block;
  width: var(--bf-link-icon-size);
  height: var(--bf-link-icon-size);
  margin-right: var(--bf-link-icon-gap);
  background-color: currentColor;
  -webkit-mask-image: var(--bf-link-icon);
  mask-image: var(--bf-link-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: -0.15em;
}

a[href^="tel:"] {
  --bf-link-icon: url("assets/icons/phone.svg");
}

a[href^="mailto:"] {
  --bf-link-icon: url("assets/icons/mail.svg");
}

a[href*="openstreetmap.org"],
a.bf-map-link {
  --bf-link-icon: url("assets/icons/location.svg");
}

/* =========================================================
   Header und Navigation
   ========================================================= */

#header_main {
  border: 0;
}

#header .container {
  max-width: none;
  padding: 0 5vw;
}

#top #header .logo {
  top: 0 !important;
  left: 5vw !important;
  width: 100px !important;
  max-width: 100px !important;
  height: 60px !important;
  overflow: visible;
  transform: translateY(20px) !important;
}

#top #header .logo a {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 60px !important;
  overflow: visible;
}

#top #header .avia-menu-fx {
  display: none !important;
}

#top #header .avia-menu-text {
  position: relative;
  display: inline-block;
  line-height: 1.2;
}

#top #header .avia-menu-text::after {
  content: "";
  position: absolute;
  right: 0.12em;
  bottom: -4px;
  left: 0;
  height: 0;
  border-bottom: 2px dotted var(--bf-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

#top #header .av-main-nav > li > a:hover .avia-menu-text::after,
#top #header .av-main-nav > li > a:focus-visible .avia-menu-text::after,
#top #header .av-main-nav > li.bf-menu-active > a .avia-menu-text::after {
  transform: scaleX(1);
}

/* =========================================================
   Burger-Menü und Overlay
   ========================================================= */

@media only screen and (max-width: 1150px) {
  :root {
    /* Unabhängige Schriftgröße des Burger-Menüs */
    --bf-burger-font-size: clamp(1.4rem, 3vw, 1.8rem);

    /* Vertikaler Abstand zwischen den Menüpunkten */
    --bf-burger-item-gap: 0.25rem;

    /* Geschwindigkeit der Öffnungsanimation */
    --bf-burger-duration: 0.45s;
  }

  /* =======================================================
     Äußerer Overlay-Container
     ======================================================= */

  #top .av-burger-overlay {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;

    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /*
   * Enfolds separaten Overlay-Hintergrund ausblenden.
   * Die Hintergrundfarbe sitzt direkt auf dem bewegten Menü.
   */
  #top .av-burger-overlay-bg {
    display: none !important;
  }

  /* =======================================================
     Bewegung von oben nach unten
     ======================================================= */

  /*
   * Enfold bewegt beim Flyout-Menü dieses Element.
   * Deshalb werden Breite und Bewegungsrichtung hier
   * vollständig überschrieben.
   */
  html.html_av-overlay-side #top .av-burger-overlay-scroll,
  #top .av-burger-overlay-scroll {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;

    display: block !important;
    box-sizing: border-box;

    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    background: var(--bf-paper) !important;

    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;

    /*
     * Geschlossene Position:
     * vollständig oberhalb des Bildschirms.
     */
    transform: translate3d(0, -100%, 0) !important;
    transform-origin: top center !important;

    transition:
      transform var(--bf-burger-duration) ease,
      opacity 0.2s ease,
      visibility 0s linear var(--bf-burger-duration) !important;

    will-change: transform;
  }

  /* Overlay wird für die Animation freigegeben */
  html.av-burger-overlay-active
    #top .av-burger-overlay-scroll {
    visibility: visible;
    pointer-events: auto;
  }

  /*
   * Geöffnete Position:
   * Enfold setzt diese verzögerte Klasse beim Öffnen.
   */
  html.av-burger-overlay-active-delayed
    #top .av-burger-overlay-scroll,
  html.html_av-overlay-side.av-burger-overlay-active-delayed
    #top .av-burger-overlay-scroll {
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto;

    transform: translate3d(0, 0, 0) !important;

    transition:
      transform var(--bf-burger-duration) ease,
      opacity 0.2s ease,
      visibility 0s !important;
  }

  /* =======================================================
     Position der Menüpunkte
     ======================================================= */

  #top .av-burger-overlay-inner {
    display: block !important;
    box-sizing: border-box;

    width: 100% !important;
    min-height: 100% !important;

    /*
     * 100px Abstand vom oberen Bildschirmrand.
     * 5vw sind die seitlichen Sicherheitsabstände.
     */
    padding: 100px 5vw 40px !important;

    vertical-align: top !important;
    text-align: center !important;
  }

  /* Tatsächliche Enfold-Menüliste */
  #top #av-burger-menu-ul,
  #top .av-burger-overlay-ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: var(--bf-burger-item-gap);

    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;
    vertical-align: top !important;
  }

  /* Jeder Listenpunkt besitzt die gesamte Breite */
  #top #av-burger-menu-ul > li,
  #top .av-burger-overlay-ul > li {
    display: block !important;

    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    text-align: center !important;
  }

  /*
   * Der Link ist nur so breit wie der Text und wird
   * über margin:auto horizontal zentriert.
   */
  #top #av-burger-menu-ul > li > a,
  #top .av-burger-overlay-ul > li > a {
    position: relative;
    display: block !important;

    width: fit-content !important;
    max-width: 100%;
    margin: 0 auto !important;
    padding: 0.5em 0 !important;

    color: var(--bf-ink) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    font-family: "pluto-sans-custom", sans-serif !important;
    font-size: var(--bf-burger-font-size) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;

    text-align: center !important;
    text-decoration: none !important;
  }

  /* Inneren Enfold-Menütext neutralisieren */
  #top #av-burger-menu-ul > li > a .avia-menu-text,
  #top .av-burger-overlay-ul > li > a .avia-menu-text {
    display: inline !important;

    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    font: inherit !important;
    text-align: center !important;
    text-decoration: none !important;
  }

  /* =======================================================
     Enfolds Hover- und Aktiv-Effekte entfernen
     ======================================================= */

  #top #av-burger-menu-ul > li:hover,
  #top #av-burger-menu-ul > li > a:hover,
  #top #av-burger-menu-ul > li > a:focus,
  #top #av-burger-menu-ul > li > a:active,
  #top #av-burger-menu-ul > li.current-menu-item > a,
  #top #av-burger-menu-ul > li.current_page_item > a,
  #top #av-burger-menu-ul > li.current-menu-ancestor > a,
  #top .av-burger-overlay-ul > li:hover,
  #top .av-burger-overlay-ul > li > a:hover,
  #top .av-burger-overlay-ul > li > a:focus,
  #top .av-burger-overlay-ul > li > a:active {
    color: var(--bf-ink) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }

  /*
   * Die Pseudoelement-Linie des normalen Hauptmenüs
   * im Burger-Overlay deaktivieren.
   */
  #top .av-burger-overlay .avia-menu-text::after {
    content: none !important;
    display: none !important;
  }

  /* Weitere Enfold-Menüeffekte ausblenden */
  #top .av-burger-overlay .avia-menu-fx,
  #top .av-burger-overlay .avia-arrow,
  #top .av-burger-overlay .avia-bullet {
    display: none !important;
  }

  /* =======================================================
     Eigene gepunktete Linie
     ======================================================= */

  #top #av-burger-menu-ul > li > a::after,
  #top .av-burger-overlay-ul > li > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.28em;
    left: 0;

    display: block;
    height: 0;

    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px dotted var(--bf-blue) !important;
    box-shadow: none !important;

    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
  }

  /* Linie bei Mouseover und Tastaturfokus */
  #top #av-burger-menu-ul > li > a:hover::after,
  #top #av-burger-menu-ul > li > a:focus-visible::after,
  #top .av-burger-overlay-ul > li > a:hover::after,
  #top .av-burger-overlay-ul > li > a:focus-visible::after {
    transform: scaleX(1);
  }

  /* Linie beim aktuellen beziehungsweise aktiven Menüpunkt */
  #top #av-burger-menu-ul > li.current-menu-item > a::after,
  #top #av-burger-menu-ul > li.current_page_item > a::after,
  #top #av-burger-menu-ul > li.current-menu-ancestor > a::after,
  #top #av-burger-menu-ul > li.bf-menu-active > a::after,
  #top #av-burger-menu-ul > li > a[aria-current="page"]::after,
  #top .av-burger-overlay-ul > li.current-menu-item > a::after,
  #top .av-burger-overlay-ul > li.current_page_item > a::after {
    transform: scaleX(1);
  }
}

/* =========================================================
   Hero
   ========================================================= */

#top .bf-hero {
  position: relative;
  height: auto !important;
  min-height: calc(60vh - 88px);
  overflow: hidden;
  background: var(--bf-paper);
}

#top .bf-hero .container {
  position: relative;
  z-index: 6;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box;
  height: calc(60vh - 88px) !important;
  min-height: calc(60vh - 88px) !important;
  padding: 40px 5vw !important;
}

#top .bf-hero .content {
  display: block !important;
  float: none !important;
  width: 100%;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#top .bf-hero .post-entry,
#top .bf-hero .entry-content-wrapper,
#top .bf-hero .flex_column,
#top .bf-hero .avia_textblock,
#top .bf-hero-inner {
  width: 100%;
}

#top .bf-hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  gap: 28px;
}

.bf-kicker,
.bf-eyebrow,
.bf-section-heading > p {
  color: var(--bf-line) !important;
  font-size: 0.78rem;
  letter-spacing: 0.17em !important;
  text-transform: uppercase !important;
}

#top .bf-hero h1 {
  max-width: 1100px;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.055em !important;
}

#top .bf-kicker + h1 {
  margin-top: 18px;
}

#top .bf-hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 0;
}

#top .bf-hero-bottom p {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.6;
}

/* Die helle Ecke verwendet dieselbe Grenze wie der Text. */
#top .bf-hero::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  background: var(--bf-blue) !important;
  clip-path: polygon(
    88% 0,
    100% 0,
    100% calc(100% - 70px),
    var(--bf-corner-left) calc(100% - 38px)
  );
  pointer-events: none;
}

/*
 * Lückenloser Übergang vom Hero zum Projektbereich.
 * Die Projektfarbe ragt als Schräge in den unteren Hero hinein.
 */
#top .bf-hero::after {
  content: "";
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: -1px;
  left: 0;

  width: 100%;
  height: 100px;

  background: var(--bf-mist);

  clip-path: polygon(
    0 68%,
    100% 5%,
    100% 100%,
    0 100%
  );

  pointer-events: none;
}

/* Desktop: sichere rechte Textgrenze vor dem linken Eckpunkt. */
@media only screen and (min-width: 801px) {
  #top .bf-hero .bf-kicker,
  #top .bf-hero .bf-eyebrow,
  #top .bf-hero h1 {
    max-width: min(
      1100px,
      calc(var(--bf-corner-left) - var(--bf-corner-text-gap))
    ) !important;
  }

  #top .bf-hero-bottom > p:first-child,
  #top .bf-hero-bottom .bf-hero-text {
    max-width: min(
      650px,
      calc(var(--bf-corner-left) - var(--bf-corner-text-gap))
    ) !important;
  }
}

/* =========================================================
   Runde Pfeil-Buttons
   ========================================================= */

#top a.bf-round-link {
  --bf-arrow-rotation: 0deg;
  position: relative;
  display: block !important;
  width: var(--bf-round-link-size, 58px) !important;
  height: var(--bf-round-link-size, 58px) !important;
  min-width: var(--bf-round-link-size, 58px);
  min-height: var(--bf-round-link-size, 58px);
  flex: 0 0 var(--bf-round-link-size, 58px);
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
  color: transparent !important;
  background-color: var(--bf-arrow-circle-color, #ffffff) !important;
  background-image: none !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

#top a.bf-round-link > svg,
#top a.bf-round-link > span,
#top a.bf-round-link > i {
  display: none !important;
}

html body #scroll-top-link {
  --bf-arrow-rotation: 180deg;
  display: block !important;
  width: var(--bf-round-link-size, 58px) !important;
  height: var(--bf-round-link-size, 58px) !important;
  min-width: var(--bf-round-link-size, 58px);
  min-height: var(--bf-round-link-size, 58px);
  padding: 0 !important;
  overflow: hidden;
  color: transparent !important;
  background-color: var(--bf-arrow-circle-color, #ffffff) !important;
  background-image: none !important;
  border: none !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;
  transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

html body #scroll-top-link > * {
  display: none !important;
}

#top a.bf-round-link::before,
html body #scroll-top-link::before {
  content: "" !important;
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  background-color: var(--bf-arrow-symbol-color, #90c5d9) !important;
  -webkit-mask-image: var(--bf-arrow-mask);
  mask-image: var(--bf-arrow-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  border: none !important;
  transform: rotate(var(--bf-arrow-rotation, 0deg));
  transform-origin: center;
}

#top a.bf-round-link::after,
html body #scroll-top-link::after {
  content: none !important;
  display: none !important;
}

#top a.bf-round-link.bf-arrow-down {
  --bf-arrow-rotation: 0deg;
}

#top a.bf-round-link.bf-arrow-up {
  --bf-arrow-rotation: 180deg;
}

#top a.bf-round-link.bf-arrow-right {
  --bf-arrow-rotation: -90deg;
}

#top a.bf-round-link.bf-arrow-left {
  --bf-arrow-rotation: 90deg;
}

#top a.bf-round-link:hover,
html body #scroll-top-link:hover {
  background-color: var(--bf-arrow-hover-color, #f3f6f6) !important;
}

#top a.bf-round-link.bf-arrow-down:hover {
  transform: translateY(3px);
}

#top a.bf-round-link.bf-arrow-up:hover,
html body #scroll-top-link:hover {
  transform: translateY(-3px);
}

#top a.bf-round-link.bf-arrow-right:hover {
  transform: translateX(3px);
}

#top a.bf-round-link.bf-arrow-left:hover {
  transform: translateX(-3px);
}

html body #scroll-top-link.avia_pop_class {
  opacity: 1 !important;
}

/* =========================================================
   Portfolio-Einzelseiten
   ========================================================= */

#top.single-portfolio .avia-post-nav {
  display: none !important;
}

#top.single-portfolio a.bf-portfolio-back {
  position: fixed !important;
  z-index: 1000;
  top: 50%;
  left: 28px;
  margin: 0 !important;
  transform: translateY(-50%) !important;
}

#top.single-portfolio a.bf-portfolio-back:hover,
#top.single-portfolio a.bf-portfolio-back:focus {
  transform: translateX(-3px) translateY(-50%) !important;
}

#top.single-portfolio .bf-portfolio-adjacent {
  clear: both;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 90%;
  max-width: 1310px;
  margin: 80px auto 0;
  padding: 50px 0 80px;
  column-gap: 60px;
  row-gap: 40px;
  border-top: 1px solid var(--bf-line, #dddddd);
}

#top.single-portfolio .bf-portfolio-nav-link {
  display: block;
  color: var(--bf-ink, #333333) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

#top.single-portfolio .bf-portfolio-nav-previous {
  grid-column: 1;
  text-align: left;
}

#top.single-portfolio .bf-portfolio-nav-next {
  grid-column: 2;
  text-align: right;
}

#top.single-portfolio .bf-portfolio-nav-label {
  display: block;
  margin-bottom: 10px;
  color: var(--bf-blue, #90c5d9);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#top.single-portfolio .bf-portfolio-nav-title {
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 400;
  line-height: 1.25;
}

#top.single-portfolio .bf-portfolio-nav-previous .bf-portfolio-nav-title,
#top.single-portfolio .bf-portfolio-nav-next .bf-portfolio-nav-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

#top.single-portfolio .bf-portfolio-nav-previous .bf-portfolio-nav-title::before,
#top.single-portfolio .bf-portfolio-nav-next .bf-portfolio-nav-title::after {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  flex: 0 0 0.75em;
  background-color: currentColor;
  -webkit-mask-image: var(--bf-arrow-mask);
  mask-image: var(--bf-arrow-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 190% 190%;
  mask-size: 190% 190%;
  transform-origin: center;
}

#top.single-portfolio .bf-portfolio-nav-previous .bf-portfolio-nav-title::before {
  transform: rotate(90deg);
}

#top.single-portfolio .bf-portfolio-nav-next .bf-portfolio-nav-title::after {
  transform: rotate(-90deg);
}

#top.single-portfolio .bf-portfolio-nav-link:hover,
#top.single-portfolio .bf-portfolio-nav-link:focus {
  color: var(--bf-blue, #90c5d9) !important;
}

/* Enfold-Standardnavigation außerhalb der Portfolio-Einzelseiten. */
#top .avia-post-nav {
  color: #ffffff !important;
  background: rgba(144, 197, 217, 0.5) !important;
}

#top .avia-post-nav:hover {
  color: #ffffff !important;
  background: rgba(144, 197, 217, 1) !important;
}

#top .avia-post-nav .entry-title {
  color: #ffffff !important;
}

/* =========================================================
   Abschnitte und Separatoren
   ========================================================= */

#top .bf-section.container_wrap {
  --bf-section-bg: var(--bf-paper);
  --bf-separator-top-bg: var(--bf-paper);
  --bf-separator-line-bg: var(--bf-paper);

  position: relative;
  overflow: hidden;

  background: var(--bf-section-bg) !important;

  border-top: 0 !important;
  border-top-width: 0 !important;
  border-top-color: transparent !important;
}

.bf-section .container {
  position: relative;
  z-index: 6;
  padding-top: 100px;
  padding-bottom: 80px;
}

/* Projekte: Abstand zwischen Schräge und Überschrift */
#top .bf-section.bf-projects .container {
  padding-top: 50px;
}

/* Gemeinsamer Aufbau aller oberen Schrägen */
#top .bf-section::before,
#top .bf-section::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;

  width: 100%;
  height: 100px;

  pointer-events: none;
}

/* Große obere Fläche – normalerweise Farbe des vorigen Abschnitts */
#top .bf-section::before {
  z-index: 4;

  background: var(--bf-separator-top-bg);

  clip-path: polygon(
    0 0,
    100% 0,
    100% 5%,
    0 68%
  );
}

/* Schmale diagonale Linie */
#top .bf-section::after {
  z-index: 5;

  background: var(--bf-separator-line-bg);

  clip-path: polygon(
    0 68%,
    100% 5%,
    100% 14%,
    0 77%
  );
}


/* =========================================================
   Farben der einzelnen Abschnitte
   ========================================================= */

/* Projekte */
#top .bf-section.bf-projects {
  --bf-section-bg: var(--bf-mist);
  --bf-separator-top-bg: var(--bf-mist);
  --bf-separator-line-bg: var(--bf-mist);

  margin-top: 0 !important;
}

/* Büro */
#top .bf-section.bf-studio {
  --bf-section-bg: var(--bf-paper);
  --bf-separator-top-bg: var(--bf-mist);
  --bf-separator-line-bg: var(--bf-paper);
}

/* Leistungen */
#top .bf-section.bf-services {
  --bf-section-bg: var(--bf-blue);
  --bf-separator-top-bg: var(--bf-paper);
  --bf-separator-line-bg: var(--bf-blue);
}

/* Kontakt */
#top .bf-section.bf-contact {
  --bf-section-bg: var(--bf-mist);
  --bf-separator-top-bg: var(--bf-blue);
  --bf-separator-line-bg: var(--bf-mist);
}

.bf-section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  margin-bottom: 50px;
}

.bf-section-heading h2,
.bf-studio h2,
.bf-contact h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.045em !important;
}

/* =========================================================
   Portfolio-Raster
   ========================================================= */

.bf-projects .grid-sort-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: auto !important;
  gap: 28px;
}

.bf-projects .grid-entry {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  padding: 0 !important;
}

.bf-projects .grid-entry .inner-entry {
  --bf-portfolio-text-height: 16%;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  overflow: hidden;
  background: var(--bf-grey);
  box-shadow: none !important;
}

.bf-projects .grid-image {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  aspect-ratio: auto;
  overflow: hidden;
  background: var(--bf-grey);
}

.bf-projects .grid-image img {
  display: block;
  width: 100%;
  height: calc(100% - var(--bf-portfolio-text-height));
  object-fit: contain;
  object-position: center center;
  transform: none !important;
}

.bf-projects .grid-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: var(--bf-portfolio-text-height);
  min-height: 0;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.75) !important;
  text-align: center;
  pointer-events: none;
}

.bf-projects .grid-content .avia-arrow,
.bf-projects .image-overlay .image-overlay-inside::before {
  content: none !important;
  display: none !important;
}

.bf-projects .image-overlay .image-overlay-inside {
  background: none !important;
}

.bf-projects .grid-entry-excerpt {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--bf-ink) !important;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-style: normal;
  font-weight: 300;
  line-height: 1.3;
  text-align: center;
}

.bf-projects .grid-entry-title {
  display: none;
}

/* =========================================================
   Leistungen
   ========================================================= */

/*
 * Weiß für sämtliche Inhalte der blauen Section.
 * Diese Regel funktioniert unabhängig davon, ob der Inhalt
 * als bf-service-list oder als normaler Avia-Textblock
 * ausgegeben wird.
 */
#top .bf-section.bf-services,
#top .bf-section.bf-services * {
  color: var(--bf-paper) !important;
}

/* Abschnittsüberschrift */
#top .bf-section.bf-services .bf-section-heading,
#top .bf-section.bf-services .bf-section-heading * {
  color: var(--bf-paper) !important;
}

/* Normaler Enfold-Textblock */
#top .bf-section.bf-services .avia_textblock,
#top .bf-section.bf-services .avia_textblock *,
#top .bf-section.bf-services p,
#top .bf-section.bf-services p * {
  color: var(--bf-paper) !important;
}

/* Strukturierte Leistungsliste */
#top .bf-services .bf-service-list {
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

#top .bf-services .bf-service {
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

#top .bf-services .bf-service > span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

#top .bf-services .bf-service h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
}

#top .bf-services .bf-service p {
  max-width: 480px;
  margin: 0;
  font-size: 0.95rem;
}

/* =========================================================
   Büro
   ========================================================= */

.bf-studio .flex_column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bf-studio .avia-image-container-inner,
.bf-studio img {
  width: 100%;
}

.bf-studio-copy h2 {
  margin: 25px 0 38px;
}

.bf-studio-copy .bf-lead {
  font-size: 1.25rem;
  line-height: 1.55;
}

.bf-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 25px;
  margin-top: 35px;
  border-top: 1px solid #dddddd;
}

.bf-names strong,
.bf-names span {
  display: block;
}

.bf-names span {
  color: var(--bf-muted);
  font-size: 0.83rem;
}

/* =========================================================
   Kontakt
   ========================================================= */

.bf-contact .container {
  max-width: none;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
}

.bf-contact .content {
  padding-bottom: 0;
}

.bf-contact .flex_column:first-child {
  margin-left: 0;
}

.bf-contact .avia-image-container,
.bf-contact .avia-image-container-inner,
.bf-contact .avia-image-container img {
  width: 100%;
  height: 100%;
}

.bf-contact .avia-image-container img {
  min-height: 620px;
  object-fit: cover;
}

.bf-contact-card {
  padding: 70px 6vw;
}

.bf-contact-card h2 {
  margin: 22px 0 40px;
}

.bf-contact-card a {
  color: #43788c;
}

.bf-text-link {
  display: inline-block;
  padding-bottom: 0;
  color: var(--bf-blue);
  text-decoration: none;
  border-bottom: 2px dotted #dddddd;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a.bf-text-link::after {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.25em;
  background-color: currentColor;
  -webkit-mask-image: var(--bf-arrow-mask);
  mask-image: var(--bf-arrow-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 190% 190%;
  mask-size: 190% 190%;
  vertical-align: 0.02em;
  transform: rotate(-135deg);
  transform-origin: center;
}

a.bf-text-link:hover,
a.bf-text-link:focus {
  color: var(--bf-blue);
  border-bottom-color: var(--bf-blue);
}

/* =========================================================
   Footer / Socket
   ========================================================= */

#socket {
  min-height: 90px;
  border: 0;
}

#socket .container {
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   Responsive: Desktop-Menü ab 1151px
   ========================================================= */

@media only screen and (min-width: 1151px) {
  #top #header .main_menu {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%);
  }
}

/* =========================================================
   Responsive: Tablet und kleiner bis 1150px
   ========================================================= */

@media only screen and (max-width: 1150px) {
  #top #header .main_menu {
    right: 5vw !important;
    left: auto !important;
    transform: none;
  }

  #top #header .av-main-nav > li:not(.av-burger-menu-main) {
    display: none !important;
  }

  #top #header .av-main-nav > li.av-burger-menu-main {
    display: block !important;
  }
}

/* =========================================================
   Responsive: Smartphone und schmales Tablet bis 800px
   ========================================================= */

@media only screen and (max-width: 800px) {
  html body {
    font-size: 16px;
  }

  /* Header und Logo */
  #top #header .logo {
    width: 240px !important;
    max-width: 240px !important;
  }

  #top #header .logo img,
  #top #header .logo svg {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Abschnittsabstände */
  #top .bf-section .container {
    padding: 80px 6vw 60px;
  }

  #top .bf-section.bf-projects .container {
    padding-top: 20px;
  }

  /* Hero */
  #top .bf-hero {
    --bf-hero-corner-mobile: var(--bf-paper);
    --bf-hero-transition-mobile: var(--bf-mist);

    height: auto !important;
    min-height: 250px !important;
  }

  #top .bf-hero .container {
    box-sizing: border-box;
    height: auto !important;
    min-height: 250px !important;
    padding: 40px 6vw !important;
  }

  #top .bf-hero-inner {
    width: 100% !important;
    gap: 18px;
  }

  #top .bf-hero .bf-kicker,
  #top .bf-hero .bf-eyebrow,
  #top .bf-hero h1 {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
  }

  #top .bf-hero h1 {
    margin: 0;
  }

  #top .bf-hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100% !important;
    gap: 18px;
  }

  #top .bf-hero-bottom > p:first-child,
  #top .bf-hero-bottom .bf-hero-text,
  #top .bf-hero-bottom p {
    line-height: 1.45;
	box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  #top .bf-hero-bottom .bf-round-link {
    align-self: flex-end;
    margin: 0 0 0 auto !important;
  }

  /* Mobile Hintergrundecke */
  #top .bf-hero::before {
    content: "";
    display: block;
    background: var(--bf-hero-corner-mobile) !important;

    clip-path: polygon(
      100% 38%,
      100% calc(100% - 47px),
      0 calc(100% - 6px)
    );
  }

  /* Schräge zum Projektbereich */
  #top .bf-hero::after {
    bottom: -1px;
    height: 65px;
    background: var(--bf-hero-transition-mobile) !important;

    clip-path: polygon(
      0 68%,
      100% 5%,
      100% 100%,
      0 100%
    );
  }

  /* Abschnittsseparatoren */
  #top .bf-section::before,
  #top .bf-section::after {
    height: 65px;
  }

  .bf-section-heading {
    display: block;
    margin-bottom: 50px;
  }

  .bf-section-heading > p {
    margin-bottom: 20px;
  }

  /* Portfolio */
  #top .bf-projects .grid-sort-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    gap: 60px;
    height: auto !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    overflow-anchor: none;
  }

  #top .bf-projects .grid-entry {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    translate: none !important;
    transition: none !important;
    animation: none !important;
    overflow-anchor: none;
  }

  #top .bf-projects .grid-entry .inner-entry {
    --bf-portfolio-text-height: 16%;

    position: relative !important;
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    transform: none !important;
    transition: none !important;
    background: var(--bf-mist);
  }

  #top .bf-projects .grid-image {
    position: absolute !important;
    z-index: 1;
    inset: 0 !important;
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    transform: none !important;
    transition: none !important;
    background: var(--bf-mist);
  }

  #top .bf-projects .grid-image img {
    display: block !important;
    width: 100% !important;
    height: calc(
      100% - var(--bf-portfolio-text-height)
    ) !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: contain;
    object-position: center;
    transform: none !important;
  }

  #top .bf-projects .grid-content {
    position: absolute !important;
    z-index: 2;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    box-sizing: border-box;
    width: 100% !important;
    height: var(--bf-portfolio-text-height) !important;
    min-height: 0 !important;
    transform: none !important;
    transition: none !important;
  }

  #top .bf-projects .grid-entry-excerpt {
    font-size: 1rem;
  }

  /* Leistungen */
  #top .bf-services .bf-service {
    grid-template-columns: 42px 1fr;
    gap: 1rem;
  }

  #top .bf-services .bf-service p {
    grid-column: 2;
  }

  /* Kontakt */
  #top .bf-contact .container {
    padding-right: 0;
    padding-left: 0;
  }

  #top .bf-contact .avia-image-container img {
    min-height: 360px;
  }

  /* Portfolio-Navigation */
  #top.single-portfolio a.bf-portfolio-back,
  html body #scroll-top-link {
    --bf-round-link-size: 46px;
  }

  #top.single-portfolio a.bf-portfolio-back {
    left: 0 !important;
  }

  html body #scroll-top-link {
    right: 0 !important;
  }

  #top.single-portfolio a.bf-portfolio-back:hover,
  #top.single-portfolio a.bf-portfolio-back:focus {
    transform: translateX(-2px) translateY(-50%) !important;
  }

  #top.single-portfolio .bf-portfolio-adjacent {
    grid-template-columns: 1fr;
    width: 88%;
    margin-top: 60px;
    padding: 40px 0 60px;
    row-gap: 35px;
  }

  #top.single-portfolio .bf-portfolio-nav-previous {
    grid-column: 1;
    grid-row: 1;
  }

  #top.single-portfolio .bf-portfolio-nav-next {
    grid-column: 1;
    grid-row: 2;
  }
}

/* =========================================================
   Portfolio mobil stabilisieren
   ========================================================= */

@media only screen and (max-width: 800px) {
  #top .bf-projects .grid-sort-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    gap: 60px;

    height: auto !important;

    /*
     * Enfolds Sortier- und Positionsanimationen
     * auf dem mobilen Raster deaktivieren.
     */
    transform: none !important;
    transition: none !important;
    animation: none !important;

    /*
     * Verhindert, dass der Browser beim Nachladen
     * den sichtbaren Ausschnitt nachjustiert.
     */
    overflow-anchor: none;
  }

  #top .bf-projects .grid-entry {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset: auto !important;

    display: block !important;
    box-sizing: border-box;

    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;
    translate: none !important;

    transition: none !important;
    animation: none !important;

    overflow-anchor: none;
  }

  /*
   * Der Platz für jede Kachel steht bereits fest,
   * bevor das Vorschaubild geladen wurde.
   */
  #top .bf-projects .grid-entry .inner-entry {
    --bf-portfolio-text-height: 16%;

    position: relative !important;
    display: block !important;
    box-sizing: border-box;

    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;
    transform: none !important;
    transition: none !important;

    background: var(--bf-mist);
  }

  /* Bildbereich besitzt von Anfang an eine feste Größe */
  #top .bf-projects .grid-image {
    position: absolute !important;
    z-index: 1;
    inset: 0 !important;

    display: block !important;
    box-sizing: border-box;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;
    transform: none !important;
    transition: none !important;

    background: var(--bf-mist);
  }

  #top .bf-projects .grid-image img {
    display: block !important;

    width: 100% !important;
    height: calc(
      100% - var(--bf-portfolio-text-height)
    ) !important;

    max-width: none !important;
    margin: 0 !important;

    object-fit: contain;
    object-position: center;

    transform: none !important;
  }

  /* Textbereich bleibt fest am unteren Kachelrand */
  #top .bf-projects .grid-content {
    position: absolute !important;
    z-index: 2;

    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    box-sizing: border-box;
    width: 100% !important;
    height: var(--bf-portfolio-text-height) !important;
    min-height: 0 !important;

    transform: none !important;
    transition: none !important;
  }
}