/*Setzt margin, padding und box-sizing für alle Elemente zurück. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light Mode (Standard) */
  --bg-color: #f5f5f5;
  --text-color: #333;
  --link-button-bg: #3498db;
  --link-button-hover-bg: #2980b9;
  --border-color: #fff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --active-text-color: #3498db;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --link-button-bg: #2c3e50;
    --link-button-hover-bg: #1a252f;
    --border-color: #333;
    --shadow-color: rgba(255, 255, 255, 0.1);
    --active-text-color: #5da3f7;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color) ;
  background-color: var(--bg-color);
  /*max-width: 600px; */
  margin: 0 auto;
  padding-top: 60px;
  padding-bottom: 60px;
  position: relative;
}

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

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

/* Sprachauswahl */
.language-selector {
  position: absolute;
  top: 20px;
  right: 20px;
}

.language-selector button {
  background: none;
  border: none;
  padding: 5px 10px;
  margin-left: 5px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-color);
}

.language-selector button.active {
  font-weight: bold;
  color: var(--active-text-color);
  text-decoration: underline;
  transform: scale(1.05);
}

.flag-icon {
  width: 20px;
  height: auto;
  margin-right: 5px;
  vertical-align: middle;
}

/* Profil */
.profile {
  text-align: center;
  margin-bottom: 30px;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--border-color);
  box-shadow: 0 4px 8px var(--shadow-color);
}


/* Link-buttons */
.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.link-button {
  display: block;
  width: 80%;
  max-width: 300px;
  min-height: 50px;
  padding: 12px;
  background-color: var(--link-button-bg);
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s;
}

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

.link-button i {
  margin-right: 10px;
  font-size: 1.2em;
}

.content {
  display: none;
}

.content.active {
  display: block;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  background-color: transparent;
  color: var(--text-color);
  font-size: 12px;
  z-index: -1;
}
