/* Grundfarben */
:root {
  --primary: #545454;    /* Blau für Buttons/Links */
  --secondary: #0097B2;  /* Hellgrau für Hintergründe */
  --dark: #3d3d3d;          /* Header/Footer */
  --light: #fff;         /* Text auf dunklem Hintergrund */
  --accent: #ff9f1c;     /* Akzentfarbe (z. B. Hover, Call-to-Action) */
}

/* Basis */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  background: var(--dark);
  color: #333;
}

/* Header & Navigation */
header {
  background: var(--light);
  color: var(--dark);
  text-align: center;
  padding: 1rem;
  position: fixed;  
  top: 0;            
    width: 100%;
  z-index: 1000;      
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Der Block in der Mitte */
.header-block {
  display: grid;
  grid-template-columns: auto 1fr; /* 2 Spalten: Logo + rechts */
  gap: 1rem;
  align-items: center;
  justify-content: left; /* zentriert den ganzen Block */
  max-width: 900px; /* Breite begrenzen */
  margin: 0 auto;   /* in der Mitte des Bildschirms */
}

/* Rechte Spalte */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* linksbündig innerhalb der Spalte */
}

/* Logo links */
.logo {
  height: 60px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

header h1 {
  margin: 0;
}

header h1 a {
  color: var(--light);
  text-decoration: none;
}


/* Menü */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
nav a {
  color: var(--dark);
  margin: 0 1rem;
  text-decoration: none;
}
nav a:hover {
  color: var(--accent);
}

/* Abschnitte */
section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
  background: var(--light);
  margin-bottom: 1rem;
  border-radius: 8px;
  scroll-margin-top: 80px; /* Höhe deines Headers */
}
h1 {
  margin-bottom: 1rem;
  color: var(--light);
}

h2{
  margin-bottom: 1rem;
  color: var(---dark);
}

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.value {
  background: var(--secondary);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #ddd;
}

/* Products */
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.product {
  flex: 1 1 45%;
  background: var(--secondary);
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* Contact */
form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
  margin: auto;
}
input, textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
button {
  padding: 0.7rem;
  background: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background: var(--accent);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 1rem;
}

/* Normale Links */
a {
  color: var(--primary);       /* Standardfarbe */
  text-decoration: none;
}

footer a {
  color: var(--light);       /* Standardfarbe */
  text-decoration: none;
}

/* Bereits besuchte Links */
header a:visited {
  color: var(--primary);               /* Beispiel: Lila */
}

footer a:visited {
  color: var(--light);               /* Beispiel: Lila */
}

/* Hover-Effekt */
a:hover {
  color: var(--accent);        /* Orange beim Darüberfahren */
  text-decoration: underline;
}

/* Aktiv (beim Klick) */
a:active {
  color: red;                  /* Rot im Klick-Moment */
}

.spacer {
  margin-top: 40px;
}
