/* folkerteggen.com – 1:1 nach Portfoliobox (Werte aus pb4.out.front.css + Seiteneinstellungen) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body { -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; text-decoration: none; }
h1 { margin: 0; font-weight: 400; }

#frontApp { font-size: 16px; }
.Page, .MainMenu { font-family: 'Montserrat', sans-serif; color: #000; font-size: .9em; background-color: #fff; font-weight: 400; line-height: normal; }
.Page { position: relative; min-height: 100%; }

/* Menü „centered1“ */
.MainMenu { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0; width: 100%; }
.MainMenu .Logo { max-width: 90%; }
.Logo a { display: block; text-align: center; }
.Logo a:hover { color: #555; }
.MainMenuLinks { display: flex; flex-direction: row; align-items: center; justify-content: center; text-align: center; }
.MainMenuLinks a { display: block; margin: 0 .7em; white-space: nowrap; }
.MainMenuLinks a:hover, .MainMenuLinks a.active { text-decoration: underline; }
.hamburger { display: none; cursor: pointer; background: none; border: 0; font-size: inherit; color: rgba(55,100,3,1); padding: 10px; border-radius: 2px; margin-top: 1em; }
.hamburger span { display: block; width: 35px; height: 2px; background-color: currentColor; transition: .4s; }
.hamburger .bar2 { margin: 10px 0; }

/* Abschnitte */
.BlogSection { display: block; }
.Section { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; }
.Section > * { width: 100%; max-width: 100%; }
.Header { font-size: 1.8em; text-transform: uppercase; text-align: center; letter-spacing: .1em; }
.LongText { line-height: 1.8em; }
.LongText a { text-decoration: underline; }
.LongText a:hover { color: #999; }
.ShortText { line-height: normal; }
.Border { padding-bottom: 2em; border-top: 1px solid; width: 100%; }
.SocialMedia { display: flex; flex-direction: row; justify-content: center; align-items: center; }
.SocialMedia .icon { margin: 0 .6em; display: inline-flex; align-items: center; height: 1.22em; }
.SocialMedia .icon:first-child { margin-left: 0; }
.SocialMedia .icon:last-of-type { margin-right: 0; }
.SocialMedia .icon:hover { color: #999; }
.smIcon { width: .94em; height: .94em; fill: currentColor; }
.smIcon path { fill: #fff; }
.Button { cursor: pointer; font-family: inherit; color: inherit; border-radius: .2em; background: transparent; border: 1px solid; font-size: 1.1em; letter-spacing: .2em; text-transform: uppercase; padding: .9em 1.6em; }
.Button:hover { color: #555; }

/* Zwei / drei Spalten */
.twoColumns { flex-direction: row; justify-content: space-between; align-items: center; }
.twoColumns > .left, .twoColumns > .right { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50%; }
.threeColumns { flex-direction: row; justify-content: center; align-items: stretch; }
.twoColumns.slideshowleft > .right { width: 42%; }
.threeColumns > div { display: flex; flex-direction: column; justify-content: flex-start; flex: 1 1 0; width: auto; }
.threeColumns > .left { align-items: flex-start; }
.threeColumns > .center { align-items: center; flex: 0 0 auto; white-space: nowrap; }
.threeColumns > .right { align-items: flex-end; }
.threeColumns > div > * { width: auto; }

/* Cover */
.coverTemp { overflow: hidden; }
.coverTemp .SingleImageBg { position: absolute; z-index: 0; top: 0; left: 0; width: 100%; overflow: hidden; }
.theBgImgDiv { width: 100%; height: 100%; background-size: cover; background-position: center; }
.pbVideo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pbVideo iframe { position: absolute; top: 50%; left: 50%; border: 0; width: max(100%, calc(100vh * 16 / 9)); height: max(100%, calc(100vw * 9 / 16)); transform: translate(-50%, -50%); }

/* Galerie „random“ (Portfolio 1–3) */
.Gallery.random { display: grid; grid-template-columns: repeat(12, 1fr); grid-column-gap: 2vw; grid-row-gap: 1vw; }
.Gallery.random figure { margin: 0; grid-column-start: span 4; text-align: center; position: relative; }
.Gallery.random figure:nth-child(9n+1) { margin-bottom: 18%; }
.Gallery.random figure:nth-child(9n+2) { margin: 36% 12% 0 18%; }
.Gallery.random figure:nth-child(9n+3) { margin: 6% 0 0 0; }
.Gallery.random figure:nth-child(9n+4) { margin: 0 0 12% 0; grid-column-start: span 3; }
.Gallery.random figure:nth-child(9n+5) { margin: 14% 0; grid-column-start: span 5; }
.Gallery.random figure:nth-child(9n+6) { margin: 30% 0 15% 10%; grid-column-start: span 4; }
.Gallery.random figure:nth-child(9n+7) { margin: 24% 9% 20% 0; grid-column-start: span 5; }
.Gallery.random figure:nth-child(9n+8) { margin: 0 10% 0 4%; grid-column-start: span 4; }
.Gallery.random figure:nth-child(9n+9) { margin: 28% 0 0 0; grid-column-start: span 3; }
.Gallery.random figure:nth-last-child(-n+3) { margin-bottom: 0; }
.Gallery figure .imgWrapper { display: block; overflow: hidden; height: 100%; cursor: pointer; }
.Gallery.random figure .imgWrapper img { object-fit: contain; width: 100%; height: 100%; }

/* Hover „zoom-small“: Bild wächst langsam auf 120 % */
.zoom-small figure img { transition: transform 1.2s ease-out 0s; }
.zoom-small figure:hover img { transform: scale(1.2); }

/* Slideshow (About) */
.Slideshow { position: relative; width: 100%; height: 70vh; }
.Slideshow figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.Slideshow figure.active { opacity: 1; }
.Slideshow .imgWrapper { display: block; height: 100%; }
.Slideshow img { width: 100%; height: 100%; object-fit: contain; }
.Slideshow.cover img { object-fit: cover; }

/* Kontaktformular */
.Form { display: flex; flex-direction: column; width: 100%; --input-color: rgba(0,0,0,.1); }
.Form .inputWrapper { width: 100%; margin-bottom: 40px; position: relative; }
.Form input, .Form textarea { width: 100%; font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid #000; border-radius: 0; padding: .5em 0; outline: 0; font-size: .85em; line-height: 1.6; }
.Form textarea { resize: none; height: 2.6em; transition: height .5s cubic-bezier(.215,.61,.355,1); display: block; }
.Form textarea:focus { height: 6em; }
.Form label { position: absolute; top: 0; left: 0; width: 100%; transition: all .3s; pointer-events: none; font-size: .85em; line-height: 100%; padding: .5em 0; }
.Form input:focus + label, .Form input:not(:placeholder-shown) + label,
.Form textarea:focus + label, .Form textarea:not(:placeholder-shown) + label { top: -1.4em; font-size: .7em; opacity: .6; }
.Form .Button { font-size: 95%; width: fit-content; align-self: center; padding: .75em 1.3em; }

/* Blog */
.SectionNews { margin-left: auto; margin-right: auto; width: 83% !important; }
.Gallery.vertical { display: flex; flex-direction: column; align-items: center; }
.Gallery.vertical figure { margin: 0 0 2vw; width: 100%; }
.Gallery.vertical figure img { width: 100%; height: auto; }
.SectionNews figcaption { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.65em 0 0; }
.CaptionTitle { font-size: 1.2em; text-transform: uppercase; }
.CaptionTitle a:hover { text-decoration: underline; }
.CaptionSubTitle { margin-top: .1em; line-height: 1.5; }
.CaptionText { font-size: .9em; min-height: 5em; margin-top: .85em; }
.CaptionButton a { display: inline-block; border-radius: .2em; border: 1px solid; font-size: 1.1em; letter-spacing: .2em; text-transform: uppercase; padding: .7em 1.35em; }
.CaptionButton a:hover { color: #555; }
.BlogPost { display: flex; flex-direction: column; width: 80%; max-width: 1200px; margin: 3.5em auto; padding: 3.5em 0; border-bottom: 1px solid #dedede; }
.BlogCommentIcon { align-self: center; margin-top: 1.4em; font-size: 1.41em; display: flex; align-items: center; gap: .5em; }
.BlogCommentIcon a { display: inline-flex; opacity: .8; }
.BlogCommentIcon a:hover { opacity: 1; }
.BlogCommentIcon svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; }
.BlogCommentIcon .nrOfLikes { font-size: .7em; }
.BlogHeader { font-size: 1.8em; text-transform: uppercase; align-self: center; text-align: center; letter-spacing: .1em; color: rgba(65,117,5,1); }
.BlogDate { margin-top: .2em; align-self: center; }
.BlogText { margin: 2em 0; line-height: 1.8em; }
.BlogPost .Gallery.vertical figure { max-width: 100%; margin-bottom: 2em; }

/* Einblenden wie Portfoliobox „fade-in“ */
@keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }
.fade-in { opacity: 0; }
.fade-in.inView { opacity: 1; animation: fade-in 1.8s cubic-bezier(.215,.61,.355,1) .3s backwards; }

/* Lightbox „lb1“ */
.pbLightbox { position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; z-index: 6; display: flex; align-items: center; background-color: #fff; animation: fade-in .6s ease; }
.pbLightbox[hidden] { display: none; }
.pbLightbox .lightboxInner { position: relative; width: 100%; height: 90%; }
.pbLightbox figure { margin: 0; width: 100%; height: 100%; }
.pbLightbox .imgWrapper { display: block; height: 100%; }
.pbLightbox img { width: 100%; height: 100%; object-fit: contain; animation: fade-in .8s ease; }
.closeX { position: fixed; z-index: 3; opacity: .4; top: 6px; left: 8px; cursor: pointer; height: 30px; width: 30px; }
.closeX:hover { opacity: 1; }
.closeX::before, .closeX::after { position: absolute; content: ' '; height: 30px; width: 3px; background-color: currentColor; left: 15px; }
.closeX::before { transform: rotate(45deg); }
.closeX::after { transform: rotate(-45deg); }
.arrowContainer { height: 90%; width: 25%; position: absolute; left: 0; top: 10%; cursor: pointer; z-index: 3; opacity: .01; }
.arrowContainer.rightArrCon { left: auto; right: 0; }
.arrowContainer:hover { opacity: 1; }
.arrow { position: absolute; top: 47%; border: solid; border-width: 0 3px 3px 0; display: inline-block; padding: 10px; }
.arrow.leftArr { left: 40px; transform: rotate(135deg); }
.arrow.rightArr { right: 40px; transform: rotate(-45deg); }

/* Handy & Tablet (≤ 1000 px) */
@media only screen and (max-width: 1000px) {
  #frontApp { font-size: 17px; }
  .hamburger { display: block; }
  .MainMenuLinks { display: none; }
  .menu-open .MainMenuLinks { display: flex; position: fixed; inset: 0; z-index: 3; flex-direction: column; justify-content: center; background: #fff; opacity: .9 !important; animation: none !important; font-size: 130% !important; line-height: 180%; margin: 0 !important; padding: 5% 15%; }
  .menu-open .hamburger { position: fixed; top: 10px; right: 10px; z-index: 4; }
  .menu-open .hamburger .bar1 { transform: rotate(-45deg); }
  .menu-open .hamburger .bar2 { display: none; }
  .menu-open .hamburger .bar3 { transform: rotate(45deg) translateY(-1px) translateX(-1px); }
  .Gallery.random { display: block; width: 100% !important; }
  .Gallery.random figure { margin: 0 !important; margin-bottom: 2.5em !important; height: auto !important; }
  .Gallery.random figure:last-child { margin-bottom: 0 !important; }
  .twoColumns { display: block; }
  .twoColumns > .left, .twoColumns > .right { width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
  .twoColumns > .left { margin-bottom: 2em; }
  .twoColumns.slideshowleft > .left { margin-bottom: 1em; }
  .Logo a { line-height: 100%; }
  .Slideshow { height: auto !important; min-height: 35vh; }
  .threeColumns > .center { white-space: normal; }
  .footer1, .submenu4 { flex-direction: column; align-items: center; justify-content: center; }
  .footer1 > div, .submenu4 > div { align-items: center !important; text-align: center; flex: 0 0 auto; }
  .footer1 > .center, .submenu4 > .center { margin: 2em 0; }
  .footer1 .SocialMedia { align-self: center !important; }
  .arrowContainer { display: none; }
}
