@charset "UTF-8";
button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

button:hover {
  color: var(--text);
  border-color: var(--text);
}

.button {
  width: 160px;
  padding: 12px 32px;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid #efefef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(31, 41, 55, 0.06);
  position: relative;
}

#button-save {
  background-color: var(--school-vibes);
  color: var(--typografie-weiss);
}

#button-save:active {
  transform: scale(0.9);
}

#button-print {
  background-color: var(--various);
  color: #fff;
}

#button-clear {
  background-color: lightpink;
}

.button:hover {
  cursor: pointer;
  box-shadow: 0 0 8px #ccc;
}

.primary {
  background-color: var(--rot);
  color: #fff;
}

.primary:hover {
  background-color: var(--rot-dunkel);
  color: #fff;
}

.button.disabled {
  cursor: not-allowed;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Filter-Button */
#button-filter {
  border: none;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

/* Wenn Button ein Icon img hat */
.button.has-icon {
  display: flex;
  padding: 0;
  justify-content: space-between;
}

.button.has-icon::before {
  content: "";
  border-right: 1px solid #000;
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: center;
  height: 100%;
  width: 40px;
  /* padding-right: 8px; */
}

#button-save::before {
  background-image: url("assets/images/icons/save-icon.svg");
}

#button-preview::before {
  background-image: url("assets/images/icons/view-icon.svg");
}

#button-print::before {
  background-image: url("assets/images/icons/print-icon.svg");
}

#button-clear::before {
  background-image: url("assets/images/icons/delete-icon.svg");
}

.button.has-icon span {
  padding: 12px 32px;
}

#button-add-section {
  margin-left: auto;
  margin-right: auto;
}

.marke-loeschen-btn {
  margin-left: auto;
}

.metaseite {
  /* background-color: #000; */
  color: #fff;
}

section {
  aspect-ratio: 99/70;
  background-color: var(--beige);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 2480px;
  max-width: 3508px;
  position: relative;
  width: 100%;
  gap: 40px;
  /* padding: 40px 80px; */
  /* visibility: visible; */
  opacity: 1;
  height: 794px;
  width: 1123px;
  /* max-height: 794px;
  max-width: 1123px; */
  z-index: 10;
  /* break-after: page; */
  /* transition: visibility 0s, opacity .2s; */
  transform: translateX(0%);
  /* transition-behavior: allow-discrete;
  transition-property: transform, opacity, display;
  transition-timing-function: ease-out;
  transition-duration: 200ms; */
  transition-behavior: allow-discrete;
  transition-property: transform, opacity, display;
  transition-timing-function: ease-out;
  transition-duration: 200ms;
}

@starting-style {
  section {
    transform: translateX(-100%);
    opacity: 0;
  }
}
section:not(.metaseite).hidden,
section:not(.metaseite).versteckt {
  display: none;
  transform: translateX(-100%);
  /* visibility: hidden; */
  opacity: 0;
}

section + section {
  margin-top: 64px;
}

section.metaseite {
  display: flex !important;
  padding: 80px;
}

section header {
  padding: 40px 80px 0 80px;
  display: flex;
  gap: 16px;
  align-items: center;
}

section .filiale {
  margin-left: auto;
}

section article {
  padding: 0 80px;
  position: relative;
  /* height: 100%; */
  display: flex;
  gap: 16px;
  flex: 1;
  align-items: flex-start;
}

section article .content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

input[name=count] {
  width: 60px;
}

.preis {
  white-space: nowrap;
}

.section-price-wrapper {
  align-items: center;
  display: flex;
  gap: 16px;
}

.price-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.total-price {
  font-weight: bold;
}

.masse-titel,
.beschreibung,
.colspan2 {
  grid-column: 1/span 2;
}

.masse {
  grid-column-start: 2;
}

.brand-logo {
  width: 100px;
  height: 100px;
  /* background-color: #000; */
  position: absolute;
  bottom: 0;
  /* object-fit: contain; */
  display: flex;
  place-items: center;
}

.brand-logo img {
  width: 100%;
  height: auto;
}

section article .grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  margin-bottom: auto;
  gap: 16px;
}

/* section footer {
    align-items: center;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    min-height: 50px;
    justify-content: space-between;
    margin-top: auto;
    padding: 0 32px;
    width: 100%;
} */
/* Gallery */
.section-gallery {
  scroll-margin-top: 64px;
}

.section-gallery::before {
  content: "";
  width: 16px;
  height: 64px;
  position: absolute;
  top: -64px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--beige);
}

.section-gallery article {
  flex-direction: column;
}

.letzte-seite {
  justify-content: center;
}

.context-menu-wrapper,
.gallery-delete-button {
  background-color: var(--rot);
  border: 4px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  /* box-shadow: 0 0 6px 0 #aaa; */
  opacity: 0;
  transition: all 0.2s;
  z-index: 20;
}

.context-menu-wrapper:hover,
.gallery-delete-button:hover {
  background-color: var(--rot-dunkel);
}

section:hover .context-menu-wrapper,
.section-gallery:hover .gallery-delete-button {
  opacity: 1;
  cursor: pointer;
}

.context-menu-wrapper::before {
  content: "";
  /* font-weight: bold; */
  display: block;
  /* font-size: 24px; */
  /* color: #fff; */
  background-image: url("assets/images/icons/menu-icon.svg");
  background-size: 24px;
  height: 24px;
  width: 24px;
}

.context-menu {
  background-color: #fff;
  padding: 8px;
  border-radius: 4px;
  position: absolute;
  top: 60px;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 0 6px 0 #aaa;
  white-space: nowrap;
  visibility: hidden;
  z-index: 10;
}

.context-menu.open {
  opacity: 1;
  visibility: visible;
}

.context-menu div {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--grau1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-menu div:hover {
  background-color: var(--rot);
  color: #fff;
}

.context-menu img {
  width: 20px;
  height: 20px;
}

.context-menu div + div {
  margin-top: 4px;
}

[contenteditable],
input,
.dropdown-trigger {
  transition: outline 0.2s;
  background-color: var(--editierbar);
  /* box-shadow: inset 0 0 8px -4px #000; */
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 8px 12px;
  /* Bereite „outline“ transparent vor. */
  outline: 4px solid transparent;
}

[contenteditable]:hover,
input:hover,
.dropdown-trigger:hover {
  outline-color: var(--rot-hell);
}

[contenteditable]:focus,
input:focus,
.dropdown-trigger:focus {
  outline-color: var(--rot);
}

.flaechen-bild-wrapper {
  /* opacity: 0.75; */
  max-height: 600px; /* 250px; */
  width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  /* default image */
  /* background: url('https://placehold.net/600x600.png'); */
  /* background-color: #000;
  display: flex;
  align-items: center; */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 4px 8px 0 #ccc;
  /* flex-shrink: 0; */
}

.flaechen-bild-wrapper div {
  /* background-color: #000; */
  display: flex;
  align-items: center;
  height: 100%;
  cursor: pointer;
  padding: 1rem;
}

.flaechen-bild-wrapper div img {
  transition: opacity 0.2s;
}

.flaechen-bild-wrapper:hover .bild {
  opacity: 0.2;
}

.flaechen-bild-wrapper:hover::after {
  opacity: 1;
}

/* .section-gallery article {
    flex-direction: row;
    flex-wrap: wrap;
} */
.section-gallery .header {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  gap: 16px;
  /* flex-basis: 100%; */
  align-items: center;
}

.gallery-image {
  background-color: #dedede;
  aspect-ratio: 4/4;
}

/* Button zum Löschen des Bildes */
.section-gallery .flaechen-bild-wrapper .button-delete {
  display: flex;
  place-content: center;
  position: absolute;
  font-weight: bold;
  /* color: var(--rot); */
  cursor: pointer;
  right: 0;
  /* transform: translate(-50%, -50%); */
  opacity: 0;
  transition: opacity 0.2s;
  background-color: #fff;
  /* filter: drop-shadow(0 0 8px #000); */
  z-index: 100;
  height: 48px;
  width: 48px;
  border-radius: 50%;
}

.section-gallery .flaechen-bild-wrapper .button-delete img {
  width: 24px;
  height: 24px;
}

.section-gallery .flaechen-bild-wrapper:hover .button-delete {
  opacity: 1;
}

/* Plus + Symbol zum Hochladen */
.flaechen-bild-wrapper::after {
  content: "";
  display: block;
  position: absolute;
  font-weight: bold;
  /* font-size: 160px; */
  width: 160px;
  height: 160px;
  /* color: var(--rot); */
  cursor: pointer;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
  filter: drop-shadow(0 0 8px #000);
  background-image: url("assets/images/icons/upload-icon-red.png");
  background-size: contain;
}

/* toggle icon state */
.flaechen-bild-wrapper:hover .upload-icon {
  opacity: 1;
}

.gallery-delete-button::before {
  content: "";
  font-weight: bold;
  display: block;
  /* font-size: 24px; */
  width: 24px;
  height: 24px;
  color: #fff;
  background-image: url("assets/images/icons/delete-icon.png");
  background-size: contain;
}

.modal-wrapper {
  position: fixed;
  display: flex;
  flex-wrap: wrap;
  place-content: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
}

.modal-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal {
  border-radius: 8px;
  background-color: #fff;
  border-radius: 4px;
  position: relative;
  /* top: 50%; */
  /* left: 50%; */
  /* transform: translate(-50%, -50%); */
  z-index: 100;
  text-align: center;
  /* width: 100%; */
  display: flex;
  gap: 16px;
  font-size: 24px;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-direction: column;
}

.modal .button-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0;
  padding: 0;
  z-index: 10;
}

.modal-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  border-radius: 2px 2px 0 0;
}

.modal img {
  width: 48px;
  height: 48px;
}

.modal-body {
  padding: 16px 32px;
}

.modal-footer {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 16px;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom-right-radius: var(--tblr-modal-inner-border-radius);
  border-bottom-left-radius: var(--tblr-modal-inner-border-radius);
  width: 100%;
}

.modal.erfolg .modal-status {
  background-color: var(--erfolg);
}

.modal.fehler .modal-status {
  background-color: var(--fehler);
}

/* .modal.fehler img {
    fill: var(--rot);
} */
/* Modal-Box */
/* Label-Text über Eingabefeldern */
/* Titel-Textfeld */
/* Checkbox-Gruppe */
/* Fehlermeldung bei fehlender Auswahl */
aside {
  background-color: #fff;
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: 280px;
  min-width: 200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-out;
}

#filter-sidebar {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 28px 20px;
  gap: 24px;
  z-index: 20;
}

#filter-sidebar h2 {
  color: var(--rot);
  display: flex;
  align-items: center;
  gap: 8px;
}

#filter-sidebar h2::before {
  content: "";
  background-image: url("assets/images/icons/filter-icon.svg");
  background-size: 24px;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  display: block;
}

#controls {
  justify-content: space-between;
}

.metabox {
  /* position: fixed; */
  /* right: 0; */
  /* top: 100px; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  /* height: 200px; */
  /* width: 200px; */
  flex-direction: column;
  gap: 16px;
  background-color: #fff;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

#inhaltsverzeichnis {
  top: unset;
  bottom: 100px;
  max-height: 75vh;
}

#inhaltsverzeichnis h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

#inhaltsverzeichnis h3::before {
  content: "";
  background-image: url("assets/images/icons/layers-icon.svg");
  background-size: 24px;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  display: block;
}

#button-show-sections {
  display: flex;
  gap: 6px;
  align-items: center;
}

#button-show-sections::before {
  content: "";
  background-image: url("assets/images/icons/view-icon.svg");
  background-size: 24px;
  width: 24px;
  height: 24px;
}

#rechnung {
  background-color: var(--beige);
  padding: 80px;
}

th {
  background-color: #000;
}

td {
  color: #000;
}

th, td {
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #fff;
}

#rechnung .count {
  text-align: right;
}

#rechnungsbetrag {
  /* color: #000; */
  padding: 8px 16px;
  background-color: #000;
  text-align: right;
  font-weight: 700;
}

#inhaltsverzeichnis ol {
  max-height: 50vh;
  overflow-y: auto;
}

#inhaltsverzeichnis li {
  cursor: pointer;
  border-radius: 4px;
  padding: 4px 8px;
  transition: all 0.1s;
}

/* #inhaltsverzeichnis li + li {
    margin-top: 8px;
} */
#inhaltsverzeichnis li:hover,
#inhaltsverzeichnis li.visible {
  background-color: var(--kundenfuehrung);
  color: #fff;
}

#inhaltsverzeichnis li::marker {
  color: initial;
}

#inhaltsverzeichnis li.focus {
  background-color: lightblue;
}

#inhaltsverzeichnis li.gallery {
  padding-left: 32px;
}

@font-face {
  font-family: "Lineto Alpha Headline Regular";
  src: url("assets/fonts/lineto-alpha-headline--400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Lineto Alpha Headline Bold";
  src: url("assets/fonts/lineto-alpha-headline--700.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}
h2, h3 {
  font-family: "Lineto Alpha Headline Bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* h3 {
    font-family: 'Lineto Alpha Headline Bold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
} */
/* Dropdown */
.dropdown {
  position: relative;
  /* margin-bottom: 32px; */
}

.dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 8px 12px; */
  /* background: var(--surface); */
  /* border: 1.5px solid var(--border); */
  /* border-radius: 4px; */
  font-family: "DM Sans", sans-serif;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  /* transition: border-color .15s, box-shadow .15s; */
  text-align: left;
}

/* .dropdown-trigger:hover  { border-color: #c5c1b8; } */
/* .dropdown-trigger.open   { border-color: var(--rot); box-shadow: 0 0 0 3px rgba(212,40,26,.12); border-radius: 8px 8px 0 0; } */
.dropdown-trigger-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-trigger-text.has-selection {
  color: var(--rot);
  font-weight: 500;
}

.dropdown-trigger-arrow {
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.dropdown-trigger.open .dropdown-trigger-arrow {
  transform: rotate(180deg);
}

.dropdown-option[data-type=kompetenzen] {
  color: #fff;
}

.dropdown-option[data-type=kompetenzen][data-value="Run & Train"] {
  background-color: #004da2;
}

.dropdown-option[data-type=kompetenzen][data-value=Outdoor] {
  background-color: #008e90;
}

.dropdown-option[data-type=kompetenzen][data-value=Winter] {
  background-color: #7bccc8;
}

.dropdown-option[data-type=kompetenzen][data-value=Bike] {
  background-color: #6c3f98;
}

.dropdown-option[data-type=kompetenzen][data-value=Lifestyle] {
  background-color: #d1d2d4;
}

.dropdown-option[data-type=kompetenzen][data-value=Multisport] {
  background-color: #b2b3b6;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --rot: rgb(233, 5, 35);
  --rot-hell: rgb(254, 188, 197);
  --rot-dunkel: rgb(175, 4, 26);
  --typografie-schwarz: rgb(0, 0, 0);
  --typografie-weiss: rgb(255, 255, 255);
  --sale: rgb(254, 241, 0);
  --beige: rgb(238, 236, 231);
  --editierbar: rgb(255, 255, 255);
  --runtrain: rgb(25, 60, 170);
  --runtrain-dunkel: rgb(2, 62, 136);
  --outdoor: rgb(0, 133, 140);
  --outdoor-dunkel: rgb(0, 121, 122);
  --winter: rgb(112, 209, 202);
  --winter-dunkel: rgb(101, 171, 168);
  --bike: rgb(120, 35, 150);
  --bike-dunkel: rgb(90, 49, 128);
  --various: rgb(150, 172, 186);
  --various-dunkel: rgb(111, 139, 153);
  --grau1: rgb(218, 218, 218);
  --grau2: rgb(188, 188, 188);
  --kundenfuehrung: rgb(64, 65, 65);
  --top-price: rgb(25, 60, 170);
  --school-vibes: rgb(90, 176, 49);
  --erfolg: #2fb344;
  --warnung: #f59f00;
  --fehler: #d63939;
  --info: #066fd1;
}

ul, ol {
  padding: revert;
}

body {
  background-color: #333333;
  display: flex;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

main {
  margin: 0 auto 64px auto;
  max-width: 1920px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hidden {
  display: none !important;
}

/*------------------------------------*\
  #SIDEBAR
\*------------------------------------*/
.filiale-dropdown {
  position: relative;
  margin-bottom: 32px;
}

.dropdown-panel {
  display: none;
  position: absolute;
  /* top: calc(100% - 1px); */
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--rot);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 200;
  overflow: hidden;
}

.dropdown-panel.open {
  display: block;
}

.dropdown-search-wrap {
  position: relative;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.dropdown-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}

.dropdown-search {
  width: 100%;
  padding: 6px 8px 6px 26px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.dropdown-search:focus {
  border-color: var(--rot);
}

.dropdown-options {
  max-height: 180px;
  overflow-y: auto;
  padding: 4px 0;
}

.dropdown-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13.5px;
  transition: background 0.12s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.dropdown-option:hover {
  background: var(--bg);
}

.dropdown-option.selected {
  background: var(--accent-light);
}

.dropdown-option[aria-hidden=true] {
  display: none;
}

.dropdown-option-check {
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.12s, background 0.12s;
}

.dropdown-option.selected .dropdown-option-check {
  background: var(--rot);
  border-color: var(--rot);
}

.dropdown-option-check::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity 0.12s;
}

.dropdown-option.selected .dropdown-option-check::after {
  opacity: 1;
}

.dropdown-option-count {
  margin-left: auto;
  font-size: 10px;
  font-family: "DM Mono", monospace;
  background: var(--bg);
  border-radius: 20px;
  padding: 1px 6px;
  color: var(--muted);
}

.dropdown-option.selected .dropdown-option-count {
  background: rgba(212, 40, 26, 0.12);
  color: var(--rot);
}

.dropdown-empty {
  display: none;
  text-align: center;
  padding: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.dropdown-empty.visible {
  display: block;
}

/* selected tags below the dropdown */
.dropdown-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  min-height: 0;
}

.dropdown-kompetenzen .dropdown-tags {
  margin-top: 0;
  margin-bottom: 8px;
}

.dropdown-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-light);
  color: var(--rot);
  border: 1px solid #f4bcb8;
  border-radius: 20px;
  padding: 3px 8px 3px 10px;
  font-size: 11.5px;
  font-weight: 500;
  animation: tagIn 0.15s ease;
}

@keyframes tagIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.dropdown-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--rot);
  font-size: 13px;
  line-height: 1;
  padding: 0;
  display: grid;
  place-items: center;
  opacity: 0.7;
  transition: opacity 0.12s;
}

.dropdown-tag-remove:hover {
  opacity: 1;
}

/*------------------------------------*\
  #SECTION
\*------------------------------------*/
.gap-16 {
  height: 16px;
  grid-column: 1/span 2;
}

.gap-32 {
  height: 32px;
  grid-column: 1/span 2;
}

.preis-input {
  display: flex;
  gap: 8px;
  align-items: center;
}

/*------------------------------------*\
  #BILDER-UPLOAD
\*------------------------------------*/
.section-images {
  display: flex;
  justify-content: end;
  align-items: flex-start;
}

.file-uploader {
  /* make it invisible */
  opacity: 0;
  /* make it take the full height and width of the parent container */
  height: 100%;
  width: 100%;
  cursor: pointer;
  /* make it absolute */
  position: absolute;
  z-index: 10;
  top: 0%;
  left: 0%;
}

section .content.second-image {
  grid-template-columns: 40% 60%;
}

section .content.second-image .flaechen-bild-wrapper {
  flex-basis: 50%;
}

section article .bild {
  /* aspect-ratio: 3 / 4; */
  max-height: 100%;
  /* max-width: 250px; */
  /* max-height: 250px; */
  width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.upload-icon {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* initial icon state */
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ccc;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #bbb;
}

/*------------------------------------*\
  #DASHBOARD
\*------------------------------------*/
/*------------------------------------*\
  #Claude.ai
\*------------------------------------*/
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --border: #e2e0d8;
  --text: #1a1916;
  --muted: #6b6960;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* ── SIDEBAR ─────────────────────────────────────── */
.filter-group-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text);
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.checkbox-label:hover {
  background: var(--bg);
}

.checkbox-label input[type=checkbox] {
  display: none;
}

.custom-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.15s, background 0.15s;
}

.checkbox-label input:checked ~ .custom-checkbox {
  background: var(--rot);
  border-color: var(--rot);
}

.custom-checkbox::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity 0.15s;
}

.checkbox-label input:checked ~ .custom-checkbox::after {
  opacity: 1;
}

.filter-count {
  margin-left: auto;
  font-size: 11px;
  font-family: "DM Mono", monospace;
  background: var(--bg);
  border-radius: 20px;
  padding: 1px 7px;
  color: var(--muted);
}

.sidebar-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── MAIN CONTENT ────────────────────────────────── */
/* main {
flex: 1;
padding: 32px 36px;
overflow-y: auto;
} */
.main-header {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#results-count {
  font-size: 13px;
  font-family: "DM Mono", monospace;
  color: var(--muted);
}

/* ── SECTIONS ────────────────────────────────────── */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

section[data-filiale] {
  /* background: var(--surface); */
  /* border: 1px solid var(--border); */
  /* border-radius: var(--radius); */
  /* overflow: hidden;
  box-shadow: var(--shadow); */
  /* transition: opacity .25s, transform .25s;
  animation: fadeIn .3s ease forwards; */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section-thumb {
  width: 100%;
  height: 180px;
  -o-object-fit: cover;
     object-fit: cover;
  background: var(--bg);
  display: block;
}

.section-body {
  padding: 18px 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 3px 8px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

.tag.tag-filiale {
  background: var(--accent-light);
  color: var(--rot);
  border-color: #f4bcb8;
}

.tag.tag-typ {
  background: #eef4ff;
  color: #2558c8;
  border-color: #c5d8ff;
}

.tag.tag-flaeche {
  background: #f0faf0;
  color: #2a7a2a;
  border-color: #b8e0b8;
}

.section-meta {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.no-results {
  display: none;
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: 15px;
}

.no-results.visible {
  display: block;
}

/* ── MOBILE ──────────────────────────────────────── */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--rot);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 40, 26, 0.35);
  z-index: 100;
}

@media (max-width: 768px) {
  #filter-sidebar {
    position: fixed;
    left: -100%;
    height: 100vh;
    transition: left 0.3s ease;
  }
  #filter-sidebar.open {
    left: 0;
  }
  .sidebar-toggle {
    display: grid;
    place-items: center;
  }
}
/* ── CODE TAB ────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s;
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--rot);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 20px;
  border-radius: var(--radius);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}

.copy-btn {
  margin-top: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.copy-btn:hover {
  background: var(--border);
}

.copy-btn.copied {
  color: #2a7a2a;
}

/* ── KUNDE FILTER ───────────────────────────────────── */
.kunde-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.kunde-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  border: 1.5px solid transparent;
}

.kunde-radio-label:hover {
  background: var(--bg);
}

.kunde-radio-label input[type=radio] {
  display: none;
}

.kunde-radio-label.active {
  background: var(--accent-light);
  border-color: #f4bcb8;
  color: var(--rot);
}

body.kunde-active .section-edit-bar {
  display: flex;
}

.kunde-logo {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  -o-object-fit: contain;
     object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  padding: 3px;
  flex-shrink: 0;
}

.kunde-radio-dot {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.15s;
}

.kunde-radio-label.selected .kunde-radio-dot {
  border-color: var(--rot);
  background: var(--rot);
  box-shadow: inset 0 0 0 3px #fff;
}

.deckblatt {
  background-position: bottom;
}

.deckblatt h2 {
  color: #000;
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: 0px;
}

.deckblatt .ochsner-logo,
.letzte-seite .ochsner-logo {
  width: 100%;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -o-object-fit: contain;
     object-fit: contain;
}

.deckblatt .ochsner-titel {
  width: 480px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

body.preview-pdf #preview-banner {
  transform: translateY(0%);
}

body.preview-pdf main,
body.print main {
  margin-top: 0;
  margin-bottom: 0;
}
body.preview-pdf aside#filter-sidebar,
body.print aside#filter-sidebar {
  transform: translateX(-100%);
}
body.preview-pdf aside#controls,
body.print aside#controls {
  transform: translateX(100%);
}
body.preview-pdf [contenteditable],
body.print [contenteditable] {
  background: unset;
  border: unset;
  padding: unset;
  outline: unset;
  -o-tab-size: 4;
     tab-size: 4; /* Tab-Breite in Leerzeichen-Einheiten */
  -moz-tab-size: 4;
}
body.preview-pdf .kompetenz .dropdown,
body.preview-pdf .kompetenz .dropdown-tag-remove,
body.print .kompetenz .dropdown,
body.print .kompetenz .dropdown-tag-remove {
  display: none;
}
body.preview-pdf .kompetenz .dropdown-tag,
body.print .kompetenz .dropdown-tag {
  background-color: unset;
  border: unset;
  color: #000;
  font-size: unset;
  padding: unset;
}
body.preview-pdf .flaechen-bild-wrapper:hover > div,
body.print .flaechen-bild-wrapper:hover > div {
  cursor: unset;
}
body.preview-pdf .flaechen-bild-wrapper:hover > div img,
body.print .flaechen-bild-wrapper:hover > div img {
  opacity: 1;
}
body.preview-pdf .flaechen-bild-wrapper:hover::after,
body.print .flaechen-bild-wrapper:hover::after {
  opacity: 0;
  visibility: hidden;
}
body.preview-pdf .flaechen-bild-wrapper:hover .file-uploader,
body.print .flaechen-bild-wrapper:hover .file-uploader {
  visibility: hidden;
}
body.preview-pdf section:hover .context-menu-wrapper,
body.preview-pdf .section-gallery:hover .gallery-delete-button,
body.print section:hover .context-menu-wrapper,
body.print .section-gallery:hover .gallery-delete-button {
  visibility: hidden;
  opacity: 0;
}
body.preview-pdf .section-gallery::before,
body.print .section-gallery::before {
  display: none;
}

body.print #preview-banner {
  display: none;
}
body.print section {
  margin-top: 0;
}

.football-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.football-grid li {
  background-color: #eee;
  border-radius: 4px;
  padding: 4px 8px;
}

.dropdown-wrapper.no-focus,
#group-typ.no-focus {
  opacity: 0.25;
}

.successMessage {
  position: fixed;
  z-index: 100;
  background-color: green;
  color: #fff;
  padding: 16px;
  border-radius: 8px;
  top: 50%;
  font-size: 80px;
  text-transform: capitalize;
  transform: translateY(-50%);
}

#preview-banner {
  background-color: var(--info);
  height: 64px;
  position: sticky;
  color: #fff;
  top: 0;
  z-index: 100;
  font-size: 24px;
  justify-content: center;
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: transform 0.2s;
  transform: translateY(-100%);
}

#preview-banner button {
  position: absolute;
  right: 16px;
}

@keyframes countdown {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
.fade-out {
  opacity: 0;
}/*# sourceMappingURL=style.min.css.map */