/* ================================================================
   SONGBILDER – zentrales Stylesheet
   Warme, angenehme Farbwelt + Pergament-Optik
   ================================================================ */

/* Hinweis: Alle CSS-Variablen (eigene Design-Farben + interne
   Tailwind-Utility-Variablen) stehen jetzt in variables.css - diese Datei
   MUSS vor style.css eingebunden werden. */


/* ================================================================
   Ab hier: fest eingefrorene Utility-Klassen (frueher per Tailwind-CDN
   zur Laufzeit im Browser erzeugt, jetzt ein einmaliger Schnappschuss
   als ganz normales CSS - kein Build-Tool, kein npm, keine externe
   Abhaengigkeit mehr noetig). Neue, bisher ungenutzte Klassennamen aus
   dieser Familie (z.B. eine neue Tailwind-Klasse in einem kuenftigen
   Template) muessten hier von Hand ergaenzt werden.
   ================================================================ */


/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.\!container {
  width: 100% !important;
}

.container {
  width: 100%;
}

@media (min-width: 640px) {
  .\!container {
    max-width: 640px !important;
  }

  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .\!container {
    max-width: 768px !important;
  }

  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .\!container {
    max-width: 1024px !important;
  }

  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .\!container {
    max-width: 1280px !important;
  }

  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}

.visible {
  visibility: visible;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.left-3 {
  left: 0.75rem;
}

.right-4 {
  right: 1rem;
}

.top-0 {
  top: 0px;
}

.top-1\/2 {
  top: 50%;
}

.top-4 {
  top: 1rem;
}

.z-30 {
  z-index: 30;
}

.z-50 {
  z-index: 50;
}

.col-span-full {
  grid-column: 1 / -1;
}

.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-0 {
  margin-bottom: 0px;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.ml-4 {
  margin-left: 1rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.\!hidden {
  display: none !important;
}

.hidden {
  display: none;
}

.h-11 {
  height: 2.75rem;
}

.h-12 {
  height: 3rem;
}

.h-14 {
  height: 3.5rem;
}

.h-16 {
  height: 4rem;
}

.h-24 {
  height: 6rem;
}

.max-h-\[90vh\] {
  max-height: 90vh;
}

.min-h-screen {
  min-height: 100vh;
}

.w-11 {
  width: 2.75rem;
}

.w-12 {
  width: 3rem;
}

.w-14 {
  width: 3.5rem;
}

.w-16 {
  width: 4rem;
}

.w-24 {
  width: 6rem;
}

.w-32 {
  width: 8rem;
}

.w-full {
  width: 100%;
}

.min-w-0 {
  min-width: 0px;
}

.min-w-\[220px\] {
  min-width: 220px;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-\[1440px\] {
  max-width: 1440px;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-sm {
  max-width: 24rem;
}

.max-w-xl {
  max-width: 36rem;
}

.flex-1 {
  flex: 1 1 0%;
}

.shrink-0 {
  flex-shrink: 0;
}

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.resize-none {
  resize: none;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

.items-center {
  align-items: center;
}

.justify-end {
  justify-content: flex-end;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-x-6 {
  -moz-column-gap: 1.5rem;
       column-gap: 1.5rem;
}

.gap-y-2 {
  row-gap: 0.5rem;
}

.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.border {
  border-width: 1px;
}

.border-2 {
  border-width: 2px;
}

.border-4 {
  border-width: 4px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-blue-400 {
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}

.border-blue-500 {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}

.border-blue-600 {
  --tw-border-opacity: 1;
  border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));
}

.border-blue-700 {
  --tw-border-opacity: 1;
  border-color: rgb(29 78 216 / var(--tw-border-opacity, 1));
}

.border-gray-400 {
  --tw-border-opacity: 1;
  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));
}

.border-gray-500 {
  --tw-border-opacity: 1;
  border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));
}

.border-gray-600 {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}

.border-gray-700 {
  --tw-border-opacity: 1;
  border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.border-green-400 {
  --tw-border-opacity: 1;
  border-color: rgb(74 222 128 / var(--tw-border-opacity, 1));
}

.border-green-500 {
  --tw-border-opacity: 1;
  border-color: rgb(34 197 94 / var(--tw-border-opacity, 1));
}

.border-green-600 {
  --tw-border-opacity: 1;
  border-color: rgb(22 163 74 / var(--tw-border-opacity, 1));
}

.border-green-700 {
  --tw-border-opacity: 1;
  border-color: rgb(21 128 61 / var(--tw-border-opacity, 1));
}

.border-red-400 {
  --tw-border-opacity: 1;
  border-color: rgb(248 113 113 / var(--tw-border-opacity, 1));
}

.border-red-500 {
  --tw-border-opacity: 1;
  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}

.border-red-600 {
  --tw-border-opacity: 1;
  border-color: rgb(220 38 38 / var(--tw-border-opacity, 1));
}

.border-red-700 {
  --tw-border-opacity: 1;
  border-color: rgb(185 28 28 / var(--tw-border-opacity, 1));
}

.border-white {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}

.border-yellow-400 {
  --tw-border-opacity: 1;
  border-color: rgb(250 204 21 / var(--tw-border-opacity, 1));
}

.border-yellow-500 {
  --tw-border-opacity: 1;
  border-color: rgb(234 179 8 / var(--tw-border-opacity, 1));
}

.border-yellow-600 {
  --tw-border-opacity: 1;
  border-color: rgb(202 138 4 / var(--tw-border-opacity, 1));
}

.border-yellow-700 {
  --tw-border-opacity: 1;
  border-color: rgb(161 98 7 / var(--tw-border-opacity, 1));
}

.bg-blue-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(96 165 250 / var(--tw-bg-opacity, 1));
}

.bg-blue-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}

.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}

.bg-blue-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}

.bg-gray-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}

.bg-gray-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}

.bg-gray-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}

.bg-gray-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

.bg-green-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(74 222 128 / var(--tw-bg-opacity, 1));
}

.bg-green-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
}

.bg-green-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}

.bg-green-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}

.bg-red-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 113 113 / var(--tw-bg-opacity, 1));
}

.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}

.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}

.bg-red-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.bg-yellow-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(250 204 21 / var(--tw-bg-opacity, 1));
}

.bg-yellow-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(234 179 8 / var(--tw-bg-opacity, 1));
}

.bg-yellow-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(202 138 4 / var(--tw-bg-opacity, 1));
}

.bg-yellow-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(161 98 7 / var(--tw-bg-opacity, 1));
}

.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}

.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}

.p-1 {
  padding: 0.25rem;
}

.p-10 {
  padding: 2.5rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-3 {
  padding-bottom: 0.75rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pl-10 {
  padding-left: 2.5rem;
}

.pr-4 {
  padding-right: 1rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-medium {
  font-weight: 500;
}

.font-normal {
  font-weight: 400;
}

.font-semibold {
  font-weight: 600;
}

.italic {
  font-style: italic;
}

.text-blue-400 {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}

.text-blue-500 {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}

.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}

.text-blue-700 {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}

.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.text-green-400 {
  --tw-text-opacity: 1;
  color: rgb(74 222 128 / var(--tw-text-opacity, 1));
}

.text-green-500 {
  --tw-text-opacity: 1;
  color: rgb(34 197 94 / var(--tw-text-opacity, 1));
}

.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}

.text-green-700 {
  --tw-text-opacity: 1;
  color: rgb(21 128 61 / var(--tw-text-opacity, 1));
}

.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}

.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}

.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.text-yellow-400 {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / var(--tw-text-opacity, 1));
}

.text-yellow-500 {
  --tw-text-opacity: 1;
  color: rgb(234 179 8 / var(--tw-text-opacity, 1));
}

.text-yellow-600 {
  --tw-text-opacity: 1;
  color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}

.text-yellow-700 {
  --tw-text-opacity: 1;
  color: rgb(161 98 7 / var(--tw-text-opacity, 1));
}

.underline {
  text-decoration-line: underline;
}

.opacity-30 {
  opacity: 0.3;
}

.opacity-40 {
  opacity: 0.4;
}

.opacity-70 {
  opacity: 0.7;
}

.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.hover\:underline:hover {
  text-decoration-line: underline;
}

.hover\:shadow-md:hover {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:p-12 {
    padding: 3rem;
  }

  .md\:p-14 {
    padding: 3.5rem;
  }

  .md\:p-8 {
    padding: 2rem;
  }

  .md\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .lg\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


* { box-sizing: border-box; }

body {
    font-family: 'Georgia', 'Iowan Old Style', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    min-height: 100vh;
    background-color: var(--warm-100);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(193, 137, 63, 0.18), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(168, 111, 47, 0.15), transparent 45%),
        linear-gradient(135deg, #f3e4c2 0%, #e9d1a0 45%, #ddbd85 100%);
}

/* ---------- Pergament-Fläche (für Home / Dokument-Inhalte) ---------- */
.parchment {
    position: relative;
    background-color: #f3e6c6;
    background-image:
        repeating-linear-gradient(0deg, rgba(139, 94, 42, 0.035) 0px, rgba(139, 94, 42, 0.035) 1px, transparent 1px, transparent 3px),
        radial-gradient(ellipse at top left, rgba(255, 250, 235, 0.6), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(139, 94, 42, 0.12), transparent 55%),
        radial-gradient(ellipse at 30% 90%, rgba(139, 94, 42, 0.10), transparent 50%),
        linear-gradient(160deg, #f6ead0 0%, #eddcb2 55%, #e4cd9c 100%);
    border: 1px solid rgba(139, 94, 42, 0.25);
    box-shadow:
        inset 0 0 60px rgba(139, 94, 42, 0.18),
        inset 0 0 3px rgba(139, 94, 42, 0.35),
        0 10px 30px rgba(74, 47, 24, 0.18);
}

.parchment-content {
    font-family: 'Georgia', 'Iowan Old Style', serif;
    color: var(--ink);
    line-height: 1.75;
}
.parchment-content h1, .parchment-content h2, .parchment-content h3 {
    font-family: 'Georgia', serif;
    color: var(--warm-800);
}
.parchment-content h1 { font-size: 2.1rem; font-weight: 800; margin-bottom: .25rem; }
.parchment-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 1.75rem; margin-bottom: .5rem; }
.parchment-content h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.25rem; }
.parchment-content p { margin-bottom: .65rem; }
.parchment-content .em-line { font-style: italic; color: var(--ink-soft); }
.parchment-content .quote-line {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-600);
    text-align: center;
    margin: 1.25rem 0;
}
.parchment-content hr {
    border: none;
    border-top: 1px dashed rgba(139, 94, 42, 0.4);
    margin: 1.75rem 0;
}
.parchment-content .lead {
    font-size: 1.15rem;
    color: var(--ink);
}

/* ---------- Glass / Karten ---------- */
.glass-card {
    backdrop-filter: blur(14px) saturate(160%);
    background-color: rgba(255, 250, 240, 0.72);
    border: 1px solid rgba(193, 137, 63, 0.3);
}

/* ---------- Header / Navigation (zentriert) ---------- */
.site-header {
    background-color: rgba(255, 248, 232, 0.82);
    backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid rgba(193, 137, 63, 0.3);
}
.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}
.header-logo {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.header-logo img {
    height: 42px;
    max-width:180px;
}
.header-logo-text {
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--warm-800);
    letter-spacing: .03em;
}
.header-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: .25rem;
    flex-wrap: wrap;
    justify-content: center;
}
.header-action {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-soft);
}
.lang-switch a {
    color: var(--ink-soft);
    text-decoration: none;
    padding: 0.2rem 0.3rem;
    border-radius: 0.3rem;
    transition: color .2s, background .2s;
}
.lang-switch a:hover { color: var(--warm-800); }
.lang-switch a.active {
    color: var(--accent-600);
    background: rgba(193, 137, 63, 0.15);
}
.lang-switch span { color: rgba(193, 137, 63, 0.5); }

/* ---------- Anmelden/Mitmachen-Dropdown ---------- */
.auth-dropdown { position: relative; }
.auth-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fffaf0;
    border: 1px solid rgba(193, 137, 63, 0.3);
    border-radius: 0.6rem;
    box-shadow: 0 10px 30px rgba(74, 47, 24, 0.25);
    min-width: 170px;
    padding: .4rem;
    z-index: 70;
}
.auth-dropdown-menu a,
.auth-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .7rem;
    border-radius: .5rem;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
    transition: background .15s, color .15s;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.auth-dropdown-menu a:hover,
.auth-dropdown-menu button:hover {
    background: rgba(193, 137, 63, 0.15);
    color: var(--warm-800);
}
.auth-dropdown-menu a i,
.auth-dropdown-menu button i { width: 1.1rem; text-align: center; color: var(--accent-600); }

@media (max-width: 820px) {
    /* Gemeinsame Basis für alle mobilen Breiten */
    .header-username { display: none; }
    .header-logo img { height: 30px; max-width: 90px; }
    .header-logo-text { font-size: .95rem; }

    /* Nur Icons zeigen, Text bleibt für Screenreader/Tooltip erhalten */
    .
-text {
        position: absolute;
        width: 1px; height: 1px;
        padding: 0; margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .nav-link { padding: .5rem .55rem; flex-shrink: 0; }
    .nav-link i { font-size: .8rem; }
    .header-action .btn { padding: .5rem .6rem; flex-shrink: 0; }
    .px-6 { padding-left: .5rem; padding-right: .5rem; }

    /* Eigenes Tooltip: erscheint bei Hover (Desktop-Breite trotzdem möglich)
       und kurz bei Touch (siehe Skript in _header.html) */
    [data-tooltip] { position: relative; }
    [data-tooltip]::after {
        content: attr(data-tooltip);
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) translateY(-4px);
        background: var(--warm-800);
        color: #fff;
        font-size: .68rem;
        font-weight: 600;
        padding: .35rem .6rem;
        border-radius: .4rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity .15s ease, transform .15s ease;
        z-index: 60;
        box-shadow: 0 4px 10px rgba(0,0,0,.2);
    }
    [data-tooltip]:hover::after,
    [data-tooltip].show-tooltip::after {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
#authDropdownBtn::after {
    left: auto;
    right: 0;
    transform: translateY(-4px);
}
#authDropdownBtn:hover::after,
#authDropdownBtn.show-tooltip::after {
    transform: translateY(0);
}
}

/* Mittlere Breite (Tablet/große Handys quer): eine Zeile, Nav mittig statt links gepackt */
@media (max-width: 820px) and (min-width: 561px) {
    .header-grid {
        grid-template-columns: auto minmax(0, 1fr) auto;
        column-gap: .4rem;
    }
    .header-logo { justify-self: start; min-width: 0; }
    .header-nav {
        justify-self: stretch;
        min-width: 0;
        gap: .35rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        justify-content: center;
    }
    .header-nav::-webkit-scrollbar { display: none; }
    .header-action { justify-self: end; gap: .3rem; flex-shrink: 0; }
}

/* Sehr schmal (Handy hochkant): Logo + Anmelden oben in einer Zeile,
   Navigation darunter als eigene, zentrierte Zeile - wirkt deutlich aufgeräumter */
@media (max-width: 560px) {
    .header-grid {
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas:
            ". logo auth"
            "nav nav nav";
        row-gap: .5rem;
        column-gap: .3rem;
    }
    .header-logo { grid-area: logo; justify-self: center; min-width: 0; }
    .header-action { grid-area: auth; justify-self: end; gap: .3rem; flex-shrink: 0; }
    .header-nav {
        grid-area: nav;
        justify-self: stretch;
        min-width: 0;
        gap: .3rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        justify-content: center;
        padding-bottom: .2rem;
    }
    .header-nav::-webkit-scrollbar { display: none; }

}

@media (max-width: 420px) {
    .lang-switch { display: none; }
}

.nav-link {
    color: var(--ink-soft);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.6rem;
    transition: background 0.2s, color .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.8rem;
}
.nav-link:hover {
    background: rgba(193, 137, 63, 0.18);
    color: var(--warm-800);
}
.nav-link.current {
    background: linear-gradient(to right, var(--warm-500), var(--accent-500));
    color: #fff;
    box-shadow: 0 3px 10px rgba(161, 100, 43, 0.35);
}

/* ---------- Buttons ---------- */
.btn {
    padding: 0.55rem 1.1rem;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(to right, var(--warm-500), var(--accent-500));
    color: #fff;
    box-shadow: 0 4px 10px rgba(161, 100, 43, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(to right, var(--warm-600), var(--accent-600));
}
.btn-secondary {
    background: #fffaf0;
    color: var(--ink-soft);
    border: 1px solid rgba(193, 137, 63, 0.4);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-secondary:hover { background: var(--warm-50); }
.btn-danger {
    background: linear-gradient(to right, var(--danger-500), var(--danger-600));
    color: #fff;
}
.btn-danger:hover {
    background: linear-gradient(to right, var(--danger-600), #7c2f1c);
}

/* ---------- Modal ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(74, 47, 24, 0.55);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}
.modal.open { display: flex; }
#tileForm {
    max-height: 80vh;
    overflow: auto;
}
.footer-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--ink-soft);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }
.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(74, 47, 24, 0.2);
}

/* ---------- Formulare ---------- */
.input-group { position: relative; margin-bottom: 1rem; }
.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(193, 137, 63, 0.45);
    border-radius: 0.5rem;
    background: #fffdf7;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--warm-500);
    box-shadow: 0 0 0 3px rgba(193, 137, 63, 0.18);
}
.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 0.3rem;
}

/* Veröffentlichen-Schalter steht VOR dem Feld */
.field-publish {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}
.field-publish input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--warm-500);
    cursor: pointer;
}
.field-publish label {
    margin-bottom: 0;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--ink-soft);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.file-drop {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem;
    border: 1px dashed rgba(193, 137, 63, 0.5);
    border-radius: .6rem;
    background: #fffdf7;
}
.file-drop img, .file-drop .file-drop-placeholder {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: .5rem;
    background: #fff;
    border: 1px solid rgba(193, 137, 63, 0.3);
}
.file-drop .file-drop-placeholder {
    display: flex; align-items: center; justify-content: center;
    color: var(--warm-400); font-size: 1.3rem;
}
.file-drop input[type="file"] { flex: 1; font-size: .8rem; }

/* ---------- Floating Action ---------- */
.floating-action {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warm-500), var(--accent-500));
    color: #fff;
    border: none;
    box-shadow: 0 8px 25px rgba(161, 100, 43, 0.45);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 40;
}
.floating-action:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(161, 100, 43, 0.6);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.slide-up { animation: slideUp 0.3s ease; }

/* ---------- Sidebar-Navigation (App) ---------- */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--ink-soft);
    font-weight: 600;
}
.nav-item:hover { background: rgba(193, 137, 63, 0.15); }
.nav-item.active {
    background: linear-gradient(to right, var(--warm-500), var(--accent-500));
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.nav-item i { width: 1.5rem; text-align: center; }

/* ---------- Unterstützer-Kacheln ---------- */
.supporter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.supporter-tile {
    position: relative;
    overflow: hidden;
    background: rgba(255, 250, 240, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid rgba(193, 137, 63, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 47, 24, 0.07);
}
.supporter-tile.has-modal { cursor: pointer; }
.supporter-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(74, 47, 24, 0.14);
}
.supporter-tile .logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    background: #fff;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(74, 47, 24, 0.1);
}
.supporter-tile .short-description {
    font-size: 0.875rem;
    color: var(--ink-soft);
    margin-top: .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tile-hover-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: .85rem;
    padding-top: .75rem;
    border-top: 1px dashed rgba(193, 137, 63, 0.35);
    font-size: .78rem;
    font-weight: 600;
    color: var(--accent-600);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .25s ease, transform .25s ease;
}
.supporter-tile.has-modal:hover .tile-hover-cta,
.supporter-tile.has-modal:focus-visible .tile-hover-cta {
    opacity: 1;
    transform: translateY(0);
}
.tile-hover-cta i { font-size: .7rem; }

.modal-info-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .92rem;
    color: var(--ink);
    margin-bottom: .65rem;
}
.modal-info-row.modal-company-row {
    font-weight: 600;
    color: var(--accent-600);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid rgba(193, 137, 63, 0.2);
}
.modal-info-row i {
    color: var(--accent-600);
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}
.modal-info-row a { color: var(--accent-600); word-break: break-all; text-decoration: none; }
.modal-info-row a:hover { text-decoration: underline; }
.modal-social-row { display: flex; gap: .75rem; margin: .75rem 0 .75rem 1.85rem; }
.modal-social {
    width: 38px; height: 38px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; box-shadow: 0 2px 6px rgba(74,47,24,.12);
    color: var(--accent-600); font-size: 1rem; transition: transform .2s ease;
}
.modal-social:hover { transform: translateY(-2px); }
.modal-social.fb { color: #1877f2; }
.modal-social.ig { color: #c1358f; }
.modal-social.yt { color: #d33; }
.modal-body-text {
    margin-left: 1.85rem;
    margin-bottom: 1rem;
}
.modal-extra-image {
    width: calc(100% - 1.85rem);
    margin-left: 1.85rem;
    max-height: 260px; object-fit: cover;
    border-radius: .75rem; margin-top: .5rem;
}

/* ---------- Songbilder: Toolbar (zentrierter Sprung-Dropdown-Button) ---------- */
.songbilder-toolbar {
    position: relative;
    display: flex;
    justify-content: center;
}
.songbilder-jump-btn {
    width: 50%;
    min-width: 260px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1.25rem;
    border-radius: .6rem;
    border: 1px solid rgba(193, 137, 63, 0.4);
    background: #fffdf7;
    color: var(--warm-800);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}
.songbilder-jump-btn:hover { background: #fff3e0; }
.songbilder-jump-chevron { font-size: .7rem; transition: transform .2s ease; }
.songbilder-jump-btn[aria-expanded="true"] .songbilder-jump-chevron { transform: rotate(180deg); }
@media (max-width: 640px) {
    .songbilder-jump-btn { width: 100%; min-width: 0; }
}

.songbilder-jump-dropdown {
    position: absolute;
    top: calc(100% + .6rem);
    left: 0;
    right: 0;
    max-height: 420px;
    overflow-y: auto;
    background: #fffaf0;
    border: 1px solid rgba(193, 137, 63, 0.35);
    border-radius: .85rem;
    box-shadow: 0 12px 32px rgba(74, 47, 24, 0.22);
    z-index: 40;
    padding: .5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .35rem;
}
.songbilder-jump-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem .6rem;
    border-radius: .6rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: .85rem;
    color: var(--ink);
    transition: background .15s ease;
}
.songbilder-jump-item:hover { background: rgba(193, 137, 63, 0.14); }
.songbilder-jump-item img,
.songbilder-jump-item-fallback {
    width: 40px;
    height: 40px;
    border-radius: .45rem;
    object-fit: cover;
    flex-shrink: 0;
}
.songbilder-jump-item-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(193, 137, 63, 0.15);
    color: var(--accent-600);
}
.songbilder-hint {
    text-align: center;
    font-size: .82rem;
    font-style: italic;
    color: var(--ink-soft);
    margin-top: .75rem;
    opacity: .85;
}
/* ---------- Songbilder-Kacheln (Bild + Hover-Overlay) ---------- */
.songbilder-tile {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(193, 137, 63, 0.3);
    box-shadow: 0 4px 12px rgba(74, 47, 24, 0.08);
    transition: box-shadow .3s ease, transform .3s ease;
    background: rgba(255, 250, 240, 0.8);
}
.songbilder-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(74, 47, 24, 0.16);
}
.songbilder-tile.songbilder-tile-teaser {
    box-shadow: 0 0 0 2px var(--accent-500), 0 4px 12px rgba(74, 47, 24, 0.08);
}
.songbilder-tile.songbilder-tile-teaser:hover {
    box-shadow: 0 0 0 2px var(--accent-500), 0 10px 28px rgba(74, 47, 24, 0.16);
}
.songbilder-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter .4s ease, transform .5s ease;
    filter: grayscale(0%) brightness(1);
}
.songbilder-tile:hover img,
.songbilder-tile.touch-active img {
    filter: grayscale(85%) brightness(0.45);
    transform: scale(1.06);
}
.songbilder-tile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.songbilder-tile:hover .songbilder-tile-overlay,
.songbilder-tile.touch-active .songbilder-tile-overlay {
    opacity: 1;
    pointer-events: auto;
}
.songbilder-tile-overlay h3 {
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: .5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.songbilder-tile-overlay p {
    font-size: .9rem;
    color: rgba(255,255,255,.92);
    margin-bottom: 1rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.songbilder-tile-overlay a.yt-link,
.songbilder-tile-overlay button.yt-link {
    background: linear-gradient(to right, var(--warm-500), var(--accent-500));
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    padding: .55rem 1.3rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.35);
    transition: transform .2s ease;
}
.songbilder-tile-overlay a.yt-link:hover,
.songbilder-tile-overlay button.yt-link:hover { transform: translateY(-2px); }

/* ---------- Songbilder: Play-Button (Klick-zum-Laden YouTube-Player) ----------
   Gleiche Größe/Farbe wie der "Songtext"-Button, sitzt daneben in derselben
   Reihe und ist - wie alle anderen Buttons dort auch - nur bei Hover/Touch
   sichtbar (steckt in .songbilder-tile-overlay, siehe oben). */
.yt-link.yt-play-circle {
    width: 2.7rem;
    height: 2.7rem;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

.youtube-lightbox-inner {
    position: relative;
    width: min(960px, 92vw, calc(80vh * 16 / 9));
    margin: 0 1rem;
}
.youtube-lightbox-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.youtube-lightbox-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.youtube-lightbox-close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.youtube-lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

.youtube-lightbox-inner.audio-mode { width: min(480px, 92vw); }
.youtube-lightbox-frame-wrap.audio-mode {
    aspect-ratio: unset;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    padding: .5rem 0;
}
.youtube-lightbox-frame-wrap.audio-mode audio {
    display: block;
    width: 100%;
}
.player-description {
    color: #fff;
    background: rgba(0, 0, 0, .8);
    border-radius: .6rem;
    padding: .75rem 1rem;
    margin-bottom: .75rem;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.player-youtube-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .75rem;
    padding: .5rem .9rem;
    border-radius: .5rem;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
}
.player-youtube-link:hover { background: rgba(0, 0, 0, .95); text-decoration: underline; }
.player-youtube-link i { color: #ff4444; }

/* ---------- Bibliothek: Kacheln im Buch-Look ---------- */
.library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
}
@media (min-width: 640px) {
    .library-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .library-grid[data-cols="4"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .library-grid[data-cols="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
    .library-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .library-grid[data-cols="5"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
    .library-grid[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.library-book {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Der eigentliche "Bucheinband": erst der Karten-Bereich, der die
   angedeuteten Buchseiten (::pages) hinter sich zeigt, darin dann das
   eigentliche Cover mit Titel, Text, Bild, Buchrücken und Hover-Button -
   alles gestapelt auf der Coverfläche, wie bei einem echten Buchumschlag. */
.library-book-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    width: 100%;
    min-width: 130px;
}
.library-book-pages {
    position: absolute;
    inset: 3% -6px 3% auto;
    right: -6px;
    width: 10px;
    border-radius: 0 5px 5px 0;
    background:
        repeating-linear-gradient(
            to bottom,
            #f6ecd8 0, #f6ecd8 2px,
            #e8dabb 2px, #e8dabb 4px
        );
    box-shadow: 2px 0 4px rgba(74, 47, 24, 0.18);
}
.library-book-cover-inner {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 4px 10px 10px 4px;
    border: 1px solid rgba(74, 47, 24, 0.28);
    box-shadow: 0 8px 18px rgba(74, 47, 24, 0.22), 0 2px 4px rgba(74, 47, 24, 0.15);
    background: var(--warm-100);
    transition: transform .35s ease, box-shadow .35s ease;
}
/* Inhalt der Coverfläche: Titel oben, danach Text, danach Bild - füllt
   die komplette Cover-Innenfläche. Titel/Text weichen dem Buchrücken
   links per Innenabstand aus, das Bild geht randlos bis zum Rand. */
.library-book-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}
.library-book-title {
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--warm-800);
    text-align: center;
    margin: 0;
    padding: 16% 10% 0 18%;
}
.library-book-desc {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--ink-soft);
    text-align: center;
    padding: .4rem 10% .6rem 18%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.library-book-desc p:last-child { margin-bottom: 0; }

.library-book-image-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.library-book-image-wrap img {
    width: 100%;
    height: 60%;
    object-fit: contain;
    display: block;
    margin-top: 20px;
}
.library-book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm-100);
}
.library-book-cover-placeholder i {
    font-size: 2.5rem;
    color: var(--warm-400);
}
/* Buchrücken: dunkler Streifen am linken Rand, wie eingebunden */
.library-book-spine {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 9%;
    min-width: 8px;
    background: linear-gradient(to right, rgba(0,0,0,.45), rgba(0,0,0,.08) 70%, transparent);
    pointer-events: none;
}
.library-book-spine::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 2px;
    width: 1px;
    background: rgba(255,255,255,.18);
}
/* Button erscheint nur beim Hover, unten auf dem Bild */
.library-book-hover {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    padding: .9rem .75rem .85rem;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}
.library-book:hover .library-book-hover,
.library-book.touch-active .library-book-hover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.library-book-hover .yt-link {
    font-size: .8rem;
    padding: .45rem 1.1rem;
}

/* ---------- News ---------- */
.news-item {
    background: rgba(255, 250, 240, 0.78);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(193, 137, 63, 0.3);
    box-shadow: 0 4px 12px rgba(74, 47, 24, 0.07);
    margin-bottom: 1.25rem;
}
.news-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}
.news-header-right {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
}
.news-item h3 { font-weight: 700; font-size: 1.2rem; color: var(--warm-800); margin-bottom: 0; }
.news-item .news-date { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.news-toggle-icon { color: var(--accent-600); transition: transform .3s ease; font-size: .85rem; }
.news-item.open .news-toggle-icon { transform: rotate(180deg); }
.news-readmore {
    font-size: .82rem;
    font-style: italic;
    color: var(--ink-soft);
    margin: .4rem 0 0;
    display: block;
}
.news-item.open .news-readmore { display: none; }
.news-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}
.news-item .news-content { color: var(--ink); line-height: 1.65; padding-top: .9rem; }

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background-color: #d8c4a0;
    transition: .3s;
    border-radius: 999px;
}
.toggle-slider:before {
    position: absolute; content: "";
    height: 20px; width: 20px; left: 3px; bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(to right, var(--warm-500), var(--accent-500));
}
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 250, 240, 0.6);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--warm-800);
    border: 1px solid rgba(193, 137, 63, 0.3);
}
.visitor-counter i { color: var(--accent-600); }

/* ---------- Visionen-Kacheln ---------- */
.vision-tile {
    background: rgba(255, 250, 240, 0.8);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(193, 137, 63, 0.3);
    box-shadow: 0 4px 12px rgba(74, 47, 24, 0.08);
    transition: all .3s ease;
}
.vision-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(74, 47, 24, 0.16);
}
.vision-tile-header {
    text-align: center;
}
.vision-tile-header h3 {
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--warm-800);
    margin-bottom: 0;
}
.vision-tile-collapse {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.vision-tile-content {
    color: var(--ink);
    line-height: 1.7;
}
.vision-tile-content p { margin-bottom: .5rem; }
.vision-tile-footer {
    margin-top: 0.75rem;
    text-align: center;
}
.vision-tile-btn {
    background: linear-gradient(to right, var(--warm-500), var(--accent-500));
    color: #fff;
    border: none;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(161, 100, 43, 0.3);
    transition: background 0.2s, transform 0.2s;
}
.vision-tile-btn:hover {
    background: linear-gradient(to right, var(--warm-600), var(--accent-600));
    transform: translateY(-1px);
}

/* ---------- Patenschafts-Badge (Fahne/Ribbon oben links) ---------- */
.patron-badge-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 130px;
    height: 130px;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}
.patron-badge {
    position: absolute;
    top: 28px;
    left: -48px;
    width: 175px;
    transform: rotate(-45deg);
    text-align: center;
    background: linear-gradient(to right, var(--accent-500), var(--accent-600));
    color: #fff;
    font-size: 0.52rem;
    font-weight: 500;
    padding: 5px 4px;
    box-shadow: 0 2px 8px rgba(74, 47, 24, 0.35);
    letter-spacing: .01em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- HTML-Quellcode-Editor (Dual-Mode neben Quill) ---------- */
.raw-html-editor {
    width: 100%;
    min-height: 140px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.8rem;
    padding: 0.75rem;
    border: 1px solid rgba(193, 137, 63, 0.45);
    border-radius: 0.5rem;
    background: #fffdf7;
    color: var(--ink);
}
.editor-toggle-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    margin-bottom: 0.5rem;
}

/* ---------- Quill Rich-Text-Editor ---------- */
.quill-editor {
    background: #fffdf7;
    border-radius: 0.5rem;
    overflow: auto;
    max-height: 500px;
    min-height: 160px;
    border: 1px solid rgba(193, 137, 63, 0.3);
}
.ql-toolbar.ql-snow {
    border-color: rgba(193, 137, 63, 0.45) !important;
    background: var(--warm-50);
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
.ql-container.ql-snow {
    border-color: rgba(193, 137, 63, 0.45) !important;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    font-family: 'Georgia', serif;
    min-height: 140px;
    font-size: 1rem;
    color: var(--ink);
}
.ql-editor.ql-blank::before {
    color: var(--ink-soft);
    font-style: normal;
}

.page { display: none; }
.page.active { display: block; }
.hidden { display: none !important; }

/* ---------- Eigenes Dialog-Modal (ersetzt alert/confirm/prompt) ---------- */
.app-dialog-box {
    background-color: #fffaf0;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(74, 47, 24, 0.35);
    width: 100%;
    max-width: 420px;
    margin: 0 1rem;
    padding: 1.75rem;
}
.app-dialog-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
    color: #fff;
}
.app-dialog-icon.info { background: linear-gradient(135deg, var(--warm-500), var(--accent-500)); }
.app-dialog-icon.danger { background: linear-gradient(135deg, var(--danger-500), var(--danger-600)); }
.app-dialog-title {
    font-family: Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--warm-800);
    text-align: center;
    margin-bottom: .5rem;
}
.app-dialog-message {
    font-size: .9rem;
    color: var(--ink);
    text-align: center;
    margin-bottom: 1.25rem;
    white-space: pre-wrap;
}
.app-dialog-input {
    width: 100%;
    padding: .65rem .9rem;
    border: 1px solid rgba(193, 137, 63, .45);
    border-radius: .5rem;
    background: #fffdf7;
    margin-bottom: 1.25rem;
}
.app-dialog-actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
}

/* ---------- Accordion (Home/Archiv) ---------- */
.accordion-item {
    border-bottom: 1px dashed rgba(139, 94, 42, 0.4);
}
.accordion-item:last-child { border-bottom: none; }
.accordion-item:first-child .accordion-trigger { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.accordion-item:last-child .accordion-panel { border-bottom-left-radius: 1rem; border-bottom-right-radius: 1rem; }
.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 1.15rem 1.5rem;
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--warm-800);
    text-align: left;
    transition: color .2s ease;
}
.accordion-trigger:hover { color: var(--accent-600); }
.accordion-icon {
    flex-shrink: 0;
    color: var(--accent-600);
    transition: transform .3s ease;
}
.accordion-item.open .accordion-trigger { color: var(--accent-600); }
.accordion-item.open .accordion-icon { transform: rotate(180deg); }
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}
.accordion-panel-inner {
    padding: 0 1.5rem 1.5rem;
    line-height: 1.75;
    color: var(--ink);
}
.accordion-panel-inner p { margin-bottom: .65rem; }

/* ---------- Statistik-Balken ---------- */
.stat-bar-list {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    column-gap: .75rem;
    row-gap: .55rem;
    align-items: center;
    font-size: .875rem;
}
.stat-bar-label {
    color: var(--ink);
    white-space: nowrap;
}
.stat-bar-track {
    height: 10px;
    background: rgba(193, 137, 63, 0.15);
    border-radius: 999px;
    overflow: hidden;
}
.stat-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--warm-500), var(--accent-500));
    border-radius: 999px;
}
.stat-bar-count {
    text-align: right;
    font-weight: 700;
    color: var(--warm-800);
}

/* ---------- Passwort-Eingabe mit Auge-Toggle + Stärkeanzeige ---------- */
.password-field-wrap { position: relative; }
.password-field-wrap input { padding-right: 2.75rem !important; }
.password-toggle-eye {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-soft);
    padding: .25rem;
}
.password-toggle-eye:hover { color: var(--warm-800); }
.password-strength-bar {
    height: 5px;
    border-radius: 3px;
    background: #e8dcc4;
    margin-top: .4rem;
    overflow: hidden;
}
.password-strength-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width .25s ease, background .25s ease;
}
.password-strength-label {
    font-size: .72rem;
    margin-top: .25rem;
    font-weight: 600;
}
.drag-handle {
    cursor: grab;
    color: var(--warm-400);
    padding: 0 .5rem;
    touch-action: none;
}
.drag-handle:active { cursor: grabbing; }
[data-sortable-item].dragging {
    opacity: 0.4;
}
[data-sortable-item] {
    transition: transform .15s ease;
}
.yt-link.reserve-tile-btn { color: #c1552c; }

#newsModal .rounded-2xl {
   max-height: 80vh;
   overflow: auto;
}

@media (max-width: 900px) {
   .nav-link-text { display: none; }
}

@media (max-width: 400px) {
   .nav-link { padding:.5rem .55rem; }
}
/* ---------- Stiftungen / Organisationen ---------- */
.stiftungen-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.stiftungen-table th {
    text-align: left;
    padding: .6rem .75rem;
    background: rgba(193, 137, 63, 0.12);
    color: var(--warm-800);
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 2px solid rgba(193, 137, 63, 0.25);
}
.stiftungen-table td {
    padding: .65rem .75rem;
    border-bottom: 1px solid rgba(193, 137, 63, 0.15);
    vertical-align: top;
    color: var(--ink);
}
.stiftungen-table tr:hover td { background: rgba(193, 137, 63, 0.05); }

/* ---------- Druckansicht (z.B. Stiftungen-Übersicht) ---------- */
.print-only { display: none; }
@media print {
    body * { visibility: hidden; }
    #stiftungenPrintArea, #stiftungenPrintArea * { visibility: visible; }
    #stiftungenPrintArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none !important;
        background: #fff !important;
    }
    .no-print { display: none !important; }
    .print-only { display: block !important; }
    .stiftungen-table th { background: #eee !important; -webkit-print-color-adjust: exact; }
    .stiftungen-table td, .stiftungen-table th { border-color: #ccc !important; }
}

/* ---------- Statistik: Besucherpfade ---------- */
.visitor-path-card {
    background: rgba(255, 250, 240, 0.7);
    border: 1px solid rgba(193, 137, 63, 0.25);
    border-radius: .75rem;
    padding: .85rem 1rem;
}
.visitor-path-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem;
    font-size: .85rem;
}
.visitor-path-step {
    background: #fff;
    border: 1px solid rgba(193, 137, 63, 0.3);
    border-radius: .5rem;
    padding: .3rem .6rem;
    color: var(--ink);
    white-space: nowrap;
}
.visitor-path-time {
    font-size: .72rem;
    color: var(--ink-soft);
    margin-left: .35rem;
}
.visitor-path-arrow {
    color: var(--accent-600);
    font-size: .7rem;
    opacity: .6;
}

/* ---------- Landing: Vorschau-Bilder (3 SongBilder-Kacheln) ---------- */
.preview-pictures {
    display: flex;
    gap: 1.5rem;
}
@media (max-width: 640px) {
    .preview-pictures {
        flex-direction: column;
    }
}
.preview-pictures img {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(193, 137, 63, 0.3);
    box-shadow: 0 4px 12px rgba(74, 47, 24, 0.08);
    transition: box-shadow .3s ease, transform .3s ease;
    background: rgba(255, 250, 240, 0.8);
    object-fit: cover;
}
.songbilder-tile-overlay a.tt-link {
    background: linear-gradient(to right, var(--warm-500), var(--accent-500));
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.35);
    transition: transform .2s ease;
    margin-top: -10px;
}
.inviting {
    margin-bottom: 30px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
}
.yt-link.yt-play-circle {
	width: 112px;
	height: 38px;
	justify-content: center;
}
