body {
  background-color: #f8f9fa;
}
h1, h2 {
  color: #333;
}


/* --- PROJECT OVERVIEW PAGE --- */

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card {
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border-radius: 1rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out, box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card.show {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

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

.project-card .card-body {
  background-color: #fff;
  padding: 1.25rem;
}

.project-card h5 {
  color: #222;
}

.project-card p {
  color: #555;
}

body {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* --- alerts and toasts --- */

/* Abstand der Toasts zur Navbar */
.toast-area {
  z-index: 1200;
  margin-top: 70px; /* Verhindert Überlagerung mit Navbar */
}

/* Etwas weichere Schatten für Toasts */
.toast {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  border-radius: 0.5rem;
}

/* Kontaktformular-Alert etwas schmaler und mittiger */
.alert-form {
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Toast Styling Upgrade ---- */

.toast {
  border-radius: 0.75rem !important;
  backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: none !important;
  overflow: hidden;
}

/* Erfolgreiche Aktionen */
.toast.text-bg-success {
  background: linear-gradient(135deg, #28a745, #218838);
}

/* Fehler */
.toast.text-bg-danger {
  background: linear-gradient(135deg, #dc3545, #b02a37);
}

/* Info */
.toast.text-bg-info {
  background: linear-gradient(135deg, #17a2b8, #138496);
}

/* Warnungen */
.toast.text-bg-warning {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #212529; /* Dunkler Text für Lesbarkeit */
}

/* Close Button für helle & dunkle Varianten */
.toast .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
}
.toast .btn-close:hover {
  opacity: 1;
}

/* Animation beim Erscheinen */
.toast.show {
  animation: toast-slide-in 0.3s ease;
}

@keyframes toast-slide-in {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Hero Section */
.hero {
    height: 100vh; /* volle Höhe des Viewports */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #f8f9fa; /* light bg */
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.hero .btn {
    margin: 0 0.5rem;
}

.cursor {
  display: inline-block;
  width: 2px;
  background-color: #000;
  margin-left: 2px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* Skill Cards */
.skill-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.skill-icon {
    color: #0d6efd; /* Bootstrap Primary */
}

#skills h2 {
    color: #212529;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Abstand zwischen Sections */
.section-gap {
    margin-top: 100px; /* Abstand nach oben */
    margin-bottom: 100px; /* Abstand nach unten, falls nötig */
}

/* Optional: Hero Section Fullscreen */
.hero {
    min-height: 100vh; /* nimmt mindestens die volle Bildschirmhöhe */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-color: #f8f9fa; /* wie bg-light */
}

/* Skill Cards */
.skill-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

/* Skill Icons */
.skill-icon {
    color: #0d6efd; /* bootstrap primary color */
}

/* Card */
.card {
  transition: all 0.25s ease;
}

/* Cleaner Hover */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* KEIN Zoom mehr */
.card-img-top {
  transition: none;
}/* Card */
.card {
  transition: all 0.25s ease;
}

/* Cleaner Hover */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* KEIN Zoom mehr */
.card-img-top {
  transition: none;
}

/* Abstand unter Text */
.card-text {
  margin-bottom: 1.5rem;
}

/* Badge Styling */
.badge {
  background: #f1f3f5;
  border-radius: 0.4rem;
  padding: 0.4em 0.6em;
  font-weight: 500;
  margin: 2px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: #f1f3f5;
  color: #212529;

  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;

  margin: 2px;
}

.tech-badge i {
  font-size: 0.9rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin: 4px;
  border-radius: 999px;
  background: #f1f3f5;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.2s;
}

.tech-badge i {
  font-size: 1rem;
}

.tech-badge:hover {
  transform: translateY(-2px);
  background: #e9ecef;
}

a.tech-badge {
  cursor: pointer;
  color: inherit;
}
a.tech-badge:hover {
  background: #e9ecef;
  text-decoration: none;
}

/* ─── About Page ───────────────────────────────────────────────────────────── */
 
.about-avatar {
  width: 80px;
  height: 80px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
 
/* Timeline */
.about-timeline {
  border-left: 2px solid #e5e7eb;
  padding-left: 2rem;
  margin-left: 0.25rem;
}
 
.about-timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
 
.about-timeline-item:last-child {
  margin-bottom: 0;
}
 
.about-timeline-dot {
  position: absolute;
  left: calc(-2rem - 5px);   /* half of 10px dot, aligned to the border-left */
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d1d5db;
}
 
.about-timeline-item.current .about-timeline-dot {
  background: #10b981;
  border-color: #10b981;
}

.status-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}