/* =======================================
   GLOBALS & ROOT VARIABLEN
   ======================================= */

:root {
  --STB: #333333;   /* Standard-Schwarz für Text */
  --STG: #cccccc;   /* Hellgrau für Rahmen */
  --STW: #f9f9f9;   /* Hintergrund-Weiss */

  --MMG: #737373;   /* Dunkelgrau – Logo */
  --MMW: #f3f3f3;   /* Hellgrau – Logo */

  --MM1: #004aad;   /* Blau */
  --MM2: #28d7c8;   /* Türkis */
  --MM3: #5a2a82;   /* Violett */
  --MM4: #aa2049;   /* Weinrot */

  --MM5: #d8bfd8;   /* nicht benutzt */
  --MM6: #a4e4e0;   /* nicht benutzt */
  --MM7: #b3f1e3;   /* nicht benutzt */
  --MM8: #c6b3d6;   /* Dunkellila */
  --MM9: #eadaf2;   /* Lila */
  --MM10: #f4ecf9;  /* Helllila (Hintergrund) */
}

/* =======================================
   BODY & TYPOGRAPHIE
   ======================================= */

body {
  font-family: 'Open Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--STW);
  color: var(--STB);
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.3rem;
}

h1, h2, h3 {
  line-height: 1.4;
}

/* Varianten */
.fancy {
  font-family: 'Charm', cursive;
  text-align: center;
  color: var(--MM3);
}

.sans {
  font-family: 'Open Sans';
  text-align: center;
  color: var(--MM3);
}

h2.sans {
  font-family: 'Open Sans';
  text-align: center;
  color: var(--MM3);
  margin-top: 3rem;   /* NEU: Luft nach oben */
  margin-bottom: 1.2rem;  /* eventuell leicht reduzieren */
}


/* =======================================
   HEADER & LOGO
   ======================================= */

header {
  background-color: var(--MM9);
  text-align: center;
  padding: 0.8em 0;
  position: relative;
}

.logo {
  width: clamp(200px, 15vw, 450px);
  height: auto;
  margin-bottom: 0.5em;
}

/* =======================================
   NAVIGATION
   ======================================= */

.nav-toggle {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}

#menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 40px;
  background: var(--MM10);
  border: 1px solid var(--STG);
  padding: 10px 20px;
  z-index: 9;
}

#menu.show {
  display: block;
}

#menu a {
  display: block;
  text-decoration: none;
  color: var(--STB);
  padding: 5px 0;
}

/* =======================================
   SEITENINHALT
   ======================================= */

.page-content {
  max-width: 90vw;
  margin: auto;
  padding: 40px;
}

.intro {
  text-align: center;
}

.caption {
  font-size: 1rem;
  text-align: center;
  margin-top: 20px;
}

/* =======================================
   BUTTONS
   ======================================= */

.button {
  display: inline-block;
  background: var(--MM3);
  color: var(--MM10);
  padding: 10px 20px;
  text-decoration: none;
  margin: 10px;
  margin-top: 2em;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}

.button:hover {
  background: var(--MM8);
  color: var(--STB);
}

/* =======================================
   TAGS
   ======================================= */

.tags {
  font-size: 1rem;
  color: var(--STB);
  text-align: center;
  margin-top: 1.5em;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.tag {
  text-decoration: underline;
  color: var(--MM8);
  margin: 0 5px 10px;
  font-weight: normal;
  font-size: 1rem;
}

.tag:hover {
  color: var(--STB);
  background: var(--MM9);
}

.tag-active {
  font-weight: bold;
  color: var(--MM10);
  background: var(--MM2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* =======================================
   FOOTER
   ======================================= */

.footer {
  text-align: center;
  font-size: 0.9em;
  color: var(--MMG);
  margin-top: 4em;
  padding: 2em 1em;
  background: var(--MM10);
  border-top: 1px solid var(--STG);
}

.footer-mini {
  text-align: center;
  font-size: 0.8em;
  color: var(--MMG);
  padding: 1.5em;
  background: var(--MM10);
  border-top: 1px solid var(--STG);
}

/* =======================================
   SCROLL-UP BUTTON
   ======================================= */

.scroll-up {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--MM3);
  color: var(--MM10);
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0.7;
  transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.scroll-up:hover {
  background: var(--MM8);
  color: var(--STB);
  opacity: 1;
}
