:root {
--color-bg: #f8f8f8;
--color-primary: #333333; /* Textfarbe */
--color-accent: #008080;  /* Türkis, anpassbar */
--color-white: #ffffff;
--max-width: 1200px;
--transition: 0.3s ease;
--font-main: 'Poppins', sans-serif;
--color-text: #2b2b2b;
}

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

body {
font-family: var(--font-main);
background-color: var(--color-bg);
color: var(--color-primary);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
scroll-behavior: smooth;
}






header {
  background: var(--color-white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  color: #333;
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  
  transition: background-color var(--transition);
}

header.scrolled {
    background-color: #ffffff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  transition: color 0.3s;
}

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

/* Hamburger Menü */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}

/* Responsive Menü */
@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    text-align: center;
    display: none;
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    padding: 20px 0;
  }

  nav ul li {
    padding: 10px 0;
  }

  .hamburger {
    display: flex;
  }

  /* Aktives Menü */
  nav.active {
    display: flex;
  }
}




/* Hero / Start */
.hero {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
max-width: var(--max-width);
margin: 0 auto;
padding: 2rem;
min-height: 80vh;
}

.hero-text {
margin-bottom: 2rem;
margin-top: 40px;
}

.hero-text h1 {
font-size: 2.5rem;
margin-bottom: 0.5rem;
font-weight: 700;
}

.hero-text h2 {
font-size: 1.5rem;
font-weight: 300;
margin-bottom: 1rem;
color: var(--color-accent);
}

.hero-text p {
max-width: 500px;
margin-bottom: 1.5rem;
}

.hero-text a.btn {
display: inline-block;
background-color: var(--color-accent);
color: var(--color-white);
padding: 0.75rem 1.5rem;
border-radius: 4px;
text-decoration: none;
transition: background-color var(--transition);
font-weight: 600;
}

.hero-text a.btn:hover {
background-color: #006666; /* abgedunkelt, anpassbar */
}

.hero-img {
flex: 1 1 400px;
display: flex;
justify-content: center;
align-items: center;
margin-top: 2rem;

}

.hero-img img {
max-width: 80%;
object-fit: cover;
}

/* Responsiv bis ca. 768px */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }
  .hero-img {
    margin-top: 2rem;
    
  }
  }

/* About (Selbstpräsentation) */
.about {
max-width: var(--max-width);
margin: 0 auto;
padding: 4rem 2rem;
}

.about h2 {
font-size: 2rem;
margin-bottom: 1rem;
font-weight: 600;
}

.about p {
max-width: 700px;
margin-bottom: 1.5rem;
}

/* Skills */
.skills {
max-width: var(--max-width);
margin: 0 auto;
padding: 4rem 2rem;
}

.skills h2 {
font-size: 2rem;
margin-bottom: 1rem;
font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }
  
  .skill-item {
    background-color: #fff;
    border-radius: 4px;
    padding: 1rem;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }
  
  .skill-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .skill-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }
  
.skill-item h3 {
font-size: 1rem;
margin-bottom: 0.5rem;
font-weight: 600;
}

/* Projekte */
.projects {
max-width: var(--max-width);
margin: 0 auto;
padding: 4rem 2rem;
}

.projects h2 {
font-size: 2rem;
margin-bottom: 1rem;
font-weight: 600;
}

.projects-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
margin-top: 2rem;
}

.project-card {
background-color: #fff;
border-radius: 4px;
box-shadow: 0 1px 5px rgba(0,0,0,0.1);
overflow: hidden;
display: flex;
flex-direction: column;
}

.project-card img {
width: 100%;
height: 180px;
object-fit: cover;
}

.project-content {
padding: 1rem;
flex: 1;
}

.project-content h3 {
font-size: 1.2rem;
margin-bottom: 0.5rem;
font-weight: 600;
}

.project-content p {
font-size: 0.95rem;
margin-bottom: 1rem;
}

.project-links a {
display: inline-block;
margin-right: 1rem;
margin-bottom: 0.5rem;
color: var(--color-accent);
text-decoration: none;
font-weight: 600;
}


/* Kontakt */
.contact {
max-width: var(--max-width);
margin: 0 auto;
padding: 4rem 2rem;
}

.contact h2 {
font-size: 2rem;
margin-bottom: 1rem;
font-weight: 600;
}

.contact p {
max-width: 700px;
margin-bottom: 2rem;
}

.contact-form {
max-width: 500px;
}

.contact-form input,
.contact-form textarea {
width: 100%;
padding: 0.8rem;
margin-bottom: 1rem;
border: 1px solid #ccc;
border-radius: 4px;
font-family: var(--font-main);
}

.contact-form button {
background-color: var(--color-accent);
color: var(--color-white);
border: none;
padding: 0.8rem 1.5rem;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
transition: background-color var(--transition);
}

.contact-form button:hover {
background-color: #006666;
}

/* Footer */
footer {
text-align: center;
padding: 2rem;
font-size: 0.9rem;
background-color: #fff;
color: #666;
}

footer a {
    text-decoration: none;
    color: #333;
}
/* Impressum */





