/* Grundlegende Styles für die gesamte Seite */
:root {
  --color-primary: #4e89ae;
  --color-secondary: #43658b;
  --color-text: #333;
  --color-background: #f9f9f9;
  --color-accent: hsl(198, 100%, 50%);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header-Styling */
header {
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  color: var(--color-secondary);
  font-weight: 400;
}

/* Backlink-Styling */
#backlink {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px dashed #ccc;
  background-color: white;
  padding: 8px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transform: rotate(-2deg) scale(0.9);
  transition: var(--transition);
}

#backlink:hover {
  transform: rotate(2deg) scale(1);
}

#backlink a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0.5rem;
  background-image: linear-gradient(to right, var(--color-accent) 0%, var(--color-accent) 100%);
  background-size: 0% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  transition: background-size 0.2s ease-in-out, color 0.2s ease-in-out;
}

#backlink a:hover {
  background-size: 100% 100%;
  color: white;
}

/* Navigation-Styling */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

nav li {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

nav li:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

nav a {
  display: block;
  padding: 15px 25px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--color-accent);
}

/* Footer-Styling */
footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  color: #666;
}

footer p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Bilder im Footer */
footer img {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    text-align: center;
    padding-top: 50px;
  }
  
  #backlink {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%) rotate(0) scale(1);
  }
  
  #backlink:hover {
    transform: translateX(50%) rotate(0) scale(1.05);
  }
  
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
}

