/* Eigenes Theme des Archivs, Farben und Schrift wie www.blomekoerfge.de */

/* Open Sans liegt im Repo (OFL). Die Überschriftenschrift der Vereinsseite wird nur
   vom selben Server eingebunden, nicht kopiert; lokal greift deshalb der Ersatz. */
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(../fonts/open-sans-v18-latin-regular.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/open-sans-v18-latin-italic.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(../fonts/open-sans-v18-latin-600.woff2) format("woff2"); }
@font-face { font-family: "Matura MT Script Capitals"; font-weight: 300; font-display: swap; src: local("Matura MT Script Capitals"), url(/files/layout/fonts/MATURASC_1.woff) format("woff"); }

:root {
  --blau: #0a4a9b;
  --gruen: #69a836;
  --navy: #192942;
  --hellblau: #e8f3fa;
  --text: #444;
  --linie: #ddd;
  --fuss: #f2f2f2;
  --breite: 1240px;
  --zier: "Matura MT Script Capitals", "Open Sans", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: #fff;
  color: var(--text);
  font: 400 16px/1.8 "Open Sans", Helvetica, Arial, sans-serif;
}

a { color: var(--blau); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 2px; }

h1, h2, h3 { color: var(--navy); font-weight: 600; line-height: 1.3; }
h1 { font: 300 2.5rem/1.3 var(--zier); color: var(--blau); text-align: center; margin: 0 0 1.25rem; }

img { max-width: 100%; height: auto; }

.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 1rem; top: 1rem; z-index: 10; background: #fff; padding: .5rem 1rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Kopf wie auf der Vereinsseite: klebt oben, milchig durchscheinend, Menü in eigener Zeile rechts */
.kopf { position: sticky; top: 0; z-index: 30; padding: 0 20px; border-bottom: 1px solid var(--linie); }
.kopf::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .69); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.kopf-innen { position: relative; max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; }
.logo { margin-right: auto; }
.logo img { display: block; width: 353px; max-width: 100%; height: auto; padding: 10px 0; }

.sozial { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.sozial a { display: block; }
.sozial svg { display: block; width: 25px; height: 25px; fill: var(--blau); transition: transform .25s ease-in-out; }
.sozial a:hover svg { transform: rotate(-10deg) scale(1.1); }
.kopf .sozial { position: absolute; top: 12px; right: 45px; }

.navicon { display: none; }

/* Menü am Desktop: das Popover wird zur normalen Zeile. */
#menue {
  display: flex; justify-content: flex-end; flex-basis: 100%;
  position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0;
  border: 0; background: none; color: inherit; overflow: visible;
}
#menue ul { list-style: none; margin: 0; padding: 0; }
#menue > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; }
#menue li { position: relative; }
#menue li > :is(a, button:not(.auf)) {
  display: block; padding: 3px 20px; border: 0; background: none; cursor: pointer;
  color: var(--text); font: inherit; text-decoration: none; text-align: left; white-space: nowrap;
}
#menue > ul > li:last-child > a { padding-right: 0; }
#menue li > :is(a, button):hover, #menue [aria-current], #menue .aktiv { color: var(--blau); }
#menue .auf { display: none; }

/* Untermenüs: Pfeil wie auf der Vereinsseite, Aufklappen bei Hover oder Tastaturfokus */
#menue .unter > :is(a, button:not(.auf))::after {
  content: ""; position: relative; top: 50%; display: inline-block; width: .3em; height: .3em; margin-left: 5px;
  border-top: 1.5px solid var(--text); border-right: 1.5px solid var(--text);
  transform: rotate(45deg) translateY(-50%); transform-origin: center top; transition: transform .25s ease-in-out;
}
#menue .unter > .aktiv::after { border-color: var(--blau); }
#menue .unter:is(:hover, :focus-within) > :is(a, button:not(.auf))::after { transform: rotate(135deg) translateY(-50%); border-color: var(--blau); }
#menue .unter > ul {
  position: absolute; z-index: 1; top: 100%; left: 0; width: max-content; min-width: 100%; padding: 10px 0;
  visibility: hidden; opacity: 0; transition: opacity .25s ease-in-out, visibility .25s ease-in-out;
  background: rgba(244, 242, 240, .9); border-radius: 1px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .6);
}
#menue .unter:is(:hover, :focus-within) > ul { visibility: visible; opacity: 1; }
#menue > ul > li:last-child > ul { left: auto; right: 0; }
/* Das Menü steht rechts, deshalb klappt die dritte Ebene nach links auf. */
#menue .unter ul .unter > ul { top: -10px; left: auto; right: 100%; }
#menue .unter ul .unter:is(:hover, :focus-within) > :is(a, button:not(.auf))::after { transform: rotate(45deg) translateY(-50%); }

.rolle { margin: 0 -20px; padding: .25rem 1rem; background: var(--navy); color: #fff; text-align: center; font-size: .875rem; }

main { flex: 1; width: 100%; max-width: var(--breite); margin: 0 auto; padding: 60px 20px; }

/* Mobil wie auf der Vereinsseite: schmaler Kopf, Burger, Menü als Panel von rechts */
@media (max-width: 1023px) {
  .kopf { padding: 0 2.5%; }
  .kopf::after { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .kopf-innen { min-height: 54px; flex-wrap: nowrap; }
  .logo img { width: auto; height: 54px; padding: 3px 0; }
  .kopf .sozial { position: static; }

  .navicon { display: block; width: 60px; height: 49px; padding: 15px; border: 0; background: none; cursor: pointer; }
  .navicon span, .navicon span::before, .navicon span::after {
    display: block; position: relative; width: 30px; height: 2px; background: #000; transition: transform .2s, top .2s;
  }
  .navicon span::before, .navicon span::after { content: ""; position: absolute; left: 0; }
  .navicon span::before { top: -8px; }
  .navicon span::after { top: 8px; }
  .kopf:has(#menue:popover-open) .navicon span { background: transparent; }
  .kopf:has(#menue:popover-open) .navicon span::before { top: 0; transform: rotate(45deg); }
  .kopf:has(#menue:popover-open) .navicon span::after { top: 0; transform: rotate(-45deg); }

  #menue {
    display: block; position: fixed; inset: 55px 0 0 auto; width: 100%; max-width: 440px; height: auto;
    padding: 20px 0 20px 30px; overflow-y: auto; background: #f8f8f8; border-left: 1px solid var(--linie);
  }
  #menue:not(:popover-open) { display: none; }
  #menue > ul { display: block; }
  #menue li > :is(a, button:not(.auf)) { width: 100%; padding: 14px; line-height: 1; border-bottom: 1px solid var(--linie); white-space: normal; }
  #menue .unter > :is(a, button:not(.auf)) { padding-right: 80px; }
  #menue .unter > :is(a, button:not(.auf))::after { display: none; }
  #menue .auf {
    display: flex; justify-content: center; gap: 5px; position: absolute; top: 0; right: 0; width: 80px; padding: 14px;
    border: 0; border-left: 1px solid var(--linie); background: none; color: #666; font: inherit; line-height: 1; cursor: pointer;
  }
  #menue .auf::after {
    content: ""; width: .35em; height: .35em; margin-top: .25em;
    border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .25s;
  }
  #menue .offen > .auf::after, #menue .unter ul .offen > .auf::after { transform: rotate(135deg); }
  #menue .unter > ul, #menue .unter ul .unter > ul {
    position: static; display: none; visibility: visible; opacity: 1; width: auto; padding: 0 0 0 30px;
    background: none; box-shadow: none;
  }
  #menue .offen > ul, #menue .unter ul .offen > ul { display: block; }
  #menue ul ul li > :is(a, button:not(.auf)) { color: #666; }
  #menue ul ul [aria-current] { color: var(--blau); font-weight: 600; }
  #menue > ul > li:last-child > a { padding-right: 14px; }
}

/* Fuß wie auf der Vereinsseite */
.fuss { position: relative; background: var(--fuss); line-height: 1.6; }
.fuss-innen {
  max-width: 1200px; margin: 0 auto; padding: 60px 20px 50px;
  display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 35px;
}
.fuss p { margin: 0 0 1rem; }
.fuss nav p { margin-bottom: 8px; }
.fuss strong { font-weight: 600; }
.fuss a { color: var(--text); text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss .mail svg { width: 1em; height: 1em; vertical-align: -.125em; fill: var(--text); }
.pfeile { list-style: none; margin: 0 0 1rem; padding: 0; }
.pfeile li { position: relative; left: 7px; padding-left: 14px; line-height: 2; transition: .25s ease-in-out; }
.pfeile li::before { content: "›"; position: absolute; left: 0; line-height: 2.8; }
.pfeile li:hover { left: 14px; padding-left: 7px; }
.pfeile li:hover::before { left: 0; }
.pfeile a { line-height: 2.8; }
.fuss .fuss-unten { margin: 0; padding: 15px 10px; background: var(--blau); color: #fff; font-size: 14px; text-align: center; }
.nachoben { position: fixed; right: 35px; bottom: 7px; z-index: 40; opacity: 0; pointer-events: none; transition: .25s ease-in-out; }
.gescrollt .nachoben { opacity: 1; pointer-events: auto; }
.nachoben svg { display: block; width: 2em; height: 2em; padding: 1px; border-radius: 50%; background: #fff; fill: var(--blau); transition: .25s ease-in-out; }
.nachoben:hover svg { transform: scale(1.2); }
@media (max-width: 767px) {
  .fuss-innen { grid-template-columns: 1fr; }
}

/* Startseite: Kacheln wie die Teaser der Vereinsseite */
.start h2 { font: 300 1.75rem/1.3 var(--zier); color: var(--blau); text-align: center; margin: 3rem 0 1.5rem; }
.einleitung { margin: 0 auto; text-align: center; }
.kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px; }
.kachel {
  display: flex; flex-direction: column; height: 100%; padding-bottom: 20px;
  background: #fff; border: 1px solid var(--linie); color: var(--text); text-decoration: none; text-align: center;
  transition: box-shadow .25s ease-in-out;
}
.kachel:not(:has(img)) { justify-content: center; }
.kachel:hover { box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .6); color: var(--text); }
.kachel img { display: block; width: 100%; aspect-ratio: 9 / 4; object-fit: cover; }
.kachel-titel { padding: 20px 20px 0; font: 300 1.25rem/1.3 var(--zier); color: var(--blau); }
.kachel .anzahl { font-size: .875rem; }

/* Einzelstück */
/* Brotkrumen */
.pfad { margin: 0 0 .5rem; font-size: .875rem; text-align: center; }
.pfad ol { list-style: none; margin: 0; padding: 0; }
.pfad li { display: inline; }
.pfad li + li::before { content: "›"; margin: 0 .4em; color: #767676; }
.pfad a { color: var(--text); }
.pfad a:hover { color: var(--blau); }
.signatur { color: var(--blau); white-space: nowrap; }
.hinweis { background: var(--hellblau); border-left: 4px solid var(--blau); padding: .75rem 1rem; }

/* Mit Bildern stehen Galerie und Metadaten nebeneinander, wie Text und Bild auf der Vereinsseite. */
@media (min-width: 900px) {
  .stueck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
  .stueck > * { grid-column: 1 / -1; }
  .stueck > .galerie { grid-column: 1; align-self: start; }
  .stueck > .galerie + .metadaten { grid-column: 2; align-self: start; }
}

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.galerie img { display: block; border: 1px solid var(--linie); }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: .4rem .75rem .4rem 0; border-bottom: 1px solid var(--linie); }
.metadaten { max-width: 48rem; margin-bottom: 2rem; }
.metadaten th { width: 12rem; font-weight: 600; }
.liste thead th { color: var(--navy); border-bottom: 2px solid var(--navy); }
.liste td:first-child { width: 56px; }
.liste img { display: block; }

.drive { width: 100%; height: 80vh; min-height: 480px; border: 1px solid var(--linie); margin-bottom: 2rem; }

.text { max-width: 48rem; }
.gruppen, .stuecke { padding-left: 1.2rem; }
.anzahl { color: #666; }

@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }
  main { padding-top: 30px; }
  .metadaten th { width: auto; }
  .liste th:nth-child(5), .liste td:nth-child(5) { display: none; }
}

@media print {
  .kopf .sozial, .navicon, #menue, .pfad, .fuss, .drive, .sprung { display: none; }
  .kopf { position: static; }
  a { color: inherit; text-decoration: none; }
}
