/*
Theme Name:   PIA Corporate 2025
Theme URI:    https://barta2.com
Author:       Studio Barta
Author URI:   https://barta2.com
Description:  A custom theme for PIA Architekten GmbH.
Version:      3.0.LIVE
License:      GNU GPL v2+ & Proprietary EULA
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  corporate-theme
Tags:         custom-background, custom-logo, custom-menu, featured-images
*/

html {
  font-size: 10px; /* 1rem = 10px for easy mental math */
  background-color: var(--pia-theme-color, #fff);
}

html.home {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: #FFF;
  color: #fff;
  font-family: akzidenz-grotesk-next-conden, sans-serif !important;
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1.5;
}

body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  pointer-events: none;
  background: var(--pia-theme-color, #fff);
  z-index: 10000;
}

body::before {
  top: 0;
  height: env(safe-area-inset-top, 0);
}

body::after {
  bottom: 0;
  height: env(safe-area-inset-bottom, 0);
}

body.home::before,
body.home::after {
  display: none;
}

body.home {
  height: 100%;
  overflow: hidden;
  overflow-x: hidden;
}

body.home.admin-bar {
  overflow: auto;
}

body.home #primary.site-main {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
}

.gallery-view {
  padding-top: 150px;
  color: #000;
}

.gallery-view a,
.gallery-view h1,
.gallery-view h2,
.gallery-view h3,
.gallery-view h4,
.gallery-view h5,
.gallery-view h6,
.gallery-view p,
.gallery-view span,
.gallery-view li {
  color: #000;
}

p, .excerpt {
  font-family: akzidenz-grotesk-next-conden, sans-serif !important;
  font-weight: 100;
  font-size: inherit;
  line-height: inherit;
}

@media (min-width: 1024px) {
  body {
    font-size: 1.8rem;
  }
}

#simple-slider .overlay,
#simple-slider .overlay:link,
#simple-slider .overlay:visited,
#simple-slider .overlay:hover,
#simple-slider .overlay:active,
#simple-slider .overlay:focus {
  display: block;
  color: inherit;
  text-decoration: none;
}

#simple-slider .overlay:hover {
  text-decoration: none;
  color: inherit;
}

a {
  text-decoration: none !important;
}

h1, h2 {
  margin: 0 0 3.2rem;
  line-height: 1.1;
}

p, .submenu-item {
  margin: 0 0 1.6rem;
}

h1 {
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  font-weight: 300;
}

.submenu-item {
  font-size: 0.75em;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-weight: 100;
  color: #333;
}

.container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-column-gap: 2vw;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

.overlay-blur {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

#simple-slider .slide .overlay,
.menu-panel {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  padding-top: env(safe-area-inset-top, 0);
  z-index: 9999;
}
.site-header .header-inner {
  position: relative;
  height: 100%;
}

.site-logo {
  position: absolute;
  top: 50%;
  left: 25px;
  transform: translateY(-50%);
  max-height: 80px;
  width: auto;
  z-index: 110;
}

.menu-icon-container {
  position: absolute;
  top: 50%;
  right: 25px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 110;
}
.menu-icon-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

#simple-slider {
  --pia-viewport-chrome-offset: 0px;
  position: relative;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

@supports (height: 100lvh) {
  #simple-slider {
    --pia-viewport-chrome-offset: calc(100lvh - 100svh);
    height: 100lvh;
    min-height: 100lvh;
  }
}

#simple-slider .slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease;
  will-change: transform;
}

#simple-slider.is-animating .slide-media {
  filter: brightness(0.8);
}

#simple-slider .slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

#simple-slider .slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: translateZ(0);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter 0.8s ease;
}

#simple-slider .slide .overlay {
  position: absolute;
  bottom: calc(25px + env(safe-area-inset-bottom, 0) + var(--pia-viewport-chrome-offset));
  left: 25px;
  display: inline-block;
  padding: 1rem 1.5rem;
  max-width: 50%;
  z-index: 3;
}

#simple-slider .slide .overlay h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  text-decoration: none;
}

#simple-slider .slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}

@supports (height: 100svh) {
  #simple-slider .slider-arrow {
    top: 50svh;
  }
}

#simple-slider .slider-arrow-left {
  left: 5%;
}

#simple-slider .slider-arrow-right {
  right: 5%;
}

#simple-slider .slider-arrow:hover,
#simple-slider .slider-arrow:focus-visible {
  color: rgba(255, 255, 255, 1);
}

#simple-slider .slider-arrow:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 6px;
}

.hamburger-icon {
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.hamburger-icon .line-top,
.hamburger-icon .line-bottom {
  transform-origin: 33px 25px;
  transition: transform 0.3s ease-in-out;
}
.hamburger-icon.open .line-top {
  transform: translateY(13px) rotate(45deg);
}
.hamburger-icon.open .line-bottom {
  transform: translateY(-13px) rotate(-45deg);
}

.menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  padding-top: env(safe-area-inset-top, 0);
  display: none;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.1;
  color: #fff;
  z-index: 105;
}
.menu-panel.open {
  display: block;
  overflow-y: auto;
}

@media (max-width: 767px) {
  #simple-slider .slide .overlay {
    left: 16px;
    right: 16px;
    bottom: calc(45px + env(safe-area-inset-bottom, 0) + var(--pia-viewport-chrome-offset));
    max-width: none;
  }
}

@media (min-width: 768px) and (max-width: 1180px) and (hover: none) and (pointer: coarse) {
  #simple-slider .slide .overlay {
    bottom: calc(90px + env(safe-area-inset-bottom, 0) + var(--pia-viewport-chrome-offset));
  }
}

/* === ARTICLE GRID === */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 512px), 1fr));
  gap: 2rem;
  padding: 2rem;
}

@media (max-width: 512px) {
  .article-grid {
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
  }
}

/* === ARTICLE ITEM === */
.article-item {
  display: flex;
  flex-direction: column;
  text-align: left;
  color: inherit;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.article-item > * {
  min-width: 0;
}

h3 {
  padding-left: 2px;
  padding-right: 2px;
}

.article-overview {
  color: #000;
}

.overview-title {
  padding-top: 100px;
  padding-left: 20px;
}

/* === IMAGE === */
.article-image {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.article-image img {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  block-size: auto;
  min-inline-size: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.article-image img[width],
.article-image img[height] {
  width: 100% !important;
  height: auto !important;
}
.article-image img:hover {
  filter: grayscale(0%);
}

/* === TITLE === */
.article-title {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.4;
  color: #000;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* === FULLSCREEN MENU LAYOUT === */
.fullscreen-layout {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  box-sizing: border-box;
  font-family: "akzidenz-grotesk-next-conden", sans-serif;
  font-weight: 300;
  color: white;
}

/* === TOP SECTION WITH 12-COLUMN GRID === */
/* === UPDATED === */
.fullscreen-layout .top-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* === INDIVIDUAL COLUMN LISTS ON ODD COLUMNS === */
/* === UPDATED === */
.fullscreen-layout .top-columns {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.fullscreen-layout .top-columns:nth-of-type(1) {
  grid-column-start: 1;
}
.fullscreen-layout .top-columns:nth-of-type(2) {
  grid-column-start: 5;
}
.fullscreen-layout .top-columns:nth-of-type(3) {
  grid-column-start: 9;
}
.fullscreen-layout .top-columns li {
  font-size: 5rem;
  color: white;
  list-style: none;
  margin: 0.3rem 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .fullscreen-layout .top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .fullscreen-layout .top-columns {
    grid-column: auto;
    width: 100%;
  }
  .fullscreen-layout .top-columns li {
    margin: 0.5rem 0;
  }
}

/* === FLEX BOX INFO === */
.tag-box {
  padding: 1.5em;
  background: #c3ff00;
  border: 1px solid #ddd;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.tag-box-inner h4 {
  margin-bottom: 0.5em;
  font-size: 1.1em;
  font-weight: bold;
}

.tag-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0;
}

.tag-list li a {
  background: #eee;
  padding: 0.4em 0.75em;
  border-radius: 20px;
  font-size: 0.85em;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}
.tag-list li a:hover {
  background: #1ad5fc;
  color: white;
}

.info-box {
  padding: 1.5em;
  background: #fd823e;
  border: 1px solid #ccc;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.info-box-inner h4 {
  margin-bottom: 0.5em;
  font-size: 1.1em;
  font-weight: bold;
}

.info-box-inner p {
  font-size: 0.95em;
  color: #444;
  line-height: 1.5;
}

/* === CONTACT COLUMNS === */
/* === OPTIONAL: GRID VERSION === */
.contact-columns {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.contact-left {
  grid-column: 1 / span 5;
}

.contact-right {
  grid-column: 7 / span 5;
}

.contact-left a,
.contact-right a {
  color: white;
  text-decoration: none;
}

.social-links {
  margin-top: 0.5em;
  display: flex;
  gap: 1em;
}

@media (max-width: 600px) {
  .contact-columns {
    display: flex;
    flex-direction: column;
  }
  .contact-left,
  .contact-right {
    width: 100%;
  }
}

.office-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  margin-bottom: 1.5em;
}

.office-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.office-address,
.office-contact {
  width: 48%;
  font-size: 0.8em;
  line-height: 1;
}

.contact-extra {
  margin-top: 1em;
  padding: 0px;
}

.info-box {
  padding-top: 0px;
  padding-bottom: 0px;
}

.info-box-inner {
  width: 100%;
}

.tag-box {
  padding-top: 0px;
}

.contact-extra a {
  color: white;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5em;
}
.social-links {
  display: flex;
  gap: 1em;
}

.force-black {
  color: #000 !important;
}
.force-black a {
  color: #000 !important;
  text-decoration: underline;
}

/* SINGLE.PHP Max-width container for comfortable reading */
.max-width-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.fullscreen-layout .top-section {
  display: grid;
  gap: 2rem;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;

  /* Default to 1 column */
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .fullscreen-layout .top-section {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .fullscreen-layout .top-section {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Mobile: 1 column */
.article-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  grid-template-columns: 1fr; 
}

/* Tablet: 3 columns */
@media (min-width: 1100px) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr); 
  }
}

/* Desktop: 5 columns 
@media (min-width: 1900px) {
  .article-grid {
    grid-template-columns: repeat(5, 1fr); 
  }
}
*/

/* === FULLSCREEN MENU CONTAINER CENTERED === */
.fullscreen-overlay .menu-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  width: 100%;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* === MENU COLUMN (now just the <ul>) === */
.fullscreen-overlay .menu-column {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === MENU ITEMS === */
.fullscreen-overlay .menu-column li {
  font-size: 5rem;
  color: white;
  margin: 0.3rem 0;
}

.fullscreen-overlay .menu-column a {
  color: white;
  font-size: 5rem;
  font-weight: 700;
  font-style: italic;
  text-decoration: none;
}

/* === FULLSCREEN MENU SEARCH === */
.fullscreen-overlay .menu-search-form,
.fullscreen-overlay .menu-search-form .search-field,
.fullscreen-overlay .menu-search-form .search-submit {
  font-size: 5rem;
  font-weight: 700;
  font-style: italic;
  text-decoration: none;
}

/* Layout of search form */
.fullscreen-overlay .menu-search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Search field: square, white background, grey text */
.fullscreen-overlay .menu-search-form .search-field {
  padding: 0.75rem 1rem;
  border: 0px;
  background: #fff;
  color: #777;
  width: 300px; /* adjust as needed */
  outline: none;
  box-sizing: border-box;
}

/* Placeholder text ("Finden") */
.fullscreen-overlay .menu-search-form .search-field::placeholder {
  color: #ddd;
  opacity: 1;
}

/* Submit button: ONLY a white ">" */
.fullscreen-overlay .menu-search-form .search-submit {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 0;       /* hide any button text */
  line-height: 1;
  position: relative;
}

/* Show the ">" */
.fullscreen-overlay .menu-search-form .search-submit::after {
  content: ">";
  font-size: 5rem;     /* matches fullscreen menu item size */
  font-weight: 700;
  font-style: normal !important;
  color: #fff;         /* white arrow */
}

.fullscreen-overlay .menu-search-form {
  padding-left: 5rem;  /* shift text to the right to visually balance the arrow */
}

/* === BACKGROUND IMAGE BOX === */
.background-box {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 2rem auto;
  box-sizing: border-box;
  overflow: hidden;     
  display: flex;
  justify-content: center;
  align-items: center;
}

.background-box img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;   
}

/* === GALLERY CONTAINER === */
.gallery {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* === GALLERY ITEM === */
.gallery-item {
  max-width: 100%;
  box-sizing: border-box;
  flex: 1 1 300px; /* flexible width, but stays within max container */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* === GALLERY IMAGES === */
.gallery-item img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border: none;
  box-sizing: border-box;
}

/* === iOS / Safari normalisation for search === */

/* Reset default iOS look on the search input */
.fullscreen-overlay .menu-search-form .search-field {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

/* Hide default iOS search decorations (magnifier, clear “x”, etc.) */
.fullscreen-overlay .menu-search-form .search-field::-webkit-search-decoration,
.fullscreen-overlay .menu-search-form .search-field::-webkit-search-cancel-button,
.fullscreen-overlay .menu-search-form .search-field::-webkit-search-results-button,
.fullscreen-overlay .menu-search-form .search-field::-webkit-search-results-decoration {
  display: none;
}

/* Reset default iOS button styling so we only see our ">" */
.fullscreen-overlay .menu-search-form .search-submit {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  position: relative;
}

/* Keep the white ">" styling */
.fullscreen-overlay .menu-search-form .search-submit::after {
  content: ">";
  font-size: 5rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
}

.fullscreen-overlay .menu-search-form .search-submit:hover::after {
  opacity: 0.85;
}

/* Responsive video solution */
.mejs-container,
.wp-video,
.wp-video-shortcode {
    max-width: 100%;
    width: 100% !important;
}

/* Make WordPress videos truly full-width and responsive */
.wp-video,
.wp-block-video,
video.wp-video-shortcode {
    width: 100% !important;
    max-width: 100% !important;
}

.wp-video video,
.wp-block-video video,
video.wp-video-shortcode {
    width: 100% !important;
    height: auto !important;
    display: block;
}
