/* 
 Template by 
  https://webportfolios.dev | MIT License
*/

:root[data-theme="light"] {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #5c98ff;
  --skill-bg-color: #dddddd;
  --svg-color: #767676;
  --success-bg: #e9f7ef;
  --success-text: #1f7a4d;
  --success-dot: #1f7a4d;
}

:root[data-theme="dark"] {
  --bg-color: #0f0f0f;
  --text-color: #f5f5f5;
  --accent-color: #5c98ff;
  --skill-bg-color: #2a2a2a;
  --svg-color: #b0b0b0;
  --success-bg: #0f2a1c;
  --success-text: #34d399;
  --success-dot: #34d399;
}

#light-icon,
#dark-icon {
  display: none;
}

[data-theme="light"] #light-icon {
  display: inline;
}

[data-theme="dark"] #dark-icon {
  display: inline;
}

body {
  max-width: 840px;
  margin: 0 auto;
  padding: 100px 40px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    sans-serif;
}

[data-theme="light"] body {
  cursor: url("cursor.ico") 0 0, auto;
}

[data-theme="dark"] body {
  cursor: url("cursor-white.ico") 0 0, auto;
}
/* Lists */
.socials-list,
.project-skills,
.project-links-list,
.skills-list {
  padding: 0px 0px;
  display: flex;
  gap: 10px;
  margin: 0;
}

.socials-list {
  margin-bottom: 24px;
}

.header .socials-list {
  margin-bottom: 0;
}

/* Removing defaults */
ul li {
  list-style: none;
}

button {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

.socials-item a svg,
.project-links-item a svg,
.project-link svg {
  color: var(--svg-color);
}

.socials-item a svg:hover,
.project-links-item a svg:hover,
.project-link svg:hover {
  color: var(--accent-color);
  cursor: pointer;
}

.name {
  font-size: 27px;
  margin-top: 0;
  margin-bottom: 0;
}

.header {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.header-right .socials-item a,
#theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.description {
  font-size: 19px;
  margin-top: 8px;
  margin-bottom: 0px;
}

.about {
  font-size: 15px;
  margin-top: 12px;
  color: var(--svg-color);
  line-height: 1.5;
}

h2 {
  font-size: 19px;
}

.experience-section {
  padding: 8px 0;
}

.experience-job-title {
  margin-bottom: 2px;
}

.experience-job-info {
  margin-top: 12px;
}

.project-skills li,
.skills-list li {
  background-color: var(--skill-bg-color);
  color: var(--svg-color);
  padding: 2px 8px;
  border-radius: 2px;
}

.project-title { margin-bottom: 0; }

.project-description {
  margin-top: 8px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-meta .project-title {
  margin: 0;
  line-height: 1.1;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 2px;
  background-color: var(--success-bg);
  color: var(--success-text);
  line-height: 1;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success-dot);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.project-card { }

.skills-section { padding: 0; }

.skills-groups { display: flex; flex-direction: column; gap: 8px; }

.skills-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--svg-color);
  margin: 8px 0 2px 0;
}

.skills-list { flex-wrap: wrap; margin-bottom: 2px; gap: 10px; }

.skills-list--outline li {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--skill-bg-color);
  padding: 2px 8px;
  border-radius: 2px;
}

/* Compact Mode for kleine Höhen – erhält Layout, reduziert nur Abstände */
@media (max-height: 800px) {
  body { padding: 72px 32px; }
  .description { font-size: 18px; }
  h2 { font-size: 18px; }
  .about { font-size: 14px; margin-top: 10px; }
}

/* Two-column layout with subtle divider */
.two-col {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
}

.two-col .skills-section {
  border-left: 1px solid var(--skill-bg-color);
  padding-left: 24px;
}

.footer-imprint {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--svg-color);
}

.imprint-link {
  color: var(--svg-color);
  text-decoration: none;
}

.imprint-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.modal {
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--skill-bg-color);
  border-radius: 4px;
  padding: 16px;
  width: calc(100% - 40px);
  max-width: 520px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 2px;
}

.modal-body p {
  margin: 8px 0;
}

@media (max-width: 720px) {
  .two-col {
    display: block;
  }
  .two-col .skills-section {
    border-left: none;
    padding-left: 0;
    margin-top: 16px;
  }
}

/* Additional mobile spacing */
@media (max-width: 600px) {
  body {
    padding-top: calc(56px + env(safe-area-inset-top, 0px));
    padding-right: calc(20px + env(safe-area-inset-right, 0px));
    padding-bottom: 56px;
    padding-left: calc(20px + env(safe-area-inset-left, 0px));
  }
  .name { font-size: 24px; }
  h2 { font-size: 18px; }
  .description { font-size: 16px; }
  /* Mobil: statt Chips einfache, graue Textliste mit •-Separator */
  .skills-list,
  .project-skills { display: flex; flex-wrap: wrap; gap: 0 8px; }
  .skills-list li,
  .project-skills li {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    display: inline;
    color: var(--svg-color);
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .skills-list li + li::before,
  .project-skills li + li::before {
    content: "•";
    margin: 0 8px 0 0;
    color: var(--svg-color);
  }
  /* Outline-Variante mobil neutralisieren */
  .skills-list--outline li {
    background: none;
    border: none;
    color: var(--svg-color);
  }
  .project-card { margin-bottom: 12px; }
  .two-col { margin-top: 16px; }
  .two-col .skills-section { margin-top: 40px; }
}

/* Sehr kleine Geräte: lieber 2 Spalten für bessere Lesbarkeit */
@media (max-width: 380px) {
  .skills-list,
  .project-skills { gap: 0 6px; }
}
