/*
 Theme Name:   hrg
 Theme URI:    
 Description:  
 Author:       
 Author URI:   
 Template:     generatepress
 Version:      0.1
*/

/* THEME TWEAKS  */

/* Header padding with responsive clamp */
.site-header {
    padding-inline: clamp(1rem, 0.848rem + 0.758vw, 1.5rem);
}

/* Typography wrapping */
/* Balance headings and elements with `.balance` class */
:is(h1, h2, h3, h4, h5, h6),
.balance {
    text-wrap: balance;
}

/* Use pretty wrapping for body text elements */
p,
blockquote,
li {
    text-wrap: pretty;
}

/* Remove bottom margin from final paragraph */
p:last-child:last-of-type {
    margin-bottom: 0px;
}

/* UTILITIES */

/* Line Clamping */
.line-limit-3,
.line-limit-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-limit-3 {
    -webkit-line-clamp: 3;
}

.line-limit-2 {
    -webkit-line-clamp: 2;
}

/* Visually Hidden (accessible to screen readers) */
.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Smooth Transition Utility */
.transition {
    transition: all 0.25s ease-in-out;
}


/*  GP MENU ACCESSIBILITY TWEAKS */

#site-navigation ul.sub-menu {
    display: block;
}

#site-navigation li:hover .gp-icon svg {
    transform: rotate(180deg);
}

#site-navigation li:hover .sub-menu {
    visibility: visible;
}


/* 
   STRETCH LINK (from Bootstrap)
   Source: https://youtu.be/HBriBrnRlQE?si=DLiSXEiBHt6lw91l
   Note: Only use ONE link per card or this breaks!
*/

.stretch-link {
    position: relative;
}

.stretch-link a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.stretch-link a:is(:focus-visible)::after {
    outline: 2px solid;
}

.stretch-link a:is(:hover, :focus) {
    outline: none;
}

/*  CONTAINER WRAPPER */

.site-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-inline: auto;
}

/*  TYPOGRAPHY  */

/* Font Family Utilities */
.ff-body {
    font-family: var(--gp-font--body);
}

.ff-heading {
    font-family: var(--gp-font--headings);
}

/* Heading and utility class font assignment */
h1, h2, h3, h4, h5, h6,
[class^="fs-"] {
    font-family: var(--gp-font--headings);
}

.fs-p {
    font-family: var(--gp-font--body);
}
:root {
  --fluid-body-font-min: 1rem;
  --fluid-body-font-max: 1.125rem;
  --fluid-body-font: clamp(var(--fluid-body-font-min), 0.97rem + 0.129vw, var(--fluid-body-font-max));

  --h1-min-font: 1.536rem;
  --h1-max-font: 5rem;
  --fluid-h1-font: clamp(var(--h1-min-font), 0.352rem + 3.873vw, var(--h1-max-font));

  --h2-min-font: 1.375rem;
  --h2-max-font: 3.438rem;
  --fluid-h2-font: clamp(var(--h2-min-font), 0.874rem + 2.136vw, var(--h2-max-font));

  --fluid-h3-font: clamp(1.875rem, 1.7308rem + 0.641vw, 2.5rem);
}

.body {
  font-size: var(--fluid-body-font);
}

h1, .fs-h1 {
    font-size: var(--fluid-h1-font);
}

h2, .fs-h2 {
    font-size: var(--fluid-h2-font);
}
h2.head_2 {
  position: relative;
  
}
h2.head_2::before, h2.head_2_center::before {
  content: "";
  position: absolute;
  /* left: -16px;
  transform: translateY(-53%);*/
  width: 68px;
  height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='68' height='22' viewBox='-415.042 325.958 68 22' xml:space='preserve'><path fill='none' stroke='%23E30812' stroke-width='3' d='M-412.042 347.958v-19h65'/></svg>") no-repeat center;
  background-size: contain;
  margin-right: 8px; /* Abstand zur Headline */
  vertical-align: middle;
  
}
h2.head_2::before {
    transform: translate(-16px, -13px);
}
h2.head_2_center::before {
    transform: translate(-16px, -13px);
}
/* mobile */
@media (max-width: 768px) {
  h2.head_2::before, h2.head_2_center::before {
    content: "";
    position: absolute;
    /* left: -16px;
    transform: translateY(-53%);*/
    width: 50px;
    height: 18px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='50' height='18' viewBox='-415.042 325.958 68 22' xml:space='preserve'><path fill='none' stroke='%23E30812' stroke-width='3' d='M-412.042 347.958v-19h65'/></svg>") no-repeat center;
    background-size: contain;
    margin-right: 5px; /* Abstand zur Headline */
    vertical-align: middle;
    
  }
  h2.head_2::before {
      transform: translate(-10px, -9px);
  }
  h2.head_2_center::before {
      transform: translate(-10px, -9px);
  }
}


h3, .fs-h3 {
    font-size: var(--fluid-h3-font);
}

p, .fs-p {
    font-size: var(--fluid-body-font);
}

/* Navigation */

.pill {
  align-items: center;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-left-style: solid;
  border-left-width: 1px;
  border-right-style: solid;
  border-right-width: 1px;
  border-top-style: solid;
  border-top-width: 1px;
  color: var(--neutral-700);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease-in-out 0s;
  border-radius: 100vw;
  padding: .5em 1.5em;
}

a[href$=".pdf"] {
  position: relative;
  display: inline-block;
}

a[href$=".pdf"]::before {
  content: '';
  display: inline-block;
  width: 1em;              /* skaliert mit der Schrift */
  height: 1em;
  margin-right: 0.35em;
  vertical-align: middle;
  /* Icon-Farbe = Textfarbe */
  background-color: var(--brand-primary);
  -webkit-mask: no-repeat top / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'  viewBox='0 0 20 20'%3E%3C!--  --%3E%3Cpath fill='currentColor' d='M17.924 7.154h-.514l.027-1.89a.46.46 0 0 0-.12-.298L12.901.134A.4.4 0 0 0 12.618 0h-9.24a.8.8 0 0 0-.787.784v6.37h-.515c-.285 0-.56.118-.76.328A1.14 1.14 0 0 0 1 8.275v5.83c0 .618.482 1.12 1.076 1.12h.515v3.99A.8.8 0 0 0 3.38 20h13.278c.415 0 .78-.352.78-.784v-3.99h.487c.594 0 1.076-.503 1.076-1.122v-5.83c0-.296-.113-.582-.315-.792a1.05 1.05 0 0 0-.76-.328M3.95 1.378h6.956v4.577a.4.4 0 0 0 .11.277a.37.37 0 0 0 .267.115h4.759v.807H3.95zm0 17.244v-3.397h12.092v3.397zM12.291 1.52l.385.434l2.58 2.853l.143.173h-2.637q-.3 0-.378-.1q-.08-.098-.093-.313zM3 14.232v-6h1.918q1.09 0 1.42.09q.51.135.853.588q.343.451.343 1.168q0 .552-.198.93q-.198.375-.503.59a1.7 1.7 0 0 1-.62.285q-.428.086-1.239.086h-.779v2.263zm1.195-4.985v1.703h.654q.707 0 .945-.094a.79.79 0 0 0 .508-.762a.78.78 0 0 0-.19-.54a.82.82 0 0 0-.48-.266q-.213-.04-.86-.04zm4.04-1.015h2.184q.739 0 1.127.115q.52.155.892.552q.371.398.565.972q.195.576.194 1.418q0 .741-.182 1.277q-.223.655-.634 1.06q-.31.308-.84.48q-.395.126-1.057.126H8.235zM9.43 9.247v3.974h.892q.501 0 .723-.057q.291-.074.482-.25q.193-.176.313-.579q.121-.403.121-1.099t-.12-1.068a1.4 1.4 0 0 0-.34-.581a1.13 1.13 0 0 0-.553-.283q-.25-.057-.98-.057zm4.513 4.985v-6H18v1.015h-2.862v1.42h2.47v1.015h-2.47v2.55z'/%3E%3C/svg%3E");
          mask: no-repeat top / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'  viewBox='0 0 20 20'%3E%3C!--  --%3E%3Cpath fill='currentColor' d='M17.924 7.154h-.514l.027-1.89a.46.46 0 0 0-.12-.298L12.901.134A.4.4 0 0 0 12.618 0h-9.24a.8.8 0 0 0-.787.784v6.37h-.515c-.285 0-.56.118-.76.328A1.14 1.14 0 0 0 1 8.275v5.83c0 .618.482 1.12 1.076 1.12h.515v3.99A.8.8 0 0 0 3.38 20h13.278c.415 0 .78-.352.78-.784v-3.99h.487c.594 0 1.076-.503 1.076-1.122v-5.83c0-.296-.113-.582-.315-.792a1.05 1.05 0 0 0-.76-.328M3.95 1.378h6.956v4.577a.4.4 0 0 0 .11.277a.37.37 0 0 0 .267.115h4.759v.807H3.95zm0 17.244v-3.397h12.092v3.397zM12.291 1.52l.385.434l2.58 2.853l.143.173h-2.637q-.3 0-.378-.1q-.08-.098-.093-.313zM3 14.232v-6h1.918q1.09 0 1.42.09q.51.135.853.588q.343.451.343 1.168q0 .552-.198.93q-.198.375-.503.59a1.7 1.7 0 0 1-.62.285q-.428.086-1.239.086h-.779v2.263zm1.195-4.985v1.703h.654q.707 0 .945-.094a.79.79 0 0 0 .508-.762a.78.78 0 0 0-.19-.54a.82.82 0 0 0-.48-.266q-.213-.04-.86-.04zm4.04-1.015h2.184q.739 0 1.127.115q.52.155.892.552q.371.398.565.972q.195.576.194 1.418q0 .741-.182 1.277q-.223.655-.634 1.06q-.31.308-.84.48q-.395.126-1.057.126H8.235zM9.43 9.247v3.974h.892q.501 0 .723-.057q.291-.074.482-.25q.193-.176.313-.579q.121-.403.121-1.099t-.12-1.068a1.4 1.4 0 0 0-.34-.581a1.13 1.13 0 0 0-.553-.283q-.25-.057-.98-.057zm4.513 4.985v-6H18v1.015h-2.862v1.42h2.47v1.015h-2.47v2.55z'/%3E%3C/svg%3E");
  margin-bottom: 5px;}


.pill-nav-btn:is(:hover, :focus) .pill-nav-count {
  background-color: #BF080E;
  color: var(--neutral-0);
  transition: all 0.3s ease-in-out 0s;
}

.navigation-list li {
  list-style: none !important;
}

ul:not(#menu-hauptmenue) {
  margin: 0em ;
}

/* Seite Kontakt hover style */
.akko-nav-link {
    cursor: pointer;
}
.teammitglied {
    position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
@media (min-width: 765px) {
  .teammitglied.highlighted { 
    box-shadow: 0px 10px 30px 5px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px); /* leicht nach oben, für Tiefenwirkung */
    z-index: 2; /* optional, damit es nicht verdeckt wird */
  }
}
/*
.teammitglied.highlighted::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 20px solid red;     
  border-bottom: 20px solid transparent; 
}
*/
.kontakt-head {
position: relative;
}
.teammitglied.highlighted .kontakt-head::before {
  content: "";
  position: absolute;
  left: -16px;
  transform: translateY(-43%);
  width: 68px;
  height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='68' height='22' viewBox='-415.042 325.958 68 22' xml:space='preserve'><path fill='none' stroke='%23E30812' stroke-width='3' d='M-412.042 347.958v-19h65'/></svg>") no-repeat center;
    background-size: auto;
  background-size: contain;
  margin-right: 8px;
  vertical-align: middle;
}
@media (max-width: 765px) {
  .teammitglied.highlighted .kontakt-head::before {
    left: -12px;
  }
}

.tabelle-parken tbody, .tabelle-parken tr, .tabelle-parken table {
  border: 0px solid transparent !important;
}
.tabelle-parken td {
  border-bottom: 1px dashed #CBCBCB !important;
  border-top: 0px solid transparent !important;
  border-left: 0px solid transparent !important;
  border-right: 0px solid transparent !important;
  padding-left: 0px !important;
}
.tabelle-parken table {
  border-bottom: 1px dashed #CBCBCB !important;
  margin-bottom: 10px !important;
}

/* Swiper Slider "Ueber uns" */
.swiper-navigation {
  display: flex!important;
  justify-content: flex-end!important;
  gap: 10px; /* Abstand zwischen den Buttons */
  margin-top: 15px; /* Abstand zum Slider */
}

/* Buttons anpassen */
.mySwiperAbout {
    padding-bottom: 50px !important;
}
.swiper-button-prev,
.swiper-button-next {
  position: static !important;/* Positionierung zurücksetzen */
  width: 47px !important;
  height: 47px !important;
  color: #000; /* oder deine Wunschfarbe */
  cursor: pointer;
}

/* Optional: Icons anpassen (z.B. größer machen) */
/* Grundsätzlich die Swiper-eigenen Einstellungen überschreiben */
.swiper-button-prev::after,
.swiper-button-next::after {
  content: "" !important;
  font-family: none !important; /* swiper-icons deaktivieren */
  font-size: 0 !important; /* verhindert evtl. Überlagerungen */
  line-height: 0;
  text-transform: none;
  letter-spacing: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 47px !important;
  height: 47px !important;
  display: inline-block;
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Linker Pfeil (dein SVG) */
.swiper-button-prev::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='47px' height='47px' viewBox='-6.5 5.5 47 47' xml:space='preserve'><g transform='translate(17.838 14.75) rotate(180)'><line fill='none' stroke='%23000' stroke-width='2' x1='-7.375' y1='-14.25' x2='9.049' y2='-14.25'/><path fill='none' stroke='%23000' stroke-width='2' d='M2.028-21.271L9.05-14.25L2.028-7.229'/></g><circle fill='none' stroke='%23000' stroke-width='2' cx='17' cy='29' r='22.5'/></svg>");
}

/* Rechter Pfeil (dein SVG) */
.swiper-button-next::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='47px' height='47px' viewBox='-6.5 5.5 47 47' xml:space='preserve'><g transform='translate(17.838 14.75) rotate(180)'><line fill='none' stroke='%23000' stroke-width='2' x1='9.05' y1='-14.25' x2='-7.374' y2='-14.25'/><path fill='none' stroke='%23000' stroke-width='2' d='M-0.352-7.229l-7.022-7.021l7.022-7.021'/></g><circle fill='none' stroke='%23000' stroke-width='2' cx='17' cy='29' r='22.5'/></svg>");
}

/* Optional: Layout (nebeneinander unter dem Slider) */
.swiper-navigation {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}
.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
  opacity: 0.6;
}
.swiper-pagination {
  position: relative !important;
  padding-top: 30px;
}
.swiper-pagination-bullet {
  background: #fff !important;
  border: 1px solid #000;
  width: 18px !important;
  height: 18px !important;
  opacity: 1 !important;
}
.swiper-pagination-bullet-active {
  opacity: var(--swiper-pagination-bullet-opacity, 1);
  background: #000 !important;
}
/* Swiper Problem wenn er in einem Container mit display:grid steckt: https://stackoverflow.com/questions/61373563/swiper-nested-inside-displaygrid-css Lösung: min-width: 0v*/

/* ---- isotope ---- */
.pill-nav-btn, .btn-reset {
  cursor: pointer;
}
.pill-nav-btn.is-checked {
  background-color: var(--brand-primary);
  color: var(--neutral-0);
}
.pill-nav-btn.is-checked .pill-nav-count {
  background-color: #BF080E;
  color: var(--neutral-0);
}
@media (min-width: 765px) {
  .grid, .grid-2 {
    /*
    margin-left: -20px;
    */
  }
}

/* clear fix */
.grid:after, .grid-2:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- .element-item ---- */
@media (min-width: 765px) {
  .element-item {
    position: relative;
    float: left;
    width: 370px;
    /*
    margin-left:20px;
    */
  }
}
.element-item {
/*
    margin-bottom: 20px;
    */
}
  .element-item > * {
    margin: 0;
    padding: 0;
  }

.element-item .symbol {
  position: absolute;
  left: 10px;
  top: 0px;
  font-size: 42px;
  font-weight: bold;
  color: white;
}

.element-item .number {
  position: absolute;
  right: 8px;
  top: 5px;
}

.element-item .weight {
  position: absolute;
  left: 10px;
  top: 76px;
  font-size: 12px;
}
#special-filters .Ja .an {
  background-color: var(--brand-primary);
}
#special-filters .Ja.choice .an {
  background-color: white;
}
#special-filters .Ja.choice .aus {
  background-color: var(--brand-primary);
}

/* Accordion-Inhalt überlagert den restlichen Content */
.gb-accordion__item {
  position: relative; 
  z-index: 10;
}

.akko_content {
  position: absolute;
  top: 100%; 
  left: 0;
  width: 100%;
  background: #fff; 
  box-shadow: 0 12px 15px rgba(0, 0, 0, 0.15); 
  z-index: 999; 
}

/* Übergang für ein sanftes Ein- und Ausklappen */
.akko_content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Wenn geöffnet */
.gb-accordion__item.gb-accordion__item-open .akko_content {
  max-height: 500px; 
  opacity: 1;
  overflow: visible;
}
.akko_content_text {
  margin-top: 0em !important;
}
.akko_content_text p {
  cursor: pointer;
}



/* Footer */
.site-footer .head_2::before {
  content: "";
  position: absolute;
  /* left: -16px;
  transform: translateY(-53%);*/
  width: 68px;
  height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='68' height='22' viewBox='-415.042 325.958 68 22' xml:space='preserve'><path fill='none' stroke='%23E30812' stroke-width='3' d='M-412.042 347.958v-19h65'/></svg>") no-repeat center;
  background-size: contain;
  margin-right: 8px; /* Abstand zur Headline */
  vertical-align: middle;
  
}
.site-footer .head_2::before {
    transform: translate(-16px, -13px);
}
.site-footer .head_2_center::before {
    transform: translate(-16px, -13px);
}
/* Footer Nav Hover */
.footer_nav1:has(a:hover) a:not(:hover) {
  opacity: .5;
}
.footer_nav2:has(a:hover) a:not(:hover) {
  opacity: .5;
}

.footer_nav1 li a, .footer_nav2 li a {
  line-height: 28px !important;
}
.footer_nav1 ul, .footer_nav2 ul {
  gap:0;
}
.footer-nav-grid nav ul {
  margin-left: 0 !important;
}

.wp-block-navigation-item__content {
  position: relative;
  padding-right: 20px; 
  transition: color 0.3s ease;
}
.wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 15px;
  height: 12px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2215%22%20height%3D%2212%22%20viewBox%3D%22-9.588%205.909%2013%2010%22%3E%3Cpath%20d%3D%22M-2.588%2C6.409l5%2C4.501l-5%2C4.499%22%20fill%3D%22none%22%20stroke%3D%22white%22/%3E%3Cline%20x1%3D%222.412%22%20y1%3D%2210.909%22%20x2%3D%22-9.588%22%20y2%3D%2210.909%22%20fill%3D%22none%22%20stroke%3D%22white%22/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.wp-block-navigation-item__content:hover::after {
  transform: translateY(-50%) translateX(3px); 
  opacity: 1;
}
.wp-block-navigation-item__content span {
  transition: color 0.3s ease; 
}
.wp-block-navigation-item__content:hover span {
  color: #fff; 
}
@media (max-width: 1080px) {
  .site-footer .section-d {
    padding-left: 30px;
    padding-right: 30px;
  }
  .footer-wrapper {
    grid-template-columns: 1fr !important;
    row-gap: 20px;
  }
}
.btn-light .gb-shape, .teaser-btn .gb-shape, .teaser-btn-immo .gb-shape {
  transition: transform 0.3s ease;
}
.btn-light:hover .gb-shape, .teaser-btn:hover .gb-shape, .teaser-btn-immo:hover .gb-shape  {
  transform: translateX(3px);
}
/* Button "mehr erfahren" entfernen, wenn ImmoScout Link */
.teaser-text-wrapper:has(.teaser-btn-immo) .teaser-btn {
  display: none;
}

.wp-block-list {
  margin-left: 20px !important;
}
.wp-block-list li {
  margin-bottom: 10px !important;
}
/* 3 Bilder oben auf den Sigle Immobilien und Parkhausseite */
@media (max-width: 768px) {
    .single_img_header .single_header_image:nth-child(2),
    .single_img_header .single_header_image:nth-child(3) {
        display: none;
    }
}
.teaser-img, .teaser-img-wohn {
  object-fit: cover;
  object-position: center;
}
.teaser-img-wohn {
  height: 243px;
}
.teaser-card {
  margin-bottom: 50px;
}

.img370 {
    width:370px !important;
    height: 370px !important;
}