:root {
  color-scheme: light;
  --background-body: #ffffff;
  --background: #f0f4f8;          /* Leichtes Blaugrau statt grau */
  --background-alt: #e8f0f7;      /* Noch leichter FRAISA-Blau-Ton */
  --selection: #0080c9;           /* FRAISA Light Blue */
  --text-main: #333333;           /* FRAISA Text Grey 01 */
  --text-bright: #002946;         /* FRAISA Blue Dark */
  --text-muted: #777777;          /* FRAISA Text Grey 02 */
  --links: #0080c9;               /* FRAISA Light Blue */
  --focus: #0080c9;               /* FRAISA Light Blue */
  --border: #b8cfe0;              /* Blaugrau */
  --code: #002946;                /* FRAISA Blue Dark */
  --animation-duration: 0.1s;
  --button-base: #002946;         /* FRAISA Light Blue */
  --button-hover: #001a2e;        /* FRAISA Blue Dark */
  --scrollbar-thumb: #0080c9;
  --scrollbar-thumb-hover: #002946;
  --form-placeholder: #777777;    /* FRAISA Text Grey 02 */
  --form-text: #333333;           /* FRAISA Text Grey 01 */
  --variable: #e30613;            /* FRAISA Red */
  --highlight: #0080c9;           /* FRAISA Light Blue */
  --select-arrow: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' height='63' width='117' fill='%23002946'%3E%3Cpath d='M115 2c-1-2-4-2-5 0L59 53 7 2a4 4 0 00-5 5l54 54 2 2 3-2 54-54c2-1 2-4 0-5z'/%3E%3C/svg%3E")
}

/* Sign in Button im Auth-Form */
#auth-form button {
  background-color: #002946 !important;
  color: #ffffff !important;
  width: 100% !important;
  margin-top: 0.5rem !important;
}

#auth-form button:hover {
  background-color: #0080c9 !important;
}

/* Input Felder im Auth-Form */
#auth-form input {
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 0.5rem !important;
  border: 1px solid #b8cfe0 !important;
}

#auth-form input:focus {
  border-color: #0080c9 !important;
  box-shadow: 0 0 0 2px #0080c9 !important;
}


/* Save-Button ? FRAISA Dark Blue */
input[type=submit] {
  background-color: #002946 !important;
  color: #ffffff !important;
}

input[type=submit]:hover {
  background-color: #001a2e !important;
}

/* File-Attach-Button Border ? FRAISA Light Blue */
#attach-file-button-label {
  border-color: #0080c9 !important;
}

#attach-file-button-label a {
  color: #0080c9 !important;
}

/* Focus-Ring ? FRAISA Light Blue (überschreibt hardcoded red) */
input:focus,
select:focus,
button:focus,
textarea:focus {
  box-shadow: 0 0 0 2px #0080c9 !important;
  outline: none !important;
}

/* Small Buttons (Copy Text, Copy URL) ? dezent, FRAISA Light Blue Outline */
.small-button {
  background-color: transparent !important;
  color: #0080c9 !important;
  border: 1px solid #0080c9 !important;
  border-radius: 6px !important;
  font-size: small !important;
  padding: 4px 0.8rem !important;
  cursor: pointer !important;
}

.small-button:hover {
  background-color: #0080c9 !important;
  color: #ffffff !important;
}

/* Alle Links ? FRAISA Light Blue */
a {
  color: #0080c9 !important;
}

a:hover {
  color: #002946 !important;
  text-decoration: underline !important;
}

/* Nav-Links (New, Guide) */
#nav a {
  color: #0080c9 !important;
}

/* Inline-Links auf der View-Seite (Raw, QR, Edit, Remove) */
div[style*="float"] a {
  color: #0080c9 !important;
}




/* ===================== Rest bleibt strukturell gleich ===================== */

html {
  scrollbar-color: #0080c9 #ffffff;
  scrollbar-color: var(--scrollbar-thumb) var(--background-body);
  scrollbar-width: thin
}

body {
  font-family: Arial, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, sans-serif;
  line-height: 1.4;
  max-width: 800px;
  margin: 20px auto;
  padding: 0 10px;
  word-wrap: break-word;
  color: #333333;
  color: var(--text-main);
  background: #ffffff;
  background: var(--background-body);
  text-rendering: optimizeLegibility
}

button {
  transition: background-color .1s linear, border-color .1s linear, color .1s linear, box-shadow .1s linear, transform .1s ease;
  transition: background-color var(--animation-duration) linear, border-color var(--animation-duration) linear, color var(--animation-duration) linear, box-shadow var(--animation-duration) linear, transform var(--animation-duration) ease
}

input {
  transition: background-color .1s linear, border-color .1s linear, color .1s linear, box-shadow .1s linear, transform .1s ease;
  transition: background-color var(--animation-duration) linear, border-color var(--animation-duration) linear, color var(--animation-duration) linear, box-shadow var(--animation-duration) linear, transform var(--animation-duration) ease
}

textarea {
  transition: background-color .1s linear, border-color .1s linear, color .1s linear, box-shadow .1s linear, transform .1s ease;
  transition: background-color var(--animation-duration) linear, border-color var(--animation-duration) linear, color var(--animation-duration) linear, box-shadow var(--animation-duration) linear, transform var(--animation-duration) ease
}

h1 {
  font-size: 2.2em;
  margin-top: 0
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 12px;
  margin-top: 24px
}

h1 {
  color: #002946;
  color: var(--text-bright)
}

h2 { color: #002946; color: var(--text-bright) }
h3 { color: #002946; color: var(--text-bright) }
h4 { color: #002946; color: var(--text-bright) }
h5 { color: #002946; color: var(--text-bright) }
h6 { color: #002946; color: var(--text-bright) }
strong { color: #002946; color: var(--text-bright) }
b,
h1,
h2,
h3,
h4,
h5,
h6,
strong,
th {
  font-weight: 600
}

q:after,
q:before {
  content: none
}

blockquote {
  border-left: 4px solid #e30613; /* FRAISA Red als Akzent */
  border-left: 4px solid var(--variable);
  margin: 1.5em 0;
  padding: .5em 1em;
  font-style: italic
}

q {
  border-left: 4px solid #e30613;
  border-left: 4px solid var(--variable);
  margin: 1.5em 0;
  padding: .5em 1em;
  font-style: italic
}

blockquote>footer {
  font-style: normal;
  border: 0
}

address,
blockquote cite {
  font-style: normal
}

a[href^=mailto\:]:before { content: "?? " }
a[href^=tel\:]:before { content: "?? " }
a[href^=sms\:]:before { content: "?? " }

mark {
  background-color: #0080c9;
  background-color: var(--highlight);
  border-radius: 2px;
  padding: 0 2px;
  color: #fff
}

a>code,
a>strong {
  color: inherit
}

button,
input[type=button],
input[type=checkbox],
input[type=radio],
input[type=range],
input[type=reset],
input[type=submit],
select {
  cursor: pointer
}

input,
select {
  display: block
}

[type=checkbox],
[type=radio] {
  display: initial
}

input {
  color: #333333;
  color: var(--form-text);
  background-color: #f0f4f8;
  background-color: var(--background);
  font-family: inherit;
  font-size: inherit;
  margin-right: 6px;
  margin-bottom: 6px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  outline: none
}

button {
  color: #ffffff;
  color: var(--form-text);
  background-color: #0080c9;
  background-color: var(--button-base);
  font-family: inherit;
  font-size: inherit;
  margin-right: 6px;
  margin-bottom: 6px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  outline: none
}

textarea {
  color: #333333;
  color: var(--form-text);
  background-color: #f0f4f8;
  background-color: var(--background);
  font-family: inherit;
  font-size: inherit;
  margin-right: 6px;
  margin-bottom: 6px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  outline: none
}

select {
  color: #333333;
  color: var(--form-text);
  background-color: #f0f4f8;
  background-color: var(--background);
  font-family: inherit;
  font-size: inherit;
  margin-right: 6px;
  margin-bottom: 6px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  outline: none
}

button {
  background-color: #0080c9;
  background-color: var(--button-base);
  padding-right: 30px;
  padding-left: 30px
}

input[type=submit],
input[type=reset],
input[type=button] {
  background-color: #0080c9;
  background-color: var(--button-base);
  color: #ffffff;
  padding-right: 30px;
  padding-left: 30px
}

button:hover {
  background: #002946;
  background: var(--button-hover)
}

input[type=submit]:hover,
input[type=reset]:hover,
input[type=button]:hover {
  background: #002946;
  background: var(--button-hover)
}

input[type=color] {
  min-height: 2rem;
  padding: 8px;
  cursor: pointer
}

input[type=checkbox],
input[type=radio] {
  height: 1em;
  width: 1em
}

input[type=radio] {
  border-radius: 100%
}

input {
  vertical-align: top
}

label {
  vertical-align: middle;
  margin-bottom: 4px;
  display: inline-block
}

button,
input:not([type=checkbox]):not([type=radio]),
input[type=range],
select,
textarea {
  -webkit-appearance: none
}

textarea {
  display: block;
  margin-right: 0;
  box-sizing: border-box;
  resize: vertical
}

textarea:not([cols]) {
  width: 100%
}

textarea:not([rows]) {
  min-height: 40px;
  height: 140px
}

select {
  background: #f0f4f8 var(--select-arrow) calc(100% - 12px) 50%/12px no-repeat;
  padding-right: 35px
}

select::-ms-expand { display: none }

select[multiple] {
  padding-right: 10px;
  background-image: none;
  overflow-y: auto
}

input:focus,
select:focus,
button:focus,
textarea:focus {
  box-shadow: 0 0 0 2px #e30613; /* FRAISA Red als Focus-Ring */
  box-shadow: 0 0 0 2px var(--variable)
}

button:active,
input[type=button]:active,
input[type=checkbox]:active,
input[type=radio]:active,
input[type=range]:active,
input[type=reset]:active,
input[type=submit]:active {
  transform: translateY(2px)
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .5
}

::placeholder {
  color: #777777;
  color: var(--form-placeholder)
}

fieldset {
  border: 1px solid #0080c9;
  border: 1px solid var(--focus);
  border-radius: 6px;
  margin: 0 0 12px;
  padding: 10px
}

legend {
  font-size: .9em;
  font-weight: 600
}

input[type=range] {
  margin: 10px 0;
  padding: 10px 0;
  background: transparent
}

input[type=range]:focus { outline: none }

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 9.5px;
  transition: .2s;
  background: #f0f4f8;
  background: var(--background);
  border-radius: 3px
}

input[type=range]::-webkit-slider-thumb {
  box-shadow: 0 1px 1px #000;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #0080c9;
  background: var(--focus);
  -webkit-appearance: none;
  margin-top: -7px
}

a {
  text-decoration: none;
  color: #0080c9;
  color: var(--links)
}

a:hover {
  text-decoration: underline;
  color: #e30613; /* FRAISA Red beim Hover */
}

code {
  background: #f0f4f8;
  background: var(--background);
  color: #002946;
  color: var(--code);
  padding: 2.5px 5px;
  border-radius: 6px;
  font-size: 1em
}

samp,
time {
  background: #f0f4f8;
  background: var(--background);
  color: #002946;
  color: var(--code);
  padding: 2.5px 5px;
  border-radius: 6px;
  font-size: 1em
}

pre>code {
  padding: 10px;
  display: block;
  overflow-x: auto
}

var {
  color: #e30613;
  color: var(--variable);
  font-style: normal;
  font-family: monospace
}

kbd {
  background: #f0f4f8;
  background: var(--background);
  border: 1px solid #b8cfe0;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: #333333;
  color: var(--text-main);
  padding: 2px 4px
}

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

hr {
  border: none;
  border-top: 2px solid #e30613; /* FRAISA Red als Trennlinie */
  border-top: 2px solid var(--variable)
}

table {
  border-collapse: collapse;
  margin-bottom: 10px;
  width: 100%;
  table-layout: fixed
}

table caption,
td,
th {
  text-align: left
}

td,
th {
  padding: 6px;
  vertical-align: top;
  word-wrap: break-word
}

thead {
  background-color: #002946;     /* FRAISA Blue als Tabellen-Header */
  color: #ffffff;
  border-bottom: 2px solid #e30613;
  border-bottom: 2px solid var(--variable)
}

thead th {
  color: #ffffff
}

tfoot {
  border-top: 1px solid #b8cfe0;
  border-top: 1px solid var(--border)
}

tbody tr:nth-child(2n) {
  background-color: #e8f0f7;
  background-color: var(--background-alt)
}

::-webkit-scrollbar {
  height: 10px;
  width: 10px
}

::-webkit-scrollbar-track {
  background: #f0f4f8;
  background: var(--background);
  border-radius: 6px
}

::-webkit-scrollbar-thumb {
  background: #0080c9;
  background: var(--scrollbar-thumb);
  border-radius: 6px
}

::-webkit-scrollbar-thumb:hover {
  background: #002946;
  background: var(--scrollbar-thumb-hover)
}

::selection {
  background-color: #0080c9;
  background-color: var(--selection);
  color: #ffffff
}

details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #e8f0f7;
  background-color: var(--background-alt);
  padding: 10px 10px 0;
  margin: 1em 0;
  border-radius: 6px;
  overflow: hidden;
  border-left: 3px solid #0080c9; /* FRAISA Light Blue Akzent */
}

details[open] { padding: 10px }
details>:last-child { margin-bottom: 0 }
details[open] summary { margin-bottom: 10px }

summary {
  display: list-item;
  background-color: #f0f4f8;
  background-color: var(--background);
  padding: 10px;
  margin: -10px -10px 0;
  cursor: pointer;
  outline: none;
  font-weight: 600;
  color: #002946;
  color: var(--text-bright)
}

summary:focus,
summary:hover {
  text-decoration: underline
}

dialog {
  background-color: #e8f0f7;
  background-color: var(--background-alt);
  color: #333333;
  color: var(--text-main);
  border-radius: 6px;
  border: 1px solid #b8cfe0;
  border-color: var(--border);
  padding: 10px 30px
}

dialog>header:first-child {
  background-color: #002946;
  background-color: var(--button-hover);
  color: #ffffff;
  border-radius: 6px 6px 0 0;
  margin: -10px -30px 10px;
  padding: 10px;
  text-align: center
}

dialog::-webkit-backdrop {
  background: rgba(0, 41, 70, .75); /* FRAISA Blue transparent */
  backdrop-filter: blur(4px)
}

dialog::backdrop {
  background: rgba(0, 41, 70, .75);
  backdrop-filter: blur(4px)
}

footer {
  border-top: 2px solid #e30613; /* FRAISA Red */
  border-top: 2px solid var(--variable);
  padding-top: 10px;
  color: #777777;
  color: var(--text-muted)
}

body>footer {
  margin-top: 40px
}

@media print {
  body,
  button,
  code,
  details,
  input,
  pre,
  summary,
  textarea {
    background-color: #fff
  }

  button,
  input,
  textarea {
    border: 1px solid #000
  }

  body,
  button,
  code,
  footer,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  input,
  pre,
  strong,
  summary,
  textarea {
    color: #000
  }

  tbody tr:nth-child(2n) {
    background-color: #f2f2f2
  }

  a {
    color: #002946;
    text-decoration: underline
  }
}
