
:root {
  --nav-width: 220px;
  --header-height: 50px;
  --footer-height: 80px;
}

/* Global Box-Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1e1e2f;
  color: #f0f0f0;
  margin: 0;
  display: flex;
}

/* Navigation */
nav {
  position: fixed;
  top: var(--header-height);
  bottom: var(--footer-height);
  width: var(--nav-width);
  background-color: #2e2e40;
  padding-top: 30px;
  overflow-y: auto;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  margin: 20px 0;
}

nav ul li a {
  color: #4cd137;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 20px;
  display: block;
}

nav ul li a:hover {
  background-color: #3e3e5e;
  border-radius: 5px;
}

/* Main & Content */
main {
  position: absolute;
  top: var(--header-height);
  bottom: var(--footer-height);
  left: var(--nav-width);
  right: 0;
  display: flex;
}

.content {
  flex: 3;
  padding: 40px;
  overflow-y: auto;
  height: 100%;
}

.content a:link,
.content a:visited {
  color: rgb(76, 209, 55);
}

.content a:hover,
.content a:active {
  color: rgb(76, 209, 55);
}

/* Sidebar */
.sidebar {
  flex: 1;
  background-color: #2e2e40;
  padding: 20px;
  position: relative;
}

/* Werbelinks (Header) */
.werbelinks-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  width: 100%;
  background-color: #2e2e40;
  overflow: hidden;
  padding: 10px 0;
  z-index: 1000;
}

.werbelinks-scroll {
  display: flex;
  animation: scroll-links 30s linear infinite;
}

.werbelinks-container:hover .werbelinks-scroll {
  animation-play-state: paused;
}

.werbelink-item {
  flex: none;
  padding: 0 30px;
  font-size: 18px;
  color: #4cd137;
  text-decoration: none;
  animation: blink 5s infinite;
  transition: transform 0.3s ease;
  position: relative;
}

.werbelink-item::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 0;
  height: 60%;
  width: 2px;
  background: linear-gradient(to bottom, #4cd137, transparent);
  opacity: 0.8;
  animation: pulse 5s infinite;
}

.werbelink-item:last-child::after {
  display: none;
}

.werbelink-item:hover {
  transform: scale(1.2);
  animation-play-state: paused;
}

@keyframes scroll-links {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes blink {
  0%, 80%, 100% { opacity: 1; }
  90% { opacity: 0.5; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: var(--nav-width);
  width: calc(100% - var(--nav-width));
  height: var(--footer-height);
  text-align: left;
  padding: 20px;
  color: #777;
  background-color: #2e2e40;
  z-index: 1000;
}

/* Kontakt-Button */
.kontakt-button {
  display: inline-block;
  background-color: #4cd137;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.5);
}

.kontakt-button:hover {
  background-color: #44bd32;
  transform: scale(1.05);
}

/* Icon-Links */
.icon-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-links a img {
  display: block;
  max-width: 40px;
  max-height: 40px;
  width: auto;
  height: auto;
}
