/* ========================================
   Farbschema-Variablen (Prinzenbar-Farben)
   ======================================== */

/* Standard: spicy (lesbar) */
:root,
[data-color-scheme="spicy"] {
  --page-bg: #ffb1d5;
  --page-color: #000000;
  --link-bg: #b1ffdb;
  --link-color: #000000;
  --link-hover-bg: #ffb1d5;
  --link-hover-color: #000000;
  --button-bg: #b1ffdb;
  --button-color: #000000;
  --nav-mobile-bg: #b1ffdb;
  --nav-mobile-color: #000000;
  --seiten-werbung-bg: #a7ffff;
  --seiten-werbung-color: #000000;
  --seiten-werbung-hover-bg: #000000;
  --seiten-werbung-hover-color: #a7ffff;
  --newsletter-bg: #ffb1d5;
  --newsletter-color: #000000;
  --newsletter-hover-bg: #000000;
  --newsletter-hover-color: #ffb1d5;
}

/* Eyecancer (Original) */
[data-color-scheme="eyecancer"] {
  --page-bg: #ffb1d5;
  --page-color: #b1ffdb;
  --link-bg: #b1ffdb;
  --link-color: #ffb1d5;
  --link-hover-bg: #ffb1d5;
  --link-hover-color: #b1ffdb;
  --button-bg: #b1ffdb;
  --button-color: #ffb1d5;
  --nav-mobile-bg: #b1ffdb;
  --nav-mobile-color: #ffb1d5;
  --seiten-werbung-bg: #a7ffff;
  --seiten-werbung-color: #ffa7a7;
  --seiten-werbung-hover-bg: #ffa7a7;
  --seiten-werbung-hover-color: #a7ffff;
  --newsletter-bg: #ffb1d5;
  --newsletter-color: #b1ffdb;
  --newsletter-hover-bg: #b1ffdb;
  --newsletter-hover-color: #ffb1d5;
}

/* Mild (Pastell) */
[data-color-scheme="mild"] {
  --page-bg: #ffddf0;
  --page-color: #333333;
  --link-bg: #d4f5e4;
  --link-color: #333333;
  --link-hover-bg: #ffddf0;
  --link-hover-color: #333333;
  --button-bg: #d4f5e4;
  --button-color: #333333;
  --nav-mobile-bg: #d4f5e4;
  --nav-mobile-color: #333333;
  --seiten-werbung-bg: #d9ffff;
  --seiten-werbung-color: #333333;
  --seiten-werbung-hover-bg: #333333;
  --seiten-werbung-hover-color: #d9ffff;
  --newsletter-bg: #ffddf0;
  --newsletter-color: #333333;
  --newsletter-hover-bg: #333333;
  --newsletter-hover-color: #ffddf0;
}

/* ========================================
   Fonts
   ======================================== */

@font-face {
  font-family: "UnifrakturMaguntia";
  src:
    url("/fonts/unifrakturmaguntia.woff2") format("woff2"),
    url("/fonts/unifrakturmaguntia.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

h1.chronick {
  font-family: "UnifrakturMaguntia", serif;
  font-size: 3rem;
  line-height: 1.1;

  /* klassische Druckerschwärze */
  color: #241a12;

  /* Satzgefühl */
  letter-spacing: 0.06em;
  word-spacing: 0.35em;

  /* minimale Druckunschärfe */
  text-shadow:
    0.4px 0.4px 0 rgba(0, 0, 0, 0.35),
   -0.2px -0.2px 0 rgba(255, 255, 255, 0.12);

  /* matte Wirkung */
  filter:
    contrast(0.95)
    brightness(0.95);

  text-rendering: optimizeLegibility;

  hyphens: auto;
}

h1.chronick .cap {
  font-size: 1.3em;
  letter-spacing: 0;
  vertical-align: baseline;
    text-shadow:
    0.3px 0.3px 0 rgba(0,0,0,0.35);
}

body {
  background: var(--page-bg);
  color: var(--page-color);
  font-family: sans-serif;
  font-size: 18px;
  font-weight: 500;
}

a {
  color: var(--link-color);
  background-color: var(--link-bg);
  text-decoration: none;
}

a:hover {
  background-color: var(--link-hover-bg);
  color: var(--link-hover-color);
}

article {
  max-width: 800px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.layout {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  padding: 40px;
}

.navigation-desktop {
  width: 200px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

.navigation-mobil {
  display: none;
}

@media (max-width: 800px) {
  .navigation-desktop {
    display: none;
  }

  .navigation-mobil {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 1.1rem;
    background: var(--nav-mobile-bg);
    color: var(--nav-mobile-color);
    border: none;
  }
  h1.chronick {
    font-size: 2rem;
  }
}

.button {
  display: block;
  padding: 10px 15px;
  margin-bottom: 10px;
  background: var(--button-bg);
  border-radius: 6px;
  text-decoration: none;
  color: var(--button-color);
  font-weight: 500;
}

.button:hover {
  background: #ddd;
  transform: translateX(3px);
}

#unterstreifen {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  z-index: 9999;
}

#unterstreifen a {
  text-align: center;
  padding: 0 12px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}

.seiten-werbung {
  flex: 1;
  background: var(--seiten-werbung-bg);
  color: var(--seiten-werbung-color);
}

.seiten-werbung:hover {
  background: var(--seiten-werbung-hover-bg);
  color: var(--seiten-werbung-hover-color);
}

.rechtliches {
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: white;
  color: black;
}

.rechtliches:hover {
  background: black;
  color: white;
}

.newsletter {
  flex: 0 0 auto;
  white-space: nowrap;
  background: var(--newsletter-bg);
  color: var(--newsletter-color);
}

.newsletter:hover {
  background: var(--newsletter-hover-bg);
  color: var(--newsletter-hover-color);
}

/* ========================================
   Farbschema-Picker
   ======================================== */

.farbschema-picker {
  margin-top: 20px;
  margin-bottom: 10px;
}

.farbschema-picker label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.farbschema-picker select,
.farbschema-mobil {
  padding: 8px 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: var(--button-bg);
  color: var(--button-color);
  cursor: pointer;
  width: 100%;
}

.farbschema-mobil-wrapper {
  display: none;
  margin-top: 5px;
}

.farbschema-mobil-label {
  padding: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  background: var(--page-bg);
  color: var(--page-color);
  white-space: nowrap;
}

.farbschema-mobil {
  flex: 1;
  border-radius: 0;
}

@media (max-width: 800px) {
  .farbschema-mobil-wrapper {
    display: flex;
  }
}
