/* === Reset & Grundlagen === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: system-ui, sans-serif;
  scroll-behavior: smooth;
  background-color: #f9f9fb;
  color: #1f1f1f;
  line-height: 1.6;
}

/* === Layout-Zentrierung === */
main {
  max-width: 960px;
  margin: auto;
  padding: 2rem 1rem;
}

/* === Header === */
header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(to right, #004080, #005baa);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: background 0.2s;
}

nav a:hover,
nav a:focus {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

/* === Sektionen === */
section {
  margin-bottom: 3rem;
}

section h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  border-left: 4px solid #005baa;
  padding-left: 0.5rem;
}

/* === Projekte/Skills als Cards === */
article {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

article:hover {
  transform: translateY(-2px);
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  list-style-type: none;
  gap: 0.75rem;
}

.skills-list li {
  background: #fff;
  border: 1px solid #ccc;
  padding: 0.6rem;
  border-radius: 6px;
  text-align: center;
}

/* === Formular === */
form {
  display: grid;
  gap: 0.5rem;
}

input, textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #bbb;
  border-radius: 6px;
  font: inherit;
  background-color: #fff;
}

textarea {
  min-height: 120px;
}

button {
  padding: 0.8rem;
  background-color: #005baa;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

button:hover,
button:focus {
  background-color: #003d73;
  outline: none;
}

/* === Footer === */
footer {
  background: #333;
  text-align: center;
  padding: 2rem 1rem 1rem;
  color: #999;
  font-size: 0.9rem;
}

footer a {
  color: #017eeb;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  text-decoration: underline;
}

/* === Cookie-Banner === */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: #ffffff;
  border: 1px solid #ccc;
  padding: 1rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  z-index: 9999;
  max-width: 500px;
  margin: auto;
  font-size: 0.9rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 10px;
  animation: fadeIn 0.3s ease;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.5rem;
}

.cookie-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font: inherit;
}

#cookie-accept {
  background-color: #005baa;
  color: white;
}

#cookie-decline {
  background-color: #ddd;
  color: #222;
}

#cookie-accept:hover {
  background-color: #003d73;
}

#cookie-decline:hover {
  background-color: #bbb;
}

/* === Animation === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Responsives Design === */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
  }

  .skills-list {
    grid-template-columns: 1fr;
  }
}
