:root {
  --page-width: 900px;
  --icon-size: 1em;
  --background: #eaeaea;
  --backgroundd: #000000;
  --page: #ffffff;
  --paged: #121212;
  --text: #000000;
  --textd: #e0e0e0;
  --primary: #0078D4;
  --primary1: #0078D4;
  --primary2: #E64747;
  --primary3: #27AE60;
  --primary4: #F39C12;
  --primary5: #8E44AD;
  --primary1d: #4796E6;
  --primary2d: #ff6b6b;
  --primary3d: #4ecb71;
  --primary4d: #ffae42;
  --primary5d: #b388ff;
  --imgbrightd: 0.8;
  --imgcontrastd: 1.1;
  --marker: rgba(255, 255, 150, 0.6); 
  --marker-em: rgba(255, 255, 150, 1.0);   
  --marker-text: #000;
  --markerd: rgba(255, 200, 50, 0.3);
  --marker-emd: rgba(255, 200, 50, 0.4); 
  --marker-textd: #fff;
}


@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: var(--backgroundd);
    --page: var(--paged);
    --text: var(--textd);
    --primary1: var(--primary1d);
    --primary2: var(--primary2d);
    --primary3: var(--primary3d);
    --primary4: var(--primary4d);
    --primary5: var(--primary5d);
	--marker: var(--markerd);
	--marker-em: var(--marker-emd);
	--marker-text: var(--marker-textd);
  }
  
  :root:not([data-theme="light"]) img {
    filter: brightness(var(--imgbrightd)) contrast(var(--imgcontrastd));
  }
}

:root[data-theme="dark"] {
  --background: var(--backgroundd);
  --page: var(--paged);
  --text: var(--textd);
  --primary1: var(--primary1d);
  --primary2: var(--primary2d);
  --primary3: var(--primary3d);
  --primary4: var(--primary4d);
  --primary5: var(--primary5d);
  --marker: var(--markerd);
  --marker-em: var(--marker-emd);
  --marker-text: var(--marker-textd);  
}

:root[data-theme="dark"] img {
  filter: brightness(var(--imgbrightd)) contrast(var(--imgcontrastd));
}


html[data-color="p1"] {
  --primary: var(--primary1);
}

html[data-color="p2"] {
  --primary: var(--primary2);
}

html[data-color="p3"] {
  --primary: var(--primary3);
}

html[data-color="p4"] {
  --primary: var(--primary4);
}

html[data-color="p5"] {
  --primary: var(--primary5);
}


/* Icons & Links nutzen nun immer die aktuelle --primary */
[class^="icon-"]::before {
  background-color: var(--primary);
}




* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--page);
  font-family: "Aptos Display", "Aptos", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: var(--text);
  transition: background 0.5s ease;
  text-underline-offset: 0.15rem;
}

nav {
  font-size: 0.75rem;
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  margin-bottom: -1rem;
 color: var(--primary);


  max-width: var(--page-width);
  margin: 0.5em auto;
  padding-right: 1em;

}


/* Keine Farbänderung, Underline nur bei Hover */
a {
  color: var(--text);
  text-decoration: underline;
}

.contact a {
  text-decoration: none;

}


a:hover,
a:focus {
  text-decoration: underline;
  color: var(--primary);
}

/* Sichtbarer Text */
.safe-mail::after {
  content: "mail@gregorfischer.com";
}

.safe-tel::after {
  content: "+43 664 7500 7600";
}

.safe-web::after {
  content: "https://cv.gregorfischer.com";
}

/* Klickbarkeit aktivieren */
.safe-mail,
.safe-tel,
.safe-web {
  position: relative;
}

.safe-mail::before,
.safe-tel::before,
.safe-web::before {
  content: attr(data-href);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: auto;
}


main {
  background: var(--page);
  max-width: var(--page-width);
  margin: 2rem auto;
  padding: 3rem;
  overflow:hidden;
}



h1 {
  margin: 0 0 1rem;
  font-size: 2.5rem;
}

h2 {
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--primary);
  width: 100%;
  margin: 2em 0 0;
  font-size: 0.9rem;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
}

p {
  margin: 0 0 0.5em;
}

p.profile {
  margin-top: 1em;
}

p.title {
  margin: 0 0 -0.5em;
  font-weight: 100;
  font-size: 0.85em;

}

ul {
  margin: 0.5em 0 0;
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.3em;
}

/* Screenreader-only Text */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* HEADER / TOP BLOCK – mobil zuerst */
.top-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 4px;
}

.name-role {
  display: flex;
  flex-direction: column;
}

.role-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  font-size: 0.95rem;
}

ul.role-list {
  margin-bottom: 0;
}

.role-list li {
  position: relative;
  padding-right: 1rem;
  /*white-space: nowrap;*/
  margin-bottom: 0;
}

.role-list li:not(:last-child)::after {
  content: "|";
  color: var(--primary);
  font-weight: 300;
  position: absolute;
  right: 0;
}

.contact {
  font-size: 0.75rem;
}

.contact p {
  margin: 0;
  position: relative;
  padding-left: calc(var(--icon-size) + 10px);
  text-align: left;
  line-height: 1.4;
}

.contact p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: var(--icon-size);
  height: var(--icon-size);
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;

}


/* 1. Shared Icon Setup */
[class^="icon-"]::before,
[class*=" icon-"]::before {
  content: "";
  display: inline-block;
  width: 24px;
  /* Adjust size as needed */
  height: 24px;
  vertical-align: middle;
  background-color: var(--primary);
  /* Fallback to your blue */
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* 2. Individual Icon Masks */
.icon-web::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10'/><path d='M2 12h20'/><path d='M12 2a15 15 0 0 1 0 20'/><path d='M12 2a15 15 0 0 0 0 20'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10'/><path d='M2 12h20'/><path d='M12 2a15 15 0 0 1 0 20'/><path d='M12 2a15 15 0 0 0 0 20'/></svg>");
}

.icon-phone::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 3.15 10.8 19.79 19.79 0 0 1 .08 2.18 2 2 0 0 1 2.06 0h3a2 2 0 0 1 2 1.72c.12.81.37 1.6.72 2.34a2 2 0 0 1-.45 2.18L6.1 7.47a16 16 0 0 0 10.43 10.43l1.23-1.23a2 2 0 0 1 2.18-.45c.74.35 1.53.6 2.34.72A2 2 0 0 1 22 16.92z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 3.15 10.8 19.79 19.79 0 0 1 .08 2.18 2 2 0 0 1 2.06 0h3a2 2 0 0 1 2 1.72c.12.81.37 1.6.72 2.34a2 2 0 0 1-.45 2.18L6.1 7.47a16 16 0 0 0 10.43 10.43l1.23-1.23a2 2 0 0 1 2.18-.45c.74.35 1.53.6 2.34.72A2 2 0 0 1 22 16.92z'/></svg>");
}

.icon-mail::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'><path d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/><polyline points='22,6 12,13 2,6'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'><path d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/><polyline points='22,6 12,13 2,6'/></svg>");
}

.icon-place::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'><path d='M12 22s8-6.28 8-12A8 8 0 0 0 4 10c0 5.72 8 12 8 12z'/><circle cx='12' cy='10' r='3'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'><path d='M12 22s8-6.28 8-12A8 8 0 0 0 4 10c0 5.72 8 12 8 12z'/><circle cx='12' cy='10' r='3'/></svg>");
}

.icon-linkedin::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'><rect x='2' y='2' width='20' height='20' rx='2'/><line x1='7' y1='10' x2='7' y2='17'/><circle cx='7' cy='7' r='1.2'/><path d='M12 10v7m0-4.5c0-1.7 1.2-2.5 2.5-2.5s2.5 1 2.5 2.8V17'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'><rect x='2' y='2' width='20' height='20' rx='2'/><line x1='7' y1='10' x2='7' y2='17'/><circle cx='7' cy='7' r='1.2'/><path d='M12 10v7m0-4.5c0-1.7 1.2-2.5 2.5-2.5s2.5 1 2.5 2.8V17'/></svg>");
}


/* JOBS / ERFAHRUNG */
.job {
  margin: 1.5em 0 2.5em;
}

.role-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  row-gap: 0;
}

.role {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  row-gap: 0;
}

.role h3::after {
  content: "|";
  color: var(--primary);
  font-weight: 300;
  margin-left: 0.5em;

}

.company {
  margin: 0;
  position: relative;
  padding-left: 0;
}


.period {
  margin: 0;
  font-style: italic;
  color: var(--primary);
  text-align: right;
  white-space: nowrap;
}



/* RESPONSIVE */

@media (max-width: 700px) {


  main {
    margin: 0;
    border-radius: 0;
    max-width: 100%;
    padding: 1.5rem;
  }

  nav {
    max-width: 100%;
    margin: 0;
    padding-right: 1.5rem;
	margin-top: 0.5rem;
  }

  h2 {
    letter-spacing: 0.1em;
  }

  .role-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .role {
    flex-direction: column;
    align-items: flex-start;
  }

  .role h3::after {
    content: '';
  }


  .company {
    padding-left: 0;
  }

  .period {
    text-align: left;
  }
}

@media (min-width: 900px) {

  body {
    background: var(--background);
  }

	nav {

    padding-right: 0;
  }

  main {
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  .top-block {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }

  .hero-image {
    aspect-ratio: 4 / 5;
  }

  .name-role {
    justify-content: flex-end;
  }


  header:not(:has(img.hero-image:hover)) .contact p 
 {
    padding-left: 0;
    padding-right: calc(var(--icon-size) + 10px);
    text-align: right;
  }

  header:not(:has(img.hero-image:hover)) .contact p::before {
    left: auto;
    right: 0;
  }
}

.download-wrap {
  margin-bottom: 3rem;
  text-align: center;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}


.download-btn:hover,
.download-btn:focus {
  /* Mischt 15% Schwarz in die Primärfarbe */
  background: color-mix(in srgb, var(--primary), #000 15%);
  text-decoration: none;
}

/* Icon */
.icon2-download {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  background-color: #fff;
  /* Icon-Farbe */
  mask: url("data:image/svg+xml;utf8,\
		<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
		  <path d='M12 3v12' stroke='white' stroke-width='2' stroke-linecap='round'/>\
		  <path d='M6 11l6 6 6-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/>\
		  <path d='M5 21h14' stroke='white' stroke-width='2' stroke-linecap='round'/>\
		</svg>"
    ) no-repeat center / contain;
}




@media print {

  /* Hintergrund komplett weiß */
  body {
    background: #ffffff !important;
  }

  main {
    background: #ffffff !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 2rem !important;
    max-width: 100% !important;
  }

  /* A4 + leichte Skalierung über page-size */
  @page {
    size: A4;
    margin: 1.2cm;
  }

  /* Header IMMER Desktop */
  .top-block {
    display: grid !important;
    grid-template-columns: 1fr 2fr 1fr !important;
    gap: 2rem !important;
    align-items: stretch !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Bild exakt wie Desktop */
  .hero-image {
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Name/Role wie Desktop */
  .name-role {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }

  /* Kontakt rechts */
  .contact p {
    padding-left: 0 !important;
    padding-right: calc(var(--icon-size) + 10px) !important;
    text-align: right !important;
  }

  .contact p::before {
    left: auto !important;
    right: 0 !important;
  }

  /* Leichte Kompression für kürzeres PDF */
  h1 {
    font-size: 1.8rem !important;
  }

  h2 {
    margin-top: 1.4em !important;
    letter-spacing: 0.2em !important;
  }

  .job {
    margin: 1.2em 0 2em !important;
    break-inside: avoid;
  }

  ul {
    margin-top: 0.3em !important;
  }

  li {
    margin-bottom: 0.2em !important;
  }

  /* Farben korrekt drucken */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }


  .download-wrap {
    display: none !important;
  }

  .lang-switch {
    display: none !important;
  }

}


/* 1. Default (Light Mode): Zeige den MOND, um zu Dark zu wechseln */
.icon-theme::before {
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--text);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/></svg>");
}

.icon-theme:hover::before {
	background-color: var(--primary);
}


/* 2. Dark Mode: Zeige die SONNE, um zu Light zu wechseln */
/* Wir decken hier beide Fälle ab: System-Dark (ohne manuelles Light) ODER manuelles Dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-theme::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='5'></circle><line x1='12' y1='1' x2='12' y2='3'></line><line x1='12' y1='21' x2='12' y2='23'></line><line x1='4.22' y1='4.22' x2='5.64' y2='5.64'></line><line x1='18.36' y1='18.36' x2='19.78' y2='19.78'></line><line x1='1' y1='12' x2='3' y2='12'></line><line x1='21' y1='12' x2='23' y2='12'></line><line x1='4.22' y1='19.78' x2='5.64' y2='18.36'></line><line x1='18.36' y1='5.64' x2='19.78' y2='4.22'></line></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='5'></circle><line x1='12' y1='1' x2='12' y2='3'></line><line x1='12' y1='21' x2='12' y2='23'></line><line x1='4.22' y1='4.22' x2='5.64' y2='5.64'></line><line x1='18.36' y1='18.36' x2='19.78' y2='19.78'></line><line x1='1' y1='12' x2='3' y2='12'></line><line x1='21' y1='12' x2='23' y2='12'></line><line x1='4.22' y1='19.78' x2='5.64' y2='18.36'></line><line x1='18.36' y1='5.64' x2='19.78' y2='4.22'></line></svg>");
  }
}

:root[data-theme="dark"] .icon-theme::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='5'></circle><line x1='12' y1='1' x2='12' y2='3'></line><line x1='12' y1='21' x2='12' y2='23'></line><line x1='4.22' y1='4.22' x2='5.64' y2='5.64'></line><line x1='18.36' y1='18.36' x2='19.78' y2='19.78'></line><line x1='1' y1='12' x2='3' y2='12'></line><line x1='21' y1='12' x2='23' y2='12'></line><line x1='4.22' y1='19.78' x2='5.64' y2='18.36'></line><line x1='18.36' y1='5.64' x2='19.78' y2='4.22'></line></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='5'></circle><line x1='12' y1='1' x2='12' y2='3'></line><line x1='12' y1='21' x2='12' y2='23'></line><line x1='4.22' y1='4.22' x2='5.64' y2='5.64'></line><line x1='18.36' y1='18.36' x2='19.78' y2='19.78'></line><line x1='1' y1='12' x2='3' y2='12'></line><line x1='21' y1='12' x2='23' y2='12'></line><line x1='4.22' y1='19.78' x2='5.64' y2='18.36'></line><line x1='18.36' y1='5.64' x2='19.78' y2='4.22'></line></svg>");
}

/* Button Styling für die Lang-Switch Integration */
.theme-switch {
  background: none;
  border: none;
  color: inherit;
  /* Nutzt Textfarbe der Nav */
  cursor: pointer;
  padding: 0;
  margin-left: 0px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
  margin-top: -3px;
}

.theme-switch:hover {
  transform: rotate(15deg);
  //color: var(--primary);
  
}

/* 1. Transition auf das Pseudoelement (das Icon selbst) */
.contact p[class^="icon-"]::before,
.contact p[class*=" icon-"]::before {
  transition: transform 0.3s ease;
  display: inline-block;
  /* Wichtig, damit transform funktioniert */
}

/* 2. Hover-Logik: Wenn das P gehovert wird, rotiere das Icon */
.contact p:hover::before {
  transform: rotate(15deg) scale(1.1);
}


.color-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.current-color-bullet {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 1px solid rgba(128, 128, 128, 0.4);
  cursor: pointer;
  padding: 0;
}

/* Das Menü jetzt vertikal */
.color-menu {
  position: absolute;
  top: 120%;
  /* Etwas Abstand nach unten */
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: var(--page);
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 15px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  /* UNTEREINANDER */
  gap: 12px;
  /* Mehr Platz für Finger-Interaktion */
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 100;
  pointer-events: auto;
}

.color-dropdown:not(:hover) .color-menu {
  transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s;
}

/* Hover-Logik für Desktop */
@media (hover: hover) {
  .color-dropdown:hover .color-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
  }
}

/* Mobile-Fix: Da Hover auf Mobile tückisch ist, 
   aktiviert oft der erste Tap das Menü */
.color-dropdown:active .color-menu,
.color-dropdown:focus-within .color-menu {
  opacity: 1;
  visibility: visible;
}

.color-dot {
  width: 18px;
  /* Etwas größer für bessere Bedienbarkeit */
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.color-dot:hover {
  transform: scale(1.2);
}

/* Zeige an, welche Farbe gerade aktiv ist */
html[data-color="p1"] [data-p="p1"],
html[data-color="p2"] [data-p="p2"],
html[data-color="p3"] [data-p="p3"],
html[data-color="p4"] [data-p="p4"],
html[data-color="p5"] [data-p="p5"] {
  border-color: var(--text);
  /* Kleiner Ring um die aktive Farbe */
}


/* Styling für die Farbauswahl in der Nav */
.color-picker {
  display: inline-flex;
  gap: 5px;
  margin-right: 10px;
  vertical-align: middle;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(128, 128, 128, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0;
}

.color-dot:hover {
  transform: scale(1.3);
}

.color-dot.active {
  border: 1.5px solid var(--text);
}



/* Marker */

img.hero-image:hover {
	 filter: brightness(1) contrast(1);
}

@media (min-width: 900px) {
  .job li, .role-wrap, .profile {
      transition: background-color 0.3s ease, color 0.3s ease;
      border-radius: 4px; 
      padding: 2px 4px;   
      margin: -2px -4px;  
  }

  .job li em, .role-wrap h3 {
      transition: background-color 0.3s ease, color 0.3s ease;
      border-radius: 2px; 
      padding: 1px 2px;   
      margin: -1px -2px; 
  }

 li:hover, ver, .role-wrap:hover, .profile:hover {
      background-color: var(--marker);
      color: var(--marker-text);
	  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="rgba(255, 255, 150, 0.8)"/></svg>') 10 10, auto;
  }
  
  .job li:hover em, .role-wrap:hover h3 {
	 background-color: var(--marker-em);
  }
  
  header {
	  overflow:hidden;
  
  }
  
  img.hero-image  {
	 cursor:zoom-in;
	   transition: width 0.45s ease-in-out;
  }
    
  img.hero-image:hover {
	 width: 804px;
	 
  }
 
 
  header:has(img.hero-image:hover) { 
    grid-template-columns: 0fr;
  }
 
 

} 


@media (max-width: 899px) {
	
	  img.hero-image:hover {
	 aspect-ratio: unset;
	  cursor:zoom-in;
	 
  }
  

	
}


section:not(:has(article)), article {
  break-inside: avoid;
}


li:not(.role-list li), p.profile {
	hyphens: auto;
    text-align: justify;
    hyphenate-limit-chars: 5 2 3;
	
}


li:not(.role-list li) {
    list-style-type: square;
	    margin-bottom: 0.5em;
}

li:not(.role-list li)::marker {
    color: var(--primary);
    font-size: 0.8em; 
}