/* ================================================
   Globaler Reset und Variablen
   ================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #808080 ;
  --primary-dark: #36454F;
  --secondary: #333;
  --light: #ffffff;
  --background: #f4f4f4;
  --text: #333;
  --max-width: 1200px;
  --font: 'Roboto', sans-serif;
  --transition-speed: 0.3s;
}

/* ================================================
   Basis-Stile
   ================================================ */
body {
  font-family: var(--font);
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

/* ================================================
   Header
   ================================================ */
header {
  position: relative;
  overflow: hidden;             
  color: var(--light);
  text-align: center;
  padding: 40px 20px;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/background.jpeg") center/cover no-repeat;
  filter: blur(3px);            
  transform: scale(1.06);          
  z-index: 0;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

header > * {
  position: relative;
  z-index: 2;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--light);
  margin: 0 auto 20px auto;
}

/* ================================================
   Sektionen (Über mich, Projekte, etc.)
   ================================================ */
.section {
  background: var(--light);
  border-radius: 8px;
  padding: 30px 20px;
  margin: 20px auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 800px; 
}

.section h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  position: relative;
  padding-bottom: 10px;
}

.section h2::after {
  content: '';
  width: 50px;
  height: 3px;
  background: var(--primary);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ================================================
   Buttons
   ================================================ */
.button {
  display: inline-block;
  background: var(--primary);
  color: var(--light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background var(--transition-speed) ease;
  margin-top: 10px;
}

.button:hover {
  background: var(--primary-dark);
}

/* ================================================
   Projektkarten
   ================================================ */
.project {
  background: var(--light);
  border-radius: 8px;
  overflow: hidden;
  margin: 20px auto; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

.project h3 {
  background: var(--primary);
  color: var(--light);
  padding: 15px;
  font-size: 1.5rem;
}

.project img {
  width: 100%;
  display: block;
}

.project-content {
  padding: 15px;
}

.project-content p {
  margin-bottom: 15px;
}

/* ================================================
   Footer
   ================================================ */
footer {
  background: var(--secondary);
  color: var(--light);
  text-align: center;
  padding: 15px 20px;
}

/* ================================================
   Responsive Anpassungen
   ================================================ */
@media (min-width: 768px) {
  header {
    padding: 60px 20px;
  }
  header h1 {
    font-size: 3rem;
  }
  .profile-img {
    width: 150px;
    height: 150px;
  }
  .section {
    padding: 40px 30px;
    font-size: 1rem;
  }
  .section h2 {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  #projects {
    text-align: center;
  }
}
