@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

:root {
  --bar-h: 72px;
  --page-pad: 40px;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

html,
body {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  padding: 0;
  margin: 0;
  background: #fff;
  color: #000;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-shell {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  width: calc(100% - (var(--page-pad) * 2));
  max-width: 1600px;
  margin: auto auto 0;
  padding-bottom: 20px;
  text-align: right;
}

.logo {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 26px;
  line-height: 0.95;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.logo a:hover {
  text-decoration: none;
  color: #39ff14;
}

.topbar {
  position: sticky;
  top: 0;
  height: var(--bar-h);
  background: #fff;
  z-index: 10;
}

.navbar {
  position: sticky;
  top: 0;
  height: var(--bar-h);
  margin-top: calc(var(--bar-h) * -1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px var(--page-pad);
  background: transparent;
  z-index: 20;
}

.menu {
  display: flex;
  gap: 2vw;
  transform: translateY(-2px);
}

.menu a {
  text-decoration: none;
  color: #000;
  font-size: 18pt;
  line-height: 1;
  border: 1px solid #000;
  border-radius: 999px;
  padding: 0.28em 0.7em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: 0.3s;
}

.menu a:hover,
.menu a.active {
  background: #39ff14;
  border-color: #39ff14;
}

.hero {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 15;
  overflow: hidden;
  pointer-events: none;
}

.hero img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  width: 900px;
  max-width: none;
  height: auto;
}

.menu-toggle {
  display: none;
  transition: 0.3s;
}

.menu-toggle:hover span,
.menu-toggle:active span {
  background: #39ff14;
  transform: rotate(-35deg);
}

.mobile-panel a:hover,
.mobile-panel a:active {
  color: #39ff14;
  font-style: italic;
}

/* ========================= Archive ========================= */

.archive {
  width: calc(100% - (var(--page-pad) * 2));
  max-width: 1600px;
  margin: 20px auto;
}

/* Card Layout */
.card {
  width: calc(33.333% - 27px);
  margin-bottom: 40px;
  box-sizing: border-box;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image */
.card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.02);
}

.card:hover {
  cursor: pointer;
}

/* ===== TYPO ===== */

/* HEADLINE */
.card-title {
  margin: 22px 0 6px;
  font-size: 22px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  line-height: 0.95;
  max-width: 20ch;
  overflow-wrap: break-word;
}

/* COLLAB (mit …) */
.card-collab {
  margin: 0;
  font-size: 22px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  max-width: 28ch;
  overflow-wrap: break-word;
}

/* META (Ort / Jahr etc.) */
.card-meta {
  margin: 0;
  font-size: 22px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  max-width: 28ch;
  overflow-wrap: break-word;
}

/* Hover */
.card:hover .card-title,
.card:hover .card-collab,
.card:hover .card-meta {
  color: #39ff14;
}

/* ========================= Responsive ========================= */

@media (max-width: 1000px) {
  .card {
    width: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .archive {
    width: calc(100% - (var(--page-pad) * 2));
    margin: 30px auto;
    padding: 0;
  }

  .card {
    width: 100%;
    margin-bottom: 30px;
    padding-bottom: 30px;
    position: relative;
  }

  .card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #000;
  }

  .card-title,
  .card-collab,
  .card-meta {
    font-size: 20px;
  }

  .card-title {
    margin: 20px 0 6px;
    max-width: 100%;
  }

  .card-collab,
  .card-meta {
    max-width: 100%;
  }
}

/* ========================= News ========================= */

.news-page {
  width: calc(100% - 80px);
  max-width: 1600px;
  margin: 20px auto 80px;
  display: grid;
  grid-template-columns: 420px 420px;
  column-gap: 40px;
  row-gap: 40px;
}

.news-card {
  display: contents;
}

.news-image {
  width: 100%;
  height: auto;
  display: block;
}

.news-text {
  max-width: 34ch;
}

.news-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.news-subtitle {
  margin: 0;
  font-size: 22px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  max-width: 28ch;
}

.news-place {
  margin: 0;
  font-size: 22px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  max-width: 28ch;
}

/* ========================= Info ========================= */

.info-page {
  width: calc(100% - (var(--page-pad) * 2));
  max-width: 1600px;
  margin: 20px auto 80px;
}

.info-item {
  max-width: 96ch;
}

.info-subtitle {
  margin: 0 0 24px;
  font-size: 22px;
  line-height: 1.1;
}

.info-subsubtitle {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.info-subsubtitle a {
  text-decoration: none;
  color: #000;
}

.info-subsubtitle a:hover {
  color: #39ff14;
}

.info-item h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

/* ========================= legal-page ========================= */

.legal-page {
  width: calc(100% - (var(--page-pad) * 2));
  max-width: 1600px;
  margin: 20px auto 80px;
}

.legal-inner {
  max-width: 96ch;
}

.legal-inner h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 24px 0 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 16px;
}

.page-header h1 {
  margin: 0;
  font-size: 22px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.close-button {
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  color: #000;
  padding: 0;
  line-height: 1;
  flex: 0 0 auto;
  transition: 0.2s ease;
}

.close-button:hover {
  color: #39ff14;
  transform: rotate(90deg);
}

.legal-block--impressum {
  margin-bottom: 80px;
}

/* ========================= legal-footer ========================= */

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
  width: calc(100% - (var(--page-pad) * 2));
  max-width: 1600px;
  margin: auto auto 20px;
  text-align: right;
}

.site-footer a {
  display: block;
  margin: 0 0 2px;
  color: #000;
  text-decoration: none;
}

.site-footer a:visited {
  color: #000;
}

.site-footer a:hover,
.site-footer a:active {
  color: #39ff14;
}

/* ========================= edit ========================= */

.editor-page {
  width: calc(100% - (var(--page-pad) * 2));
  max-width: 1100px;
  margin: 20px auto 80px;
}

.editor-title {
  margin: 0 0 20px;
  font-size: 22px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.editor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.editor-nav a,
.editor-button,
.editor-form button,
.link-button {
  border: 1px solid #000;
  border-radius: 999px;
  padding: 0.45em 0.8em;
  background: #fff;
  color: #000;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: 0.2s;
}

.editor-nav a:hover,
.editor-button:hover,
.editor-form button:hover,
.link-button:hover {
  background: #39ff14;
  border-color: #39ff14;
}

.editor-section {
  margin-bottom: 50px;
}

.editor-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.editor-form label {
  display: grid;
  gap: 6px;
  font-size: 16px;
}

.editor-form input[type="text"],
.editor-form input[type="password"],
.editor-form input[type="email"],
.editor-form input[type="url"],
.editor-form input[type="file"],
.editor-form textarea {
  border: 1px solid #000;
  border-radius: 18px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  box-sizing: border-box;
  width: 100%;
}

.editor-form textarea {
  min-height: 110px;
  resize: vertical;
}

.editor-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #000;
}

.editor-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.editor-actions form {
  margin: 0;
}

.editor-flash {
  margin: 0 0 20px;
}

.editor-preview img {
  max-width: 240px;
  height: auto;
  display: block;
}


.editor-gallery-wrap {
  display: grid;
  gap: 12px;
}

.editor-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.editor-gallery-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 18px;
  background: #fff;
  box-sizing: border-box;
}

.editor-gallery-card.is-hidden {
  display: none;
}

.editor-gallery-card.is-dragging {
  opacity: 0.5;
}

.editor-gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.editor-gallery-handle {
  cursor: grab;
  user-select: none;
  font-size: 18px;
  line-height: 1;
}

.editor-gallery-preview {
  aspect-ratio: 4 / 3;
  border: 1px solid #000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #fff;
  box-sizing: border-box;
}

.editor-gallery-preview.has-image {
  padding: 0;
}

.editor-gallery-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.editor-gallery-item {
  display: grid;
  gap: 8px;
  max-width: 160px;
}

.editor-gallery-item img {
  max-width: 240px;
  height: auto;
  display: block;
}

.small-note {
  font-size: 12px;
}

.editor-login-form {
  max-width: 420px;
}

/* ========================= media ========================= */

@media (min-width: 601px) and (max-width: 1000px) {
  :root {
    --page-pad: 30px;
  }

  .menu {
    gap: 16px;
  }

  .menu a {
    font-size: 20px;
    padding: 0.25em 0.6em;
    border-width: 0.8px;
  }

  .hero img {
    width: clamp(600px, 80vw, 800px);
  }

  .menu-toggle {
    display: none;
  }

  .mobile-overlay,
  .mobile-panel {
    display: none;
  }

  .page-header h1 {
    margin: 0;
    font-size: 20px;
    text-transform: uppercase;
    max-width: 20ch;
  }

  .info-subtitle {
    margin: 0 0 24px;
    font-size: 20px;
    line-height: 1.1;
  }

  .info-subsubtitle {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
  }

  .info-subsubtitle a {
    text-decoration: none;
    color: #000;
  }

  .info-subsubtitle a:hover {
    color: #39ff14;
  }

  .info-item h1 {
    margin: 0 0 16px;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 0.95;
    max-width: 20ch;
  }
}

@media (max-width: 1000px) {
  .card {
    width: calc(50% - 20px);
  }

  .news-page {
    grid-template-columns: 1fr;
    width: calc(100% - (var(--page-pad) * 2));
    margin: 30px auto;
    row-gap: 40px;
  }

  .news-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
  }

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

  .news-title {
    font-size: 20px;
  }

  .news-subtitle,
  .news-place {
    font-size: 20px;
  }

  .page-header h1 {
    margin: 0;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 0.95;
    max-width: 20ch;
  }

  .info-subtitle {
    margin: 0 0 24px;
    font-size: 20px;
    line-height: 1.1;
  }

  .info-subsubtitle {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
  }

  .info-subsubtitle a {
    text-decoration: none;
    color: #000;
  }

  .info-subsubtitle a:hover {
    color: #39ff14;
  }

  .info-item h1 {
    margin: 0 0 16px;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 0.95;
    max-width: 20ch;
  }
}

@media (max-width: 768px) {
  .archive {
    width: calc(100% - (var(--page-pad) * 2));
    margin: 30px auto;
    padding: 0;
  }

  .card {
    width: 100%;
    margin-bottom: 30px;
    padding-bottom: 30px;
    position: relative;
  }

  .card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #000;
  }

  .card-title,
  .card-collab,
  .card-meta {
    font-size: 20px;
  }

  .card-title {
    margin: 20px 0 6px;
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    line-height: 0.95;
    max-width: 100%;
  }

  .card-collab {
    margin: 0;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    max-width: 100%;
  }

  .card-meta {
    margin: 0;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.1;
    max-width: 100%;
  }

  .page-header h1 {
    margin: 0;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 0.95;
    max-width: 20ch;
  }

  .info-subtitle {
    margin: 0 0 24px;
    font-size: 20px;
    line-height: 1.1;
  }

  .info-subsubtitle {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
  }

  .info-subsubtitle a {
    text-decoration: none;
    color: #000;
  }

  .info-subsubtitle a:hover {
    color: #39ff14;
  }

  .info-item h1 {
    margin: 0 0 16px;
    font-size: 20px;
    text-transform: uppercase;
    line-height: 0.95;
    max-width: 20ch;
  }
}

@media (max-width: 600px) {
  :root {
    --page-pad: 20px;
  }

  .menu {
    display: none;
  }

  .hero {
    height: 100vh;
    height: 100svh;
  }

  .hero img {
    width: clamp(460px, 90vw, 700px);
    left: 50%;
    top: calc(50% + 50px);
    transform: translate(-50%, -50%) rotate(-35deg);
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3.5px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 1400;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .menu-toggle span {
    width: 35px;
    height: 3px;
    background: #000;
    border-radius: 999px;
    transition: transform 0.2s ease, background 0.2s ease;
    transform-origin: center;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
  }

  .mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-panel {
    position: fixed;
    top: calc(var(--bar-h) + 10px);
    right: 16px;
    width: min(78vw, 320px);
    padding: 18px 16px 16px;
    border-radius: 35px;
    background: transparent;
    z-index: 2400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-panel.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-panel a {
    font-size: 35px;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-decoration: none;
    color: #000;
    border-radius: 999px;
    padding: 0.28em 0.7em;
    transition: color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-panel a:hover,
  .mobile-panel a:active,
  .mobile-panel a.is-touched {
    color: #39ff14;
    font-style: italic;
  }

  a,
  button,
  .menu-toggle,
  .mobile-close,
  .card-link {
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-close {
    align-self: flex-end;
    background: transparent;
    border: 0;
    font-size: 45px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 8px;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-close:hover,
  .mobile-close:active,
  .mobile-close.is-touched {
    color: #39ff14;
    transform: rotate(90deg);
  }

  .menu-toggle:hover span,
  .menu-toggle:active span,
  .menu-toggle.is-touched span {
    background: #39ff14;
    transform: rotate(-35deg);
  }

  .archive {
    width: calc(100% - (var(--page-pad) * 2));
    margin: 30px auto;
    padding: 0;
  }

  .card {
    width: 100%;
    margin-bottom: 30px;
    padding-bottom: 30px;
    position: relative;
  }

  .card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #000;
  }

  .card-title {
    margin: 22px 0 6px;
    font-size: 20px;
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    line-height: 0.95;
    overflow-wrap: break-word;
    max-width: 20ch;
  }

  .card-collab {
    margin: 0;
    font-size: 20px;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    max-width: 24ch;
    overflow-wrap: break-word;
  }

  .card-meta {
    margin: 0;
    font-size: 20px;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.1;
    max-width: 24ch;
    overflow-wrap: break-word;
  }

  .news-page {
    grid-template-columns: 1fr;
    width: calc(100% - (var(--page-pad) * 2));
    margin: 30px auto;
    row-gap: 0;
  }

  .news-card {
    display: block;
    margin-bottom: 30px;
    padding-bottom: 30px;
    position: relative;
  }

  .news-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #000;
  }

  .news-title {
    margin: 22px 0 6px;
    font-size: 20px;
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.01em;
  }

  .news-subtitle {
    margin: 0;
    font-size: 20px;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    max-width: 20ch;
  }

  .news-place {
    margin: 0;
    font-size: 20px;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.1;
    max-width: 20ch;
  }

  .info-subtitle {
    font-size: 20px;
  }

  .info-subsubtitle {
    font-size: 18px;
  }

  .editor-item {
    display: block;
  }

  .close-button {
    font-size: 22px;
  }

  .menu a.is-touched {
    background: #39ff14;
    border-color: #39ff14;
  }

   .editor-title {
    font-size: 20px;
  }

  .editor-form label {
    font-size: 14px;
  }

  .editor-item {
    display: block;
  }

  .editor-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .editor-gallery-card {
    padding: 8px;
    border-radius: 14px;
  }
}