@charset "UTF-8";

/* ============================================================
   01 Root / Design Tokens
   ------------------------------------------------------------
   Stage 1: Strukturierung ohne aggressive Kürzung.
   Wichtig: späte Overrides bleiben bewusst weiter unten,
   damit die bestehende Kaskade möglichst stabil bleibt.
============================================================ */

:root {
  --color-1: rgba(0, 0, 0, 1);
  --color-2: rgba(0, 0, 0, 1);
  --color-3: rgba(214, 233, 198, 1);
  --color-4: rgba(204, 204, 204, 1);
  --color-5: rgba(214, 233, 198, 1);
  --color-6: rgba(214, 233, 198, 1);
  --color-7: rgba(240, 240, 240, 1);
  --color-8: rgba(165, 159, 148, 0.1);
  --color-9: rgba(236, 234, 233, 1);
  --color-10: rgba(0, 0, 0, 1);
  --color-11: rgba(0, 0, 0, 1);
  --color-12: rgba(0, 0, 0, 1);
  --color-13: rgba(244, 244, 244, 1);
  --color-14: rgba(244, 244, 244, 1);
  --color-15: rgba(0, 0, 0, 1);
  --color-16: rgba(255, 255, 255, 0.85);
  --color-17: rgba(255, 255, 255, 0.90);
  --color-18: rgba(160, 1, 1, 0.96);
  --color-19: rgba(160, 1, 1, 1);
  --color-20: rgba(255, 255, 255, 1);
  --color-21: rgba(160, 1, 1, 1);
  --icon-arrow-left: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <polyline points='15 18 9 12 15 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='butt' stroke-linejoin='miter'/>\
</svg>");
  --floating-actions-h: 2.5rem;
}

/* ============================================================
   02 Reset / Base
============================================================ */

/* Base document */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--color-13);
}

body {
  display: flex;
  flex-direction: column;
}

.menu-content {
  flex-direction: column;
}

/* HTML5 elements */
article,
aside,
footer,
header,
main,
nav,
section {
  display: block;
}

/* Media */
img {
  border-radius: 0;
}

iframe {
  width: 100%;
  min-height: 480px;
  margin-top: 1.875rem;
  border: none;
}

/* Links */
a {
  display: inline-block;
  margin-top: 0;
  text-decoration: none;
}

a:link,
a:visited,
.profile-button:link,
.profile-button:visited,
a.footer-link:link,
a.footer-link:visited {
  color: var(--color-11);
  text-decoration: none;
}

a:hover,
.name a:hover,
a.footer-link:hover {
  color: var(--color-19);
}

.name a:hover::after,
a.footer-link:hover::after,
a.name:link:hover::after {
  content: none;
}

/* Horizontal rules */
hr,
.hr-field-badge {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-11), transparent);
  opacity: .3;
}

hr {
  margin: .3rem 0;
}

.hr-field-badge {
  margin: .5rem 0;
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem;
  letter-spacing: .0825rem;
  line-height: 1.6;
  font-family: inherit;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul li {
  padding-left: 1.5rem;
  margin-bottom: .5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul li::before {
  content: "— ";
  font-variant-ligatures: none;
}

/* ============================================================
   03 Typography
============================================================ */

/* Font smoothing */
p,
a,
h1,
h2,
h3,
h4 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Shared headline styling */
h1,
h2,
h3,
h4,
h5,
h6,
.intro {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: .0825rem;
  color: var(--color-11);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Main headings */
h1,
.intro {
  font-size: 2.1rem;
  line-height: 2.4rem;
  max-width: 700px;
}

h1 {
  margin: 0 0 .3125rem;
}

h2 {
  margin: 2.125rem 0;
  font-size: 1.95rem;
  line-height: 2.2rem;
  max-width: 700px;
}

/* Sub headings */
h3,
h4,
h5,
h6 {
  margin: 2.125rem 0 .3125rem;
}

h3 {
  font-size: 1.375rem;
  max-width: 700px;
}

h4,
h5 {
  font-size: 1.125rem;
  max-width: 800px;
}

h6,
p,
.info-block {
  font-size: 1rem;
}

/* Paragraphs */
p {
  margin: 0;
  max-width: 800px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .0825rem;
  color: var(--color-11);
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Intro text */
.intro {
  margin: 0 0 1.4rem;
}

/* Info blocks */
.info-block {
  margin: 1.25rem 0;
  font-weight: 400;
  color: var(--color-11);
}

/* Utility text styles */
.red-title {
  color: var(--color-19);
}

.label-description {
  margin-bottom: .56rem;
}

.title {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: .0825rem;
}

.info,
#resultCounter,
.tag,
.tag.selected::before {
  letter-spacing: .0825rem;
}

/* ============================================================
   04 Layout Containers
============================================================ */

/* Shared max width */
.container,
.container-profil,
.container-profil-dyn,
.box-profil,
.filepond,
.kontakt-box,
.layout-box,
.success-message {
  max-width: 800px;
}

/* Main layout container */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Standard content containers */
.container-profil {
  margin: 0;
  padding: .625rem 3.125rem .625rem .625rem;
}

.container-profil-dyn {
  margin: 0;
  padding: var(--floating-actions-h, .625rem) 3.125rem .625rem .625rem;
}

/* Profile box */
.box-profil {
  margin: 0;
  padding: .625rem 2.1rem .625rem .625rem;
}

/* Layout boxes */
.layout-box {
  width: auto;
  margin-left: .625rem;
  margin-right: 3.1rem;
  box-sizing: border-box;
}

.search-box {
  width: auto;
  margin: 0;
  box-sizing: border-box;
}

/* Right fixed background/content area */
.right-container {
  position: fixed;
  top: 0;
  right: 0;
  width: calc(100% - 833px);
  height: 100vh;
  background-color: #f9f9f9;
  z-index: 1;
}

/* ============================================================
   05 Header / Logo / Footer / Breadcrumb
============================================================ */

/* Logo */
.logo-container {
  display: inline-block;
  width: 60vw;
  max-width: 20rem;
  margin: .625rem 0 .625rem .625rem;
  cursor: pointer;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

/* Footer */
.footer-wrapper {
  margin-top: 0;
  padding-bottom: 0;
}

.footertext {
  margin: .625rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .825rem;
  font-weight: 400;
  line-height: 1rem;
  letter-spacing: .0825rem;
  color: var(--color-11);
  text-align: center;
}

/* Footer: gleiche Schriftgrösse für Links und Copyright */
.footertext,
.footertext a,
.footertext span,
.footer-link {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .825rem;
  font-weight: 400;
  line-height: 1rem;
  letter-spacing: .0825rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.footertext a,
.footer-link {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* Breadcrumb */
.breadcrumb {
  margin-top: 1.5em;
  margin-bottom: .3em;
  text-align: center;
  letter-spacing: .0825rem;
}

.breadcrumb ol {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  padding-left: 0;
}

.breadcrumb li::before {
  content: none;
}

.breadcrumb li::after {
  content: "›";
  margin: 0 .4em;
  color: var(--color-15);
}

.breadcrumb li:last-child::after {
  content: none;
}

.breadcrumb a {
  color: var(--color-15);
  text-decoration: none;
  transition: color .2s ease;
}

.breadcrumb a:hover {
  color: var(--color-18);
}

/* ============================================================
   06 Menu / Right Rail / Corner Stack
============================================================ */

/* Right rail */
.menu-bar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-14);
  border-left: 1px solid var(--color-11);
  color: var(--color-11);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: .2025rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  pointer-events: none;
  cursor: pointer;
  transition: width .2s, background-color .2s;
}

.menu-label {
  display: none;
  white-space: nowrap;
  transform: rotate(360deg);
}

/* Open menu state */
.menu-bar.open {
  width: 100vw;
  background-color: var(--color-20);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  writing-mode: horizontal-tb;
  pointer-events: auto;
}

.menu-bar.open .menu-label {
  display: none;
}

/* Menu overlay content */
.menu-content {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 1.9rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}

.menu-bar.open .menu-content {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.menu-content .color-switcher-box {
  opacity: 0;
  animation: fadeIn .4s 1.4s forwards;
}

.menu-content a.active-link {
  font-weight: 700;
  transform: scale(1.45);
  transition: transform .3s;
}

/* Menu links */
.menu-bar a:link,
.menu-bar a:visited {
  color: var(--color-11);
  text-decoration: none;
}

.menu-bar.open .menu-content a:link,
.menu-bar.open .menu-content a:visited {
  color: var(--color-15);
}

.menu-bar.open .menu-content a:hover {
  color: var(--color-19);
}

.menu-bar a:hover::after {
  content: "";
  display: inline-block;
  width: .9em;
  height: .9em;
  margin-left: .625rem;
  background: currentColor;
  vertical-align: -.15em;
  -webkit-mask: var(--icon-arrow-left) no-repeat center / 100% 100%;
  mask: var(--icon-arrow-left) no-repeat center / 100% 100%;
}



/* Corner stack */
.corner-stack {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  padding-bottom: .5rem;
}

.return-box,
.scroll-up-box,
.help-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--color-13);
  border-top: 1px solid var(--color-11);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  color: var(--color-11);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s, color .3s, transform .2s;
}

.return-box:hover,
.scroll-up-box:hover,
.help-box:hover {
  background-color: var(--color-21);
  color: var(--color-14);
}

.return-box svg,
.scroll-up-box svg {
  display: block;
  width: 36px;
  height: 36px;
  transform: none;
  transform-origin: 50% 50%;
}

.return-box svg {
  margin-left: -2px;
}

.scroll-up-box svg {
  margin-top: -1px;
}

/* Corner stack order */
.corner-stack .scroll-up-box {
  order: 0;
}

.corner-stack .help-box {
  order: 1;
}

.corner-stack .return-box {
  order: 2;
}

/* Hidden states */
.scroll-up-box[hidden],
body.menu-open .corner-stack,
body.menu-open .fav-box,
.hidden {
  display: none !important;
}

.scroll-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  order: 0;
}

/* ============================================================
   07 Forms / Inputs / Buttons
============================================================ */

/* Shared form sizing */
.input,
input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Shared form font */
.filepond,
.tag-preview,
input,
select,
textarea {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Standard fields */
input,
select,
textarea {
  max-width: 800px;
  margin-bottom: 1em;
  padding: .5em;
  border: .0625rem solid var(--color-15);
  border-radius: 0;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: .0825rem;
}

/* Focus states */
input:focus,
textarea:focus {
  color: var(--color-11);
  background-color: var(--color-20);
  outline: 0;
}

/* Valid field indicator */
input:valid:not(:placeholder-shown):not([type=file]):not([type=hidden]),
textarea:valid:not(:placeholder-shown) {
  padding-right: 2rem;
  background-color: rgb(250, 255, 189);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17L4 12' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1.2rem;
}

/* Select fields */
select {
  padding-right: 2rem;
  background-color: var(--color-20);
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='%23800080' d='M7 10L0 0h14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: .75rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Checkbox reset/custom checkbox */
input[type=checkbox] {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

input[type=checkbox]:checked + .custom-checkbox::after {
  content: "✓";
  position: absolute;
  top: -.1rem;
  left: .4rem;
  font-size: 1.6rem;
  color: var(--color-15);
}

/* Labels and highlighted form-related states */
label,
.distance.highlighted,
.filepond--action-remove-item,
.name.highlighted {
  color: var(--color-15);
}

/* Buttons */
button,
.search-button,
.freigabe-buttons button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: none;
  background-color: var(--color-15);
  color: var(--color-14);
  font-size: 1rem;
  cursor: pointer;
}

button,
.freigabe-buttons button {
  padding: .75rem;
}

button {
  position: static;
  margin-top: 0;
}

button:hover,
.freigabe-buttons button:hover,
.whatsapp-contact-button:hover {
  background-color: var(--color-19);
  color: var(--color-14);
}

button[type="submit"] {
  font-style: normal !important;
  letter-spacing: .2rem;
}

.search-button {
  margin-top: .5rem;
  padding: .9375rem;
  letter-spacing: .2rem;
}

.form-button {
  letter-spacing: .0825rem;
}

/* Input wrapper */
.input-wrapper {
  max-width: 800px;
  margin: .5rem auto 1rem;
  padding: 0 1rem;
}

.input {
  position: static !important;
  max-width: 100%;
  margin-bottom: .5rem;
  padding: .9375rem;
}

/* Placeholders */
.container-profil input::placeholder,
.container-profil textarea::placeholder {
  color: var(--color-15);
  font-size: 1rem;
  font-style: normal;
  letter-spacing: .0825rem;
  opacity: 1;
}

.container-profil input::-webkit-input-placeholder,
.container-profil textarea::-webkit-input-placeholder {
  color: var(--color-15);
}

.container-profil input:-moz-placeholder,
.container-profil textarea:-moz-placeholder,
.container-profil input::-moz-placeholder,
.container-profil textarea::-moz-placeholder,
.container-profil input:-ms-input-placeholder,
.container-profil textarea:-ms-input-placeholder {
  color: var(--color-15);
}

/* URL input prefix */
.url-wrapper {
  position: relative;
}

.url-wrapper span {
  position: absolute;
  top: 50%;
  left: 10px;
  color: #777;
  font-size: .9em;
  pointer-events: none;
  transform: translateY(-50%);
}

.url-wrapper input {
  padding-left: 90px;
}

/* Form errors */
.form-errors {
  position: fixed;
  top: 30px;
  left: 50%;
  z-index: 10000;
  display: none;
  width: 70%;
  max-width: 700px;
  padding: 1.5rem 2rem;
  background-color: var(--color-19);
  border-radius: .5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
  color: var(--color-14);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .4s;
}

.form-errors.show-error {
  display: block;
  opacity: 1;
}

.form-errors ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.form-errors li::before {
  content: "– ";
  margin-right: .5rem;
}

/* Floating form message */
.form-message {
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: 1000;
  max-width: 40%;
  padding: 30px 30px 40px;
  background: var(--color-19);
  border: 0 solid #aaa;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  color: var(--color-13);
  text-align: center;
  letter-spacing: .1rem;
  transform: translateX(-50%);
}

/* Approval buttons */
.freigabe-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin-top: 1.5rem;
}

.freigabe-buttons form {
  width: 100%;
}

.freigabe-buttons button {
  letter-spacing: .02rem;
}

/* Danger button */
.btn-danger {
  margin: 1rem 0 .5rem;
  padding: 20px 30px;
  border: 1px solid var(--color-11);
}

/* ============================================================
   08 Tags / Checkboxes / Autocomplete
============================================================ */

/* Custom checkbox labels */
.checkbox-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox,
.checkbox-label .custom-checkbox {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  border: 1px dotted var(--color-15);
  border-radius: 0;
}

.custom-checkbox {
  width: 2rem;
  height: 2rem;
  margin-right: .5rem;
  background-color: var(--color-13);
  vertical-align: middle;
}

.checkbox-label .custom-checkbox {
  width: 2.75rem;
  height: 2.75rem;
  margin: 1rem .7rem 1rem 0;
  background-color: var(--color-20);
}

.checkbox-label input[type=checkbox]:checked + .custom-checkbox::after {
  content: "✓";
  position: absolute;
  top: -.1rem;
  left: .4rem;
  font-size: 2.4rem;
  color: var(--color-13);
}

/* Startseite / normale Tagliste: darf eigener Scrollbereich sein */
.tags-container {
  position: relative;
  flex: 1;
  max-width: 800px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Registration / Experience-Tags: kein eigener Scrollbereich */
.tags-container-register {
  position: relative;
  max-width: 800px;
  margin: .625rem 0 1.9rem;

  flex: none;
  min-height: auto;

  overflow: visible;
  overflow-x: visible;
  overflow-y: visible;

  scrollbar-width: auto;
  -ms-overflow-style: auto;
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: auto;
}

.tags-container::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.tags-container {
  margin: .625rem 3.125rem .3rem .625rem;
  padding-bottom: 2.6rem;
  -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
}

.tags-container::-webkit-scrollbar {
  display: none;
}

/* Tag grids */
.tags-grid,
.tags-grid-register {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tags-grid {
  gap: .6rem;
}

.tags-grid-register {
  gap: .3rem;
}

/* Tags */
.tag {
  position: relative;
  overflow: hidden;
  padding-top: 38%;
  border: 1px solid var(--color-11);
  border-radius: 0;
  color: var(--color-11);
  font-size: clamp(16px, 2.8vw, 20px);
  font-weight: 400;
  line-height: 1em !important;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.tag::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  left: 50%;
  white-space: normal;
  transform: translate(-50%, -50%);
}

.tag.selected {
  border-color: var(--color-21);
  background-color: var(--color-21);
  color: var(--color-14);
  font-weight: 400;
}

.tag.selected::before {
  content: "×";
  position: absolute;
  top: .2rem;
  left: .2rem;
  color: var(--color-14);
  font-size: 3.125rem;
  font-weight: lighter;
}

.tag-register {
  height: 2.9rem !important;
  padding-top: .5rem;
  border-radius: 0;
  font-size: 1rem;
}

/* Tag preview */
.tag-preview {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 12.5rem;
  height: 12.5rem;
  padding: .625rem;
  box-sizing: border-box;
  background: radial-gradient(circle, var(--color-14) 30%, var(--color-13) 100%);
  border-radius: 50%;
  color: var(--color-11);
  font-size: .625rem;
  font-weight: 400;
  letter-spacing: .0825rem;
  text-align: left;
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(1.875rem);
  backdrop-filter: blur(1.875rem);
}

.tag-preview div {
  margin: .25rem 0;
}

/* Autocomplete */
.autocomplete-suggestions {
  position: absolute;
  right: 3.75rem;
  bottom: 10.5rem;
  left: 1.25rem;
  z-index: 999;
  max-width: 600px;
  max-height: 25rem;
  overflow-y: auto;
  background: var(--color-13);
  box-shadow: .125rem .125rem .3125rem var(--color-12);
  font-size: 1.5rem;
  letter-spacing: .0825rem;
}

.autocomplete-item {
  padding: .625rem;
  cursor: pointer;
}

.autocomplete-item:hover {
  background-color: var(--color-19);
  color: var(--color-13);
}

/* Desktop warning */
.desktop-warning {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50vw;
  height: 50vw;
  max-width: 90vh;
  max-height: 90vh;
  padding: 1.25rem;
  box-sizing: border-box;
  background-color: var(--color-19);
  border-radius: 50%;
  color: var(--color-13);
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
}

/* ============================================================
   09 Profile Page
============================================================ */

/* Header / main profile image */
.profil-header,
.profile-photo {
  margin-bottom: 1.25rem;
}

.profile-photo {
  display: block;
  width: 100%;
  max-width: 800px;
}

/* Profile text */
.description {
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

.profile-text-mit-bild::after {
  content: "";
  display: table;
  clear: both;
}

/* Profile gallery */
.profil-page .gallery {
  visibility: hidden;
  transition: visibility 0s linear .2s;
}

.profil-page .gallery.masonry-loaded {
  visibility: visible;
  transition-delay: 0s;
}

/* Directory entries */
.directory-entry {
  margin-left: 2.6em;
}

.directory-heading {
  margin-top: 3.2em !important;
}

/* Floated profile image */
.profilbild-wrapper {
  float: right;
  width: clamp(300px, 20vw, 500px);
  margin: .4rem 0 1rem 1rem;
  overflow: hidden;
}

.profilbild-umflossen {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform-origin: center center;
  transition: transform .9s ease;
  -webkit-user-drag: none;
}

.profilbild-umflossen:hover {
  transform: scale(1.1);
}

/* Profile details */
.profil-line {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-11);
}

.profil-image {
  max-width: 200px;
  margin-top: 5px;
}

/* Notices */
.notice-text {
  margin-top: .5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--color-15);
  border-radius: 0;
  color: var(--color-13);
  text-align: center;
}

/* Contact box */
.kontakt-box {
  width: 100%;
  margin: .5rem 0 1.5rem;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--color-14);
  border: none;
}

.kontakt-box h2 {
  margin-top: 0;
}

/* Contact wrappers */
.email-contact-wrapper,
.telefon-contact-wrapper,
.whatsapp-contact-wrapper {
  text-align: center;
}

.email-contact-wrapper {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.telefon-contact-wrapper {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.whatsapp-contact-wrapper {
  margin-bottom: 2rem;
}

/* Contact buttons */
.email-contact-button,
.telefon-contact-button,
.whatsapp-contact-button:link,
.whatsapp-contact-button:visited {
  display: inline-block;
  width: 100%;
  max-width: 100%;
  padding: 1em 1.5em;
  box-sizing: border-box;
  background-color: var(--color-11);
  border: 0;
  border-radius: 0;
  color: var(--color-14);
  font-size: 1rem;
  letter-spacing: .1875rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease;
}

.whatsapp-contact-button:link,
.whatsapp-contact-button:visited {
  letter-spacing: .1625rem;
}

.email-contact-button:hover,
.telefon-contact-button:hover,
.whatsapp-contact-button:hover {
  background-color: var(--color-19);
  color: var(--color-14);
}

/* Copied email state */
.email-contact-button.copied {
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17L4 12' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1.2rem;
}

.email-direct-link {
  display: inline-block;
  margin-top: 0;
  color: var(--color-14);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1875rem;
}

/* Social links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.6rem;
  margin-bottom: 1rem;
}

.social-icon {
  width: 46px;
  height: 46px;
  transition: transform .2s;
}

.social-icon:hover {
  transform: scale(1.15);
}

/* Partner links */
.partner-links p {
  text-align: left;
  line-height: 1.6;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Address */
.address-container {
  display: flex;
  gap: 2rem;
}

.address {
  white-space: pre-line;
}

.address p {
  padding-left: .6rem;
  border-left: 1px solid var(--color-11);
}

/* ============================================================
   10 Results Page
============================================================ */

/* Result cards */
.result-card {
  margin-bottom: .3125rem;
  padding: .75rem;
  background-color: var(--color-9);
  border-bottom: .0625rem solid var(--color-11);
  font-size: .75rem;
  cursor: pointer;
}

.result-card:hover {
  background-color: var(--color-19);
}

.no-results {
  margin: 1.5rem 0;
  color: var(--color-15);
  font-style: italic;
}

/* Result item */
.result-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1rem;
}

/* Result text */
.result-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  line-height: 1.1;
 margin-top: 0.7rem;
}

.result-text .name {
  font-size: 1.2rem;
  font-weight: 400;
}

.result-text .ort {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .0825rem !important;
}

.result-text .info {
  margin-top: 0.4em;
  color: var(--color-11);
  font-size: .875rem;
  letter-spacing: .0825rem !important;
  white-space: normal;
}

.name a:link,
.name a:visited {
  display: inline-block;
  margin-right: 4px;
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
}

/* Result image */
.result-photo img {
  width: auto;
  max-width: 280px;
  max-height: 180px;
  border: 0 solid #ccc;
  object-fit: contain;
  filter: grayscale(100%) sepia(5%) brightness(1.15) contrast(.91);
  transition: filter .05s ease;
}

.result-photo:hover img,
.result-photo img:hover,
a.result-text-link:hover .result-photo img,
a.result-text-link:focus-visible .result-photo img {
  filter: grayscale(0%);
}

/* Result link card */
a.result-text-link {
  display: flex !important;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: .4em 1em .3em .4em;
  box-sizing: border-box;
  background-color: var(--color-20);
  border: 0 solid var(--color-11);
  color: inherit;
  text-decoration: none;
  letter-spacing: .0825rem;
  cursor: pointer;
  transition: background-color .2s;
}

/* ============================================================
   Results: lighter vintage / autumn hover colors
   slightly brighter, with mustard / dusty blue / apricot / mauve
============================================================ */

.results .result-item:nth-child(7n + 1) {
  --result-hover-bg: #c7b76a; /* helles Ocker / Senf */
  --result-hover-fg: #111;
}

.results .result-item:nth-child(7n + 2) {
  --result-hover-bg: #90a0af; /* staubiges Blau-Grau */
  --result-hover-fg: #111;
}

.results .result-item:nth-child(7n + 3) {
  --result-hover-bg: #d7cb49; /* helles Gelb-Ocker */
  --result-hover-fg: #111;
}

.results .result-item:nth-child(7n + 4) {
  --result-hover-bg: #efd09a; /* Apricot / Sand */
  --result-hover-fg: #111;
}

.results .result-item:nth-child(7n + 5) {
  --result-hover-bg: #c9a0c3; /* Mauve / Altrosa-Violett */
  --result-hover-fg: #111;
}

.results .result-item:nth-child(7n + 6) {
  --result-hover-bg: #9aaa7a; /* helles Oliv */
  --result-hover-fg: #111;
}

.results .result-item:nth-child(7n + 7) {
  --result-hover-bg: #c98c73; /* helle Terracotta */
  --result-hover-fg: #111;
}

/* Basis-Link */
a.result-text-link {
  transition:
    background-color .22s ease,
    color .22s ease;
}

/* Hover / Keyboard focus */
a.result-text-link:hover,
a.result-text-link:focus-visible {
  background-color: var(--result-hover-bg, var(--color-8));
  color: var(--result-hover-fg, #111);
}

/* gesamte Typo im Hover sauber mitziehen */
a.result-text-link:hover .name,
a.result-text-link:hover .name a,
a.result-text-link:hover .ort,
a.result-text-link:hover .info,
a.result-text-link:hover .special-field-badge,
a.result-text-link:hover .special-field-badge::after,
a.result-text-link:focus-visible .name,
a.result-text-link:focus-visible .name a,
a.result-text-link:focus-visible .ort,
a.result-text-link:focus-visible .info,
a.result-text-link:focus-visible .special-field-badge,
a.result-text-link:focus-visible .special-field-badge::after {
  color: var(--result-hover-fg, #111) !important;
}

/* Result count */
.result-count {
  margin: 1rem 0 2rem;
  color: var(--color-11);
  font-weight: 700;
}

/* Result counter overlay */
#resultCounterWrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  pointer-events: none;
  transform: translate(-50%, -50%) translateX(5rem);
}

#resultCounter {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18rem;
  height: 18rem;
  background: none;
  border-radius: 50%;
  color: var(--color-15);
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: .0825rem;
  text-align: center;
  opacity: 0;
  user-select: none;
  transform: translateX(-50%);
  transition: opacity 1s;
}

/* Special fields */
/* ============================================================
   Results: Service Badges
   Full Production Service / Newcomer
============================================================ */

.special-fields {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .28rem;
  max-width: calc(100% - 1rem);
  pointer-events: none;
}

.special-field-badge,
.result-service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  margin: 0;
  padding: .28rem .55rem .33rem;
  box-sizing: border-box;

  background-color: var(--color-15);
  border: 1px solid var(--color-15);
  color: rgba(255, 255, 255, .86) !important;

  font-size: .72rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .0825rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.special-field-badge::after {
  content: none !important;
}

/* Full Production Service bleibt schwarz */
.result-service-badge--production {
  background-color: var(--color-15);
  border-color: var(--color-15);
  color: rgba(255, 255, 255, .86) !important;
}

/* Upcoming Talent eigene Farbe */
.result-service-badge--talent {
  background-color: #6f4d68;
  border-color: #6f4d68;
  color: rgba(255, 255, 255, .88) !important;
}

/* Mobile: Service badges nicht über den Text legen */
@media screen and (max-width: 768px) {
  .special-fields {
    position: static;
    right: auto;
    bottom: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin-top: .55rem;
    gap: .35rem;
    pointer-events: none;
  }

  .special-field-badge,
  .result-service-badge {
    max-width: 100%;
    min-height: 1.65rem;
    padding: .32rem .6rem .32rem;
    font-size: .68rem;
    line-height: 1.05;
    white-space: normal;
    text-align: center;
  }

  a.result-text-link {
    padding-bottom: .7rem;
  }
}

a.result-text-link:hover .special-field-badge,
a.result-text-link:focus-visible .special-field-badge {
  background-color: var(--color-15);
  border-color: var(--color-15);
  color: rgba(255, 255, 255, .86) !important;
}

/* Platz für die Badges unten rechts */
a.result-text-link {
  padding-bottom: 2.3rem;
}

/* Result card pin button */
.result-pin-toggle {
  all: unset;
  position: absolute;
  top: .65rem;
  right: .75rem;
  z-index: 20;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;

  background: transparent;
  border: 0;
  color: var(--color-11);

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .72rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .0825rem;
  text-transform: uppercase;
  white-space: nowrap;

  cursor: pointer;
}

.result-pin-toggle:hover,
.result-pin-toggle:focus-visible {
  background: transparent;
  color: var(--color-19);
  outline: none;
}

.result-item.is-fav .result-pin-toggle {
  color: var(--color-11);
}

.result-item.is-fav .name,
.result-item.is-fav .adresse,
.result-item.is-fav .info {
  color: var(--color-11) !important;
}

/* Bottom action buttons */
.button-row {
  position: fixed;
  bottom: 2rem;
  left: calc(50% - 1.25rem);
  z-index: 100;
  display: flex;
  gap: 30px;
  max-width: calc(100vw - 2.5rem);
  transform: translateX(-50%);
}

.button-row .icon-button {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: transform .2s ease;
}

.icon-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .2s ease;
}

.icon-button:hover {
  transform: scale(1.15);
}

/* ============================================================
   11 Results: MAP / PRINT Top Actions
============================================================ */

:root {
  --floating-actions-h: 2.5rem;
}

/* Disable old background layer */
.split-bar-bg {
  display: none !important;
}

/* Wrapper */
.split-button-wrapper {
  position: fixed;
  top: 0;
  left: .625rem;
  z-index: 980;
  height: var(--floating-actions-h);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
  background: rgba(245, 245, 245, 0.86);
  border-bottom: 1px solid var(--color-11);
  opacity: 1;
  transform: none;
  animation: none;
}

/* Actions */
.split-action {
  all: unset;
  height: var(--floating-actions-h);
  box-sizing: border-box;
  background: transparent;
  color: var(--color-11);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .2025rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.split-action::after {
  content: none !important;
  display: none !important;
}

.split-label {
  display: inline-block;
  color: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .2025rem;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

/* Login lock action */
.split-login {
  color: var(--color-11);
  text-decoration: none;
}

.split-login:hover,
.split-login:focus-visible {
  color: var(--color-19);
}

/* CSS-only lock icon */
/* Login lock action */
/* Login lock action */
.split-login {
  color: var(--color-11);
  text-decoration: none;
}

.split-login:hover,
.split-login:focus-visible {
  background: var(--color-19);
  color: var(--color-14);
  border-right-color: var(--color-19);
}

/* CSS-only lock icon: simple lock, no keyhole */
.login-lock-icon {
  position: relative;
  display: inline-block;
  width: 1.08rem;
  height: .94rem;
  color: currentColor;
  transform: translateY(-.02rem);
  box-sizing: border-box;

  border: 0;
  border-radius: 0;
}

/* Tiles action */
.split-tiles {
  color: var(--color-11);
  text-decoration: none;
}

.split-tiles:hover,
.split-tiles:focus-visible {
  background: var(--color-19);
  color: var(--color-14);
  border-right-color: var(--color-19);
}

/* CSS-only tiles icon */
.tiles-grid-icon {
  display: grid;
  grid-template-columns: repeat(2, .42rem);
  grid-template-rows: repeat(2, .42rem);
  gap: .16rem;
  width: 1rem;
  height: 1rem;
  color: currentColor;
  transform: translateY(-.01rem);
}

.tiles-grid-icon span {
  display: block;
  width: .42rem;
  height: .42rem;
  box-sizing: border-box;
  border: 1.65px solid currentColor;
}

.tiles-grid-icon span:nth-child(2),
.tiles-grid-icon span:nth-child(3) {
  background: currentColor;
}

/* Head */
.login-lock-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: .52rem;
  height: .52rem;
  border: 1.85px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  transform: translateX(-50%);
}

/* Shoulders */
.login-lock-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: .55rem;
  width: .98rem;
  height: .38rem;
  border: 1.85px solid currentColor;
  border-bottom: 0;
  border-radius: .85rem .85rem 0 0;
  box-sizing: border-box;
  transform: translateX(-50%);
}

.split-action:focus-visible {
  outline: 1.34px solid var(--color-19);
  outline-offset: -1px;
}

/* Result count after PRINT */
.split-meta {
  display: none;
}

.split-meta-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--floating-actions-h);
  padding: 0 .75rem;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  color: var(--color-19);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .2025rem;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

/* Desktop layout */
@media (min-width: 769px) {
  .split-button-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: calc(100vw - 3.75rem);
    max-width: 800px;
  }

  .split-action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    padding: 0 .75rem;
    border-right: 1px solid var(--color-11);
    text-align: center;
  }

  .split-action:hover,
  .split-action:focus-visible {
    border-right-color: var(--color-19);
  }
}

.split-login {
  color: var(--color-11);
  text-decoration: none;
}

.split-login:hover,
.split-login:focus-visible {
  background: var(--color-19);
  color: var(--color-14);
}

/* Desktop result count */
@media (min-width: 1025px) {
  .split-meta {
    display: inline-flex;
    align-items: stretch;
    justify-content: flex-start;
    height: var(--floating-actions-h);
    margin-left: 0;
    box-sizing: border-box;
    border: 0;
  }
}

/* Tablet / mobile: hide result count */
@media (max-width: 1024px) {
  .split-meta {
    display: none !important;
  }
}

/* Mobile layout */
@media (max-width: 768px) {
.split-button-wrapper {
  left: .625rem;
  right: 3.125rem;
  display: grid;
  grid-template-columns: 1fr 1fr 2.5rem 2.5rem;
  gap: 0;
  width: auto;
  max-width: none;
}

.split-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 .75rem;
  border-right: 1px solid var(--color-11);
  text-align: center;
}

.split-login {
  border-right: 0;
  border-left: 0;
}
}

/* Desktop tooltip */
@media (hover: hover) and (pointer: fine) {
  .has-tip {
    position: relative;
    overflow: visible;
  }

  .has-tip::before {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + .35rem);
    left: .75rem;
    z-index: 9999999;
    padding: 6px 10px;
    background: var(--color-19);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    color: var(--color-14);
    font-size: .85rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .0625em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease;
  }

  .has-tip:hover::before,
  .has-tip:focus-visible::before {
    opacity: 1;
  }
}

/* Touch: disable tooltip */
@media (hover: none), (pointer: coarse) {
  .has-tip::before {
    display: none !important;
  }
}

.split-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--color-19);
  white-space: nowrap;
}

.split-meta-value,
.split-meta-separator,
.split-meta-categories {
  color: var(--color-19);
  font-weight: 400;
  letter-spacing: .0825rem;
  line-height: 1;
}

.split-meta-categories {
  text-transform: uppercase;
}

@media screen and (max-width: 768px) {
  .split-meta {
    gap: .35rem;
  }

  .split-meta-categories {
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* ============================================================
   12 Results: Filter Dropdowns
   STEP 1 Production Types + STEP 2 Specialized Fields
============================================================ */

/* Sticky filter bar */
.container-profil-dyn .butt-gab {
  position: sticky;
  top: var(--floating-actions-h, 2.5rem);
  z-index: 950;
  width: calc(100vw - 3.5rem);
  max-width: 800px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Two-column row */
.container-profil-dyn .filter-dropdown-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: 800px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Individual dropdown wrapper */
.container-profil-dyn .filter-dropdown {
  position: static;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Toggle */
.container-profil-dyn .filter-dropdown .dropdown-toggle {
  all: unset;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--floating-actions-h, 2.5rem);
  margin: 0;
  padding: 0 .75rem 0 .625rem;
  box-sizing: border-box;
  background: rgba(245, 245, 245, 0.86);
  border: 0;
  border-bottom: 1px solid var(--color-11);
  color: var(--color-11);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .0825rem;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

/* Vertical divider between Step 1 and Step 2 */
.container-profil-dyn .filter-dropdown-roles .dropdown-toggle {
  border-left: 1px solid var(--color-11);
}

/* Hover / focus */
.container-profil-dyn .filter-dropdown .dropdown-toggle:hover,
.container-profil-dyn .filter-dropdown .dropdown-toggle:focus-visible {
  color: var(--color-19);
  border-bottom-color: var(--color-19);
}

.container-profil-dyn .filter-dropdown-roles .dropdown-toggle:hover,
.container-profil-dyn .filter-dropdown-roles .dropdown-toggle:focus-visible {
  border-left-color: var(--color-19);
}

/* Active selected state */
.container-profil-dyn .filter-dropdown.is-active .dropdown-toggle,
.container-profil-dyn .filter-dropdown .dropdown-toggle.has-selected-roles,
.container-profil-dyn .filter-dropdown .dropdown-toggle.has-selected-production {
  background: rgba(245, 245, 245, 0.86);
  color: var(--color-19);
  border-bottom-color: var(--color-19);
}

.container-profil-dyn .filter-dropdown.is-active .dropdown-label,
.container-profil-dyn .filter-dropdown.is-active .dropdown-icon,
.container-profil-dyn .filter-dropdown .dropdown-toggle.has-selected-roles .dropdown-label,
.container-profil-dyn .filter-dropdown .dropdown-toggle.has-selected-roles .dropdown-icon,
.container-profil-dyn .filter-dropdown .dropdown-toggle.has-selected-production .dropdown-label,
.container-profil-dyn .filter-dropdown .dropdown-toggle.has-selected-production .dropdown-icon {
  color: var(--color-19);
}

/* Plus / minus icon */
.container-profil-dyn .filter-dropdown .dropdown-icon {
  position: relative;
  display: inline-flex;
  flex: 0 0 1.4rem;
  width: 1.4rem;
  height: var(--floating-actions-h, 2.5rem);
  margin-right: .45rem;
  color: inherit;
  font-size: 0;
  line-height: 1;
}

.container-profil-dyn .filter-dropdown .dropdown-icon::before,
.container-profil-dyn .filter-dropdown .dropdown-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1.25px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: background-color .2s ease, opacity .2s ease;
}

.container-profil-dyn .filter-dropdown .dropdown-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.container-profil-dyn .filter-dropdown .dropdown-toggle.open .dropdown-icon::after {
  opacity: 0;
}

/* Label */
.container-profil-dyn .filter-dropdown .dropdown-label {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .0825rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Open list: full 800px width */
.container-profil-dyn .filter-dropdown .dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 960;
  width: 100%;
  max-width: 800px;
  max-height: calc(100vh - (var(--floating-actions-h, 2.5rem) * 2) - 1rem);
  max-height: calc(100dvh - (var(--floating-actions-h, 2.5rem) * 2) - 1rem);
  margin: 0;
  padding: .75rem 0 env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--color-13);
  border: 0;
  border-left: 1px solid var(--color-11);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.container-profil-dyn .filter-dropdown .dropdown-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Checkbox rows inside dropdown */
.container-profil-dyn .filter-dropdown .checkbox-label {
  display: flex;
  align-items: center;
  min-height: var(--floating-actions-h, 2.5rem);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--color-11);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .0825rem;
  cursor: pointer;
}

.container-profil-dyn .filter-dropdown .checkbox-label:hover {
  color: var(--color-19);
}

/* Close button */
.container-profil-dyn .filter-dropdown .dropdown-close {
  all: unset;
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--floating-actions-h, 2.5rem);
  margin: .5rem 0 0;
  padding: 0;
  box-sizing: border-box;
  background: var(--color-15);
  border: 0;
  box-shadow: none;
  color: var(--color-14);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .0825rem;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.container-profil-dyn .filter-dropdown .dropdown-close:hover,
.container-profil-dyn .filter-dropdown .dropdown-close:focus-visible {
  background: var(--color-19);
  color: var(--color-14);
}

/* Mobile: dropdowns below each other */
@media screen and (max-width: 768px) {
  .container-profil-dyn .filter-dropdown-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .container-profil-dyn .filter-dropdown-roles .dropdown-toggle {
    border-left: 0;
  }

  .container-profil-dyn .filter-dropdown .dropdown-list {
    position: static;
    width: 100%;
    max-width: 100%;
  }
}

/* Scroll-Hinweis unten in geöffneten Result-Dropdowns */
.container-profil-dyn .filter-dropdown .dropdown-list {
  --dropdown-close-h: var(--floating-actions-h, 2.5rem);
  --dropdown-fade-h: 4rem;
}

/* Verlauf sitzt oberhalb des sticky Close-Buttons */
.container-profil-dyn .filter-dropdown .dropdown-list::after {
  content: "";
  position: sticky;
  bottom: var(--dropdown-close-h);
  z-index: 1;

  display: block;
  width: 100%;
  height: var(--dropdown-fade-h);
  margin-top: calc(var(--dropdown-fade-h) * -1);

  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(244, 244, 244, 0),
    rgba(244, 244, 244, .78) 62%,
    var(--color-13) 100%
  );
}

/* Abstand unter dem letzten Dropdown-Punkt, damit er nicht im Verlauf liegt */
.container-profil-dyn .filter-dropdown .dropdown-list .checkbox-label:last-of-type {
  margin-bottom: 2.6rem;
}
/* ============================================================
   13 Map / Leaflet
============================================================ */

/* Map container */
#map {
  width: calc(100% - 4rem);
  max-width: 800px;
  height: calc(100vh - 1rem);
  margin-left: .7rem;
  z-index: 0;
}

/* Location search */
#search-location {
  margin-bottom: 0;
  padding: 1rem 0 0;
}

#ort-wrapper {
  position: relative;
  width: 100%;
}

#locationInput {
  height: 2.95rem;
  padding: 0 2.5rem 0 1rem;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 2.75rem;
}

#locationInput:valid:not(:placeholder-shown) {
  padding-right: 1rem !important;
  background-image: none !important;
}

/* Clear location button */
#clearOrt {
  all: unset;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin: .7rem;
  background: transparent;
  cursor: pointer;
}

#clearOrt svg {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: content-box;
  fill: none;
  stroke: var(--color-11);
  stroke-width: 2;
  stroke-linecap: round;
}

/* Map labels */
.map-label {
  position: relative;
  z-index: 0;
  pointer-events: auto;
}

.map-label:hover {
  z-index: 1000;
}

.map-label a.label-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border: 0;
  border-radius: 0;
  color: var(--color-15);
  font-size: 2rem;
  line-height: 1rem;
  letter-spacing: .0825rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
}

.map-label .name {
  display: inline-block;
  padding: 4px;
  background: var(--color-14);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .0725rem;
  transform-origin: center center;
  transition: transform .25s ease, background-color .2s ease, color .2s ease;
  will-change: transform;
}

.map-label .name.is-fav {
  background: var(--map-name-bg, #d2bb00);
}

.map-label a.label-link:hover .name,
.map-label a.label-link:focus-visible .name {
  transform: scale(1.4);
}

.map-label .distance {
  margin-top: 2px;
  padding: 3px;
  background: var(--color-14);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
  color: var(--color-15);
  font-size: .85rem;
  letter-spacing: .0825rem;
}

.name.highlighted::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0;
  color: var(--color-15);
}

.name.dimmed,
.distance.dimmed {
  color: #ccc;
}

/* Animated Leaflet markers */
.leaflet-interactive.kameraleute-marker {
  animation: pulse 2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.leaflet-interactive.produktionsort-marker {
  animation: pulse-red 2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.leaflet-marker-icon.studio-marker {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4));
  transition: transform .2s ease;
}

path.leaflet-interactive.kamerapunkt {
  stroke-width: 6;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .1));
  transition: transform .2s ease;
}

path.leaflet-interactive.kamerapunkt:hover {
  stroke: var(--color-19);
}

circle.radius-circle {
  fill: rgba(255, 255, 255, .5);
  stroke: var(--color-14);
  stroke-width: 5px;
  filter: blur(10px);
}

/* Radius toggle */
#radiusToggle {
  all: unset;
  position: absolute;
  top: 213px;
  left: 1.45rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--color-15);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, .2);
  cursor: pointer;
}

#radiusToggle svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

/* Custom zoom controls */
.custom-zoom .zoom-btn {
  display: block;
  margin: 6px auto;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.custom-zoom .zoom-btn svg {
  display: block;
}

.leaflet-bar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.custom-zoom .zoom-btn:focus,
.leaflet-control-zoom-in:focus,
.leaflet-control-zoom-out:focus,
#radiusToggle:focus {
  outline: none;
}

/* Marker clusters */
.marker-cluster-small {
  background: var(--color-16) !important;
}

.marker-cluster-small div {
  background: var(--color-11) !important;
}

.marker-cluster span {
  color: var(--color-14) !important;
}

/* Scale line */
.scale-line-container {
  padding: 4px 10px;
  background: var(--color-15);
  border-radius: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  color: var(--color-13);
  font-family: sans-serif;
  font-size: 13px;
  user-select: none;
}

.scale-line-container svg {
  display: block;
  overflow: visible;
}

.scale-line-container line {
  stroke: var(--color-13) !important;
}

/* Route links */
#routen-links {
  width: calc(100% - 3.5rem);
  max-width: 800px;
}

.maplink {
  font-style: normal !important;
}

/* Map icon */
.map-icon-wrapper {
  margin: 1rem 0;
  text-align: center;
}

.map-icon-wrapper img.map-icon {
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: transform .2s ease;
}

.map-icon-wrapper img.map-icon:hover {
  transform: scale(1.1);
}

/* Hover tooltip */
#hover-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 6px 10px;
  background: var(--color-19);
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  color: var(--color-14);
  font-size: .85rem;
  letter-spacing: .06345rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

/* Down arrows */
.down-arrows {
  position: fixed;
  left: 809px;
  bottom: 13rem;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  width: 1.5rem;
  pointer-events: none;
}

.down-arrows .arrow {
  display: block;
  width: 100%;
}

/* ============================================================
   14 Gallery / Lightbox / Slider
============================================================ */

/* Gallery grid */
.gallery {
  position: relative;
  width: 100%;
  margin: 1.3rem 0;
}

.gallery::after {
  content: "";
  display: table;
  clear: both;
}

.gallery-item,
.gallery-sizer {
  max-width: 32.5%;
}

.gallery-item {
  float: left;
  padding: 0 0 .42em;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
  will-change: opacity, transform;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.gallery-item img:hover {
  opacity: .8;
}

.gallery-item form button {
  transition: background .2s;
}

.gallery-item form button:hover {
  background: rgba(255, 0, 0, .8);
}

.gallery-image {
  max-width: 150px;
  margin: 3px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-14);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.lightbox:target {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-out;
}

.lightbox a {
  display: inline-block;
  cursor: pointer;
}

.lightbox .click-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 9999;
  width: 13%;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity .8s ease;
}

.lightbox .click-hint img {
  animation: pulse-scale 3.5s infinite ease-in-out;
}

/* Slider overlay */
.slider-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 1);
  cursor: pointer;
  touch-action: pan-y;
}

.slider-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
}

.slider-content img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  animation: fadeInClose .9s ease .2s forwards;
}

/* Slider zones */
.zone {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 999999;
  width: 5rem;
  background-color: rgba(255, 255, 255, 1);
  cursor: pointer;
}

.left-zone {
  left: 0;
}

.right-zone {
  right: 0;
}

.left-zone:hover,
.right-zone:hover {
  background: rgba(0, 0, 0, .05);
  color: var(--color-13);
}

/* Zone counter */
.zone-counter {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 9999999;
  padding: .2em .6em;
  border-radius: .5em;
  color: rgba(0, 0, 0, 1);
  font-family: sans-serif;
  font-size: 1.3rem;
  font-weight: 400;

  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;

  pointer-events: none;
  transform: translate(-50%, -50%);
}

.slider-overlay,
.slider-overlay .zone,
.slider-overlay .zone-counter,
.slider-overlay .zone-close,
.slider-overlay .slider-arrow,
.slider-overlay svg {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.zone-close {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Close text */
.zone-close {
  position: fixed;
  top: 49.9%;
  left: 5rem;
  z-index: 10001;
  padding: .3rem;
  background-color: var(--color-20);
  color: rgba(0, 0, 0, 1);
  font-family: sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .1rem;
  text-transform: uppercase;
  cursor: default;
  opacity: 0;
  user-select: none;
  pointer-events: none;
  transform: translateY(-50%);
  animation: fadeInClose 1s ease 1s forwards;
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999998;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 2.9rem;
  margin: 0;
  padding: 0;

  box-sizing: border-box;
  background: transparent;
  color: var(--color-11);

  border: 0;
  box-shadow: none;

  cursor: pointer;
  opacity: 0;
  user-select: none;
  pointer-events: none;

  animation: fadeInClose 1s ease 1s forwards;
  transition: background-color .2s ease, color .2s ease;
}

.slider-arrow svg {
  display: block;
  width: 32px;
  height: 32px;
}

.slider-arrow polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.95;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.left-zone:hover .slider-arrow,
.right-zone:hover .slider-arrow {
  background: var(--color-19);
  color: var(--color-14);
}

/* ============================================================
   15 Welcome Overlay
============================================================ */

/* Overlay */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  padding: 2rem 0;
  background: var(--color-16);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Box */
.welcome-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 80vw;
  max-width: 800px;
  max-height: calc(100vh - 2rem);
  padding: 1.45rem 2rem 2rem;
  overflow-y: auto;
  background: var(--color-16);
  border: 1px solid var(--color-15);
  box-shadow: 0 0 20px rgba(0, 0, 0, .1);
  text-align: left;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.welcome-box::-webkit-scrollbar {
  display: none;
}

/* Close button */
.welcome-close {
  align-self: center;
  width: auto;
  max-width: none;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  letter-spacing: .1625rem;
}

/* Animations */
.welcome-box.animate-in {
  animation: slideDownFadeIn 1s forwards;
}

.welcome-box.animate-out {
  animation: slideUpFadeOut 1s forwards;
}

.welcome-overlay.animate-fade-out {
  animation: fadeOutOverlay 1s forwards;
}

/* Logo */
.welcome-logo-wrapper {
  display: flex;
  justify-content: center;
  margin: 1rem auto 0;
}

.welcome-logo {
  width: 8em;
  height: auto;
  opacity: 1;
  cursor: pointer;
  animation: rotateLogo 3s ease-out forwards;
}

/* Desktop note */
.desktop-note {
  margin-top: 1rem;
  color: #666;
  font-size: .95rem;
  font-style: italic;
}

/* ============================================================
   16 Favorites / Color Switcher
============================================================ */

/* Favorites */
.fav-add,
.fav-box {
  position: fixed;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-11);
  color: var(--color-14);
  cursor: pointer;
}

.fav-add {
  top: .5rem;
  right: 3.1rem;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--color-13);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  animation: pulse-scale 1.4s ease-out 1s both;
  transition: background-color .3s;
}

.fav-add:hover {
  background-color: var(--color-19);
}

.fav-add svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  fill: var(--color-14);
}

.fav-box {
  top: 1rem;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-size: 1.3rem;
  transition: transform .2s;
}

/* Color switcher */
.color-switcher-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 2rem;
}

.color-box {
  width: 3.5rem;
  height: 1.5rem;
  border: 0;
  cursor: pointer;
}

.color-box[data-color="#8b1408"] {
  background-color: #8b1408;
}

.color-box[data-color="#B8860B"] {
  background-color: #b8860b;
}

.color-box[data-color="#22ab3b"] {
  background-color: #22ab3b;
}

.color-box.active {
  outline: 0;
}

/* ============================================================
   17 File Upload / FilePond / Messages
============================================================ */

/* FilePond base */
.filepond {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--color-14);
  border-radius: 0 !important;
  color: var(--color-19);
  font-size: 1rem;
}

.filepond--drop-label {
  color: var(--color-15) !important;
  font-size: .9375rem;
  letter-spacing: .05rem;
}

.filepond--panel-root {
  margin-top: 3px !important;
  background-color: var(--color-14);
  border: 1px dotted var(--color-15);
  border-radius: 0 !important;
}

.filepond--drip-blob {
  background-color: var(--color-19);
}

.filepond--image-preview-wrapper,
.filepond--image-preview,
.filepond--file {
  opacity: 1 !important;
}

.filepond ul li::before {
  content: none !important;
}

/* File info */
#file-info p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: .5rem 0;
  padding: .5rem;
  background: var(--color-7);
  border: 1px solid var(--color-4);
  border-radius: .25rem;
  color: var(--color-2);
  font-size: .875rem;
  line-height: 1.4;
}

#file-info span {
  margin-left: 1rem;
  color: var(--color-15);
  font-weight: 700;
  cursor: pointer;
}

/* Upload messages */
.upload-success {
  display: inline-block;
  margin: .5em 0;
  padding: .6em 1em;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  color: #155724;
  font-size: .95rem;
}

.success-message {
  margin: 1.5rem auto;
  padding: 1rem;
  background-color: var(--color-6);
  border: 1px solid var(--color-5);
  border-radius: .5rem;
  color: var(--color-11);
  font-size: 1rem;
}

/* ============================================================
   18 Accordion / Details
============================================================ */

.accordion {
  margin-top: 1.625rem;
  letter-spacing: .0825rem;
}

.accordion-container {
  max-width: 800px;
  margin: 2rem auto 0;
}

/* Details-Wrapper neutral halten, damit Formular/Inhalt nicht verändert wird */
details.accordion {
  width: 100%;
  max-width: 800px;
  margin-top: 1.625rem;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  color: var(--color-15);
  cursor: default;
}

/* Toggle nur für Register-Accordion, ohne Konflikt mit Roles-Dropdown */
details.accordion > summary.reg-accordion-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: var(--floating-actions-h, 2.5rem);
  margin: 0;
  padding: 0 2.5rem;
  box-sizing: border-box;

  background: rgba(245, 245, 245, 0.86);
  border-bottom: 1px solid var(--color-11);
border-top: 1px solid var(--color-11);

  color: var(--color-11);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .0825rem;
  text-align: center;

  cursor: pointer;
  list-style: none;

  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

/* Browser-Pfeil entfernen */
details.accordion > summary.reg-accordion-toggle::-webkit-details-marker {
  display: none;
}

details.accordion > summary.reg-accordion-toggle::marker {
  content: "";
}

/* Plus / Minus als Linien, sauber mittig */
details.accordion > summary.reg-accordion-toggle .reg-accordion-icon {
  position: absolute;
  left: .75rem;
  top: 0;

  display: inline-flex;
  width: 1.4rem;
  height: 100%;

  color: inherit;
  font-size: 0;
  line-height: 1;
}

details.accordion > summary.reg-accordion-toggle .reg-accordion-icon::before,
details.accordion > summary.reg-accordion-toggle .reg-accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;

  width: 1rem;
  height: 1.25px;

  background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, background-color .2s ease;
}

details.accordion > summary.reg-accordion-toggle .reg-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Offen: Plus wird Minus */
details.accordion[open] > summary.reg-accordion-toggle .reg-accordion-icon::after {
  opacity: 0;
}

/* Label */
details.accordion > summary.reg-accordion-toggle .reg-accordion-label {
  display: inline-block;
  color: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .0825rem;
  white-space: nowrap;
}

/* Hover wie results.php */
details.accordion > summary.reg-accordion-toggle:hover,
details.accordion > summary.reg-accordion-toggle:focus-visible {
  color: var(--color-19);
  border-color: var(--color-19);
  outline: none;
}

/* Offen: Rahmen/Schatten wie aufgeklappte Liste */
details.accordion[open] {
  background: var(--color-13);
  border-left: 1px solid var(--color-11);
  border-right: 0 solid var(--color-11);
  border-bottom: 0 solid var(--color-11);

  box-shadow: 2px 4px 3px rgba(0,0,0,0.2);

  padding: 0 1rem 1rem;
}

/* Geöffneter Toggle: oben + links Linie, rechts Schatten durch Parent */
details.accordion[open] > summary.reg-accordion-toggle {
  width: calc(100% + 2rem + 1px);
  margin: 0 -1rem 1rem calc(-1rem - 1px);

  background: rgba(245, 245, 245, 0.86);

  border: 0;
  border-top: 1px solid var(--color-11);
  border-left: 1px solid var(--color-11);
  border-bottom: 0;

  color: var(--color-11);
}

/* Hover im geöffneten Zustand */
details.accordion[open] > summary.reg-accordion-toggle:hover,
details.accordion[open] > summary.reg-accordion-toggle:focus-visible {
  color: var(--color-19);
  border-top-color: var(--color-19);
  border-left: 1px solid var(--color-11);
  border-bottom: 0;
}

/* Das direkte <br> nach dem Summary entfernen, sonst ist der Abstand doppelt */
details.accordion[open] > br {
  display: none;
}

/* Formular/Liste im geöffneten Bereich sauber starten */
details.accordion[open] > form {
  margin-top: 0;
}

.accordion-content img {
  max-width: 100%;
  margin-bottom: .625rem;
}


/* ============================================================
   18b Register: Specialized Fields Dropdown inside Accordion
   Scoped, no conflict with results.php
============================================================ */

/* Wrapper neutral */
details.accordion .filter-dropdown {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
}

/* Toggle geschlossen */
details.accordion .filter-dropdown .dropdown-toggle {
  all: unset;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: var(--floating-actions-h, 2.5rem);
  margin: 0;
  padding: 0 2.5rem;
  box-sizing: border-box;

  background: rgba(245, 245, 245, 0.86);
  border-top: 1px solid var(--color-11);
  border-bottom: 1px solid var(--color-11);

  color: var(--color-11);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .0825rem;
  text-align: center;

  cursor: pointer;

  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

/* Icon links – wie beim Accordion */
details.accordion .filter-dropdown .dropdown-icon {
  position: absolute;
  left: .75rem;
  top: 0;

  display: inline-flex;
  width: 1.4rem;
  height: 100%;

  color: inherit;
  font-size: 0;
  line-height: 1;
}

details.accordion .filter-dropdown .dropdown-icon::before,
details.accordion .filter-dropdown .dropdown-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;

  width: 1rem;
  height: 1.25px;

  background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, background-color .2s ease;
}

details.accordion .filter-dropdown .dropdown-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Offen: Plus wird Minus */
details.accordion .filter-dropdown .dropdown-toggle.open .dropdown-icon::after,
details.accordion .filter-dropdown .dropdown-toggle[aria-expanded="true"] .dropdown-icon::after {
  opacity: 0;
}

/* Label */
details.accordion .filter-dropdown .dropdown-label {
  display: inline-block;
  color: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .0825rem;
  white-space: nowrap;
}

/* Hover geschlossen */
details.accordion .filter-dropdown .dropdown-toggle:hover,
details.accordion .filter-dropdown .dropdown-toggle:focus-visible {
  color: var(--color-19);
  border-color: var(--color-19);
  outline: none;
}

/* Geöffneter Dropdown-Wrapper */
details.accordion .filter-dropdown:has(.dropdown-toggle.open),
details.accordion .filter-dropdown:has(.dropdown-toggle[aria-expanded="true"]) {
  background: var(--color-13);
  border-left: 0px solid var(--color-11);
  border-right: 0;
  border-bottom: 0;

  box-shadow: 2px 4px 3px rgba(0,0,0,0.2);

  padding: 0 1rem 1rem;
}

/* Geöffneter Toggle */
/* Geöffneter Toggle */
details.accordion .filter-dropdown:has(.dropdown-toggle.open) .dropdown-toggle,
details.accordion .filter-dropdown:has(.dropdown-toggle[aria-expanded="true"]) .dropdown-toggle {
  width: calc(100% + 2rem);
  margin: 0 -1rem 0rem -1rem;

  background: rgba(245, 245, 245, 0.86);

  border: 0;
  border-top: 1px solid var(--color-11);
  border-left: 1px solid var(--color-11);
  border-bottom: 0;

  color: var(--color-11);
}

/* Hover geöffnet */
details.accordion .filter-dropdown:has(.dropdown-toggle.open) .dropdown-toggle:hover,
details.accordion .filter-dropdown:has(.dropdown-toggle.open) .dropdown-toggle:focus-visible,
details.accordion .filter-dropdown:has(.dropdown-toggle[aria-expanded="true"]) .dropdown-toggle:hover,
details.accordion .filter-dropdown:has(.dropdown-toggle[aria-expanded="true"]) .dropdown-toggle:focus-visible {
  color: var(--color-19);
  border-top-color: var(--color-19);
  border-left: 1px solid var(--color-11);
  border-bottom: 0;
}

/* Geöffnete Liste – volle Höhe, kein interner Scroll */
details.accordion .filter-dropdown .dropdown-list {
  width: 100%;
  max-width: 800px;

  max-height: none;
  height: auto;

  margin: 0;
  padding: 1rem;
  box-sizing: border-box;

  overflow: visible;
  overflow-y: visible;
  overflow-x: visible;

  background: var(--color-13);
  border-left: 1px solid var(--color-11);

  scrollbar-width: auto;
  -ms-overflow-style: auto;
  -webkit-overflow-scrolling: auto;
}

/* Keine versteckten Scrollbar-Regeln nötig */
details.accordion .filter-dropdown .dropdown-list::-webkit-scrollbar {
  display: initial;
  width: initial;
  height: initial;
}

/* Checkbox-Zeilen in der geöffneten Liste */
details.accordion .filter-dropdown .checkbox-label {
  display: flex;
  align-items: center;

  min-height: var(--floating-actions-h, 2.5rem);
  margin: 0;
  padding: 0;

  color: var(--color-11);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .0825rem;

  cursor: pointer;
}

details.accordion .filter-dropdown .checkbox-label:hover {
  color: var(--color-19);
}

/* Close-Button unten */
details.accordion .filter-dropdown .dropdown-close {
  all: unset;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: var(--floating-actions-h, 2.5rem);
  margin: 1rem 0 0;
  padding: 0;
  box-sizing: border-box;

  background: var(--color-15);
  color: var(--color-14);

  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .0825rem;
  text-align: center;

  cursor: pointer;

  transition: background-color .2s ease, color .2s ease;
}

details.accordion .filter-dropdown .dropdown-close:hover,
details.accordion .filter-dropdown .dropdown-close:focus-visible {
  background: var(--color-19);
  color: var(--color-14);
}
/* ============================================================
   19 Loading Overlay / Accessibility / Utilities
============================================================ */

/* Loading overlay */
#loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-17);
  opacity: 1;
  transition: opacity .4s;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

#loading-overlay img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  animation: spin 1.2s linear infinite;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -2.5rem;
  left: 0;
  z-index: 100;
  padding: .5rem;
  background: var(--color-11);
  color: var(--color-20);
}

.skip-link:focus {
  top: 0;
}

/* Screen-reader only */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Utility */
.element {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#fieldnotesModal {
  display: none;
}

#fieldnotesModal.is-open {
  display: block;
}

body.modal-open {
  overflow: hidden;
}

/* ============================================================
   20 Animations / Keyframes
============================================================ */

@keyframes spin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    transform: translateY(.625rem);
    opacity: 0;
  }

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

@keyframes rotateOnce {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

.icon-rotate {
  animation: rotateOnce 1.5s linear;
}

@keyframes slideDownFadeIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

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

@keyframes slideUpFadeOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(-800px);
    opacity: 0;
  }
}

@keyframes fadeOutOverlay {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: .6;
  }
}

@keyframes pulse-red {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: .6;
  }
}

/* Final legacy-winning version */
@keyframes pulse-scale {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: .9;
  }
}

@keyframes fadeInClose {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes rotateLogo {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes rotateLogo {
  from {
    -webkit-transform: rotate(0);
  }

  to {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes slideDownIn {
  from {
    transform: translateY(-110%);
    opacity: 0;
  }

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

@keyframes slideUpIn {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

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


/* ============================================================
   21 Responsive: Mobile / Tablet / Height
============================================================ */

/* ============================================================
   Desktop Enhancements
============================================================ */

@media (min-width: 1200px) {
  .tag:not(.selected):hover::before {
    content: "+";
    position: absolute;
    top: .2rem;
    left: .2rem;
    color: var(--color-11);
    font-size: 3.125rem;
    font-weight: lighter;
  }

  .fav-add {
    right: auto;
    left: 767px;
  }

  .lightbox {
    text-align: center;
  }

  .lightbox img {
    display: inline-block;
    max-width: 90%;
    max-height: 95vh;
  }
}


/* ============================================================
   Tablet / Small Desktop
============================================================ */

@media (max-width: 1024px) {
  .gallery-item,
  .gallery-sizer {
    width: 32%;
  }

  iframe {
    min-height: 200px;
  }

  .menu-button,
  .field-notes-container {
    display: none;
  }

  .menu-bar {
    width: 2.5rem;
    background-color: var(--color-11);
    border-left: 0;
    color: var(--color-14);
    pointer-events: auto;
    transition: width .3s, background-color .9s;
  }

  .menu-label {
    display: block;
  }

  .return-box,
  .scroll-up-box,
  .help-box,
  .help-box:link,
  .help-box:visited {
    background-color: var(--color-15);
    border-top-color: var(--color-13);
    color: var(--color-13);
  }

  .help-box:hover {
    background-color: var(--color-21);
    color: var(--color-14);
  }

  .lightbox-modal img {
    max-width: 100vw;
    max-height: 100vh;
    margin: auto;
  }

  .close-lightbox {
    position: absolute;
    top: 5px;
    right: 8px;
    z-index: 10000;
    color: var(--color-11);
    font-size: 2rem;
    cursor: pointer;
  }

  .swiper-button-prev,
  .swiper-button-next,
  .swiper-button-prev::after,
  .swiper-button-next::after {
    display: none;
  }

a.result-text-link {
  align-items: center;
  gap: 1rem;
}
}


/* ============================================================
   Mobile
============================================================ */

@media screen and (max-width: 768px) {
  h2,
  h3 {
    max-width: 95%;
  }

  #resultCounter {
    bottom: 3rem;
    left: calc(50% - 1.25rem);
    font-size: 2.5rem;
  }

  .tags-grid {
    gap: .2rem;
  }

  .tag.selected::before {
    content: "";
  }

  .result-text .name {
    font-size: 1rem;
  }

  .menu-bar.open {
    width: 100vw;
  }

  .menu-bar.open .menu-content {
    height: 90vh;
  }

  .box-profil {
    padding: .625rem 3.1rem .625rem .625rem;
  }

  .gallery-item,
  .gallery-sizer {
    width: 30.8%;
  }

  #routen-links {
    max-width: 90%;
    margin: 5px auto;
    padding: 0 5px;
    font-size: .95rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  #routen-links a {
    display: inline-block;
    margin: .4em .6em 0 0;
    font-size: .95rem;
    text-decoration: underline;
    word-break: break-word;
  }

  .form-message {
    top: 20%;
    max-width: 90%;
    padding: 20px;
    font-size: .95rem;
    line-height: 1.4;
    letter-spacing: .05rem;
  }

  .scale-line-container {
    display: none;
  }

.result-text {
 margin-top: 0rem;
}

  .footer-wrapper {
    display: block;
  }

  .result-text-link {
    display: flex;
    flex-direction: column;
    gap: .2rem;
  }

  a.result-text-link {
    align-items: flex-start;
    padding: .6em 1em .8em .6em;
    text-align: left;
  	gap: .2rem;

  }

  .slider-content img {
    max-width: 98vw;
    max-height: 98vh;
    object-fit: contain;
    pointer-events: auto;
  }

  .zone,
  .zone-counter,
  .zone-close {
    display: none;
  }

  .slider-overlay {
    background: rgba(255, 255, 255, 1);
  }

  .lightbox .click-hint {
    width: 40%;
  }

.result-photo {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  text-align: left;
}

.result-photo img {
  display: inline-block;
  width: auto;
  max-width: none;
  height: 180px;
  margin: 0;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform, filter;
  transition:
    filter .18s ease,
    transform .55s cubic-bezier(0.19, 1, 0.22, 1);
}

.result-photo img.landscape {
  height: 135px;
  max-height: 135px;
}

.result-photo:hover img,
.result-photo img:hover,
a.result-text-link:hover .result-photo img,
a.result-text-link:focus-visible .result-photo img {
  filter: grayscale(0%);
  transform: scale(1.12);
}

  .result-item {
    display: block;
  }

  .welcome-overlay {
    align-items: flex-start;
  }

  .profilbild-wrapper {
    float: none;
    display: block;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 1rem;
  }

  .profilbild-umflossen,
  .profilbild-wrapper img {
    width: 100%;
    height: auto;
  }

  .profilbild-umflossen {
    transform-origin: center center;
    transition: transform .9s ease;
  }

  .directory-entry {
    margin-left: 0;
    margin-bottom: .3em;
  }

  .tags-container {
    -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
  }
}


/* ============================================================
   Small Height
============================================================ */

@media (max-height: 680px) {
  .welcome-box {
    max-height: 70vh;
    padding: 1rem;
  }

  h1 {
    font-size: 1.9rem;
    line-height: 2rem;
  }

  h2 {
    font-size: 1.6rem;
    line-height: 1.9rem;
  }

  h3 {
    font-size: 1.375rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.4rem;
  }
}


/* ============================================================
   Wider Menu Typography
============================================================ */

@media screen and (min-width: 680px) {
  .menu-content {
    font-size: 4.5rem;
  }
}


/* ============================================================
   Hide Down Arrows
============================================================ */

@media (max-width: 900px) {
  .down-arrows {
    display: none;
  }
}

/* ============================================================
   Profile: roles as normal flowing text
   Fixes large empty gaps after short roles like DoP
============================================================ */

.profil-page .profile-role-links {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;

  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
}

.profil-page .profile-role-links a {
  display: inline !important;

  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;

  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;

  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;

  color: inherit;
  text-decoration: none;
}

/* ============================================================
   Global: prevent iOS Safari landscape text inflation
============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.profil-page .profile-role-links,
.profil-page .profile-role-links a,
.profil-page .profile-tag-list {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ============================================================
   Profile: random right colour panel
============================================================ */

body.profil-page {
  --profile-panel-gap: 0rem;
  --profile-menu-rail-w: 2.5rem;
  --profile-content-edge: 833px;
}

body.profil-page .right-container {
  position: fixed;
  top: var(--profile-panel-gap);
  right: calc(var(--profile-menu-rail-w) + var(--profile-panel-gap));
  bottom: var(--profile-panel-gap);
  z-index: 1;

  width: calc(
    100% -
    var(--profile-content-edge) -
    var(--profile-menu-rail-w) -
    (2 * var(--profile-panel-gap))
  );

  height: auto;
  min-width: 0;

  background-color: var(--profile-right-bg, #f9f9f9);
}

/* 7 Farben wie Tiles / Result */
body.profil-page .right-container.profile-right-color-1 {
  --profile-right-bg: #c7b76a;
}

body.profil-page .right-container.profile-right-color-2 {
  --profile-right-bg: #90a0af;
}

body.profil-page .right-container.profile-right-color-3 {
  --profile-right-bg: #d7cb49;
}

body.profil-page .right-container.profile-right-color-4 {
  --profile-right-bg: #efd09a;
}

body.profil-page .right-container.profile-right-color-5 {
  --profile-right-bg: #c9a0c3;
}

body.profil-page .right-container.profile-right-color-6 {
  --profile-right-bg: #9aaa7a;
}

body.profil-page .right-container.profile-right-color-7 {
  --profile-right-bg: #c98c73;
}

/* Auf schmaleren Screens ausblenden */
@media (max-width: 960px) {
  body.profil-page .right-container {
    display: none !important;
  }
}

/* ============================================================
   Shared footer menu strip
   Replaces round hamburger button
============================================================ */

:root {
   --site-menu-strip-left: calc(.625rem + 800px + 1.4em);
  --site-menu-strip-right: 2.5rem;
  --site-menu-strip-top: var(--floating-actions-h, 2.5rem);
  --site-menu-strip-h: var(--floating-actions-h, 2.5rem);
}

.menu-button.site-menu-strip {
  all: unset;

  position: fixed;
  top: 0;
  left: var(--site-menu-strip-left);
  right: auto;
  z-index: 400;

  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .85rem;

  width: auto;
  min-width: 0;
  height: var(--site-menu-strip-h);

  margin: 0;
  padding: 0 .95rem;
  box-sizing: border-box;

  background: var(--color-13);
  border-top: 0px solid var(--color-11);
  border-bottom: 1px solid var(--color-11);
  border-radius: 0;

  color: var(--color-11);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .2025rem;
  white-space: nowrap;
  cursor: pointer;

  transition:
    color .2s ease,
    border-color .2s ease,
    background-color .2s ease;
}

/* alte Linien des runden Buttons vollständig ausschalten */
.menu-button.site-menu-strip::before,
.menu-button.site-menu-strip::after,
.menu-button.site-menu-strip .line {
  content: none !important;
  display: none !important;
}

/* Hamburger */
.site-menu-strip-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;

  width: 1.75rem;
  height: .78rem;

  color: currentColor;
  transform-origin: 50% 50%;

  transition: transform .22s ease;
}

.site-menu-strip-icon::before,
.site-menu-strip-icon::after,
.site-menu-strip-line {
  position: absolute;
  left: 0;

  display: block;
  width: 100%;
  height: 1px;

  background: currentColor;
  content: "";
}

.site-menu-strip-icon::before {
  top: 0;
}

.site-menu-strip-line {
  top: 50%;
  transform: translateY(-50%);
}

.site-menu-strip-icon::after {
  bottom: 0;
}

/* Text */
.site-menu-strip-text {
  display: inline-block;
  color: currentColor;
  font: inherit;
  line-height: 1;
  letter-spacing: inherit;
  white-space: nowrap;
}

/* Hover */
.menu-button.site-menu-strip:hover,
.menu-button.site-menu-strip:focus-visible {
  background: var(--color-20);
  border-color: var(--color-19);
  color: var(--color-19);
  outline: 0;
}

/* Wenn Menü offen ist: Hamburger 90 Grad drehen */
body.menu-open .menu-button.site-menu-strip .site-menu-strip-icon {
  transform: rotate(90deg);
}

/* Mobile */
@media screen and (max-width: 768px) {
  :root {
    --site-menu-strip-left: .625rem;
    --site-menu-strip-right: 3.125rem;
    --site-menu-strip-top: var(--floating-actions-h, 2.5rem);
    --site-menu-strip-h: var(--floating-actions-h, 2.5rem);
  }

  .menu-button.site-menu-strip {
    padding: 0 .75rem;
  }
}



@media screen and (max-width: 768px) {
  .menu-button.site-menu-strip {
    display: none !important;
  }
}

/* ------------------------------------------------------------
   Desktop: MENU + Search top actions
   Mobile/tablet keeps search in the right black bar
------------------------------------------------------------ */

.site-top-actions {
  position: fixed;
  top: 0;
  left: var(--site-menu-strip-left);
  z-index: 400;

  display: flex;
  align-items: flex-start;
  gap: .3rem;

  height: var(--site-menu-strip-h);
}

.site-top-actions .menu-button.site-menu-strip {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
}

.site-search-strip {
  all: unset;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: var(--site-menu-strip-h);
  height: var(--site-menu-strip-h);

  margin: 0;
  padding: 0;
  box-sizing: border-box;

  background: var(--color-13);
  border-bottom: 1px solid var(--color-11);
  color: var(--color-11);

  cursor: pointer;

  transition:
    color .2s ease,
    border-color .2s ease,
    background-color .2s ease;
}

.site-search-strip svg {
  display: block;
  width: 1.42rem;
  height: 1.42rem;
}

.site-search-strip:hover,
.site-search-strip:focus-visible {
  background: var(--color-20);
  border-color: var(--color-19);
  color: var(--color-19);
  outline: 0;
}

/* Desktop: altes Search-Symbol im rechten Stack ausblenden */
@media screen and (min-width: 1025px) {
  .help-box {
    display: none !important;
  }
}

/* Mobile/Tablet: neue Top-Actions ausblenden */
@media screen and (max-width: 1024px) {
  .site-top-actions {
    display: none !important;
  }
}