/* ===============================
   Allgemein (Fonts & Reset)
   =============================== */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #f4f7fb;
  color: #333;
  line-height: 1.6;
}

/* ===============================
   Navigation
   =============================== */
nav {
  background: #1e88e5;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo {
  font-weight: 600;
  font-size: 1.2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: #ffd54f;
}

/* ===============================
   Hero-Bereich
   =============================== */
.hero {
  text-align: center;
  padding: 5rem 15rem;
  background: linear-gradient(to right, #3949ab, #1e88e5);
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: #ffd54f;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 3.0rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #ffd54f;
  color: #333;
  padding: 1.0rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #ffca28;
  transform: scale(1.05);
}

.btn-intro {
  display: flex;
  justify-content: center; 
}

/* ===============================
   Intro
   =============================== */
.intro {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.intro h2 {
  color: #3949ab;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1); 
}

/* ===============================
   Projekte
   =============================== */

   
.projects-section {
  display: flex;          
  justify-content: center; 
}

.project-list {
  width: 100%;
  max-width: 1200px;
}

.project-list h2 {
  text-align: center;
  color: #3949ab;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}
/* Hier arbeiten */
.card-container {
  display: flex;
  flex-wrap: wrap;           
  justify-content: center;   
  gap: 1.8rem;
  
}

.project-pic {
  width: 100%;
  height: 200px;      
  overflow: hidden;   
}

.project-pic img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  border-radius: 8px;
}

.project-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 1 1 250px;          
  max-width: 300px;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.project-card h3 {
  color: #1e88e5;
  margin-top: 0;
}

.project-card p {
  color: #333;
  font-size: 1rem;
  line-height: 1.4;
}

.project-detail {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 2rem 0;
  text-align: center;
}

/* ===============================
   Kunst
   =============================== */

   .art-pic {
    width: 100%;
    height: 300px;      
    overflow: hidden;  
   }

   .art-pic img {
      width: 100%;
     height: 100%;
    object-fit: contain;
      border-radius: 8px;
   }

/* ===============================
   Kontakt
   =============================== */
.kontakt {
  text-align: center;
  padding: 1rem 2rem;
  background: #e3f2fd;
}

.kontakt h2 {
  margin-bottom: 1rem;
  color: #3949ab;
}

.kontakt a {
  color: #1e88e5;
  font-weight: bold;
  text-decoration: none;
}

.kontakt a:hover {
  text-decoration: underline;
}

/* ===============================
   Footer
   =============================== */
footer {
  background: #1e88e5;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ===============================
   Über mich
   =============================== */
.about {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about div {
  flex: 1;
}

.profilbild {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #1e88e5;
}

/* ===============================
   Hobbys
   =============================== */
.hobbys {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
}

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.hobby-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hobby-grid p {
  font-weight: 500;
  color: #333;
}

/* ===============================
   Skills
   =============================== */
.skills-section {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
  text-align: center;
}

.skills-section h2 {
  color: #3949ab;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.skill-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.skill-card h3 {
  color: #1e88e5;
  margin-top: 0;
}

.skills-section p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}


/* Skill Bars */
.skill-bar {
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  height: 10px;
  margin-top: 10px;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3949ab, #5c6bc0);
  width: 0; 
  transition: width 1s ease-in-out;
  border-radius: 8px;
}


.skills-grid {
  display: grid;     
  justify-content: center; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.skills-grid .skill-card:nth-child(4) {
  grid-column: 1 / 2; /
}

.skills-grid .skill-card:nth-child(5) {
  grid-column: 3 / 4; /
}
