:root{
  --bg: #f6f2ff;
  --text: #17121f;
  --muted: #5a4d6b;
  --white: #ffffff;
  --primary: #8a2be2;
  --primary-2: #b76bff;
  --card: rgba(255,255,255,.85);
  --shadow: 0 12px 30px rgba(17, 8, 30, 0.14);
  --radius: 22px;
  --max: 1100px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 30% 10%, #efe6ff 0%, #f7f3ff 45%, #fbfaff 100%);
  color: var(--text);
}

.bm-no-scroll{ overflow: hidden; }

.bm-container{
  width: 100%;
}

/* Burger */
.bm-burger-menu{
  position: fixed;
  right: 20px;
  top: 18px;
  z-index: 50;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 22px rgba(138,43,226,.25);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.bm-burger-line{
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px 0;
  background: #fff;
  border-radius: 99px;
  opacity: .95;
}

/* Overlay Nav */
.bm-nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 32, 0.55);
  z-index: 60;
  display: none;
}
.bm-nav-overlay.is-open{
  display: block;
}
.bm-navigation{
  position: absolute;
  right: 18px;
  top: 18px;
  width: min(340px, calc(100% - 36px));
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px 16px 10px;
}
.bm-nav-close{
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: #3a2b4c;
  float: right;
}
.bm-nav-menu{
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.bm-nav-link{
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  color: #2a1c3a;
  text-decoration: none;
  font-weight: 650;
}
.bm-nav-link:hover{
  background: rgba(138,43,226,0.10);
}
.bm-nav-link.is-active{
  background: rgba(138,43,226,0.16);
  color: #2a0b47;
}

/* Sections */
.bm-section{
  width: min(var(--max), calc(100% - 36px));
  margin: 18px auto;
}

.bm-header{
  width: min(var(--max), calc(100% - 36px));
  margin-top: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(138,43,226,1) 0%, rgba(192,141,255,1) 55%, rgba(248,245,255,1) 100%);
  box-shadow: var(--shadow);
  padding: 26px;
  overflow: hidden;
}
.bm-profile-content{
  display: flex;
  gap: 18px;
  align-items: center;
}
.bm-avatar{
  width: 130px;
  height: 130px;
  border-radius: 999px;
  object-fit: cover;
  border: 6px solid rgba(255,255,255,0.85);
  box-shadow: 0 10px 20px rgba(0,0,0,.16);
}
.bm-profile-text h1{
  margin: 0;
  font-size: clamp(26px, 3.2vw, 44px);
  color: #ffffff;
  text-shadow: 0 10px 20px rgba(0,0,0,0.20);
  letter-spacing: .2px;
}

/* Headings */
.bm-section h2{
  text-align: center;
  font-size: clamp(26px, 2.7vw, 44px);
  color: var(--primary);
  margin: 28px 0 18px;
  letter-spacing: .2px;
  position: relative;
}
.bm-section h2::after{
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  margin: 10px auto 0;
  opacity: .9;
}

/* Cards */
.bm-anschreiben-content,
.bm-timeline,
.bm-education-container,
.bm-skills-container,
.bm-contact-content{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.bm-anschreiben-content p{
  color: #231a2d;
  line-height: 1.6;
  margin: 10px 0;
}

/* Timeline */
.bm-timeline{
  position: relative;
  display: grid;
  gap: 18px;
}
.bm-timeline::before{
  content:"";
  position: absolute;
  left: 16px;
  top: 22px;
  bottom: 22px;
  width: 4px;
  border-radius: 99px;
  background: rgba(138,43,226,0.28);
}
.bm-timeline-item{
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  position: relative;
}
.bm-timeline-marker{
  width: 14px;
  height: 14px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  margin: 8px 0 0 10px;
  box-shadow: 0 8px 14px rgba(138,43,226,0.22);
}
.bm-timeline-content h3{
  margin: 0 0 6px;
  font-size: 18px;
}
.company, .period{
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.responsibilities{
  margin: 10px 0 0;
  padding-left: 18px;
  color: #241a2e;
}
.responsibilities li{
  margin: 6px 0;
}

/* Education */
.bm-education-container{
  display: grid;
  gap: 16px;
}
.bm-education-item{
  background: rgba(255,255,255,0.75);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(138,43,226,0.10);
}
.bm-education-item h3{
  margin: 0 0 6px;
}
.institution, .grade{
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}
.details p{
  margin: 6px 0 0;
  color: #2a1c3a;
}

/* Skills */
.bm-skills-container{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bm-skill-card{
  background: rgba(255,255,255,0.75);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(138,43,226,0.10);
  height: 100%;
}
.bm-skill-card h3{
  margin: 0 0 10px;
}
.bm-skill-list{
  margin: 0;
  padding-left: 18px;
  color: #241a2e;
}
.bm-skill-list li{ margin: 6px 0; }

/* Contact */
.bm-contact-content{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.bm-contact-info h3,
.bm-contact-form-container h3{
  margin-top: 0;
}

.bm-contact-item{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(138,43,226,0.08);
  margin: 10px 0;
}
.bm-contact-icon{ font-size: 18px; }
.bm-contact-text a{
  color: #2a0b47;
  text-decoration: none;
  font-weight: 650;
}
.bm-contact-text a:hover{ text-decoration: underline; }

.bm-contact-form{
  display: grid;
  gap: 12px;
}
.bm-form-group label{
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #2a1c3a;
  margin: 0 0 6px;
}
.bm-form-group input,
.bm-form-group textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(64, 30, 98, 0.14);
  padding: 12px 12px;
  font-size: 15px;
  outline: none;
  background: rgba(255,255,255,0.85);
}
.bm-form-group input:focus,
.bm-form-group textarea:focus{
  border-color: rgba(138,43,226,0.55);
  box-shadow: 0 0 0 4px rgba(138,43,226,0.14);
}
.bm-submit-btn{
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 26px rgba(138,43,226,0.22);
}
.bm-submit-btn:hover{
  transform: translateY(-1px);
}
.bm-submit-btn:active{
  transform: translateY(0px);
}

/* Alerts */
.bm-alert{
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto 14px;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-weight: 650;
}
.bm-alert-success{
  background: rgba(231, 255, 240, 0.90);
  border: 1px solid rgba(40, 190, 100, 0.25);
}
.bm-alert-error{
  background: rgba(255, 235, 235, 0.92);
  border: 1px solid rgba(230, 60, 60, 0.25);
}

/* Responsive */
@media (max-width: 980px){
  .bm-skills-container{
    grid-template-columns: 1fr;
  }
  .bm-contact-content{
    grid-template-columns: 1fr;
  }
  .bm-profile-content{
    flex-direction: column;
    align-items: flex-start;
  }
  .bm-avatar{
    width: 110px;
    height: 110px;
  }
}

/* ------------------------------------------------------------
   Profilbild-Popup (Modal)
   - Desktop: 400x400
   - Mobile: passt sich an (max 92vw)
------------------------------------------------------------ */

.bm-avatar-btn{
  display: inline-flex;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
}
.bm-avatar-btn:focus{
  outline: none;
}
.bm-avatar-btn:focus-visible{
  box-shadow: 0 0 0 4px rgba(255,255,255,0.55), 0 0 0 7px rgba(42, 11, 71, 0.25);
}

.bm-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.62);
  z-index: 9999;
}
.bm-modal.is-open{
  display: flex;
}

.bm-modal-dialog{
  position: relative;
  width: 400px;
  height: 400px;
  max-width: min(400px, 92vw);
  max-height: min(400px, 92vw);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

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

.bm-modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}
.bm-modal-close:hover{
  transform: translateY(-1px);
}
.bm-modal-close:active{
  transform: translateY(0px);
}
.bm-modal-close:focus{
  outline: none;
}
.bm-modal-close:focus-visible{
  box-shadow: 0 0 0 4px rgba(138,43,226,0.20), 0 10px 22px rgba(0,0,0,0.22);
}


/* ============================================================
   Footer (clean + passt optisch zur Seite)
============================================================ */
.bm-footer{
  margin-top: 48px;
  padding: 22px 16px;
  background: rgba(255,255,255,0.85);
  border-top: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}

.bm-footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.bm-footer-center{
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.4;
}

/* Rechts: Links */
.bm-footer-right{
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Links allgemein */
.bm-footer-link,
.bm-footer-brand{
  text-decoration: none;
  font-weight: 800;
  color: inherit;
  opacity: 0.92;
  transition: opacity 160ms ease, transform 160ms ease;
}

.bm-footer-link:hover,
.bm-footer-brand:hover{
  opacity: 1;
  text-decoration: underline;
}

.bm-footer-link:active,
.bm-footer-brand:active{
  transform: translateY(1px);
}

.bm-footer-link:focus,
.bm-footer-brand:focus{
  outline: none;
}

.bm-footer-link:focus-visible,
.bm-footer-brand:focus-visible{
  box-shadow: 0 0 0 4px rgba(138,43,226,0.18);
  border-radius: 10px;
}

.bm-footer-sep{
  opacity: 0.55;
}

/* Mobile: sauber stapeln */
@media (max-width: 560px){
  .bm-footer-inner{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }

  .bm-footer-right{
    justify-self: center;
  }

  .bm-footer-left{
    display: none;
  }
}
