@import "fonts.css";
/* @import "print.css"; */


/* --------------------------------------------------------------------------------------------------- */


:root {
  --site-width: 1280px;
  --site-margin: 60px;
  --site-padding: 20px;
  --gallery-gap: 10px;
  --element-gap: 15px;

  /* --header-bg-color: hsla(220, 8%, 20%, 1);
  --footer-bg-color: hsla(220, 8%, 20%, 1); */

  --button-color: #505259;
  --golden: #9e8861; /* Susanne */
  --golden-20: hsla(38, 24%, 50%, .1);
  --link-color: #505259;
  --gum-red: #cc3300;

  --success-color: #cdff69;
  --error-color: var(--gum-red);

  --main-text-color: rgba(0, 10, 20, 0.7);

  --header-bg-color: hsla(228, 6%, 15%, 1);
  --header-bg-color: hsla(210, 60%, 35%, .15); /* 15 % von --link-color */
  --action-bar-bg-color: #f1f1f1;
  --footer-bg-color: #f1f1f1;

  --radius: .2rem;
  --text-gradient: linear-gradient(90deg, #17bed0, #4137cf 52.5%, #fa595d);
  --transition-time: 200ms;
}

/* ::before,
::after {
  content: '';
} */

html, body {
  margin: 0;
  padding: 0;
  /* height: 100%; */
  color: var(--main-text-color);
}

body {
  /* font: normal 17px/1.6 'Red Hat Display', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
  /*font-optical-sizing: auto; /* Quicksand */
  /* color: #282e36; */
  /* background: linear-gradient(135deg, hsla(200, 70%, 70%, 0.2) 0%, hsla(240, 70%, 70%, 0.2) 100%); */
  /* background: #f8f8f8; */
  /* overflow-x: hidden; */
  /* max-width: var(--site-width); */
  /* margin: 0 auto; */
  /* padding: var(--site-padding); */
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;
}

*, *:before, *:after {
  box-sizing: border-box;
  /* font-size: 18px; */
  font: normal clamp(1rem, 1.2vw, 1.15rem)/1.5 'Red Hat Display', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  /* font-size: clamp(1rem, 1.2vw, 1.1rem); */
  font-size: clamp(1rem, 1.1vw, 1.1rem);
}

/* p, li {
  font: normal clamp(.9rem, 1.1vw, 1rem)/1.5 'Roboto Slab', 'Red Hat Display', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
} */

/* --------------------------------------------------------------------------------------------------- */


.text-gradient {
  /* background-image: var(--text-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: rgba(0,0,0,0);
  width: fit-content; */
  color: var(--golden);
}


h1 {
  hyphens: auto;
  hyphenate-limit-chars: 8 3 3;
  hyphenate-limit-lines: 2; 
}

h1:first-of-type:not(.swiper h1) {
  font-size: 2.4em;
  font-size: 2.2em;
  line-height: 1.4;
  font-weight: 500;
  margin: 0;
  margin-bottom: calc(var(--site-padding) * 2);
  color: var(--golden);
}


/* --------------------------------------------------------------------------------------------------- */


/* Animierter Gold-Schimmer auf der Schrift */
.gold {
  /* text-shadow: 2px 2px 8px rgba(0,0,0,.3); */
  background: linear-gradient(45deg,
  rgba(186,148,62,1) 0%,
  hsl(41, 70%, 80%) 20%,
  rgba(186,148,62,1) 40%,
  rgb(255, 250, 216) 50%,
  rgba(186,148,62,1) 60%,
  hsl(41, 70%, 80%) 80%,
  rgba(186,148,62,1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;	
  animation: shine 12s infinite;
  background-size: 400%;
  background-position: +200%;
}

@keyframes shine {
  0% {background-position: +200%}
  100% {background-position: -200%}
}

/* --------------------------------------------------------------------------------------------------- */


a {
  color: var(--link-color);
  /* text-decoration: 2px solid underline; */
  text-decoration-thickness: 2px;
  text-decoration-style: solid;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2.5px;
  transition: all var(--transition-time);
}

a:hover {
  color: var(--main-text-color);
  text-decoration-color: var(--golden);
}

strong {
  font-weight: 600;
}

ul, ol {
  margin: 0;
  padding: 0;
}

ol li {
  margin-left: 1.5cap;
}

ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Anfang Liste innerhalb des Contents */
main ul {
  margin-left: 1rem;
}

main ul li {
  position: relative;
  /* margin: 0 0 1.5cap 0; */
  margin: 0 0 1cap 0;
}

main ul li::before {
  position: absolute;
  left: -1rem;
  color: var(--golden);
  font-weight: 600;
  content: '\2022'; /* Unicode Character „•“ */
  /* content: '\002b'; */
}

main em {
  font-style: italic;
  font-weight: 600;
  color: inherit;
}
/* Ende Liste innerhalb des Contents */

main h2 {
  color: var(--link-color);
}

main p + h2 {
  margin-top: 2rem;
}

main h2 + p {
  margin-top: 2rem;
}

p {
  margin: 0 0 2cap 0;
}

sup, sup *,
sub, sub * {
  font-size: 80%;
  font-weight: 600;
  line-height: 1;
}

h2 {
  font-size: 120%;
  margin-top: 0;
  font-weight: 700;
}

h2 strong,
h2 em {
  font-size: inherit;
  font-weight: inherit;
}

h3 {
  font-size: 110%;
  margin: 1.5rem 0 .5rem 0;
  margin: 0 0 1rem 0;
  font-weight: 600;
  color: var(--link-color)
}

/* h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
} */

/* body.home .columns > :last-child h3:first-child {
  margin-top: 0;
} */

.align_center {
  text-align: center;
}

.edit a em {
  color: var(--golden);
  transition: all var(--transition-time);
}

.edit a::before {
  display: inline-block;
  margin-right: .2rem;
  content: '\270E';
  font-size: 95%;
  rotate: 90deg;
}

/* --------------------------------------------------------------------------------------------------- */


header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.action-bar {
  width: 100%;
  background-color: var(--action-bar-bg-color);
  color: var(--link-color);
  text-align: center;
  padding: 40px 0;
  transition: all var(--transition-time);
}

.action-bar {
  position: relative; /* ::before */
}

.action-bar::before {
  position: absolute;
  top: -30px;
  top: -15px;
  left: 0;
  content: 'Scheffczyk';
  font-size: 15.2vw;
  font-weight: 600;
  line-height: 1;
  color: rgba(0,0,0,.02);
  text-transform: uppercase;
}

/* .action-bar * {
  font-weight: 600;
} */

/* .action-bar > ul {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: calc(var(--site-padding) / 2) var(--site-margin);
  display: flex;
  justify-content: space-between;
  justify-content: center;
} */

/* 3 gleichmäßige Spalten */
/* Durch justify-content: space-between automatische Aufteilung */
/* .action-bar > div > * {
  flex: 1 1 33.33333%;
} */

.action-bar a {
  /* display: block; */ /* Für Image-Version */
  color: var(--link-color);
  /* width: 100%; */ /* Für Image-Version */
  /*max-width: 360px;  /* Für altes Logo mit „Freie Künstlerein“ */
  /* max-width: 400px; */ /* Gilt für neues Image */
  margin: 0 auto;
  /*padding: 30px 0 40px 0; /* Ohne Logo-Unterzeile „Malerei & Objekte | Zeichnung & Installationen“ */
  /*padding: 40px 0 0 0; /* Für altes Logo mit „Freie Künstlerein“ */

  /* Klickbaren Bereich über ::before legen */
  position: relative;
  z-index: 1;

  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 1.1vw, 4.2rem);
  font-weight: 400;
  color: var(--golden);
}

.action-bar a:hover {
  letter-spacing: 3%;
}

.action-bar img {
  display: block;
  width: 100%;
  /* border: 1px solid red; */
}

.action-bar h3 {
  color: var(--main-text-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15rem;
  font-size: 70%;
  transition: font-size var(--transition-time);
}

.contact-phone::before,
.contact-fax::before,
.contact-smartphone::before,
.contact-email::before {
  content: '';
  position: relative;
  display: inline-block;
  /* filter: invert(69%) sepia(28%) saturate(514%) hue-rotate(2deg) brightness(95%) contrast(82%); */
  filter: invert(61%) sepia(6%) saturate(2091%) hue-rotate(360deg) brightness(89%) contrast(87%);
  width: 18px;
  height: 18px;
  transition: all var(--transition-time);
}

.contact-phone::before {
  top: 0.1rem;
  background: url('../images/icons/phone.svg') no-repeat center center / contain;
  margin-right: .5rem;
}

.contact-fax::before {
  top: 0.1rem;
  background: url('../images/icons/fax.svg') no-repeat center center / contain;
  margin-right: .5rem;
}

/* <a href="tel:+491724531151" class="contact-smartphone">0172 453 1151</a> */
.contact-smartphone::before {
  top: 0.15rem;
  background: url('../images/icons/smartphone.svg') no-repeat center center / contain;
  margin-right: .5rem;
}

.contact-email::before {
  top: 0.2rem;
  background: url('../images/icons/email.svg') no-repeat center center / contain;
  margin-right: .5rem;
}

/* footer .address a:hover::before,
.action-bar a:hover::before {
  filter: invert(100%) sepia(0%) saturate(1%) hue-rotate(282deg) brightness(105%) contrast(101%);
} */


/* --------------------------------------------------------------------------------------------------- */


@media all and (max-width: 959px) {

  .action-bar {
    padding: 20px 0;
    display: none;
  }

  .action-bar a {
    max-width: 300px;
  }

  .action-bar h3 {
    font-size: 50%;
  }

}

/* --------------------------------------------------------------------------------------------------- */


@media all and (max-width: 640px) {
  
  .action-bar {
    display: none;
  }

  .action-bar > ul {
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    padding: calc(var(--site-padding) / 2) var(--site-padding);
    display: flex;
    justify-content: space-between;
    flex-flow: column;
  }

}

/* --------------------------------------------------------------------------------------------------- */


.swiper {
  width: 100%;
  /* height: 560px; */
  aspect-ratio: 2 / .75;
  background-color: var(--header-bg-color); /* Gegen Blitzer an den Rändern */
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: no-repeat center bottom / cover;
  padding-bottom: calc(var(--site-padding) * 2);
}
  
.swiper-headline-wrapper {
  width: 100%;
  max-width: var(--site-width);
  padding: 0 var(--site-padding);
}

.swiper h1 {
  font-weight: 700;
  color: rgba(255,255,255, 0.9);
  display: inline;
  background-color: hsla(228, 10%, 20%, 0.9);
  padding: 0px 1rem 6px .8rem;
  line-height: 2.3cap;
  box-decoration-break: clone;
  border-radius: var(--radius);
  font-size: min(max(24px, 5vw), 40px) !important;
}

.swiper h1:empty {
  display: none;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--golden) !important;
}

/* --------------------------------------------------------------------------------------------------- */


@media (max-width: 959px) {

  .swiper {
    height: 320px;
  }
}

/* --------------------------------------------------------------------------------------------------- */


nav.main-navigation {
  /* position: sticky;
  top: 0; */
  display: flex;
  justify-content: center;
  /* background-color: #f8f8f8; */
  background-color: white;
  /* box-shadow: 0 1px 2px rgba(0,0,0,.2); */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
  /*Sub-Navigation über die Galerie legen */
  position: relative;
  z-index: 1000;
}

nav.main-navigation > ul {
  width: 100%;
  max-width: calc(var(--site-width) - calc(var(--site-padding) * 2));
  display: flex;
  /* justify-content: space-between; */
  /* justify-content: space-around; */
  justify-content: flex-end;
  /* border-bottom-left-radius: var(--radius); */
  /* border-bottom-right-radius: var(--radius); */
}

nav.main-navigation > ul li a {
  display: block;
  font-weight: 400;
  padding: var(--site-padding) calc(var(--site-padding) * 2);
  color: var(--main-text-color);
  white-space: nowrap !important;
}

nav.main-navigation > ul li.current_exhibition a {
  position: relative;
}

nav.main-navigation > ul li.current_exhibition a::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 10%;
  height: 70%;
  width: 80%;
  border: 1px solid var(--golden);
  border-radius: var(--radius);
  /* background-color: var(--golden-20); */
  /* color: white; */
}

nav.main-navigation > ul > li.current > a,
nav.main-navigation > ul > li > ul.sub-menu > li.current > a {
  font-weight: 600;
  /* text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2.5px; */
  max-width: fit-content;
  color: var(--golden);
}

/* nav.main-navigation > ul li.current a:hover {
  text-decoration-color: transparent;
} */

/* nav.main-navigation > ul li:first-child a {
  border-bottom-left-radius: var(--radius);
} */

/* nav.main-navigation > ul li:last-child a {
  border-bottom-right-radius: var(--radius);
} */

nav.main-navigation > ul li {
  position: relative;
}

nav.main-navigation > ul > li > ul.sub-menu {
  position: absolute;
  background-color: white;
  display: none;
}

nav.main-navigation > ul li:hover > ul {
  display: block;
}

nav.main-navigation > ul > li > ul.sub-menu > li > a {
  padding: calc(var(--site-padding) / 2) calc(var(--site-padding) * 2);
  /* padding: var(--site-padding) calc(var(--site-padding) * 2); */
}




.showhide {
  all: unset;
  min-width: 60px;
  height: 60px;
  /* An die Höhe der Navigationsbuttons angepasst */
  min-width: 64px;
  height: 64px;
  /* background: #9acd32; */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden; /* Verhindert kleine Artefakte beim Drehen */
  outline: none; /* Für saubereren Look, aber Barrierefreiheit beachten (z.B. mit :focus-visible nachschärfen) */
}

/* Grundstyling für alle Linien */
.showhide line {
  transition: all var(--transition-time); /* Weiche Animation für alle Änderungen */
}

/* === Animation zum Schließen-Kreuz (getriggert durch [aria-expanded="true"]) === */
.showhide[aria-expanded="true"] line {
  /*stroke: #9acd32; /* Gelbgrün */
  stroke: var(--golden);
}

/* Obere Linie: Dreht sich 45° nach rechts, Mittelpunkt ist transform-origin: 3px 6px */
.showhide[aria-expanded="true"] line:nth-child(1) {
  transform: rotate(45deg);
  transform-origin: 3px 6px;
}

/* Mittlere Linie: Wird unsichtbar und schiebt sich nach rechts */
.showhide[aria-expanded="true"] line:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

/* Untere Linie: Dreht sich 45° nach links, Mittelpunkt ist transform-origin: 3px 18px */
.showhide[aria-expanded="true"] line:nth-child(3) {
  transform: rotate(-45deg);
  transform-origin: 4px 18px;
}

/* --------------------------------------------------------------------------------------------------- */


@media (max-width: 959px) {

  nav.main-navigation {
    justify-content: flex-end;
    /* background: var(--action-bar-bg-color) url('../images/susanne-scheffczyk-logo2.png') no-repeat center 10px / 220px; */
    /* background: white; */
    /* filter: drop-shadow(0 1px 2px rgba(0,0,0,0)); */

    /* position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100; */
  }

  nav.main-navigation::after {
    /* content: 'Susanne Scheffczyk'; */
    content: 'Malerei · Grafiken · Mixed Media';
    position: absolute;
    bottom: 12px;
    left: calc(50% - 100px);
    font-size: 60%;
    font-weight: 600;
    color: black;
  }

  nav.main-navigation > ul {
    width: 100%;
    flex-flow: column;
    display: none;

    /* display: flex; 
    margin-top: -100%;
    transition: all var(--transition-time); */
  }
  
  nav.main-navigation > ul.is-open {
    display: flex; 
    margin-top: 0;
  }

  nav.main-navigation > ul > li > ul.sub-menu {
    display: block;
  }

  nav.main-navigation > ul li/*:not(:last-child)*/ {
    border-bottom: 1px solid rgba(0,0,0,.2);  
  }

  nav.main-navigation > ul li a {
    padding: var(--site-padding) calc(var(--site-padding) * 2);
    padding: var(--site-padding);
  }

  nav.main-navigation > ul > li > ul.sub-menu {
    position: relative;
    width: 100%;
  }

  nav.main-navigation > ul > li:last-child,
  nav.main-navigation > ul > li > ul.sub-menu li:last-child {
    border: none;
  }

  /* Höhe der Buttons im Submenü wieder an die der parents anpasssen */
  nav.main-navigation > ul > li > ul.sub-menu > li > a {
    padding: var(--site-padding) calc(var(--site-padding) * 2);
  }

  nav.main-navigation > ul li.current_exhibition a::after {
    top: 20%;
    left: 2%;
    height: 60%;
    width: 96%;
  }

}

/* --------------------------------------------------------------------------------------------------- */


@media (min-width: 960px) {

  .showhide {
    display: none;
  }

  nav.main-navigation > ul {
    display: flex;
    width: calc(100% - 100px);
  }

  nav.main-navigation > ul > li > ul.sub-menu > li:last-child > a {
    padding-bottom: calc(var(--site-padding) * 1.5);
  }

}

/* --------------------------------------------------------------------------------------------------- */


nav.breadcrumb-nav {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: var(--site-padding) var(--site-margin) 0 var(--site-margin);
}

/* --------------------------------------------------------------------------------------------------- */


@media (max-width: 959px) {
  nav.breadcrumb-nav {
    padding: var(--site-padding) var(--site-padding) calc(var(--site-padding) / 2) var(--site-padding);
  }
}

/* --------------------------------------------------------------------------------------------------- */


@media (min-width: 960px) {
  
  nav.main-navigation > .link-wrapper {
    display: none;
  }
  
}

/* --------------------------------------------------------------------------------------------------- */


@media (max-width: 959px) {

  /* header {
    position: relative;
  } */

  nav.main-navigation > .link-wrapper {
    display: block;
    margin: 0 auto;
    /* text-align: center; */
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 1.1vw, 2.5rem);
    font-weight: 400;
    color: var(--golden);
  }

  nav.main-navigation > ul {
    width: 100%;
    max-width: none;
  }
  
  nav.main-navigation > ul.is-open {
    position: absolute;
    top: 64px;
    /* top: 67px; */
    display: block;
    background-color: white;
    /* filter: drop-shadow(0 -1px 2px rgba(0,0,0,.2)); */
  }

}

/* --------------------------------------------------------------------------------------------------- */


@media (max-width: 319px) {
    nav.main-navigation > .link-wrapper {
    font-size: clamp(1.5rem, 1.1vw, 2rem);
  }
}

/* --------------------------------------------------------------------------------------------------- */


.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb > li {
  margin: 0 .5rem 0 0;
}

.breadcrumb > li + li::before {
  content: '/';
  margin-right: .5rem;
  color: var(--main-text-color);
}

.breadcrumb > li:last-child {
  color: var(--golden);
  font-weight: 600;
}

.breadcrumb > li > a {
  color: var(--main-text-color);
}

/* --------------------------------------------------------------------------------------------------- */


main {
  width: 100%;
}

main p:last-child {
  margin-bottom: 0;
  /* border: 1px solid greenyellow; */
}

main > .section-wrapper > .section-wrapper-content {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  /* padding: var(--site-margin) var(--site-padding) var(--site-margin) var(--site-padding); */
  padding: var(--site-margin);
  /* border: 1px solid red; */
}

/* body.home main > .section-wrapper > .section-wrapper-content {
  padding-top: calc(var(--site-margin) * 2);
} */

main > .section-wrapper > .section-wrapper-content ul,
main > .section-wrapper > .section-wrapper-content ol {
  margin-bottom: 2cap;
}

/* Call-to-Action Button auf der Startseite */
/*main > .section-wrapper > .section-wrapper-content*/ a.cta-btn {
  display: inline-block;
  background-color: var(--golden);
  color: white;
  padding: calc(var(--site-padding) / 2.2) calc(var(--site-padding) / 1.5) calc(var(--site-padding) / 2.2) calc(var(--site-padding) / 1.5);
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
}

/*main > .section-wrapper > .section-wrapper-content*/ a.cta-btn:hover {
  background-color: white;
  color: var(--main-text-color);
  border-color: var(--golden);
}

/* --------------------------------------------------------------------------------------------------- */


@media (max-width: 959px) {

  main > .section-wrapper > .section-wrapper-content {
    padding: var(--site-padding) var(--site-padding) var(--site-margin) var(--site-padding);
  }
  
}

/* --------------------------------------------------------------------------------------------------- */


.columns {
  display: flex;
  gap: var(--site-margin);
  justify-content: space-between;
}

.columns > *:first-child {
  flex-basis: 70%;
}

.columns > *:last-child {
  flex-basis: 30%;
  /* background-color: rgba(0, 0, 0, 0.05); */
}

/* Wenn nur EINE Spalte in .columns vorhanden ist: */
.columns > *:only-child {
  flex-basis: 100%;
  border-left: none !important;
  padding-left: 0 !important;
}

.columns img {
  display: block;
  width: 100%;
  max-width: 400px;
}

.columns.equal > *:first-child {
  flex-basis: 50%;
}

.columns.equal > *:last-child {
  flex-basis: 50%;
}

/* ----------------------------------------------- */


body.home .columns > *:first-child,
body.contact .columns > *:first-child {
  flex-basis: 60%;
}

body.home .columns > *:last-child,
body.contact .columns > *:last-child {
  flex-basis: 40%;
}

body.home .columns > *:first-child {
  flex-basis: 50%;
}

body.home .columns > *:last-child {
  flex-basis: 50%;
}

body.home img:not(.action-bar img) {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 3rem;
}

/* --------------------------------------------------------------------------------------------------- */


@media all and (max-width: 959px) {
  
  .columns {
    flex-flow: column;
    gap: calc(var(--site-margin) / 2);
  }

}

/* --------------------------------------------------------------------------------------------------- */


footer {
  background-color: var(--footer-bg-color);
  color: var(--main-text-color);
}

/* Content-Bereich */
footer > section {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  /* padding: var(--site-margin) var(--site-padding); */
  padding: var(--site-margin) var(--site-margin);
  display: flex;
  gap: 60px;
  /* border: 1px solid red; */
}

/* 3 gleichmäßige Spalten */
footer > section > * {
  flex: 1 1 33.33333%;
  /* border: 1px solid red; */
}

/* --------------------------------------------------------------------------------------------------- */


@media (max-width: 959px) {
  footer > section {
    padding: var(--site-margin) var(--site-padding) var(--site-margin) var(--site-padding);
  }
}

/* --------------------------------------------------------------------------------------------------- */


/* Abstand Linkliste zur Copyright-Zeile */
footer > section > nav > ul {
  margin-bottom: 2.27cap;
}

footer > section > nav .edit {
  margin-top: 2.27cap;
}

footer > section > * p:last-child {
  margin-bottom: 0;
}

footer > section > * a {
  /* color: var(--link-color); */
  color: var(--main-text-color);
}

footer > section > * a:hover {
  color: var(--golden);
  text-decoration-color: var(--golden);
}

footer + section.page-meta {
  display: flex;
  justify-content: center;
  gap: var(--element-gap);
  /* padding: 0 var(--site-padding); */
  padding: 0 var(--site-margin);
  background-color: var(--footer-bg-color);
  color: var(--main-text-color);
}

footer + section.page-meta * {
  font-size: .88rem;
}

.icon::before {
  content: '';
  position: relative;
  display: inline-block;
  top: .2rem;
  margin-right: .4rem;
  width: 18px;
  height: 18px;
  background: transparent no-repeat center center / cover;
  /* filter: invert(69%) sepia(28%) saturate(514%) hue-rotate(2deg) brightness(95%) contrast(82%); */
  filter: invert(61%) sepia(6%) saturate(2091%) hue-rotate(360deg) brightness(89%) contrast(87%);
  transition: filter var(--transition-time);
}

.icon:hover::before {
  /* filter: invert(100%) sepia(0%) saturate(1%) hue-rotate(282deg) brightness(105%) contrast(101%); */
  filter: invert(61%) sepia(6%) saturate(2091%) hue-rotate(360deg) brightness(89%) contrast(87%);
}

/* --------------------------------------------------------------------------------------------------- */


@media all and (max-width: 640px) {
  
  /* Content-Bereich: alles untereinander setzen */
  footer > section {
    flex-flow: column;
    gap: 0;
  }
  
  footer .address,
  footer > section > nav {
    margin-bottom: 2rem;
  }

  /* Spalten auf 100% setzen */
  footer > section > * {
    flex: 1 1 100%;
  }

  footer + section.page-meta {
    flex-flow: column;
    gap: 0;
  }
  
}

/* --------------------------------------------------------------------------------------------------- */


/* Container: Spaltenbasiertes Masonry-Grid */
.gallery-masonry {
  column-count: 4;
  column-gap: 1.5rem;
  width: 100%;
}

.child-pages-grid {
  margin-top: 2.5rem;
}


/* Galerie-Element */
.gallery-item {
  break-inside: avoid;
  margin: 0 0 1.5rem 0;
  position: relative;
  display: block;
  transition: all var(--transition-time);
}

.gallery-item:hover {
  scale: 1.02;
}

.gallery-item a {
  position: relative; /* Für roten Punkt */
  display: block;
  width: 100%;
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item figcaption {
  margin: 0.5rem 0 0 0; 
  font-size: 0.9rem;
  line-height: 1.4;
}

.gallery-item .art_title {
  color: var(--golden);
  font-weight: 600;
}

.gallery-item.sold img {
  /* opacity: 0.6; */
  /* filter: saturate(0); */
  opacity: 0.8;
  filter: saturate(0.5);
  transition: all var(--transition-time);
}

.gallery-item.sold:hover img {
  opacity: 1;
  filter: none;
}

.gallery-item.sold .art_title {
  position: relative; /* ::after */
  opacity: 0.8;
  color: var(--main-text-color);
}

/* .sold v1 */
/* .gallery-item.sold::after {
  content: 'Verkauft';
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ca4646;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
} */

/* .sold v2 */
/* .gallery-item.sold::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ca4646;
  width: 1.2rem;
  aspect-ratio: 1;
  border-radius: 50%;
} */

/* .sold v3 */
.gallery-item.sold a::after {
  content: '';
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: #c63838;
  /* background-image: radial-gradient(circle at 5% 5%, #e36363 0%, #ca4646 60%, #c44141 100%); */
  /* background-image: radial-gradient(circle at 5% 5%, hsla(0, 0%, 100%) 0%, transparent 100%); */
  background-image: radial-gradient(circle at 5% 5%, hsla(0, 0%, 100%, 0.3) 0%, hsla(0, 0%, 100%, 0) 100%);
  box-shadow: 0 2px 2px rgba(0,0,0,0.2);
  width: 1.2rem;
  aspect-ratio: 1;
  border-radius: 50%;
}

/* Hmmm... */
.gallery-item.sold .art_title::after {
  content: '(verkauft)'; 
  position: relative;
  color: #ca4646;
  font-weight: 400;
  margin-left: .5rem;
}

/* .child-pages-grid .child-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
} */

/* Fallback-Box, falls mal kein Bild gesetzt ist */
.card-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------------------------------- */


/* Tablet Querformat */
@media (max-width: 1024px) {
  .gallery-masonry {
    column-count: 3;
  }
}

/* --------------------------------------------------------------------------------------------------- */


/* Tablet Hochformat */
@media (max-width: 959px) {
  .gallery-masonry {
    column-count: 2;
  }
}

/* --------------------------------------------------------------------------------------------------- */


/* Smartphone */
@media (max-width: 480px) {
  .gallery-masonry {
    column-count: 1;
  }
}

/* --------------------------------------------------------------------------------------------------- */


/* Photoswipe (Galerie) */
.pswp__custom-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}
.pswp__custom-caption strong {
  color: #fff;
}

/* --------------------------------------------------------------------------------------------------- */


.pagination {
  margin: 3rem 0 0 0;
  display: flex;
  justify-content: center;
}

.pagination ul.pager {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.pagination ul.pager li {
  margin: 0;
  padding: 0;
}

.pagination ul.pager li::before {
  display: none;
}

.pagination .pager li a,
.pagination .pager li span {
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 0.5rem 1rem; */
  width: 48px;
  height: 48px;
  /* aspect-ratio: 1 !important; */
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  color: var(--main-text-color);
  line-height: 1;
}

.pagination .pager li.active span {
  background-color: var(--golden);
  color: white;
  border-color: var(--golden);
}

.pagination .pager li.unLink span {
  opacity: 0.4;
}

/* --------------------------------------------------------------------------------------------------- */


form#kontaktbox button:not(.showhide):not(.reset-btn):not(.mfp-arrow):not(.mfp-close),
form#kontaktbox input:not([type="checkbox"]),
form#kontaktbox textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.2);
  padding: 12px 16px;
  background-color: transparent;
  font-family: inherit;
  font-size: inherit;
  transition: all var(--transition-time);
}
  
form#kontaktbox button:not(.showhide):not(.reset-btn):not(.mfp-arrow):not(.mfp-close) {
  font-weight: 500;
  background-color: var(--button-color);
  color: white;
}
  
form#kontaktbox input:hover,
form#kontaktbox textarea:hover {
  background-color: white;
}

form#kontaktbox input,
form#kontaktbox textarea {
  outline: 1px solid transparent;
}

form#kontaktbox input:focus,
form#kontaktbox textarea:focus {
  outline: 1px solid var(--link-color);
  box-shadow: inset 0px 0px 4px rgba(0,0,0,.3);
}
  
form#kontaktbox button:not(.showhide):not(.mfp-arrow):not(.mfp-close):hover {
  cursor: pointer;
  background-color: hsla(227, 5%, 33%, 0.80);
}

form#kontaktbox {
  margin-bottom: var(--site-margin);
  border: 1px solid rgba(0,0,0,0.2);
  padding: 20px;
}

form#kontaktbox label {
  display: block;
  font-weight: 600;
  padding-left: 16px;
  margin-bottom: .2em;
}

form#kontaktbox em {
  color: var(--gum-red);
  font-weight: 600;
}

form#kontaktbox label {
  padding-left: 0;
  margin-bottom: var(--site-padding);
}

form#kontaktbox label #agb_read {
  margin-top: 0.5em;
  float: left;
  width: auto;
}

form#kontaktbox label p {
  user-select: none;
  margin: 30px 0 30px 30px;
  font-weight: 500;
  font-size: .85rem;
}

form#kontaktbox label p a {
  font-size: .85rem;
}

form#kontaktbox label input,
form#kontaktbox label textarea {
  margin-top: .2em;
}

form#kontaktbox ::placeholder {
  color: rgba(0,0,0,0.5);
}

form#kontaktbox input[type="checkbox"] {
  width: 17px !important;
  aspect-ratio: 1;
  accent-color: hsl(40, 30%, 50%);
  accent-color: var(--golden);
  border: none;
  outline: none;
  margin: 0;
}

form#kontaktbox h3.success {
  padding: 1em;
  background-color: var(--success-color);
  color: white;
}

form#kontaktbox h3.success + p {
  color: var(--success-color);
}

form#kontaktbox h3.error {
  padding: 1em;
  background-color: var(--error-color);
  color: white;
}

form#kontaktbox h3.error + p {
  color: var(--error-color);
}

form#kontaktbox em,
form#kontaktbox var,
form#kontaktbox noscript {
  font-style: normal;
  color: var(--gum-red);
}

form#kontaktbox .hey-honey {
  display: none;
}


/* Nachricht nach dem Abschicken des Formulars */
.form-msg {
  margin: 0;
  padding: calc(var(--site-padding) * 1.5) var(--site-padding);
  font-weight: 600;
  text-align: center;
}

.form-msg.success {
  background-color: var(--success-color);
}

.form-msg.error {
  background-color: var(--error-color);
  color: white;
}


/* Fehlermeldung direkt unter dem Input-Feld */
div.error {
  font-weight: 500;
  color: var(--error-color);
}

/* Hervorhebung des fehlerhaften Input-Fields */
input.inputerror {
  border: 2px solid var(--error-color);
  animation: pulseBorder 1.5s infinite;
}

@keyframes pulseBorder {
  0%, 100% {
    border-color: var(--error-color);
  }
  50% {
    border-color: hsla(15, 100%, 40%, .4);
  }
}

/* --------------------------------------------------------------------------------------------------- */


.modal-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-body a {
  text-decoration: underline;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  padding: 0 0.5rem;
}

.modal-close:hover {
  color: #000;
}