/* ===============================
   Portfolio-Website – Haupt-CSS
   Enthält Styles für Navigation,
   Header, Social Cards, Zertifikate,
   Kontakt und Footer.
   Stand: 2025-06-21, gepflegt von Nash
   =============================== */

/* ========== Farb-Variablen ========== */
:root {
  --accent-color: #b8d1e1;
  --accent-line: #d0eafc;
}

/* ========== Basis-Reset & Grundlayout ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Orbitron', Arial, sans-serif;
  background-color: #1A1A1A;
  color: #fff;
  line-height: 1.6;
}

/* Schriftart überschreiben */
.normal-text {
  font-family: Arial, sans-serif;
}

/* ========== Navigation ========== */
nav {
  background-color: transparent;
  border-bottom: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo a {
  font-size: 1.8em;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s;
}
.nav-links li a:hover {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #fff;
}

/* ========== Header ========== */
header {
  position: relative;
  background: url('../images/Background-portfolio.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-shadow: 0 15px 15px -8px rgba(0,0,0,0.5);
}
header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 1;
}
.header-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}
header h1 {
  font-size: 3em;
  margin-bottom: 10px;
  color: #fff;
  word-break: break-word;
  /* white-space: normal;   Standard */
}
header p {
  font-size: 1.2em;
  color: #fff;
}
.header-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  border: 2px solid #fff;
  background-color: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
}
.header-button:hover {
  background-color: transparent;
  border: 2px solid #000;
  color: var(--accent-color);
}

/* ========== Main Content Layout ========== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

section {
  margin-bottom: 80px;
  width: 100%;
  padding: 0 10px;
}

section h2 {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
  color: #fff;
}

/* ========== Über Mich ========== */
.about-container {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
  background-color: #242424;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(255,255,255,0.05);
  padding: 30px;
}
.about-image-container {
  flex: 1;
  border-radius: 8px;
  background: url('../images/cyberLogo.jpg') center/cover no-repeat;
  overflow: hidden;
  min-height: 250px;
}
.about-text {
  flex: 2;
  text-align: left;
  padding: 10px;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1em;
}

/* ========== Social Media Cards ========== */
section#social h2 {
  margin-bottom: 50px;
}
.social-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}
.social-text {
  flex: 1;
  min-width: 250px;
}
.social-boxes {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(3, 160px);
  grid-template-rows: repeat(2, 160px);
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.social-boxes a.social-card {
  width: 160px;
  height: 160px;
  background-color: #242424;
  border-radius: 0;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 4px rgba(255,255,255,0.1);
}
.social-boxes a.social-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(93, 173, 226, 0.3);
}
.social-boxes a.social-card i {
  font-size: 2em;
  margin-bottom: 8px;
}
.social-boxes a.social-card h3 {
  font-size: 1em;
  margin: 0;
}

/* ========== Zertifikate ========== */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}
.flex-item {
  background-color: #242424;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(255,255,255,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 1 1 calc(33.33% - 20px);
  max-width: 400px;
  text-align: center;
}
.flex-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(93, 173, 226, 0.3);
}
.flex-item h3 { margin-bottom: 10px; }
.flex-item p { margin-bottom: 10px; }
.flex-container .flex-item a {
  text-decoration: none;
  color: #fff;
}
.flex-container .flex-item a:hover {
  color: var(--accent-color);
}
#certificates p.description {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 20px;
  color: #ccc;
}

/* ========== Kontakt-Bereich ========== */
#contact {
  margin-bottom: 80px;
  width: 100%;
  padding: 0 10px;
  text-align: center;
}
#contact h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #fff;
}
#contact p {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
}
.contact-button {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #fff;
  background-color: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s, border 0.3s, color 0.3s;
}
.contact-button:hover {
  background-color: var(--accent-color);
  border: 1px solid #000;
  color: #000;
}
#contact a.email-link:hover {
  color: #000;
}

/* ========== Footer ========== */
footer {
  width: 100%;
  background-color: #1A1A1A;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left {
  font-size: 0.9em;
  color: #fff;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
}
.footer-links li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s;
}
.footer-links li a:hover {
  color: var(--accent-color);
}

/* ========== Media Queries ========== */
/* Tablet */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    background-color: #1A1A1A;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(255,255,255,0.1);
  }
  .nav-links.active { display: flex; }
  .nav-links li { margin: 5px 0; }
  header h1 { font-size: 2.2em; }
  header p { font-size: 1.1em; }
  .about-container { flex-direction: column; align-items: center; padding: 20px; }
  .about-image-container { width: 100%; min-height: 200px; }
  .about-text { width: 100%; margin-top: 20px; }
  .about-text p { font-size: 0.95rem; }
  .social-wrapper { flex-direction: column; align-items: center; }
  .social-boxes { grid-template-columns: repeat(2, 160px); grid-auto-rows: 160px; }
  .flex-item { flex: 1 1 calc(50% - 20px); }
}

/* Smartphone */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.2em;
    white-space: normal !important;  /* WICHTIG: Zeilenumbruch wieder erlauben */
    word-break: break-word;
  }
  header p { font-size: 1em; }
  .about-text p { font-size: 0.9rem; }
  .flex-item { flex: 1 1 100%; }
  .social-boxes { grid-template-columns: repeat(2, 160px); grid-auto-rows: 160px; }
  .footer-container { flex-direction: column; gap: 10px; }
  .footer-left, .footer-links { text-align: center; }
}

/* Sehr kleine Geräte */
@media (max-width: 320px) {
  header h1 { font-size: 1em; white-space: normal; }
}

/* ===== Ergänzungen für einzelne Elemente ===== */
.certificate-img {
  width: 100%;
  border-radius: 4px;
}
.centered-note {
  text-align: center;
  margin-top: 20px;
}

/* =================== ENDE ================== */
