:root {
  color-scheme: dark;

  --green-950: #0d260d;
  --green-900: #163a16;
  --green-850: #1b451b;
  --green-800: #215221;

  --gold: #d4aa50;
  --gold-light: #e8ca85;
  --cream: #f7f2e8;
  --cream-muted: #d9d2c5;

  --border: rgba(212, 170, 80, 0.4);
  --border-soft: rgba(247, 242, 232, 0.14);
  --surface: rgba(22, 58, 22, 0.88);
  --surface-light: rgba(247, 242, 232, 0.06);

  --shadow:
    0 24px 70px rgba(0, 0, 0, 0.28),
    0 4px 16px rgba(0, 0, 0, 0.18);

  --radius-large: 26px;
  --radius-medium: 18px;
  --radius-small: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--green-950);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--cream);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;

  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(212, 170, 80, 0.13),
      transparent 28rem
    ),
    radial-gradient(
      circle at 88% 38%,
      rgba(74, 137, 66, 0.2),
      transparent 34rem
    ),
    linear-gradient(145deg, var(--green-950), var(--green-900) 48%, #102f10);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--cream);
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.wordmark-text {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.05);
  color: var(--cream-muted);
  font-size: 13px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #85c977;
  box-shadow: 0 0 0 5px rgba(133, 201, 119, 0.11);
}

.hero {
  max-width: 800px;
  margin-bottom: 46px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(39px, 7vw, 76px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--cream-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.section {
  margin-top: 46px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-header h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.section-note {
  margin: 0;
  color: var(--cream-muted);
  font-size: 14px;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feed-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-medium);
  background:
    linear-gradient(
      145deg,
      rgba(247, 242, 232, 0.075),
      rgba(247, 242, 232, 0.025)
    );
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.13);
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.feed-card:hover {
  transform: none;
  border-color: var(--border);
  background:
    linear-gradient(
      145deg,
      rgba(247, 242, 232, 0.1),
      rgba(247, 242, 232, 0.04)
    );
}

.feed-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 23px;
}

.file-type {
  display: inline-flex;
  min-width: 54px;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.feed-card h3 {
  margin-bottom: 9px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.feed-description {
  flex: 1;
  margin-bottom: 25px;
  color: var(--cream-muted);
  font-size: 14px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 730;
  text-decoration: none;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.button:hover {
  transform: none;
}

.button-primary {
  background: var(--gold);
  color: var(--green-900);
}

.button-primary:hover {
  background: var(--gold-light);
}

.button-secondary {
  border-color: var(--border-soft);
  background: rgba(247, 242, 232, 0.055);
  color: var(--cream);
}

.button-secondary:hover {
  border-color: var(--border);
  background: rgba(247, 242, 232, 0.09);
}

.partner-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 30px;
  margin-top: 18px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: var(--radius-large);
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(212, 170, 80, 0.22),
      transparent 18rem
    ),
    var(--surface);
  box-shadow: var(--shadow);
}

.partner-panel::after {
  position: absolute;
  right: -45px;
  bottom: -85px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(212, 170, 80, 0.18);
  border-radius: 50%;
  content: "";
}

.partner-panel-content {
  position: relative;
  z-index: 1;
}

.partner-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(25px, 4vw, 39px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.partner-panel p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--cream-muted);
}

.partner-button {
  position: relative;
  z-index: 1;
  min-width: 190px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.partner-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.partner-header h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 7vw, 70px);
}

.protected-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.asset-list {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-medium);
  background: rgba(13, 38, 13, 0.42);
  box-shadow: var(--shadow);
}

.asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 105px auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.asset-row:last-child {
  border-bottom: 0;
}

.asset-row:hover {
  background: rgba(247, 242, 232, 0.045);
}

.asset-main {
  min-width: 0;
}

.asset-name {
  display: block;
  overflow: hidden;
  margin-bottom: 3px;
  color: var(--cream);
  font-size: 15px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-path {
  overflow: hidden;
  color: var(--cream-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-meta {
  color: var(--cream-muted);
  font-size: 13px;
}

.asset-download {
  padding: 9px 14px;
}

.empty-state {
  padding: 46px 24px;
  color: var(--cream-muted);
  text-align: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--cream-muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 26px, 1180px);
    padding-top: 22px;
  }

  .topbar {
    margin-bottom: 42px;
  }

  .status-label {
    display: none;
  }

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

  .partner-panel,
  .partner-header {
    grid-template-columns: 1fr;
  }

  .partner-button {
    width: 100%;
  }

  .asset-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .asset-meta {
    display: none;
  }

  .footer {
    flex-direction: column;
  }
}

/* Keine Bewegung der Karten beim Hover */
.feed-card:hover {
  transform: none;
}

/* Keine Bewegung der Buttons beim Hover */
.button:hover {
  transform: none;
}

/* Vegenergy Markenlogo */
.brand-logo {
  display: block;
  width: 140px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

/* Vegenergy Hintergrund mit Noise Textur */
body {
  background-color: #163a16;
  background-image:
    url("/assets/images/noise-texture.png"),
    radial-gradient(
      rgb(22, 58, 22) 5%,
      rgb(22, 58, 22) 33%,
      rgb(22, 58, 22) 93%
    );
  background-size: 200px 200px, auto;
  background-repeat: repeat, no-repeat;
  background-blend-mode: overlay, normal;
  background-attachment: fixed;
}

@media (max-width: 760px) {
  .brand-logo {
    width: 124px;
    max-height: 50px;
  }
}

/* Sichtbares Vegenergy Logo im Kopfbereich */
.brand-link {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block !important;
  width: 180px !important;
  max-width: 48vw;
  height: auto !important;
  max-height: 64px;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 760px) {
  .brand-logo {
    width: 145px !important;
    max-height: 52px;
  }
}

.brand-link {
  padding: 9px 14px;
  border: 1px solid #d4aa50;
  border-radius: 14px;
  background: #f7f2e8;
}

/* Logo ohne Hintergrundfläche und Rahmen */
.brand-link {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.footer-links a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Partner Asset Galerie */

.asset-toolbar {
  margin: 42px 0 34px;
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-medium);
  background: rgba(13, 38, 13, 0.42);
}

.asset-search {
  display: block;
  margin-bottom: 18px;
}

.asset-search span {
  display: block;
  margin-bottom: 8px;
  color: var(--cream-muted);
  font-size: 13px;
  font-weight: 700;
}

.asset-search input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  outline: none;
  background: rgba(247, 242, 232, 0.07);
  color: var(--cream);
  font: inherit;
}

.asset-search input::placeholder {
  color: rgba(247, 242, 232, 0.5);
}

.asset-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 170, 80, 0.12);
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.05);
  color: var(--cream-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.filter-button:hover {
  border-color: var(--border);
  color: var(--cream);
  transform: none;
}

.filter-button.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--green-900);
}

.filter-button span {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.13);
  font-size: 11px;
}

.asset-category {
  margin-top: 48px;
}

.category-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}

.category-header h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.category-count {
  color: var(--cream-muted);
  font-size: 13px;
  white-space: nowrap;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.asset-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-medium);
  background: rgba(13, 38, 13, 0.5);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.13);
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.asset-card:hover {
  border-color: var(--border);
  background: rgba(247, 242, 232, 0.055);
  transform: none;
}

.asset-preview {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
}

.asset-preview-image {
  background-color: #f7f2e8;
  background-image:
    linear-gradient(
      45deg,
      rgba(22, 58, 22, 0.055) 25%,
      transparent 25%
    ),
    linear-gradient(
      -45deg,
      rgba(22, 58, 22, 0.055) 25%,
      transparent 25%
    ),
    linear-gradient(
      45deg,
      transparent 75%,
      rgba(22, 58, 22, 0.055) 75%
    ),
    linear-gradient(
      -45deg,
      transparent 75%,
      rgba(22, 58, 22, 0.055) 75%
    );
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
}

.asset-preview-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
}

.asset-preview-file {
  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(212, 170, 80, 0.17),
      transparent 60%
    ),
    rgba(247, 242, 232, 0.035);
}

.asset-preview-file span {
  display: inline-flex;
  min-width: 76px;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.asset-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.asset-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.asset-size {
  color: var(--cream-muted);
  font-size: 12px;
}

.asset-title {
  overflow: hidden;
  margin-bottom: 7px;
  color: var(--cream);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.asset-card .asset-path {
  flex: 1;
  margin-bottom: 20px;
  color: var(--cream-muted);
  font-size: 12px;
}

.asset-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.asset-card-actions .button {
  flex: 1;
  min-width: 115px;
}

.asset-card .button:hover,
.asset-preview:hover {
  transform: none;
}

.asset-empty {
  margin-top: 40px;
  padding: 50px 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-medium);
  color: var(--cream-muted);
  text-align: center;
}

@media (max-width: 980px) {
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .asset-toolbar {
    padding: 16px;
  }

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

  .category-header {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .asset-card-actions {
    flex-direction: column;
  }

  .asset-card-actions .button {
    width: 100%;
  }
}

/* Partner Galerie START */

.partner-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 38px 0 50px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-medium);
  background: rgba(13, 38, 13, 0.42);
}

.partner-navigation a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.05);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.partner-navigation a:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: none;
}

.partner-navigation span {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(212, 170, 80, 0.15);
  color: var(--gold-light);
  font-size: 11px;
}

.gallery-section {
  margin-top: 54px;
  scroll-margin-top: 24px;
}

.category-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-header h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 3vw, 35px);
  letter-spacing: -0.035em;
}

.category-count {
  color: var(--cream-muted);
  font-size: 13px;
  white-space: nowrap;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.gallery-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-medium);
  background: rgba(13, 38, 13, 0.5);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.13);
}

.gallery-card:hover {
  border-color: var(--border);
  transform: none;
}

.gallery-preview {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
}

.gallery-preview-image {
  background-color: #f7f2e8;
  background-image:
    linear-gradient(
      45deg,
      rgba(22, 58, 22, 0.06) 25%,
      transparent 25%
    ),
    linear-gradient(
      -45deg,
      rgba(22, 58, 22, 0.06) 25%,
      transparent 25%
    ),
    linear-gradient(
      45deg,
      transparent 75%,
      rgba(22, 58, 22, 0.06) 75%
    ),
    linear-gradient(
      -45deg,
      transparent 75%,
      rgba(22, 58, 22, 0.06) 75%
    );
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.gallery-preview-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
}

.gallery-preview-file {
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(212, 170, 80, 0.18),
      transparent 58%
    ),
    rgba(247, 242, 232, 0.035);
}

.gallery-preview-file span {
  display: inline-flex;
  min-width: 78px;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.gallery-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--cream-muted);
  font-size: 12px;
}

.gallery-card h3 {
  margin-bottom: 7px;
  color: var(--cream);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.gallery-card-body > p {
  flex: 1;
  margin-bottom: 20px;
  color: var(--cream-muted);
  font-size: 12px;
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.gallery-actions .button {
  flex: 1;
  min-width: 115px;
}

.gallery-actions .button:hover,
.gallery-preview:hover {
  transform: none;
}

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .category-header {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .gallery-actions {
    flex-direction: column;
  }

  .gallery-actions .button {
    width: 100%;
  }
}

/* Partner Galerie ENDE */

/* Nutzungsrechte START */

.usage-rights-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin: 38px 0 28px;
  padding: 27px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-medium);
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(212, 170, 80, 0.18),
      transparent 18rem
    ),
    rgba(13, 38, 13, 0.55);
}

.usage-rights-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.usage-rights-panel p:last-child {
  margin-bottom: 0;
  color: var(--cream-muted);
}

.usage-rights-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 22px;
  background: #163a16;
  color: var(--cream);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.usage-rights-dialog::backdrop {
  background: rgba(5, 18, 5, 0.78);
  backdrop-filter: blur(6px);
}

.usage-rights-dialog-inner {
  display: flex;
  max-height: calc(100vh - 40px);
  flex-direction: column;
}

.usage-rights-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 25px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.usage-rights-dialog-header h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.dialog-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: rgba(247, 242, 232, 0.06);
  color: var(--cream);
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}

.dialog-close:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: none;
}

.usage-rights-content {
  overflow-y: auto;
  padding: 25px;
  color: var(--cream-muted);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.usage-rights-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 25px 25px;
  border-top: 1px solid var(--border-soft);
}

@media (max-width: 620px) {
  .usage-rights-panel {
    grid-template-columns: 1fr;
  }

  .usage-rights-panel .button {
    width: 100%;
  }

  .usage-rights-actions {
    flex-direction: column;
  }

  .usage-rights-actions .button {
    width: 100%;
  }
}

/* Nutzungsrechte ENDE */

/* Nutzungsrechtefenster mit Vegenergy Hintergrund */
.usage-rights-dialog {
  background-color: #163a16;
  background-image:
    url("/assets/images/noise-texture.png"),
    radial-gradient(
      circle at 20% 10%,
      rgba(212, 170, 80, 0.12),
      transparent 32rem
    ),
    linear-gradient(
      145deg,
      #163a16,
      #102f10
    );
  background-size:
    200px 200px,
    auto,
    auto;
  background-repeat:
    repeat,
    no-repeat,
    no-repeat;
  background-blend-mode:
    overlay,
    normal,
    normal;
}

.usage-rights-dialog-inner {
  background: transparent;
}

.usage-rights-dialog-header,
.usage-rights-actions {
  background: rgba(13, 38, 13, 0.62);
}

.usage-rights-content {
  background: rgba(22, 58, 22, 0.34);
}

/* Dunkler Hintergrund hinter dem geöffneten Fenster */
.usage-rights-dialog::backdrop {
  background-color: rgba(5, 18, 5, 0.82);
  background-image: url("/assets/images/noise-texture.png");
  background-size: 200px 200px;
  background-repeat: repeat;
  background-blend-mode: overlay;
  backdrop-filter: blur(6px);
}

/* Vorschaubilder exakt zentrieren */
.gallery-preview-image {
  position: relative;
  display: block;
}

.gallery-preview-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  margin: auto;
  padding: 0;
  object-fit: contain;
  object-position: 50% 50%;
}

.preview-kind {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(22, 58, 22, 0.18);
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.92);
  color: #163a16;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

/* Asset Vorschaufenster START */

button.gallery-preview {
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
}

.asset-preview-dialog {
  width: min(860px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 22px;
  background-color: #163a16;
  background-image:
    url("/assets/images/noise-texture.png"),
    radial-gradient(
      circle at 20% 10%,
      rgba(212, 170, 80, 0.13),
      transparent 34rem
    ),
    linear-gradient(
      145deg,
      #163a16,
      #102f10
    );
  background-size:
    200px 200px,
    auto,
    auto;
  background-repeat:
    repeat,
    no-repeat,
    no-repeat;
  background-blend-mode:
    overlay,
    normal,
    normal;
  color: var(--cream);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
}

.asset-preview-dialog::backdrop {
  background-color: rgba(5, 18, 5, 0.84);
  background-image: url("/assets/images/noise-texture.png");
  background-size: 200px 200px;
  background-repeat: repeat;
  background-blend-mode: overlay;
  backdrop-filter: blur(6px);
}

.asset-preview-dialog-inner {
  display: flex;
  max-height: calc(100vh - 36px);
  flex-direction: column;
}

.asset-preview-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 25px 17px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(13, 38, 13, 0.62);
}

.asset-preview-dialog-header h2 {
  margin-bottom: 0;
  font-size: clamp(20px, 3vw, 29px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.asset-preview-stage {
  display: grid;
  min-height: 300px;
  max-height: 62vh;
  flex: 1;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background-color: #f7f2e8;
  background-image:
    linear-gradient(
      45deg,
      rgba(22, 58, 22, 0.055) 25%,
      transparent 25%
    ),
    linear-gradient(
      -45deg,
      rgba(22, 58, 22, 0.055) 25%,
      transparent 25%
    ),
    linear-gradient(
      45deg,
      transparent 75%,
      rgba(22, 58, 22, 0.055) 75%
    ),
    linear-gradient(
      -45deg,
      transparent 75%,
      rgba(22, 58, 22, 0.055) 75%
    );
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
  background-size: 24px 24px;
}

.asset-preview-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(62vh - 48px);
  object-fit: contain;
  object-position: center;
}

.asset-preview-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 25px 24px;
  border-top: 1px solid var(--border-soft);
  background: rgba(13, 38, 13, 0.62);
}

.asset-preview-dialog .button:hover,
button.gallery-preview:hover {
  transform: none;
}

@media (max-width: 620px) {
  .asset-preview-dialog-header {
    padding: 19px 18px 15px;
  }

  .asset-preview-stage {
    min-height: 240px;
    padding: 15px;
  }

  .asset-preview-dialog-actions {
    flex-direction: column;
    padding: 15px 18px 19px;
  }

  .asset-preview-dialog-actions .button {
    width: 100%;
  }
}

/* Asset Vorschaufenster ENDE */

/* Zoom und Videovorschau START */

.asset-preview-stage {
  overflow: auto;
  overscroll-behavior: contain;
}

.asset-preview-stage img {
  transform-origin: center center;
  transition: transform 120ms ease;
  cursor: zoom-in;
}

.asset-preview-stage video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(62vh - 48px);
  margin: auto;
  border-radius: 10px;
  background: #000;
}

.asset-preview-stage video[hidden],
.asset-preview-stage img[hidden] {
  display: none;
}

.asset-preview-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}

.asset-preview-zoom-controls[hidden] {
  display: none;
}

.asset-preview-zoom-controls button {
  display: inline-grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(247, 242, 232, 0.06);
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.asset-preview-zoom-controls button:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: none;
}

#asset-zoom-reset {
  min-width: 72px;
  font-size: 12px;
}

@media (max-width: 620px) {
  .asset-preview-dialog-actions {
    align-items: stretch;
  }

  .asset-preview-zoom-controls {
    width: 100%;
    justify-content: center;
    margin-right: 0;
  }
}

/* Zoom und Videovorschau ENDE */

/* Grauer Vorschauhintergrund START */

.gallery-preview-image,
.asset-preview-stage {
  background-color: #d5d7d3;
  background-image:
    linear-gradient(
      45deg,
      rgba(22, 58, 22, 0.09) 25%,
      transparent 25%
    ),
    linear-gradient(
      -45deg,
      rgba(22, 58, 22, 0.09) 25%,
      transparent 25%
    ),
    linear-gradient(
      45deg,
      transparent 75%,
      rgba(22, 58, 22, 0.09) 75%
    ),
    linear-gradient(
      -45deg,
      transparent 75%,
      rgba(22, 58, 22, 0.09) 75%
    );
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
  background-size: 24px 24px;
}

/* Grauer Vorschauhintergrund ENDE */

/* Dunklerer Vorschauhintergrund */
.gallery-preview-image,
.asset-preview-stage {
  background-color: #8f9490;
  background-image:
    linear-gradient(
      45deg,
      rgba(22, 58, 22, 0.14) 25%,
      transparent 25%
    ),
    linear-gradient(
      -45deg,
      rgba(22, 58, 22, 0.14) 25%,
      transparent 25%
    ),
    linear-gradient(
      45deg,
      transparent 75%,
      rgba(22, 58, 22, 0.14) 75%
    ),
    linear-gradient(
      -45deg,
      transparent 75%,
      rgba(22, 58, 22, 0.14) 75%
    );
}

/* Dezente Animationen START */

@keyframes vegenergySoftEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vegenergyDialogEnter {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes vegenergyBackdropEnter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .topbar {
    animation:
      vegenergySoftEnter
      420ms
      cubic-bezier(0.22, 1, 0.36, 1)
      both;
  }

  .partner-header {
    animation:
      vegenergySoftEnter
      460ms
      50ms
      cubic-bezier(0.22, 1, 0.36, 1)
      both;
  }

  .usage-rights-panel {
    animation:
      vegenergySoftEnter
      460ms
      90ms
      cubic-bezier(0.22, 1, 0.36, 1)
      both;
  }

  .partner-navigation {
    animation:
      vegenergySoftEnter
      460ms
      130ms
      cubic-bezier(0.22, 1, 0.36, 1)
      both;
  }

  .gallery-section {
    animation:
      vegenergySoftEnter
      480ms
      150ms
      cubic-bezier(0.22, 1, 0.36, 1)
      both;
  }

  .gallery-card {
    transition:
      border-color 180ms ease,
      background-color 180ms ease,
      box-shadow 180ms ease;
  }

  .gallery-card:hover {
    border-color: rgba(212, 170, 80, 0.58);
    background-color: rgba(247, 242, 232, 0.065);
    box-shadow:
      0 17px 42px rgba(0, 0, 0, 0.2);
    transform: none;
  }

  .gallery-preview-image img {
    transition:
      transform 260ms ease,
      filter 260ms ease;
  }

  .gallery-card:hover .gallery-preview-image img {
    transform: scale(1.018);
    filter: brightness(1.025);
  }

  .partner-navigation a,
  .button,
  .dialog-close,
  .asset-preview-zoom-controls button {
    transition:
      border-color 170ms ease,
      background-color 170ms ease,
      color 170ms ease,
      box-shadow 170ms ease;
  }

  .partner-navigation a:hover {
    box-shadow:
      0 5px 16px rgba(0, 0, 0, 0.14);
    transform: none;
  }

  .button:hover {
    box-shadow:
      0 5px 17px rgba(0, 0, 0, 0.15);
    transform: none;
  }

  .usage-rights-dialog[open],
  .asset-preview-dialog[open] {
    animation:
      vegenergyDialogEnter
      190ms
      cubic-bezier(0.22, 1, 0.36, 1)
      both;
  }

  .usage-rights-dialog[open]::backdrop,
  .asset-preview-dialog[open]::backdrop {
    animation:
      vegenergyBackdropEnter
      190ms
      ease-out
      both;
  }

  .preview-kind {
    transition:
      background-color 170ms ease,
      box-shadow 170ms ease;
  }

  .gallery-card:hover .preview-kind {
    background-color: #ffffff;
    box-shadow:
      0 5px 16px rgba(0, 0, 0, 0.19);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dezente Animationen ENDE */
