/*
FILE: style.css
Modernes Portfolio-Design — Petrol (#008080) & Orange (#ff7043)
*/

/* === GLOBAL STYLES === */
html {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: black;
  background-color: #f9f9f9;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color:white; 
  background-size: cover; /* Bild füllt den gesamten Hintergrund*/
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  flex: 1;
  padding: 1rem;
}

/* === HEADER & NAVIGATION === */
header {
  background-color: #1e61ad;   /* Petrol für alle Seiten */
  padding: 1rem;
  text-align: center;
  color: #ffffff;
}

header h1 {
  margin: 0.5rem 0 0;
  font-size: 2rem;
  color: #ffffff;
}

header p {
  margin: 0;
  font-size: 1rem;
  color: #e6f2f2;
}

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

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff7043;  /* Orange Hover */
}

/* === HERO SECTION === */
#hero {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #e6f2f2;  /* Helles Petrol */
  border-radius: 8px;
  margin: 1rem auto;
  max-width: 800px;
}

#hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #008080;
}

/* === PROJECT LIST === */
#project-thumbs {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

#project-thumbs li {
  text-align: left;
  margin-bottom: 1.5rem;
}

#project-thumbs figure {
  display: block;
  text-align: left;
  margin: 0;
}

#project-thumbs img {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 0 0.5rem 0;
}

/* === SKILLS SECTION === */
#technical-skills {
  text-align: center;
  margin-top: 2rem;
}

#technical-skills h2 {
  margin-bottom: 1.5rem;
  color: #008080;
}

#technical-skills .skills-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.skill-block {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.skill-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.skill-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.95);
  color: #222;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  padding: 1rem;
  overflow: hidden;
}

.skill-block:hover .skill-overlay {
  opacity: 1;
}

.skill-overlay h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #008080;
}
.skill-overlay .skill-text {
  overflow-y: auto; /* Nur der Text scrollt */
  flex: 1; /* Nimmt den restlichen Platz ein */
  width: 100%;
}

.skill-overlay ul,
.skill-overlay p {
  margin: 0.25rem 0;
  text-align: left;
  padding: 0 0.5rem;
}

/* === ABOUT SECTION === */
/* === ABOUT SECTION === */
.strengths-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Jede Block-Komponente (Icon + Text) */
.strength-block {
  display: flex;
  align-items: flex-start; /* Icon und Text oben ausgerichtet */
  gap: 1rem;
  text-align: left; /* Gesamtblock linksbündig */
}

/* Icon links */
.heading-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Text rechts vom Icon */
.strength-block .text-content {
  display: flex;
  flex-direction: column; /* h3 und ul untereinander */
  align-items: flex-start; /* links ausrichten */
}

/* Überschrift h3 */
.strength-block h3 {
  margin: 0 0 0.5rem 0;
  color: #008080;
}

/* Aufzählungsliste linksbündig */
.strength-block ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0;
  text-align: left;
}

.strength-block ul li {
  margin-bottom: 0.25rem;
  line-height: 1.4;
}
/* H3 der Schwerpunkte in Gelb */
.strength-block.focus .text-content h3 {
  color: #24bd24; /* Gelb */
}
/* Schwächen in Rot */
.strength-block.weakness h3 {
  color: #d32f2f;
}


/* === PROJECT GALLERY === */
.gallery-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 1rem 0;
  overflow: hidden;
}

.gallery-slides {
  width: 100%;
}

.gallery-slide {
  display: none;
  width: 100%;
  height: 500px;          /* Einheitliche Höhe für alle Bilder */
  object-fit: contain;      /* Bild wird vollständig angezeigt */
  background-color: transparent; /* optional – weißer Hintergrund, falls ein Bild nicht voll füllt */
}

.gallery-slide.active {
  display: block;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,128,128,0.8);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.gallery-btn.prev { left: 10px; }
.gallery-btn.next { right: 10px; }

.gallery-btn:hover {
  background-color: #ff7043;
}

#projects-list article {
  scroll-margin-top: 100px;
  display:block;
}

/* === BRANDING (Logo + Name) === */
#branding {
  text-align: center;
  margin-bottom: 1rem;
}

#branding img#logo {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
}

#branding h1 {
  margin: 0;
  font-size: 2rem;
  color: #ffffff;  /* Weißer Name über Petrol-Hintergrund */
}

#branding p {
  margin: 0;
  font-size: 1rem;
  color: #e6f2f2;  /* Untertitel */
}

/* === BUTTONS === */
button, .btn {
  background-color: #008080;
  color: #fff;
  border: none;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

button:hover, .btn:hover {
  background-color: #ff7043;
}

/* === FOOTER === */
footer {
  background-color: #1e61ad;   /* Petrol für alle Seiten */
  color: #ffffff;
  text-align: center;
  padding: 1rem;
}

footer a {
  color: #ff7043;
  text-decoration: none;
}

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