@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Open+Sans:wght@300;400&display=swap');

:root {
  --primary: #FF6B6B;          /* Hauptfarbe */
  --bs-primary: #FF6B6B; /* dein Rot */
  --secondary: #2ECC71;        /* Sekundärfarbe */
  --bg-light: #F9F9F9;
  --text-dark: #333333;
  --gray: #AAAAAA;

  /* Bootstrap Linkfarben überschreiben */
  --bs-link-color: #000;
  --bs-link-hover-color: #555;

  /* Eigene Icon-Farben */
  --icon-color: #FF6B6B;        /* Standardfarbe für Icons (rot) */
  --icon-hover-color: #2ECC71;  /* Hoverfarbe für Icons (grün) */
}


/* Font Awesome 6 Icons global */
.fa-solid,
.fa-regular,
.fa-brands {
  color: var(--icon-color);
}

.fa-solid:hover,
.fa-regular:hover,
.fa-brands:hover {
  color: var(--icon-hover-color);
}


/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.hero h1 {
  color: #fff;   /* Weiß */
}
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #222;
}

/* Hero */
.hero {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url('../img/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background: var(--primary);
  padding: 14px 32px;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #e84118;
}

/* Normale Sections (außer Hero) */
section:not(.hero) {
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* Über mich / Services */
#services {
  background: var(--bg-light);
  padding: 80px 20px;
}

#services h2 {
  font-size: 2.2rem;
  color: #222;
}

#services p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

#services .text-center p {
  text-align: center;       /* zentriert den Text */
  margin-top: 20px;         /* Abstand nach oben */
  margin-bottom: 40px;      /* Abstand nach unten, bevor die Karten beginnen */
  font-size: 1.1rem;        /* optional: etwas größer für bessere Wirkung */
  color: #555;              /* dezente Farbe */
}


#services .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

#services .col-md-6.col-lg-3 {
  flex: 1 1 250px;
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .col-md-6.col-lg-3:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

#services i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

#services h4 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: var(--primary);
}

#services ul {
  list-style-type: none;   /* entfernt die Bullets */
  padding-left: 0;         /* entfernt die Einrückung */
  margin-top: 10px;        /* optional: Abstand nach oben */
}

#services ul li {
  margin-bottom: 4px;      /* engerer Abstand zwischen den Punkten */
  font-size: 0.9rem;
  line-height: 1.4;
}




/* Portfolio */
#portfolio {
  background: var(--bg-light);
  padding: 80px 20px;
}

#portfolio .text-center p {
  text-align: center;       /* zentriert den Text */
  margin-top: 20px;         /* Abstand nach oben */
  margin-bottom: 40px;      /* Abstand nach unten */
  font-size: 1.1rem;        /* optional: etwas größer */
  color: #555;              /* dezente Farbe */
}

#portfolio h2 {
  font-size: 2.2rem;
  color: #222;
}

#portfolio p {
  color: #666;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

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

.portfolio-content {
  padding: 20px;
}

.portfolio-content h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.portfolio-content p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

/* Carousel Captions schöner gestalten */
.carousel-caption {
  background: rgba(0, 0, 0, 0.5); /* halbtransparenter Hintergrund */
  border-radius: 8px;
  padding: 15px;
  animation: fadeInUp 0.8s ease; /* sanfte Animation */
}

.carousel-caption h5 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}

.carousel-caption p {
  font-size: 1rem;
  color: #ddd;
  margin: 0;
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Optimierung */
@media (max-width: 768px) {
  .carousel-caption {
    font-size: 0.9rem;
    padding: 10px;
  }
  .carousel-caption h5 {
    font-size: 1.1rem;
  }
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* Timeline */
.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Zentrale Linie */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  left: 50%;
  margin-left: -2px;
}

/* Jedes Element */
.timeline li {
  position: relative;
  margin: 40px 0;
}

/* Kreis mit Bild */
.timeline .timeline-image {
  position: absolute;
  left: 50%;
  width: 120px;   /* Größe des Kreises */
  height: 120px;
  margin-left: -60px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--primary);
  background: #fff;
  z-index: 2;
}

.timeline .timeline-image img {
  width: 100%;          /* Bild füllt den Kreis */
  height: 100%;
  object-fit: cover;    /* Bild wird zugeschnitten, ohne verzerrt zu wirken */
  display: block;       /* verhindert unsichtbare Bilder durch inline spacing */
}


.timeline .timeline-image:hover {
  transform: scale(1.05);
}

/* Panel */
.timeline .timeline-panel {
  width: 45%;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  position: relative;
}

.timeline .timeline-panel h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.timeline .timeline-panel h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline .timeline-panel p {
  color: #666;
  font-size: 0.95rem;
}

/* Positionierung links/rechts */
.timeline li:not(.timeline-inverted) .timeline-panel {
  float: left;
  text-align: right;
}

.timeline li.timeline-inverted .timeline-panel {
  float: right;
  text-align: left;
}

/* Abschluss */
.timeline .timeline-image.end {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  font-size: 1rem;
  text-align: center;
  padding: 20px;
}

/* Verbindungsstrich zwischen den Kreisen */
.timeline li::after {
  content: '';
  position: absolute;
  top: 100px; /* abhängig von Bildgröße */
  left: 50%;
  width: 4px;
  height: 40px;
  background: var(--primary);
  margin-left: -2px;
  z-index: 1;
}

/* Letztes Element ohne Strich */
.timeline li:last-child::after {
  display: none;
}

#about .text-center p {
  text-align: center;       /* zentriert den Text */
  margin-top: 20px;         /* Abstand nach oben */
  margin-bottom: 40px;      /* Abstand nach unten zur Timeline */
  font-size: 1.1rem;        /* optional: etwas größer */
  color: #555;              /* dezente Farbe */
}

#about .fa-solid,
#about .fa-regular,
#about .fa-brands {
  color: var(--primary); /* nutzt deine Hauptfarbe */
}


/* Testimonials */
.testimonials {
  background: var(--bg-light);
  padding: 80px 20px;
}

.testimonial {
  background: #fff;
  border-left: 5px solid var(--primary);
  padding: 25px;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial span {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: var(--secondary);
}

/* Kontakt */
.contact form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: auto;
}

.contact input,
.contact textarea {
  margin-bottom: 15px;
  padding: 14px;
  border: 1px solid var(--gray);
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.contact button {
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact button:hover {
  background: #e84118;
}

form {
  max-width: 600px;     /* optional: maximale Breite des Formulars */
  margin: 0 auto;       /* zentriert das Formular */
}

form input,
form textarea,
form button {
  width: 100%;          /* volle Breite */
  padding: 10px;
  margin: 8px 0;
  box-sizing: border-box;
}

form textarea {
  min-height: 120px;    /* etwas größer für Nachricht */
}

form button {
  background: #333;
  color: #fff;
  border: none;
  cursor: pointer;
}

label {
  display: inline-block;   /* verhindert Blocksprung */
  text-align: center;      /* wenn du mittig haben willst */
  width: 100%;             /* oder nur so breit wie das Feld */
}

.error {
  display: block;          /* Meldung unter dem Feld */
  margin-top: 4px;
  color: red;
  font-size: 0.9em;
  text-align: center;      /* Meldung mittig */
}


.social {
  text-align: center;
  margin-top: 20px;
}

.social a {
  margin: 0 10px;
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social a:hover {
  color: var(--primary);
}


/* Kontaktinfos untereinander und mittig */
.contact-info .fa-solid {
  color: #FF6B6B; /* rot */
}

#contact .contact-info {
  display: flex;
  flex-direction: column;   /* untereinander */
  align-items: center;      /* mittig */
  gap: 10px;                /* gleichmäßiger Abstand */
  text-align: center;
}

#contact .contact-info p {
  margin: 0;                /* Abstand kommt über gap */
  width: 100%;
}

#contact .contact-info a {
  display: inline-block;    /* Link bleibt inline, zentriert sich über text-align */
  margin-top: 4px;
color: #666; /* grau wie andere Schrift */
  text-decoration: none;
}

#contact .contact-info a:hover {
  color: var(--primary); /* z. B. rot beim Hover */
}

#contact .contact-info i {
  margin-right: 8px;
}

#contact .text-muted {
  text-align: center;   /* zentriert den Absatz */
  display: block;       /* stellt sicher, dass er als Block wirkt */
  margin: 20px 0;       /* etwas Abstand nach oben/unten */
  color: #666;          /* optional: bessere Lesbarkeit im dunklen Bereich */
  font-size: 1.1rem;    /* optional: etwas größer */
}

#contact .social-links a {
  display: block;        /* jeder Link untereinander */
  margin: 10px auto;     /* mittig mit Abstand */
  transition: color 0.3s ease;
}


#contact .social-links a:hover {
  color: var(--primary);     /* deine Hauptfarbe beim Hover */
}

/* Footer */
footer {
  display: block;          /* explizit, falls ältere Browser */
  width: 100%;
  max-width: none;         /* überschreibt die Section-Beschränkung */
  margin: 0;               /* entfernt auto-Zentrierung */
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  margin-top: 60px;
  clear: both;
  border-top: 1px solid #444;
}

footer h2 {
  font-size: 1.4rem;       /* etwas größer für die Überschrift */
  font-weight: 600;
}

footer h3, 
footer p {
  text-align: center;      /* erzwingt Zentrierung auch für Überschriften */
  margin: 10px 0;
  color: #fff;             /* bessere Lesbarkeit */
}

footer a,
footer a:link,
footer a:visited {
  color: #fff !important;     /* Weiß */
  text-decoration: none !important;
}

footer a:hover {
  color: var(--primary) !important;   /* dein Rot */
  text-decoration: underline !important;
}


/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  section:not(.hero) { padding: 60px 15px; }
}

/* --- Cookie Banner Styling --- */

#cookie-banner, #cookie-settings {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 9999;
  font-family: system-ui, sans-serif;
  display: none;
}

#cookie-banner h3,
#cookie-settings h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

#cookie-banner p,
#cookie-settings p {
  font-size: 0.9rem;
  color: #555;
}

/* Buttons */
.cookie-btn {
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-right: 8px;
  margin-top: 10px;
}

.cookie-accept {
  background: #2ecc71;
  color: white;
}

.cookie-reject {
  background: #e74c3c;
  color: white;
}

.cookie-settings-btn {
  background: #3498db;
  color: white;
}

/* Toggle Checkbox */
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Overlay für Einstellungen */
#cookie-settings {
  bottom: 50%;
  right: 50%;
  transform: translate(50%, 50%);
  width: 90%;
  max-width: 420px;
}

