/* ===========================
   Grundfarben & Fonts
=========================== */
:root {
  --brand-primary: #d10300;   /* warmes Rot */
  --brand-hover: #a61c28;     /* dunkleres Rot für Hover */
  --brand-dark: #111;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 0; /* verhindert weißen Rand */
}

h1, h2, h3, h4, h5 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
}

/* ===========================
   Navigation
=========================== */
.navbar {
  transition: background-color 0.3s ease;
}
.navbar.scrolled {
  background-color: rgba(0,0,0,0.9);
}
.navbar-brand {
  font-weight: 700;
  letter-spacing: 1px;
}
.nav-link {
  font-weight: 500;
  margin-left: 1rem;
}
.nav-link:hover {
  color: var(--brand-hover);
}

/* ===========================
   Header
=========================== */
header {
  color: #fff;
  padding: 120px 0;
  text-align: center;
}
header h1 { font-size: 2.5rem; }
header h2 { font-size: 1.5rem; margin-bottom: 1rem; }
header .btn { margin-top: 1rem; }

/* ===========================
   Services / Icons
=========================== */
#services .fa-3x {
  margin-bottom: 15px;
  color: var(--brand-primary);
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}
#services .fa-3x:hover {
  color: var(--brand-hover);
  transform: scale(1.2) rotate(-5deg);
  text-shadow: 0 0 10px rgba(209, 3, 0, 0.7),
               0 0 20px rgba(166, 28, 40, 0.5);
}
#services h4 {
  margin-top: 10px;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--brand-primary);
}
#services p { font-size: 0.95rem; color: #555; 
}
/* ===========================
   Portfolio
=========================== */
#portfolio .card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#portfolio .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
#portfolio .card-title { font-weight: 600; }



/* ===========================
   Timeline (Biografie)
=========================== */
.timeline {
  position: relative;
  padding: 2rem 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 4px;
  background: var(--brand-primary);
  left: 50%;
  transform: translateX(-50%);
}
.timeline li {
  position: relative;
  margin-bottom: 50px;
  width: 100%;
  max-width: 700px;
  text-align: center;
}
.timeline li .timeline-panel {
  margin: 0 auto;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.timeline-image {
  width: 120px; height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
}
.timeline-image img { width: 100%; height: auto; }

/* ===========================
   Team
=========================== */
#team .team-member img {
  border: 7px solid #f1f1f1;
  transition: transform 0.3s ease;
}
#team .team-member img:hover { transform: scale(1.05); }
#team .social-buttons a:hover { color: var(--brand-primary); }

/* ===========================
   FAQ (Accordion)
=========================== */
#faq .accordion-button:not(.collapsed) {
  color: #fff;
  background-color: var(--brand-primary);
}
#faq .accordion-item {
  border: none;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 6px;
}
#faq {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
/* ===========================
   Kontakt
=========================== */
#contact { background: var(--brand-dark); color: #fff; }
#contact a { color: #fff; text-decoration: none; }
#contact a:hover { text-decoration: underline; }

/* ===========================
   Footer
=========================== */
footer {
  background-color: #000;   /* tiefschwarz, wie Navbar */
  color: #fff;
  padding: 40px 0;          /* mehr Höhe durch vertikales Padding */
  margin-bottom: 0;
  text-align: center;
margin-top: 0;
}

/* ===========================
   Buttons
=========================== */
button, .btn {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
button:hover, .btn:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
}

/* ===========================
   Allgemeine Icons
=========================== */
i, svg {
  color: var(--brand-primary);
  transition: color 0.3s ease;
}
i:hover, svg:hover { color: var(--brand-hover); }

/* ===========================
   Back-to-top Button
=========================== */
.back-to-top {
  display: none; /* standardmäßig ausgeblendet */
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 28px;
  z-index: 999;
  background: transparent;
  border: none;
  color: #fff; /* weißer Pfeil */
  cursor: pointer;
}
.back-to-top:hover {
  color: var(--brand-primary); /* optional: beim Hover rot */
}
/* ===========================
   Überschreibung Bootstrap text-primary
=========================== */
.text-primary {
  color: #d10300 !important; /* dein warmes Rot */
}
.text-primary:hover {
  color: #a61c28 !important; /* dunkleres Rot beim Hover */
}
/* ===========================
   letztes Element schließt ab
=========================== */

section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

#contact,
#team {
  margin-bottom: 0;
  padding-bottom: 0;
/* Close Modal Overlay */
.close-modal {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 75px;
  height: 75px;
  background-color: transparent;
  cursor: pointer;
  z-index: 1051; /* über dem Modal */
}

.close-modal .lr {
  height: 75px;
  width: 1px;
  margin-left: 35px;
  background-color: #222; /* Farbe der Linie */
  transform: rotate(45deg);
  position: absolute;
  left: 0;
  top: 0;
}

.close-modal .rl {
  height: 75px;
  width: 1px;
  margin-left: 35px;
  background-color: #222; /* Farbe der Linie */
  transform: rotate(-45deg);
  position: absolute;
  left: 0;
  top: 0;
}

