@font-face {
  font-family: "Myriad Pro Semibold";
  src: url("../fonts/MyriadProSemibold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Myriad Pro Regular";
  src: url("../fonts/MyriadProRegular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------
   Base
------------------------------------------------------------ */

:root {
  --page-side-space: 20px;
  --header-x-space: 43px;
  --font-semibold: "Myriad Pro Semibold", Arial, sans-serif;
  --font-regular: "Myriad Pro Regular", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--font-semibold);
  font-size: 20px;
  line-height: 20px;
}

body.home-page {
  overflow-y: hidden;
}

a {
  color: #000;
}

a:hover {
  color: #5c5c5c;
}

/* ------------------------------------------------------------
   Header and navigation
------------------------------------------------------------ */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 38px var(--header-x-space) 0 var(--header-x-space);
}

.logo {
  display: inline-block;
  color: #000;
  text-decoration: none;
  font-family: var(--font-semibold);
  font-size: 24px;
  line-height: 1;
}

.logo img {
  display: block;
  width: 230px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 4px;
}

.main-nav a {
  display: block;
  color: #000;
  text-decoration: none;
  font-family: var(--font-semibold);
  font-size: 20px;
  line-height: 20px;
}

.main-nav a:hover {
  color: #5c5c5c;
}

.main-nav .nav-item {
  position: relative;
  line-height: 20px;
}

.main-nav .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 20px;
  z-index: 50;
  min-width: 170px;
  padding-top: 0;
  background: #fff;
}

.main-nav .has-submenu:hover .submenu,
.main-nav .has-submenu:focus-within .submenu {
  display: block;
}

.main-nav .submenu a {
  display: block;
  white-space: nowrap;
  color: #000;
  text-decoration: none;
  font-family: var(--font-semibold);
  font-size: 20px;
  line-height: 20px;
}

/* ------------------------------------------------------------
   Global page wrapper
------------------------------------------------------------ */

.site-main {
  padding: 0 var(--page-side-space) 35px var(--page-side-space);
}

/* ------------------------------------------------------------
   Shared typography
------------------------------------------------------------ */

.info-text h1,
.static-page-text h1,
.home-text h1,
.detail-text h1,
.press-text h1,
.references-text h1 {
  font-family: var(--font-semibold);
  font-size: 27px;
  line-height: 24px;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: bolder;
}

.info-text h2,
.static-page-text h2,
.home-text h2,
.detail-text h2 {
  font-family: var(--font-regular);
  font-size: 20px;
  line-height: 22px;
  font-weight: normal;
  margin-top: clamp(4px, 1vw, 14px);
  margin-bottom: 0;
  padding-top: 0;
}

.info-text p,
.static-page-text p,
.static-page-text li,
.static-page-text a,
.home-text p,
.home-text div,
.detail-text p {
  font-family: var(--font-regular);
  font-size: 20px;
  line-height: 23px;
  margin-top: 0;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   Home page, aktuell
------------------------------------------------------------ */

.home-layout {
  position: relative;
  display: block;
  min-height: calc(100vh - 135px);
  overflow: hidden;
}

.hero-slider {
  width: min(737px, calc(100vw - 160px));
  margin: 125px auto 0 auto;
}

.hero-slider img {
  display: block;
  width: 100%;
  height: 445px;
  max-height: calc(100vh - 390px);
  object-fit: cover;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slider-placeholder {
  height: 445px;
  max-height: calc(100vh - 390px);
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-semibold);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 120px;
  width: 100%;
  height: 20px;
  margin-top: 14px;
  line-height: 20px;
}

.slider-controls button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  font-family: var(--font-regular);
  font-size: 20px;
  line-height: 20px;
}

.hero-slider.single-image {
  margin-bottom: 34px;
}

.home-text {
  position: absolute;
  left: 0;
  bottom: 6px;
  width: min(520px, 45vw);
}

.home-text h1 {
  font-size: 27px;
  line-height: 24px;
}

.home-text h2 {
  margin-top: clamp(4px, 1vw, 14px);
}

/* ------------------------------------------------------------
   Info pages
------------------------------------------------------------ */

.info-page {
  width: 100%;
  padding: 110px 0 60px 0;
}

.info-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 135px;
}

.info-hero img {
  display: block;
  width: 350px;
  max-width: 100%;
  height: auto;
}

.info-artconsulting-page .info-hero img {
  width: 350px;
}

.info-text {
  max-width: 780px;
  margin-left: 0;
}

.info-spacer {
  margin-top: 48px !important;
}

/* ------------------------------------------------------------
   References page
------------------------------------------------------------ */

.references-page {
  padding-top: 110px;
}

.references-text {
  max-width: 900px;
}

.references-text h1 {
  margin-bottom: 22px;
}

.references-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.references-list li {
  font-family: var(--font-regular);
  font-size: 20px;
  line-height: 20px;
  margin-top: 0;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   Press page
------------------------------------------------------------ */

.press-page {
  padding-top: 110px;
}

.press-text {
  max-width: 900px;
}

.press-text h1 {
  margin-bottom: 0;
}

.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.press-list li {
  font-family: var(--font-regular);
  font-size: 20px;
  line-height: 23px;
  margin-top: 0;
  margin-bottom: 0;
}

.press-list a {
  color: #000;
  text-decoration: underline;
  font-family: var(--font-regular);
  font-size: 20px;
  line-height: 23px;
}

.press-list a:hover {
  color: #5c5c5c;
}

/* ------------------------------------------------------------
   Contact page
------------------------------------------------------------ */

.contact-page {
  padding-top: 42px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(500px, 890px) minmax(360px, 600px);
  column-gap: 140px;
  align-items: start;
}

.contact-form-column {
  max-width: 890px;
}

.contact-info-column {
  max-width: 600px;
  padding-top: 0;
}

.contact-info-column p {
  font-family: var(--font-regular);
  font-size: 20px;
  line-height: 23px;
  margin-top: 0;
  margin-bottom: 0;
}

.contact-info-column p + p {
  margin-top: 42px;
}

.contact-info-column a {
  color: #000;
  text-decoration: underline;
}

.contact-form {
  margin-top: 0;
  max-width: 890px;
}

.contact-form label,
.contact-choice p,
.contact-choice label {
  font-family: var(--font-regular);
  font-size: 20px;
  line-height: 23px;
  font-weight: normal;
}

.contact-form label {
  display: block;
  margin-bottom: 0;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 520px;
  max-width: 100%;
  border: 1px solid #bdbdbd;
  border-radius: 2px;
  padding: 4px 6px;
  margin: 0 0 20px 0;
  background: #fff;
  color: #000;
  font-family: var(--font-regular);
  font-size: 20px;
  line-height: 23px;
}

.contact-form textarea {
  width: 890px;
  max-width: 100%;
  height: 235px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid #000;
}

.contact-choice {
  margin-top: 0;
  margin-bottom: 24px;
}

.contact-choice p {
  margin: 0;
}

.contact-choice label {
  display: inline-block;
  margin-right: 18px;
}

.contact-choice input[type="radio"] {
  margin-right: 4px;
}

.contact-form button {
  padding: 3px 12px 4px 12px;
  border: 2px solid #000;
  border-radius: 6px;
  background: transparent !important;
  background-image: none !important;
  color: #000 !important;
  cursor: pointer;
  font-family: var(--font-regular);
  font-size: 27px;
  line-height: 27px;
}

.contact-form button:hover {
  color: #5c5c5c !important;
  border-color: #5c5c5c;
}

.form-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  color: #000;
  font-family: var(--font-regular);
  font-size: 20px;
  line-height: 23px;
  margin: 0 0 20px 0 !important;
}

.form-error {
  color: #b00000;
  font-family: var(--font-regular);
  font-size: 20px;
  line-height: 23px;
  margin: 0 0 20px 0 !important;
}

/* ------------------------------------------------------------
   Category overview and hover tiles
------------------------------------------------------------ */

.overview {
  position: relative;
  max-width: 1200px;
  margin: 80px auto 0;
}

.tile-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px 40px;
}

.tile {
  position: relative;
  min-height: 36px;
}

.tile a {
  color: #000;
  text-decoration: none;
  font-size: 22px;
}

.tile a:hover {
  color: #5c5c5c;
}

.hover-image {
  position: fixed;
  right: 7vw;
  top: 28vh;
  z-index: 20;
  display: none;
  width: 360px;
  height: 260px;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.tile:hover .hover-image {
  display: block;
}

/* ------------------------------------------------------------
   Detail pages
------------------------------------------------------------ */

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 737px 1fr;
  gap: 30px;
  align-items: end;
  min-height: calc(100vh - 135px);
}

.detail-text {
  max-width: 520px;
}

.back-link {
  display: inline-block;
  margin-top: 25px;
  color: #000;
  text-decoration: none;
}

/* ------------------------------------------------------------
   Static fallback pages
------------------------------------------------------------ */

.static-page {
  width: 100%;
  max-width: 850px;
  margin: 120px 0 0 0;
  padding: 0;
  font-family: var(--font-regular);
  font-size: 20px;
  line-height: 24px;
}

.static-page-content {
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(360px, 760px);
  column-gap: 60px;
  align-items: start;
  max-width: 1250px;
}

.static-page-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.static-page-text {
  max-width: 760px;
}

.static-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------------
   Admin
------------------------------------------------------------ */

.admin-wrap {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.button,
.admin-actions a {
  display: inline-block;
  border: 1px solid #000;
  padding: 8px 12px;
  text-decoration: none;
  color: #000;
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.form-grid {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 8px;
  border: 1px solid #bbb;
}

.login-box {
  max-width: 420px;
  margin: 80px auto;
}

.gallery-admin {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery-admin img {
  width: 120px;
  height: 90px;
  object-fit: cover;
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */

@media (max-height: 850px) {
  .hero-slider {
    margin-top: 80px;
  }

  .home-text {
    bottom: 0;
  }

  .hero-slider img,
  .slider-placeholder {
    height: 400px;
    max-height: calc(100vh - 360px);
  }
}

@media (max-width: 825px) {
  body {
    font-size: 16px;
    line-height: 18px;
  }

  .site-header {
    display: block;
    padding: 25px 20px 0 20px;
  }

  .logo img {
    width: 140px;
  }

  .main-nav {
    justify-content: flex-start;
    margin-top: 20px;
    gap: 12px;
  }

  .main-nav a {
    font-size: 16px;
    line-height: 18px;
  }

  .main-nav .submenu {
    position: static;
    padding-left: 16px;
    margin-top: 4px;
  }

  .main-nav .submenu a {
    font-size: 16px;
    line-height: 20px;
  }

  .site-main {
    padding: 0 20px 30px 20px;
  }

  .home-layout,
  .detail-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    overflow: visible;
  }

  .home-text {
    position: static;
    order: 2;
    width: 100%;
    margin-top: 25px;
  }

  .hero-slider {
    order: 1;
    width: 100%;
    margin-top: 60px;
  }

  .hero-slider img,
  .slider-placeholder {
    height: 260px;
    max-height: none;
  }

  .info-page,
  .references-page,
  .press-page {
    padding-top: 55px;
  }

  .info-hero {
    margin-bottom: 70px;
  }

  .info-hero img {
    width: 320px;
  }

  .info-text,
  .references-text,
  .press-text {
    max-width: 100%;
  }

  .info-text h1,
  .static-page-text h1,
  .home-text h1,
  .detail-text h1,
  .press-text h1,
  .references-text h1 {
    font-size: 22px;
    line-height: 24px;
  }

  .info-text p,
  .static-page-text p,
  .static-page-text li,
  .static-page-text a,
  .home-text p,
  .home-text div,
  .detail-text p,
  .references-list li,
  .press-list li,
  .press-list a {
    font-size: 16px;
    line-height: 20px;
  }

  .static-page {
    margin-top: 60px;
    font-size: 16px;
    line-height: 20px;
  }

  .static-page-content {
    display: block;
  }

  .static-page-image {
    margin-bottom: 28px;
  }

  .contact-page {
    padding-top: 55px;
  }

  .contact-layout {
    display: block;
  }

  .contact-info-column {
    margin-top: 48px;
  }

  .contact-form label,
  .contact-choice p,
  .contact-choice label,
  .contact-form input,
  .contact-form textarea,
  .contact-info-column p {
    font-size: 16px;
    line-height: 20px;
  }

  .contact-form button {
    font-size: 22px;
    line-height: 24px;
  }

  .hover-image {
    display: none !important;
  }

  .tile-list {
    display: block;
  }

  .tile {
    margin-bottom: 15px;
  }

  .tile img.mobile-thumb {
    display: block;
    width: 100%;
    max-width: 240px;
    margin-top: 6px;
  }
}


/* ------------------------------------------------------------
   Home page height correction
------------------------------------------------------------ */

body.home-page {
  overflow-y: hidden;
}

body.home-page .site-main {
  height: calc(100vh - 135px);
  overflow: hidden;
}

body.home-page .home-layout {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.home-page .hero-slider {
  margin-top: clamp(70px, 10vh, 125px);
}

body.home-page .hero-slider img,
body.home-page .slider-placeholder {
  height: min(445px, calc(100vh - 390px));
  min-height: 260px;
}

body.home-page .home-text {
  bottom: 0;
}

body.home-page .hero-slider {
  margin-top: clamp(60px, 8vh, 110px);
}

/* ------------------------------------------------------------
   Home / Aktuell: no scroll, site-main fills remaining height
------------------------------------------------------------ */

body.home-page {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.home-page .site-header {
  flex: 0 0 auto;
}

body.home-page .site-main {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding-bottom: 0;
  overflow: hidden;
}

body.home-page .home-layout {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

body.home-page .hero-slider {
  position: absolute;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  width: min(737px, calc(100vw - 160px));
  margin: 0;
}

body.home-page .hero-slider img,
body.home-page .slider-placeholder {
  display: block;
  width: 100%;
  height: min(445px, calc(100vh - 390px));
  min-height: 300px;
  object-fit: cover;
}

body.home-page .slider-controls {
  display: flex;
  justify-content: center;
  gap: 120px;
  margin-top: 14px;
  height: 20px;
  line-height: 20px;
}

body.home-page .home-text {
  position: absolute;
  left: 0;
  bottom: 35px;
  width: min(620px, 50vw);
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------------
   Overview pages: Künstler:innen / Ausstellungen / Artconsulting
------------------------------------------------------------ */

.overview-page {
  padding-top: 110px;
}

.overview-text {
  max-width: 760px;
}

.overview-text h1 {
  font-family: "Myriad Pro Semibold", sans-serif;
  font-size: 27px;
  line-height: 24px;
  margin-top: 0;
  margin-bottom: 28px;
  font-weight: bolder;
}

.overview-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.overview-list-item {
  position: relative;
  font-family: "Myriad Pro Regular", sans-serif;
  font-size: 20px;
  line-height: 24px;
  margin-top: 0;
  margin-bottom: 0;
}

.overview-list-item a {
  font-family: "Myriad Pro Regular", sans-serif;
  font-size: 20px;
  line-height: 24px;
  color: #000;
  text-decoration: none;
}

.overview-list-item a:hover {
  color: #5c5c5c;
}

.overview-hover-image {
  display: none;
  position: fixed;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 40vw;
  max-height: 55vh;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 40;
}

.overview-list-item:hover .overview-hover-image {
  display: block;
}

@media only screen and (max-width: 825px) {
  .overview-page {
    padding-top: 55px;
  }

  .overview-text h1 {
    font-size: 22px;
    line-height: 24px;
    margin-bottom: 22px;
  }

  .overview-list-item,
  .overview-list-item a {
    font-size: 16px;
    line-height: 20px;
  }

  .overview-hover-image {
    display: none !important;
  }
}

/* ------------------------------------------------------------
   Künstler:innen Übersicht
------------------------------------------------------------ */

.overview-grid-page {
  padding-top: 110px;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 405px));
  gap: 32px 32px;
  justify-content: center;
}

.artist-tile {
  position: relative;
  display: block;
  height: 288px;
  background: #d9d9d9;
  color: #000;
  text-decoration: none;
  overflow: hidden;
}

.artist-tile-image {
  display: block;
  width: 100%;
  height: 100%;
}

.artist-tile-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.artist-tile:hover .artist-tile-image img {
  opacity: 1;
}

.artist-tile-title {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 2;
  font-family: "Myriad Pro Semibold", Arial, sans-serif;
  font-size: 20px;
  line-height: 20px;
  color: #000;
  text-align: right;
}

.overview-empty {
  font-family: "Myriad Pro Regular", Arial, sans-serif;
  font-size: 20px;
  line-height: 23px;
  margin: 0;
}

@media only screen and (max-width: 1100px) {
  .artist-grid {
    grid-template-columns: repeat(2, minmax(260px, 405px));
  }
}

@media only screen and (max-width: 825px) {
  .overview-grid-page {
    padding-top: 55px;
  }

  .artist-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .artist-tile {
    height: 230px;
  }

  .artist-tile-image img {
    opacity: 1;
  }

  .artist-tile-title {
    font-size: 16px;
    line-height: 20px;
  }
}

/* ------------------------------------------------------------
   Detail pages
------------------------------------------------------------ */

.detail-page {
  padding-top: 110px;
}

.detail-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 135px;
}

.detail-slider {
  width: 737px;
  max-width: 100%;
}

.detail-slide {
  display: none;
}

.detail-slide.active {
  display: block;
}

.detail-slide img {
  display: block;
  width: 100%;
  height: 445px;
  object-fit: cover;
}

.detail-slider-controls {
  display: flex;
  justify-content: center;
  gap: 120px;
  margin-top: 14px;
  height: 20px;
  line-height: 20px;
}

.detail-slider-controls button {
  background: transparent;
  border: 0;
  font-family: "Myriad Pro Regular", Arial, sans-serif;
  font-size: 20px;
  line-height: 20px;
  cursor: pointer;
  padding: 0;
  color: #000;
}

.detail-text {
  max-width: 780px;
  margin-left: 0;
}

.detail-text h1 {
  font-family: "Myriad Pro Semibold", Arial, sans-serif;
  font-size: 27px;
  line-height: 24px;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: bolder;
}

.detail-text h2 {
  font-family: "Myriad Pro Regular", Arial, sans-serif;
  font-size: 20px;
  line-height: 22px;
  font-weight: normal;
  margin-top: clamp(4px, 1vw, 14px);
  margin-bottom: 0;
  padding-top: 0;
}

.detail-body {
  margin-top: 24px;
}

.detail-body,
.detail-body p,
.detail-body li,
.detail-body a {
  font-family: "Myriad Pro Regular", Arial, sans-serif;
  font-size: 20px;
  line-height: 23px;
}

.detail-body p {
  margin-top: 0;
  margin-bottom: 0;
}

.detail-body a {
  color: #000;
  text-decoration: underline;
}

@media only screen and (max-width: 825px) {
  .detail-page {
    padding-top: 55px;
  }

  .detail-hero {
    margin-bottom: 70px;
  }

  .detail-slider {
    width: 100%;
  }

  .detail-slide img {
    height: 260px;
  }

  .detail-text {
    max-width: 100%;
  }

  .detail-text h1 {
    font-size: 22px;
    line-height: 24px;
  }

  .detail-text h2,
  .detail-body,
  .detail-body p,
  .detail-body li,
  .detail-body a {
    font-size: 16px;
    line-height: 20px;
  }
}

.detail-slider {
  width: 350px;
  max-width: 100%;
}

.detail-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ------------------------------------------------------------
   Künstler:innen Hover-Menü
------------------------------------------------------------ */

.main-nav .artists-menu {
  position: relative;
}

.main-nav .artists-submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 20px;
  z-index: 80;
  background: #fff;
  min-width: 320px;
  padding-top: 0;
}

.main-nav .artists-menu:hover .artists-submenu,
.main-nav .artists-menu:focus-within .artists-submenu {
  display: block;
}

.main-nav .artists-submenu a {
  display: block;
  font-family: "Myriad Pro Semibold", Arial, sans-serif;
  font-size: 20px;
  line-height: 20px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav .artists-submenu a:hover {
  color: #5c5c5c;
}

/* ------------------------------------------------------------
   Übersichtskacheln: Künstler:innen / Ausstellungen / Artconsulting
------------------------------------------------------------ */

.overview-grid-page {
  padding-top: 110px;
}

.overview-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 405px));
  gap: 32px 32px;
  justify-content: center;
}

.overview-tile {
  position: relative;
  display: block;
  height: 288px;
  background: #d9d9d9;
  color: #000;
  text-decoration: none;
  overflow: hidden;
}

.overview-tile-image {
  display: block;
  width: 100%;
  height: 100%;
}

.overview-tile-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.overview-tile:hover .overview-tile-image img {
  opacity: 1;
}

.overview-tile-title {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 2;
  font-family: "Myriad Pro Semibold", Arial, sans-serif;
  font-size: 20px;
  line-height: 20px;
  color: #000;
  text-align: right;
}

.overview-empty {
  font-family: "Myriad Pro Regular", Arial, sans-serif;
  font-size: 20px;
  line-height: 23px;
  margin: 0;
}

/* Alte Künstler-Klassen auf neue generische Kachelklassen mappen */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 405px));
  gap: 32px 32px;
  justify-content: center;
}

.artist-tile {
  position: relative;
  display: block;
  height: 288px;
  background: #d9d9d9;
  color: #000;
  text-decoration: none;
  overflow: hidden;
}

.artist-tile-image {
  display: block;
  width: 100%;
  height: 100%;
}

.artist-tile-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.artist-tile:hover .artist-tile-image img {
  opacity: 1;
}

.artist-tile-title {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 2;
  font-family: "Myriad Pro Semibold", Arial, sans-serif;
  font-size: 20px;
  line-height: 20px;
  color: #000;
  text-align: right;
}

@media only screen and (max-width: 1100px) {
  .overview-tile-grid,
  .artist-grid {
    grid-template-columns: repeat(2, minmax(260px, 405px));
  }
}

@media only screen and (max-width: 825px) {
  .overview-grid-page {
    padding-top: 55px;
  }

  .overview-tile-grid,
  .artist-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .overview-tile,
  .artist-tile {
    height: 230px;
  }

  .overview-tile-image img,
  .artist-tile-image img {
    opacity: 1;
  }

  .overview-tile-title,
  .artist-tile-title {
    font-size: 16px;
    line-height: 20px;
  }
}

/* ------------------------------------------------------------
   Ausstellungen Hover-Menü
------------------------------------------------------------ */

.main-nav .exhibitions-menu {
  position: relative;
}

.main-nav .exhibitions-submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 20px;
  z-index: 80;
  background: #fff;
  min-width: 360px;
  padding-top: 0;
}

.main-nav .exhibitions-menu:hover .exhibitions-submenu,
.main-nav .exhibitions-menu:focus-within .exhibitions-submenu {
  display: block;
}

.main-nav .exhibitions-submenu a {
  display: block;
  font-family: "Myriad Pro Semibold", Arial, sans-serif;
  font-size: 20px;
  line-height: 20px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav .exhibitions-submenu a:hover {
  color: #5c5c5c;
}

/* ------------------------------------------------------------
   Ausstellungen: Bildkachel + Hover-Bild
------------------------------------------------------------ */

.exhibitions-grid .overview-tile {
  background: #d9d9d9;
}

.exhibitions-grid .overview-tile-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.exhibitions-grid .overview-tile-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exhibitions-grid .normal-image img {
  opacity: 1;
}

.exhibitions-grid .hover-image-tile img {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.exhibitions-grid .overview-tile:hover .hover-image-tile img {
  opacity: 1;
}

.exhibitions-grid .overview-tile-title {
  z-index: 3;
}

/* ------------------------------------------------------------
   Ausstellungen: Kachelbild + langsames Hover-Bild
------------------------------------------------------------ */

.exhibitions-grid .overview-tile {
  background: #d9d9d9;
}

.exhibitions-grid .overview-tile-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.exhibitions-grid .overview-tile-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exhibitions-grid .normal-image img {
  opacity: 1;
}

.exhibitions-grid .hover-image-tile img {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.exhibitions-grid .overview-tile:hover .hover-image-tile img {
  opacity: 1;
}

.exhibitions-grid .overview-tile-title {
  z-index: 3;
}

/* ------------------------------------------------------------
   Artconsulting Übersicht
------------------------------------------------------------ */

.artconsulting-grid .overview-tile {
  background: #d9d9d9;
}

.artconsulting-grid .overview-tile-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.artconsulting-grid .overview-tile-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artconsulting-grid .normal-image img {
  opacity: 1;
}

.artconsulting-grid .hover-image-tile img {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.artconsulting-grid .overview-tile:hover .hover-image-tile img {
  opacity: 1;
}

.artconsulting-grid .overview-tile-title {
  z-index: 3;
}

/* ------------------------------------------------------------
   Artconsulting: normales Kachelbild + langsames Hover-Bild
------------------------------------------------------------ */

.artconsulting-grid .overview-tile {
  background: #d9d9d9;
}

.artconsulting-grid .overview-tile-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.artconsulting-grid .overview-tile-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artconsulting-grid .normal-image img {
  opacity: 1;
}

.artconsulting-grid .hover-image-tile img {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.artconsulting-grid .overview-tile:hover .hover-image-tile img {
  opacity: 1;
}

.artconsulting-grid .overview-tile-title {
  z-index: 3;
}

/* ------------------------------------------------------------
   Admin Oberfläche
------------------------------------------------------------ */

.admin-body {
  background: #f7f7f7;
}

.admin-wrap {
  max-width: 1180px;
  margin: 30px auto;
  padding: 0 24px 60px 24px;
  font-family: Arial, sans-serif;
}

.admin-header {
  margin-bottom: 28px;
}

.admin-header h1 {
  font-family: Arial, sans-serif;
  font-size: 28px;
  line-height: 34px;
  margin: 0 0 18px 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px 0;
}

.admin-actions a,
.button {
  display: inline-block;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 18px;
}

.admin-actions a:hover,
.admin-actions a.active,
.button:hover {
  background: #000;
  color: #fff;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.admin-card {
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  padding: 22px;
  min-height: 120px;
  color: #000;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.admin-card:hover {
  border-color: #000;
}

.admin-card strong {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 26px;
  margin-bottom: 12px;
}

.admin-card span {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 20px;
  color: #555;
}

.admin-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-list-header h2 {
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 30px;
  margin: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 20px;
}

.admin-table th {
  background: #eee;
  font-weight: bold;
}

.admin-table a {
  color: #000;
  text-decoration: underline;
}

.form-grid {
  display: grid;
  gap: 16px;
  max-width: 980px;
  background: #fff;
  padding: 24px;
  border: 1px solid #ddd;
}

.form-grid label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 20px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  margin-top: 5px;
  padding: 8px;
  border: 1px solid #bbb;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 20px;
}

.gallery-admin {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery-admin img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border: 1px solid #ddd;
}

/* ------------------------------------------------------------
   Navigation Dropdowns
------------------------------------------------------------ */

.site-header {
  position: relative;
  z-index: 1000;
  overflow: visible;
}

.main-nav {
  overflow: visible;
}

.main-nav .nav-item {
  position: relative;
  line-height: 20px;
}

.main-nav .nav-item > a {
  display: block;
}

.main-nav .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 20px;
  z-index: 2000;
  background: #fff;
  min-width: 320px;
  padding-top: 0;
}

.main-nav .has-submenu:hover .submenu,
.main-nav .has-submenu:focus-within .submenu {
  display: block;
}

.main-nav .submenu a {
  display: block;
  font-family: "Myriad Pro Semibold", Arial, sans-serif;
  font-size: 20px;
  line-height: 24px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav .submenu a:hover {
  color: #5c5c5c;
}

.main-nav .exhibitions-submenu {
  min-width: 380px;
}

.main-nav .artconsulting-submenu {
  min-width: 340px;
}

@media only screen and (max-width: 825px) {
  .main-nav .submenu {
    position: static;
    min-width: 0;
    padding-left: 16px;
    margin-top: 4px;
  }

  .main-nav .submenu a {
    font-size: 16px;
    line-height: 20px;
  }
}

/* ------------------------------------------------------------
   Navigation Dropdowns final
------------------------------------------------------------ */

.site-header,
.main-nav {
  overflow: visible !important;
}

.site-header {
  position: relative;
  z-index: 1000;
}

.main-nav .nav-item {
  position: relative;
  display: block;
}

.main-nav .submenu {
  display: none;
  position: absolute;
  left: 0;
  top: 20px;
  z-index: 3000;
  background: #fff;
  min-width: 320px;
}

.main-nav .has-submenu:hover .submenu,
.main-nav .has-submenu:focus-within .submenu {
  display: block;
}

.main-nav .submenu a {
  display: block;
  font-family: "Myriad Pro Semibold", Arial, sans-serif;
  font-size: 20px;
  line-height: 24px;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav .submenu a:hover {
  color: #5c5c5c;
}

.main-nav .exhibitions-submenu {
  min-width: 380px;
}

.main-nav .artconsulting-submenu {
  min-width: 340px;
}

.detail-subpages {
  margin-top: 24px;
}

.detail-subpages a {
  font-family: "Myriad Pro Regular", Arial, sans-serif;
  font-size: 20px;
  line-height: 23px;
  color: #000;
  text-decoration: underline;
}

