:root {
  --paper: #f7f4ec;
  --paper-deep: #efe8d9;
  --ink: #1f2728;
  --muted: #65706c;
  --line: #d8cfbd;
  --accent: #2f777d;
  --accent-dark: #215e64;
  --sepia: #a57344;
  --shadow: 0 18px 46px rgba(47, 42, 34, .12);
  --font-main: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  background:
    radial-gradient(circle at 18% 0%, rgba(165, 115, 68, .12), transparent 28rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--paper) 48%, #f2ebde 100%);
  color: var(--ink);
}

a {
  color: var(--accent-dark);
}

.page {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 52px) 28px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  text-align: center;
  margin-bottom: .7rem;
}

.site-header img {
  width: clamp(62px, 7vw, 86px);
  height: clamp(62px, 7vw, 86px);
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(93, 60, 33, .22));
}

.site-header h1 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(2.55rem, 6vw, 4.7rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  line-height: .98;
}

.site-subtitle {
  text-align: center;
  margin: .35rem auto 1.65rem;
  font-family: var(--font-main);
  font-size: clamp(1.02rem, 2vw, 1.35rem);
  font-style: normal;
  color: #3f4a48;
}

.top-links {
  display: flex;
  justify-content: center;
  gap: clamp(.55rem, 1.5vw, 1.45rem);
  flex-wrap: wrap;
  margin: 0 calc(clamp(18px, 4vw, 52px) * -1) 2.65rem;
  padding: 1.25rem clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .36);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid #cfc6b4;
  border-radius: 999px;
  padding: .78rem 1.1rem;
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 18px rgba(49, 44, 36, .06);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.1;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.nav-button:hover {
  transform: translateY(-1px);
  border-color: #aebeb8;
  background: rgba(255, 255, 255, .86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 10px 25px rgba(49, 44, 36, .1);
  color: var(--ink);
}

.nav-button.disabled {
  color: #fff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-color: var(--accent-dark);
  box-shadow: 0 12px 26px rgba(47, 119, 125, .26);
  font-weight: 600;
  cursor: default;
  pointer-events: none;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: .55rem;
  margin: 2.5rem 0 1.25rem;
  font-family: var(--font-main);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  color: var(--ink);
  text-align: center;
  line-height: 1;
}

.section-heading::before,
.section-heading::after {
  content: "";
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b9ae9a 28%, #b9ae9a 72%, transparent);
}

.section-heading::before {
  width: 86px;
}

.page-note,
.intro-box {
  max-width: 820px;
  margin: .5rem auto 1.2rem;
  padding: .9rem 1.05rem;
  border: 1px solid #d9cdb9;
  background: rgba(255, 252, 245, .72);
  color: #44504d;
  text-align: center;
  line-height: 1.55;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: clamp(1rem, 2vw, 1.55rem);
}

.group-grid-continued {
  margin-top: clamp(1rem, 2vw, 1.55rem);
}

.group-card {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ded5c5;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 254, 250, .9);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.group-card:hover {
  transform: translateY(-5px);
  border-color: #b8aa91;
  box-shadow: 0 22px 54px rgba(47, 42, 34, .18);
  color: inherit;
}

.group-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  padding: clamp(.7rem, 2vw, 1rem);
  background:
    linear-gradient(135deg, rgba(151, 110, 66, .28) 0 22px, transparent 22px) top left / 58px 58px no-repeat,
    linear-gradient(225deg, rgba(151, 110, 66, .25) 0 22px, transparent 22px) top right / 58px 58px no-repeat,
    #f6efe2;
  border-bottom: 1px solid #ddd1bf;
}

.group-card-title {
  position: relative;
  padding: 1.1rem 1rem 1.25rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  text-align: center;
  color: var(--ink);
}

.group-card-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  margin: .65rem auto 0;
  background: linear-gradient(90deg, transparent, #9eb0aa, transparent);
}

.archive-note {
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 42%);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 2rem 0 0;
  padding: 1.2rem clamp(1rem, 2.5vw, 1.8rem);
  border: 1px solid #d9cdb9;
  background: rgba(255, 252, 245, .72);
}

.archive-note-mark {
  width: 56px;
  height: 56px;
  color: var(--accent-dark);
}

.archive-note h2 {
  margin: 0 0 .25rem;
  font-family: var(--font-main);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.archive-note p {
  margin: 0;
  color: #44504d;
  line-height: 1.5;
}

.archive-line {
  height: 70px;
  background:
    linear-gradient(180deg, transparent 48%, #b8ab96 0 51%, transparent 0),
    linear-gradient(135deg, transparent 0 37%, #8c958e 38% 39%, transparent 40%),
    linear-gradient(25deg, transparent 0 47%, #8c958e 48% 49%, transparent 50%);
  opacity: .72;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.thumb-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid #ded5c5;
  border-radius: 5px;
  background: rgba(255, 254, 250, .9);
  padding: .55rem;
  box-shadow: 0 10px 28px rgba(47, 42, 34, .09);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

a.thumb-card:hover {
  transform: translateY(-3px);
  border-color: #b8aa91;
  box-shadow: 0 16px 36px rgba(47, 42, 34, .15);
  color: inherit;
}

.thumb-card img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  display: block;
  background: #f6efe2;
  border: 1px solid #e0d4c2;
  border-radius: 3px;
}

.thumb-name {
  margin-top: .55rem;
  font-size: .86rem;
  color: #4f5b58;
  text-align: center;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.info-panel,
.note-panel,
.impressum-panel {
  max-width: 920px;
  margin: 1.25rem auto 0;
  color: #3f4a48;
  line-height: 1.65;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-card,
.alpha-group,
.contact-intro {
  border: 1px solid #ded5c5;
  background: rgba(255, 254, 250, .9);
  box-shadow: 0 10px 28px rgba(47, 42, 34, .08);
}

.info-card {
  height: 100%;
  padding: 1rem;
  border-radius: 5px;
}

.info-card h3 {
  margin: 0 0 .65rem;
  font-family: var(--font-main);
  font-size: 1.22rem;
  color: var(--ink);
}

.info-card p,
.note-panel p {
  margin-bottom: 0;
}

.steps,
.note-list {
  margin: .5rem 0 0;
  padding-left: 1.25rem;
}

.steps li,
.note-list li {
  margin-bottom: .55rem;
}

.signature {
  margin-top: 1.4rem;
  color: var(--muted);
}

.list-count {
  display: inline-block;
  margin-left: .35rem;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: .95rem;
  font-weight: 400;
}

.alpha-columns {
  column-count: 1;
  column-gap: 1rem;
}

.alpha-group {
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  padding: .9rem;
  border-radius: 5px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.alpha-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  margin-bottom: .75rem;
  border-radius: 999px;
  background: rgba(47, 119, 125, .08);
  border: 1px solid rgba(47, 119, 125, .28);
  color: var(--accent-dark);
  font-family: var(--font-main);
  font-weight: 700;
}

.entry-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: .45rem;
}

.entry-list a {
  display: block;
  min-height: 2.2rem;
  padding: .42rem .58rem;
  border: 1px solid #ded5c5;
  border-radius: 5px;
  background: rgba(255, 252, 245, .72);
  color: var(--accent-dark);
  text-decoration: none;
  line-height: 1.25;
  overflow-wrap: anywhere;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.entry-list a:hover {
  background: rgba(255, 255, 255, .9);
  border-color: #b8aa91;
  box-shadow: 0 4px 12px rgba(47, 42, 34, .09);
}

.contact-intro {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 5px;
}

.portrait {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 4px;
  background: #f6efe2;
}

address {
  margin: 0;
  font-style: normal;
  line-height: 1.55;
}

.contact-list {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list b,
.legal-notes b {
  color: var(--ink);
}

.legal-notes {
  margin-top: 1.25rem;
  line-height: 1.6;
}

.site-footer {
  margin-top: 2.25rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem .8rem;
  margin-bottom: .5rem;
}

.footer-links a {
  color: var(--accent-dark);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 900px) {
  .alpha-columns {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 24px 14px 22px;
  }

  .top-links {
    margin-left: -14px;
    margin-right: -14px;
  }

  .nav-button {
    min-width: 0;
    flex: 1 1 145px;
  }

  .section-heading {
    margin-top: 1.75rem;
  }

  .group-grid {
    grid-template-columns: 1fr;
  }

  .group-card img {
    aspect-ratio: auto;
    height: 210px;
    object-fit: contain;
  }

  .archive-note {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .archive-note-mark {
    margin: 0 auto;
  }

  .entry-list {
    grid-template-columns: 1fr;
  }

  .contact-intro {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .portrait {
    width: 132px;
    height: 132px;
  }
}
